You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

34 lines
673 B

<template>
<q-btn label="OK" @click="click"></q-btn>
</template>
<script setup lang="ts">
import { getCurrentInstance } from 'vue';
import { VueTools } from 'platform-core';
const emit = defineEmits<{
(
e: 'wsp', // 行点击事件
evt: Event, // 第一个参数,JS 事件对象
row: any, // 第二个参数, 点击的行对象
index: number, // 第三个参数, 当前页中行的索引
): void;
}>();
const click = () => {
emit('wsp', instance, 'kdsjlfj');
};
const ok = () => {
return 'ok';
};
const hello = 'hello';
defineExpose({
ok,
hello,
});
const instance = getCurrentInstance();
VueTools.expose2Instance(instance);
</script>