提交 2a10372d 编写于 作者: D DCloud_LXH

fix(nvue): button

上级 e0f20352
...@@ -478,7 +478,7 @@ var Button = defineComponent({ ...@@ -478,7 +478,7 @@ var Button = defineComponent({
return; return;
} }
if (isLabelClick) { if (isLabelClick) {
rootRef.value.click(); rootRef.value.event.click.handler();
} }
}; };
const _getClass = (t2) => { const _getClass = (t2) => {
...@@ -518,7 +518,7 @@ var Button = defineComponent({ ...@@ -518,7 +518,7 @@ var Button = defineComponent({
return vnodes; return vnodes;
}; };
return () => { return () => {
return createVNode("div", mergeProps({ return createVNode("view", mergeProps({
"ref": rootRef, "ref": rootRef,
"class": ["ub", _getClass("")] "class": ["ub", _getClass("")]
}, extend({}, useHoverClass(props), { }, extend({}, useHoverClass(props), {
......
...@@ -211,7 +211,7 @@ export default defineComponent({ ...@@ -211,7 +211,7 @@ export default defineComponent({
return return
} }
if (isLabelClick) { if (isLabelClick) {
rootRef.value!.click() ;(rootRef.value as any).event.click.handler(e)
} }
/* const formType = props.formType /* const formType = props.formType
if (formType) { if (formType) {
...@@ -269,7 +269,7 @@ export default defineComponent({ ...@@ -269,7 +269,7 @@ export default defineComponent({
return () => { return () => {
return ( return (
<div <view
ref={rootRef} ref={rootRef}
class="ub" class="ub"
// @ts-expect-error // @ts-expect-error
...@@ -288,7 +288,7 @@ export default defineComponent({ ...@@ -288,7 +288,7 @@ export default defineComponent({
></loading-indicator> ></loading-indicator>
) : null} ) : null}
{...wrapSlots()} {...wrapSlots()}
</div> </view>
) )
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册