提交 34a8e63b 编写于 作者: zhaofengliang920817's avatar zhaofengliang920817 提交者: 雪洛

iOS| 更改button实例,动态初始化button文字

上级 708117ec
...@@ -11,9 +11,12 @@ ...@@ -11,9 +11,12 @@
type_enum: [{ "value": 0, "name": "default" }, { "value": 1, "name": "primary" }, { "value": 2, "name": "warn" }] as ItemType[], type_enum: [{ "value": 0, "name": "default" }, { "value": 1, "name": "primary" }, { "value": 2, "name": "warn" }] as ItemType[],
type_enum_current: 0, type_enum_current: 0,
count: 0, count: 0,
text: 'uni-app-x' text: ''
} }
}, },
onReady() {
this.text = 'uni-app-x'
},
methods: { methods: {
button_click() { button_click() {
console.log("组件被点击时触发") console.log("组件被点击时触发")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册