1.0.17 • Published 5 years ago

zeekr-ditto v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

zeekr-ditto使用方法:

npm install zeekr-ditto  

import Ditto from 'zeekr-ditto'
Vue2引入方法:
Vue.prototype.$ditto = Ditto

Vue3引入方法:
app.config.globalProperties.$ditto = Ditto

方法使用说明:

注意:现在所有的方法均返回“Promise”

目前仅支持异步,格式如下:

// 异步调用无参数的方法
this.$ditto.getDeviceInfo().then(res => {
  console.log(res)
})
/**
 * 异步调用有参数的方法
 * res 返回的是一个对象
 */
this.$ditto.changeTitleBarStyle({user: '示例' }).then(res => {
  console.log(res,'异步修改导航条样式')
})

npm打包说明:

打包流程如下

// 首先要注册npm账号
https://www.npmjs.com/
// 在控制台登陆npm
npm login
// 本地打包
npm run prepublish
// 发布到npm
npm publish
1.0.17

5 years ago

1.0.16

5 years ago

1.0.11

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago