1.0.17 • Published 3 years ago

zeekr-ditto v1.0.17

Weekly downloads
-
License
ISC
Repository
-
Last release
3 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

3 years ago

1.0.16

3 years ago

1.0.11

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago