更新记录
1.0.0(2024-11-26)
下载此版本
1.0.0使用说明
一、部分引入
1.页面引入组件
<script>
import myButton from "@/components/my-button/my-button.vue"
</script>
2.传入参数
<myButton text="确定" bgColor="#6C81FF" color="#fff" fillet="10px" :isWidth="true" width="120px" :isHeight="true" height="30px"></myButton>
二、全局引入,在main.js中
<script>
import myButton from "@/components/my-button/my-button.vue"
Vue.component('myButton',myButton)
</script>
平台兼容性
uni-app
Vue2 |
Vue3 |
Chrome |
Safari |
app-vue |
app-nvue |
Android |
iOS |
鸿蒙 |
√ |
- |
√ |
√ |
- |
- |
- |
- |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
√ |
√ |
√ |
√ |
√ |
√ |
- |
√ |
√ |
√ |
- |
其他
使用说明
一、部分引入
1.页面引入组件
<script>
import myButton from "@/components/my-button/my-button.vue"
</script>
2.传入参数
<myButton text="确定" bgColor="#6C81FF" color="#fff" fillet="10px" :isWidth="true" width="120px" :isHeight="true" height="30px"></myButton>
二、全局引入,在main.js中
<script>
import myButton from "@/components/my-button/my-button.vue"
Vue.component('myButton',myButton)
</script>