birdpaper-ui
Version:
一个通用的 vue3 UI组件库。A common vue3 UI component library.
80 lines (79 loc) • 3.05 kB
JavaScript
;
const popconfirm_vue_vue_type_script_lang = require("./popconfirm.vue2.js");
const vue = require("vue");
const _pluginVue_exportHelper = require("../../_virtual/_plugin-vue_export-helper.js");
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
const _component_bp_button = vue.resolveComponent("bp-button");
const _component_bp_space = vue.resolveComponent("bp-space");
const _component_bp_trigger = vue.resolveComponent("bp-trigger");
return vue.openBlock(), vue.createBlock(_component_bp_trigger, {
"popup-visible": _ctx.show,
"onUpdate:popupVisible": _cache[0] || (_cache[0] = ($event) => _ctx.show = $event),
class: vue.normalizeClass(_ctx.name),
"popup-offset": 10,
position: _ctx.position,
"update-at-scroll": ""
}, {
content: vue.withCtx(() => [
vue.createElementVNode("div", {
class: vue.normalizeClass(`${_ctx.name}-inner`)
}, [
vue.createElementVNode("div", {
class: vue.normalizeClass(`${_ctx.name}-inner-content`)
}, [
vue.createElementVNode("span", {
class: vue.normalizeClass(`${_ctx.name}-icon`)
}, [
(vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.iconType[_ctx.type]), { size: "16px" }))
], 2),
vue.createElementVNode("span", {
class: vue.normalizeClass(`${_ctx.name}-text`)
}, vue.toDisplayString(_ctx.content), 3)
], 2),
vue.createElementVNode("div", {
class: vue.normalizeClass(`${_ctx.name}-inner-footer`)
}, [
vue.createVNode(_component_bp_space, {
size: "mini",
justify: "flex-end"
}, {
default: vue.withCtx(() => [
vue.createVNode(_component_bp_button, {
onClick: _ctx.handleCancle,
size: "mini"
}, {
default: vue.withCtx(() => [
vue.createTextVNode(vue.toDisplayString(_ctx.cancleText), 1)
]),
_: 1
}, 8, ["onClick"]),
vue.createVNode(_component_bp_button, {
onClick: _ctx.handleOk,
loading: _ctx.okLoading,
size: "mini",
type: "primary",
status: "primary"
}, {
default: vue.withCtx(() => [
vue.createTextVNode(vue.toDisplayString(_ctx.okText), 1)
]),
_: 1
}, 8, ["onClick", "loading"])
]),
_: 1
})
], 2)
], 2)
]),
default: vue.withCtx(() => [
vue.createElementVNode("div", {
class: vue.normalizeClass(`${_ctx.name}-slot`)
}, [
vue.renderSlot(_ctx.$slots, "default")
], 2)
]),
_: 3
}, 8, ["popup-visible", "class", "position"]);
}
const _popconfirm = /* @__PURE__ */ _pluginVue_exportHelper(popconfirm_vue_vue_type_script_lang, [["render", _sfc_render]]);
module.exports = _popconfirm;