0.0.8 • Published 4 years ago

components117 v0.0.8

Weekly downloads
27
License
-
Repository
-
Last release
4 years ago

components117

功能清单

  • toast
    •   this.$toast('toast 提示')
  • dayjs
    •   <!-- 将时间格式化为'YYYY-MM-DD HH:mm:ss' -->
        <div>{{ time | dayjs }}</div>
    •   <!-- 将时间格式化为自定义格式'YYYY-MM-DD' -->
        <div>{{ time | dayjs('YYYY-MM-DD') }}</div>
    •   <!-- 获取时间差,格式为:分钟′秒′′ -->
        <div>{{ time | dayjsDiff(time2) }}</div>
    •   this.$dayjs('2018-08-08') // parse
        this.$dayjs().format('{YYYY} MM-DDTHH:mm:ss SSS [Z] A') // display
        this.$dayjs().set('month', 3).month() // get & set
        this.$dayjs().add(1, 'year') // manipulate
        this.$dayjs().isBefore(dayjs()) // query
  • axios
    •   this.$axios
  • qs
    •   this.$qs
  • 使用PC端组件
    • LineTitle
      •   import { LineTitle } from 'components117/pc'
  • 使用移动端组件

使用

在 main.js 写 import 'components117' 即可。

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

发布

npm publish