yuang-framework-ui-pc
Version:
yuang-framework-ui-pc Library
32 lines (31 loc) • 907 B
JavaScript
import { defineComponent, openBlock, createElementBlock, withModifiers, renderSlot } from "vue";
const _sfc_main = defineComponent({
name: "EleFileListTool",
emits: {
click: (_e) => true
},
setup(_props, { emit }) {
return {
handleClick: (e) => emit("click", e)
};
}
});
const _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
target[key] = val;
}
return target;
};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return openBlock(), createElementBlock("div", {
class: "ele-file-list-item-tool",
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => _ctx.handleClick && _ctx.handleClick(...args), ["stop"]))
}, [
renderSlot(_ctx.$slots, "default")
]);
}
const index = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
export {
index as default
};