refactor: 确立独立子工程架构 (backend, admin, mpuniapp) 并同步更新 AGENTS.md 规范
这个提交包含在:
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<view>
|
||||
<text>在uts组件中使用 native-button</text>
|
||||
<button type="primary" @tap="testCallMethod">调用组件方法</button>
|
||||
<native-button id="helloView1" class="native-button" text="自定义组件"></native-button>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script setup lang="uts">
|
||||
import { createNativeButtonContext } from "@/uni_modules/native-button";
|
||||
const title = ref('组件能力封装示例');
|
||||
const ontap = (e : UniNativeViewEvent) => {
|
||||
console.log("ontap----------" + e.type)
|
||||
};
|
||||
const testCallMethod = () => {
|
||||
let context = createNativeButtonContext("helloView1", getCurrentInstance()?.proxy)
|
||||
context?.updateText("test code")
|
||||
};
|
||||
</script>
|
||||
在新工单中引用
屏蔽一个用户