更新记录
0.0.1(2024-09-11)
初始发布
平台兼容性
uni-app
Vue2 | Vue3 | Chrome | Safari | app-vue | app-nvue | Android | iOS | 鸿蒙 |
---|---|---|---|---|---|---|---|---|
√ | - | - | - | √ | - | - | - | - |
微信小程序 | 支付宝小程序 | 抖音小程序 | 百度小程序 | 快手小程序 | 京东小程序 | 鸿蒙元服务 | QQ小程序 | 飞书小程序 | 快应用-华为 | 快应用-联盟 |
---|---|---|---|---|---|---|---|---|---|---|
√ | - | - | - | - | - | - | - | - | - | - |
使用说明
引入组件参考下面代码使用
<template>
<view>
<c-calculator ref="calculatorRef" @ok="addOk" /><!-- 3.使用组件 -->
</view>
</template>
<script>
import c-calculator from '@/components/c-calculator/c-calculator.vue';//1.导入组件
export default {
data() {
return {
}
},
components: {
c-calculator
},//2.注册组件
methods: {
//计算器返回信息
addOk(money, remark, day) {
},
//打开计算器
openCalculator() {
this.$refs.calculatorRef.openComputer();
},
}
}
</script>