UNPKG

vxe-pc-ui

Version:
46 lines (45 loc) 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _vue = require("vue"); var _xeUtils = _interopRequireDefault(require("xe-utils")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _default = exports.default = (0, _vue.defineComponent)({ name: 'VxeFlowDesign', props: {}, emits: [], setup(props, context) { const { slots } = context; const xID = _xeUtils.default.uniqueId(); const refElem = (0, _vue.ref)(); const reactData = (0, _vue.reactive)({}); const refMaps = { refElem }; const computeMaps = {}; const $xeFlowDesign = { xID, props, context, reactData, getRefMaps: () => refMaps, getComputeMaps: () => computeMaps }; const renderVN = () => { const defaultSlot = slots.default; return (0, _vue.h)('div', { ref: refElem, class: ['vxe-upload'] }, defaultSlot ? defaultSlot({}) : []); }; $xeFlowDesign.renderVN = renderVN; return $xeFlowDesign; }, render() { return this.renderVN(); } });