mt-ui-components-vue3
Version:
玛果添实UI组件库(Vue3)
34 lines • 1.35 kB
JavaScript
/* Analyzed bindings: {
"confirm": "setup-const"
} */
import { createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
const __sfc_main__ = {
setup(__props) {
const confirm = () => {
return new Promise((resolve, reject) => {
setTimeout(() => {
reject();
}, 2000);
});
};
return (_ctx, _cache) => {
const _component_j_button = _resolveComponent("j-button");
const _component_j_popconfirm_modal = _resolveComponent("j-popconfirm-modal");
return (_openBlock(), _createBlock(_component_j_popconfirm_modal, { onConfirm: confirm }, {
title: _withCtx(() => [
_createTextVNode(" 这是一段文字 ")
]),
default: _withCtx(() => [
_createVNode(_component_j_button, null, {
default: _withCtx(() => [
_createTextVNode("按钮")
]),
_: 1 /* STABLE */
})
]),
_: 1 /* STABLE */
}));
};
}
};
export default __sfc_main__;