UNPKG

vxe-table

Version:

一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、模态窗口、自定义模板、渲染器、贼灵活的配置项、扩展接口等...

53 lines (50 loc) 981 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _util = require("./util"); var props = { value: null, label: { type: [String, Number, Boolean], default: '' }, visible: { type: Boolean, default: null }, disabled: Boolean }; var watch = {}; Object.keys(props).forEach(function (name) { watch[name] = function (value) { this.optionConfig.update(name, value); }; }); var _default = { name: 'VxeOption', props: props, inject: { $xeselect: { default: null }, $xeoptgroup: { default: null } }, watch: watch, mounted: function mounted() { (0, _util.assemOption)(this); }, created: function created() { this.optionConfig = (0, _util.createOption)(this.$xeselect, this); }, destroyed: function destroyed() { (0, _util.destroyOption)(this); }, render: function render(h) { return h('div'); } }; exports.default = _default;