@ttkj/avue 2.11.14 → 2.11.15
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +29 -29
- package/lib/avue.min.js +2 -2
- package/lib/index.css +1 -1
- package/package.json +1 -1
package/lib/avue.js
CHANGED
@@ -710,7 +710,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
710
710
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
711
711
|
|
712
712
|
"use strict";
|
713
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_common_init__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/common/init */ \"./packages/core/common/init.js\");\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./item */ \"./packages/element-ui/form/item.vue\");\n/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/form/config.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ \"./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_mock__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! utils/mock */ \"./src/utils/mock.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n// 引入Mixin\n\n// 引用组件\n\n\n\n// 引用配置\n\n\n// 引用方法\n\n\n\n\n\n\n\nvar count = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({\n name: \"form\",\n mixins: [Object(common_common_init__WEBPACK_IMPORTED_MODULE_0__[\"default\"])()],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n formItem: _item__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n tableData: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n status: {\n type: Boolean,\n \"default\": false\n },\n value: {\n type: Object,\n required: true,\n \"default\": function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n /** 表单项配置 */\n config: _config_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n /** 表单是否提交状态 */\n allDisabled: false,\n /** 表单配置 */\n tableOption: {},\n /** 表单数据 */\n form: {},\n /** 表单是否创建完成 */\n formCreate: false,\n /** 级联项列表 */\n formList: [],\n /** 表单项控制器索引 */\n formBind: {},\n /**\n * 选中值的缓存\n * @description 对所有存在数据字典的表单项的选中值进行缓存\n */\n cachedSelected: {}\n };\n },\n provide: function provide() {\n return {\n formSafe: this\n };\n },\n watch: {\n value: {\n handler: function handler(val) {\n if (this.formCreate) {\n this.setForm();\n }\n },\n deep: true\n },\n form: {\n handler: function handler(val) {\n if (this.formCreate) {\n /* console.log(val, old)\n this.setLabel(); */\n this.setVal();\n }\n },\n deep: true\n },\n // DIC: {\n // handler () {\n // this.setLabel()\n // },\n // deep: true,\n // immediate: true\n // },\n allDisabled: {\n handler: function handler(val) {\n this.$emit('update:status', val);\n },\n deep: true,\n immediate: true\n }\n },\n computed: {\n columnSlot: function columnSlot() {\n var _this = this;\n return Object.keys(this.$scopedSlots).filter(function (item) {\n return !_this.propOption.map(function (ele) {\n return ele.prop;\n }).includes(item);\n });\n },\n labelSuffix: function labelSuffix() {\n return this.parentOption.labelSuffix || ':';\n },\n inlineMessage: function inlineMessage() {\n return this.parentOption.inlineMessage;\n },\n isDetail: function isDetail() {\n return this.detail === true;\n },\n isTabs: function isTabs() {\n return this.parentOption.tabs === true;\n },\n isAdd: function isAdd() {\n return this.boxType === \"add\";\n },\n isEdit: function isEdit() {\n return this.boxType === \"edit\";\n },\n isView: function isView() {\n return this.boxType === \"view\";\n },\n gutter: function gutter() {\n return this.setPx((this.parentOption.gutter || 10) / 2);\n },\n detail: function detail() {\n return this.parentOption.detail;\n },\n /**\n * 详情模式优先级, 默认: 'global'\n * @description 当detail同时存在全局配置和列配置时, global表示优先取全局detail, column表示优先取列detail\n */\n detailPriority: function detailPriority() {\n return this.parentOption.detailPriority || this.$AVUE.detailPriority || 'global';\n },\n /** 是否显示工具栏 */showMenu: function showMenu() {\n return this.vaildData(this.parentOption.menuBtn, !this.isDetail);\n },\n disabled: function disabled() {\n return this.parentOption.disabled;\n },\n readonly: function readonly() {\n return this.parentOption.readonly;\n },\n validateEvent: function validateEvent() {\n var validateEvent = this.parentOption.validateEvent;\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"getObjType\"])(validateEvent) === 'boolean' ? validateEvent : true;\n },\n dynamicOption: function dynamicOption() {\n var _this2 = this;\n var list = [];\n this.propOption.forEach(function (ele) {\n if (ele.type == 'dynamic' && _this2.vaildDisplay(ele)) {\n list.push(ele);\n }\n });\n return list;\n },\n propOption: function propOption() {\n var list = this.columnList.filter(function (column) {\n return !['layout', 'basic'].includes(column.componentType);\n });\n return list;\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n /** 表单渲染列配置 */columnOption: function columnOption() {\n var columnOption = _toConsumableArray(this.tableOption.column || []);\n // 将group合并到column中\n var groups = this.deepClone(this.tableOption.group) || [];\n if (groups.length > 0) {\n if (this.isTabs) {\n var display = false;\n var column = groups.map(function (group, index) {\n if (group.display !== false) {\n display = true;\n }\n if (!group.prop) {\n group.prop = String(index);\n }\n group.type = 'group';\n group.componentType = 'layout';\n group.header = false;\n return group;\n });\n // 转换为选项卡\n columnOption.push({\n type: 'tabs',\n componentType: 'layout',\n display: display,\n value: '',\n column: column\n });\n } else {\n // 转换为分组\n groups.forEach(function (group) {\n group.type = 'group';\n group.componentType = 'layout';\n columnOption.push(group);\n });\n }\n }\n\n // TODO 处理级联属性\n // 根据order排序\n var sortFn = function sortFn(list) {\n var columnList = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"columnsSort\"])(list);\n columnList.filter(function (column) {\n return column.componentType === 'layout' && Array.isArray(column.column);\n }).forEach(function (column) {\n column.column = sortFn(column.column);\n });\n return columnList;\n };\n columnOption = sortFn(columnOption);\n return columnOption;\n },\n /** column配置列表 */columnList: function columnList() {\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"flattenColumns\"])(this.columnOption);\n },\n /** 表单项配置列表 */formColumnList: function formColumnList() {\n return this.columnList.filter(function (column) {\n return !['layout', 'basic'].includes(column.componentType);\n });\n },\n // 获取基础项slot\n basicSlots: function basicSlots() {\n var _this3 = this;\n var slots = [];\n this.columnList.forEach(function (column) {\n if (column.componentType !== 'basic' || !column.prop) return;\n if (_this3.getSlotName(column, 'D', _this3.$scopedSlots)) {\n slots.push(_this3.getSlotName(column, 'D'));\n }\n });\n return slots;\n },\n menuPosition: function menuPosition() {\n if (this.parentOption.menuPosition) {\n return this.parentOption.menuPosition;\n } else {\n return \"center\";\n }\n },\n boxType: function boxType() {\n return this.parentOption.boxType;\n },\n isPrint: function isPrint() {\n return this.vaildData(this.parentOption.printBtn, false);\n },\n isMock: function isMock() {\n return this.vaildData(this.parentOption.mockBtn, false);\n },\n // 字典类数据的文字索引\n columnDicLabelIndex: function columnDicLabelIndex() {\n var labelIndex = {};\n for (var prop in this.DIC) {\n var column = this.objectOption[prop];\n var dic = this.DIC[prop];\n var label = Object(core_detail__WEBPACK_IMPORTED_MODULE_7__[\"detail\"])(this.form, column, this.tableOption, dic);\n labelIndex[prop] = label;\n }\n return labelIndex;\n },\n /** 提供给表单项的tableData */formItemTableData: function formItemTableData() {\n return Object.assign(this.tableData, {\n columnIndex: this.objectOption,\n row: this.form\n });\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n setTimeout(function () {\n _this4.dataFormat();\n });\n },\n methods: {\n getPlaceholder: core_dataformat__WEBPACK_IMPORTED_MODULE_9__[\"getPlaceholder\"],\n /**\n * 表单项是否禁用\n * @description\n * 1. 首先判断列配置中是否配置(detail)详情模式。如果详情模式,直接返回true;如果无配置,则看表单项是否配置(detail)详情模式。详情模式下,直接返回true;否则不禁用。\n * 2. 皆无详情模式配置时,看列配置是否配置了disabled,如果为true,直接返回true;否则不禁用。\n * 3. 皆无配置,则看表单项是否处于提交状态,如果处于提交状态,则返回true;否则返回false。\n */\n getDisabled: function getDisabled(column) {\n var isColumnDetail = this.vaildDetail(column);\n if (this.detailPriority === 'global') {\n return isColumnDetail || this.isDetail || this.vaildDisabled(column) || this.allDisabled;\n }\n if (isColumnDetail) return true;\n return (isColumnDetail === false ? false : this.isDetail) || this.vaildDisabled(column) || this.allDisabled;\n },\n /** 表单项校验添加配置 */getColumnRules: function getColumnRules(column) {\n var _this5 = this;\n if (!Array.isArray(column.rules)) return;\n var rules = [];\n column.rules.forEach(function (rule) {\n if (Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"getObjType\"])(rule.validator) !== 'function') {\n rules.push(rule);\n return;\n }\n var validatorRule = _this5.deepClone(rule);\n validatorRule.validator = function (_rule, value, callback) {\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n rule.validator.apply(rule, [_rule, value, callback, _this5.getColumnEventBaseParams(column, value)].concat(args));\n };\n rules.push(validatorRule);\n });\n return rules;\n },\n /**\n * 获取表单项事件通用参数\n * @param column 表单项配置\n * @param value 表单项的值\n */\n getColumnEventBaseParams: function getColumnEventBaseParams(column, value) {\n var selected = this.cachedSelected[column.prop];\n return _objectSpread({\n value: value,\n column: column,\n dic: this.DIC[column.prop] || [],\n item: selected,\n selected: selected,\n label: this.columnDicLabelIndex[column.prop] || String(value)\n }, this.formItemTableData);\n },\n //初始化表单\n dataFormat: function dataFormat() {\n var _this6 = this;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_9__[\"formInitVal\"])(this.propOption).tableForm;\n var formValue = this.value;\n var form = {};\n Object.entries(Object.assign(formDefault, formValue)).forEach(function (ele) {\n var key = ele[0],\n value = ele[1];\n if (_this6.validatenull(formValue[key])) {\n form[key] = value;\n } else {\n form[key] = formValue[key];\n }\n });\n this.$set(this, 'form', form);\n // this.setLabel();\n this.setControl();\n this.setVal();\n setTimeout(function () {\n _this6.formCreate = true;\n _this6.clearValidate();\n _this6.$emit('mounted');\n var events = _this6.tableOption.events || {};\n if (typeof events.didMount === 'function') {\n events.didMount();\n }\n });\n },\n setControl: function setControl() {\n var _this7 = this;\n this.propOption.forEach(function (column) {\n var prop = column.prop;\n var bind = column.bind;\n var control = column.control;\n if (!_this7.formBind[prop]) {\n var bindList = [];\n if (bind) {\n var formProp = _this7.$watch('form.' + prop, function (n, o) {\n if (!lodash__WEBPACK_IMPORTED_MODULE_6___default.a.isEqual(n, o)) Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"setAsVal\"])(_this7.form, bind, n);\n });\n var formDeep = _this7.$watch('form.' + bind, function (n, o) {\n if (!lodash__WEBPACK_IMPORTED_MODULE_6___default.a.isEqual(n, o)) _this7.$set(_this7.form, prop, n);\n });\n bindList.push(formProp);\n bindList.push(formDeep);\n _this7.$set(_this7.form, prop, Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"getAsVal\"])(_this7.form, bind));\n }\n if (control) {\n var callback = function callback() {\n var value = _this7.form[column.prop];\n var eventParams = _this7.getColumnEventBaseParams(column, value);\n var controlList = control(value, _this7.form, eventParams) || {};\n Object.keys(controlList).forEach(function (item) {\n var ele = Object.assign(_this7.objectOption[item] || {}, controlList[item]);\n _this7.$set(_this7.objectOption, item, ele);\n if (controlList[item].dicData) _this7.DIC[item] = controlList[item].dicData;\n });\n };\n var formControl = _this7.$watch('form.' + prop, function (n, o) {\n callback();\n });\n bindList.push(formControl);\n callback();\n }\n _this7.formBind[prop] = bindList;\n }\n });\n },\n //表单赋值\n setForm: function setForm() {\n var _this8 = this;\n Object.keys(this.value).forEach(function (ele) {\n _this8.$set(_this8.form, ele, _this8.value[ele]);\n });\n },\n setVal: function setVal() {\n this.$emit('input', this.form);\n this.$emit('change', this.form);\n },\n /* setLabel () {\n if (this.tableOption.filterNull === true) {\n this.form = filterParams(this.form, [''], false)\n }\n if (this.tableOption.filterDic == true) {\n this.form = filterParams(this.form, ['$'], false)\n return\n }\n this.propOption.forEach(column => {\n let result;\n let DIC = this.DIC[column.prop]\n if (this.validatenull(DIC)) return;\n result = detail(this.form, column, this.tableOption, DIC);\n if (result) {\n this.$set(this.form, `$${column.prop}`, result);\n } else {\n this.$delete(this.form, `$${column.prop}`);\n }\n });\n }, */\n handleGroupClick: function handleGroupClick(activeNames) {\n this.$emit('tab-click', activeNames);\n },\n handleTabClick: function handleTabClick(tab, event) {\n this.$emit('tab-click', tab, event);\n },\n /**\n * 根据当前表单类型获取列属性值\n * @param {object} column 列配置\n * @param {string} param 属性key\n * @param {*} defaultVal 默认值\n */\n getColumnValue: function getColumnValue(column, param, defaultVal) {\n var key;\n if (this.isAdd) {\n key = 'add' + lodash__WEBPACK_IMPORTED_MODULE_6___default.a.upperFirst(param);\n } else if (this.isEdit) {\n key = 'edit' + lodash__WEBPACK_IMPORTED_MODULE_6___default.a.upperFirst(param);\n } else if (this.isView) {\n key = 'view' + lodash__WEBPACK_IMPORTED_MODULE_6___default.a.upperFirst(param);\n }\n if (!lodash__WEBPACK_IMPORTED_MODULE_6___default.a.has(column, key)) {\n key = param;\n }\n return this.vaildData(column[key], defaultVal);\n },\n getItemParams: function getItemParams(column, item, type, isPx) {\n var result;\n result = this.getColumnValue(column, type);\n if (this.validatenull(result)) {\n result = this.getColumnValue(item, type);\n }\n result = this.vaildData(result, this.parentOption[type]);\n result = this.vaildData(result, this.config[type]);\n return isPx ? this.setPx(result) : result;\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val, cb) {\n if (!val) return;\n var fields = Array.isArray(val) ? val : [val];\n var errorList = [];\n this.$refs.form.validateField(val, function (errMsg, info) {\n var _Object$keys = Object.keys(info || {}),\n _Object$keys2 = _slicedToArray(_Object$keys, 1),\n field = _Object$keys2[0];\n errorList.push({\n valid: !field,\n errMsg: errMsg,\n field: field\n });\n if (errorList.length === fields.length) {\n var errList = errorList.filter(function (item) {\n return !item.valid;\n });\n cb(errList.length === 0, errList);\n }\n });\n },\n validTip: function validTip(column) {\n return !column.tip || column.type === 'upload';\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs[prop][0];\n },\n handleChange: function handleChange(list, column) {\n var _this9 = this;\n this.$nextTick(function () {\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = _this9.form[column.prop];\n // 下一个节点\n var columnNext = _this9.findObject(list, columnNextProp);\n if (_this9.validatenull(columnNext)) return;\n // 如果不是首次加载则清空全部关联节点的属性值和字典值\n if (_this9.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this9.form[ele] = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"blankVal\"])(_this9.form[ele]);\n _this9.$set(_this9.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n if (_this9.validatenull(cascader) || _this9.validatenull(value) || _this9.validatenull(columnNext)) {\n return;\n }\n // 根据当前节点值获取下一个节点的字典\n Object(core_dic__WEBPACK_IMPORTED_MODULE_10__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this9.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this9.formList.includes(str)) _this9.formList.push(str);\n // 修改字典\n var dic = res || [];\n _this9.$set(_this9.DIC, columnNextProp, dic);\n if (!_this9.validatenull(dic) && !_this9.validatenull(dic) && !_this9.validatenull(columnNext.cascaderIndex) && _this9.validatenull(_this9.form[columnNextProp])) {\n _this9.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handlePrint: function handlePrint() {\n this.$Print(this.$el);\n },\n propChange: function propChange(option, column) {\n var key = column.prop;\n if (!count[key]) {\n if (column.cascader) this.handleChange(option, column);\n }\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n handleMock: function handleMock() {\n var _this10 = this;\n if (!this.isMock) return;\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(this.propOption, this.DIC, this.form, this.isMock);\n if (!this.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this10.form[ele] = form[ele];\n });\n }\n this.$nextTick(function () {\n _this10.clearValidate();\n _this10.$emit('mock-change', _this10.form);\n });\n },\n /**\n * 是否详情模式\n * @returns {boolean | undefined}\n */\n vaildDetail: function vaildDetail(column) {\n column.viewDetail = undefined;\n return this.getColumnValue(column, 'detail', undefined);\n },\n // 验证表单是否禁止\n vaildDisabled: function vaildDisabled(column) {\n if (this.disabled) return true;\n column.viewDisabled = true;\n return this.getColumnValue(column, 'disabled', false);\n },\n // 验证表单是否显隐\n vaildDisplay: function vaildDisplay(column) {\n return this.getColumnValue(column, 'display', true);\n },\n clearValidate: function clearValidate(list) {\n this.$refs.form && this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this11 = this;\n return new Promise(function (resolve) {\n _this11.$refs.form.validate(function (valid, msg) {\n resolve({\n valid: valid,\n msg: msg\n });\n });\n });\n },\n validate: function validate(callback) {\n var _this12 = this;\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n _this12.dynamicOption.forEach(function (ele) {\n var _ref = _this12.$refs[ele.prop] || [],\n _ref2 = _slicedToArray(_ref, 1),\n $dynamic = _ref2[0];\n if (_this12.validatenull($dynamic)) return;\n var isForm = ele.children.type === 'form';\n dynamicName.push(ele.prop);\n var $main = $dynamic.$refs.temp.$refs.main;\n if (isForm) {\n if (!_this12.validatenull($main)) {\n $main.forEach(function (ele) {\n dynamicList.push(ele.validateCellForm());\n });\n }\n } else {\n dynamicList.push($main.validateCellForm());\n }\n });\n Promise.all(dynamicList).then(function (res) {\n var count = 0;\n res.forEach(function (data, index) {\n if (!data.valid) {\n dynamicError[dynamicName[index]] = data.msg;\n }\n });\n var result = Object.assign(dynamicError, msg);\n if (_this12.validatenull(result)) {\n _this12.show();\n callback && callback(true, _this12.hide, result);\n } else {\n callback && callback(false, _this12.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this13 = this;\n var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (reset) {\n var propList = this.propOption.map(function (ele) {\n return ele.prop;\n });\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"clearVal\"])(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));\n }\n this.$nextTick(function () {\n _this13.clearValidate();\n _this13.$emit(\"reset-change\");\n });\n },\n resetFields: function resetFields() {\n this.$refs.form.resetFields();\n },\n show: function show() {\n this.allDisabled = true;\n },\n hide: function hide() {\n this.allDisabled = false;\n },\n submit: function submit() {\n var _this14 = this;\n this.validate(function (valid, msg) {\n if (valid) {\n _this14.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"filterParams\"])(_this14.form, ['$']), _this14.hide);\n } else {\n _this14.$emit(\"error\", msg);\n }\n });\n },\n // 获取列及子列slot\n getChildrenSlots: function getChildrenSlots(column, type) {\n var _this15 = this;\n var slots = [];\n var columnList = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"flattenColumns\"])([column]);\n columnList.forEach(function (item) {\n if (item.prop && _this15.getSlotName(item, type, _this15.$scopedSlots)) {\n slots.push(_this15.getSlotName(item, type));\n }\n });\n return slots;\n }\n },\n beforeDestroy: function beforeDestroy() {\n var _this16 = this;\n Object.keys(this.formBind).forEach(function (ele) {\n _this16.formBind[ele].forEach(function (unWatch) {\n unWatch();\n });\n });\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_cead2f3db70772ae82e4d433e80fb8e5/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
713
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_common_init__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/common/init */ \"./packages/core/common/init.js\");\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./item */ \"./packages/element-ui/form/item.vue\");\n/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/form/config.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! lodash */ \"./node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_mock__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! utils/mock */ \"./src/utils/mock.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n// 引入Mixin\n\n// 引用组件\n\n\n\n// 引用配置\n\n\n// 引用方法\n\n\n\n\n\n\n\nvar count = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_8__[\"default\"])({\n name: \"form\",\n mixins: [Object(common_common_init__WEBPACK_IMPORTED_MODULE_0__[\"default\"])()],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n formItem: _item__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n tableData: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n status: {\n type: Boolean,\n \"default\": false\n },\n value: {\n type: Object,\n required: true,\n \"default\": function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n /** 表单项配置 */\n config: _config_js__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n /** 表单是否提交状态 */\n allDisabled: false,\n /** 表单配置 */\n tableOption: {},\n /** 表单数据 */\n form: {},\n /** 表单是否创建完成 */\n formCreate: false,\n /** 级联项列表 */\n formList: [],\n /** 表单项控制器索引 */\n formBind: {},\n /**\n * 选中值的缓存\n * @description 对所有存在数据字典的表单项的选中值进行缓存\n */\n cachedSelected: {}\n };\n },\n provide: function provide() {\n return {\n formSafe: this\n };\n },\n watch: {\n value: {\n handler: function handler(val) {\n if (this.formCreate) {\n this.setForm();\n }\n },\n deep: true\n },\n form: {\n handler: function handler(val) {\n if (this.formCreate) {\n /* console.log(val, old)\n this.setLabel(); */\n this.setVal();\n }\n },\n deep: true\n },\n // DIC: {\n // handler () {\n // this.setLabel()\n // },\n // deep: true,\n // immediate: true\n // },\n allDisabled: {\n handler: function handler(val) {\n this.$emit('update:status', val);\n },\n deep: true,\n immediate: true\n }\n },\n computed: {\n columnSlot: function columnSlot() {\n var _this = this;\n return Object.keys(this.$scopedSlots).filter(function (item) {\n return !_this.propOption.map(function (ele) {\n return ele.prop;\n }).includes(item);\n });\n },\n labelSuffix: function labelSuffix() {\n return this.parentOption.labelSuffix || ':';\n },\n inlineMessage: function inlineMessage() {\n return this.parentOption.inlineMessage;\n },\n isDetail: function isDetail() {\n return this.detail === true;\n },\n isTabs: function isTabs() {\n return this.parentOption.tabs === true;\n },\n isAdd: function isAdd() {\n return this.boxType === \"add\";\n },\n isEdit: function isEdit() {\n return this.boxType === \"edit\";\n },\n isView: function isView() {\n return this.boxType === \"view\";\n },\n gutter: function gutter() {\n return this.setPx((this.parentOption.gutter || 10) / 2);\n },\n detail: function detail() {\n return this.parentOption.detail;\n },\n /**\n * 详情模式优先级, 默认: 'global'\n * @description 当detail同时存在全局配置和列配置时, global表示优先取全局detail, column表示优先取列detail\n */\n detailPriority: function detailPriority() {\n return this.parentOption.detailPriority || this.$AVUE.detailPriority || 'global';\n },\n /** 是否显示工具栏 */showMenu: function showMenu() {\n return this.vaildData(this.parentOption.menuBtn, !this.isDetail);\n },\n disabled: function disabled() {\n return this.parentOption.disabled;\n },\n readonly: function readonly() {\n return this.parentOption.readonly;\n },\n validateEvent: function validateEvent() {\n var validateEvent = this.parentOption.validateEvent;\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"getObjType\"])(validateEvent) === 'boolean' ? validateEvent : true;\n },\n dynamicOption: function dynamicOption() {\n var _this2 = this;\n var list = [];\n this.propOption.forEach(function (ele) {\n if (ele.type == 'dynamic' && _this2.vaildDisplay(ele)) {\n list.push(ele);\n }\n });\n return list;\n },\n propOption: function propOption() {\n var list = this.columnList.filter(function (column) {\n return !['layout', 'basic'].includes(column.componentType);\n });\n return list;\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n /** 表单渲染列配置 */columnOption: function columnOption() {\n var columnOption = _toConsumableArray(this.tableOption.column || []);\n // 将group合并到column中\n var groups = this.deepClone(this.tableOption.group) || [];\n if (groups.length > 0) {\n if (this.isTabs) {\n var display = false;\n var column = groups.map(function (group, index) {\n if (group.display !== false) {\n display = true;\n }\n if (!group.prop) {\n group.prop = String(index);\n }\n group.type = 'group';\n group.componentType = 'layout';\n group.header = false;\n return group;\n });\n // 转换为选项卡\n columnOption.push({\n type: 'tabs',\n componentType: 'layout',\n display: display,\n value: '',\n column: column\n });\n } else {\n // 转换为分组\n groups.forEach(function (group) {\n group.type = 'group';\n group.componentType = 'layout';\n columnOption.push(group);\n });\n }\n }\n\n // TODO 处理级联属性\n // 根据order排序\n var sortFn = function sortFn(list) {\n var columnList = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"columnsSort\"])(list);\n columnList.filter(function (column) {\n return column.componentType === 'layout' && Array.isArray(column.column);\n }).forEach(function (column) {\n column.column = sortFn(column.column);\n });\n return columnList;\n };\n columnOption = sortFn(columnOption);\n return columnOption;\n },\n /** column配置列表 */columnList: function columnList() {\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"flattenColumns\"])(this.columnOption);\n },\n /** 表单项配置列表 */formColumnList: function formColumnList() {\n return this.columnList.filter(function (column) {\n return !['layout', 'basic'].includes(column.componentType);\n });\n },\n // 获取基础项slot\n basicSlots: function basicSlots() {\n var _this3 = this;\n var slots = [];\n this.columnList.forEach(function (column) {\n if (column.componentType !== 'basic' || !column.prop) return;\n if (_this3.getSlotName(column, 'D', _this3.$scopedSlots)) {\n slots.push(_this3.getSlotName(column, 'D'));\n }\n });\n return slots;\n },\n menuPosition: function menuPosition() {\n if (this.parentOption.menuPosition) {\n return this.parentOption.menuPosition;\n } else {\n return \"center\";\n }\n },\n boxType: function boxType() {\n return this.parentOption.boxType;\n },\n isPrint: function isPrint() {\n return this.vaildData(this.parentOption.printBtn, false);\n },\n isMock: function isMock() {\n return this.vaildData(this.parentOption.mockBtn, false);\n },\n // 字典类数据的文字索引\n columnDicLabelIndex: function columnDicLabelIndex() {\n var labelIndex = {};\n for (var prop in this.DIC) {\n var column = this.objectOption[prop];\n var dic = this.DIC[prop];\n var label = Object(core_detail__WEBPACK_IMPORTED_MODULE_7__[\"detail\"])(this.form, column, this.tableOption, dic);\n labelIndex[prop] = label;\n }\n return labelIndex;\n },\n /** 提供给表单项的tableData */formItemTableData: function formItemTableData() {\n return Object.assign(this.tableData, {\n columnIndex: this.objectOption,\n row: this.form\n });\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n setTimeout(function () {\n _this4.dataFormat();\n });\n },\n methods: {\n getPlaceholder: core_dataformat__WEBPACK_IMPORTED_MODULE_9__[\"getPlaceholder\"],\n /**\n * 表单项是否禁用\n * @description\n * 1. 全局优先模式(global)\n * 1.1 首先判断是否全局详情模式。如果详情模式,直接返回true;如果不是,则看列配置是否配置(detail)详情模式。详情模式下,直接返回true;\n * 1.2 非详情模式,看列配置是否配置了disabled,如果为true,直接返回true;\n * 1.3 皆无配置,则看表单项是否处于提交状态,如果处于提交状态,则返回true;否则返回false。\n * 2. 列配置优先模式(column)\n * 2.1 首先判断列配置中是否配置(detail)详情模式。如果配置,直接返回配置结果;\n * 2.2 如果无配置,则看表单项是否配置(detail)详情模式。详情模式下,直接返回true;\n * 2.3 如果前面未禁用,看列配置是否配置了disabled,如果为true,直接返回true;\n * 2.4 皆无配置,则看表单项是否处于提交状态,如果处于提交状态,则返回true;否则返回false。\n */\n getDisabled: function getDisabled(column) {\n var isColumnDetail = this.vaildDetail(column);\n if (this.detailPriority === 'global') {\n return this.isDetail || isColumnDetail || this.vaildDisabled(column) || this.allDisabled;\n }\n if (lodash__WEBPACK_IMPORTED_MODULE_6___default.a.isBoolean(isColumnDetail)) return isColumnDetail;\n return this.isDetail || this.vaildDisabled(column) || this.allDisabled;\n },\n /** 表单项校验添加配置 */getColumnRules: function getColumnRules(column) {\n var _this5 = this;\n if (!Array.isArray(column.rules)) return;\n var rules = [];\n column.rules.forEach(function (rule) {\n if (Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"getObjType\"])(rule.validator) !== 'function') {\n rules.push(rule);\n return;\n }\n var validatorRule = _this5.deepClone(rule);\n validatorRule.validator = function (_rule, value, callback) {\n for (var _len = arguments.length, args = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n args[_key - 3] = arguments[_key];\n }\n rule.validator.apply(rule, [_rule, value, callback, _this5.getColumnEventBaseParams(column, value)].concat(args));\n };\n rules.push(validatorRule);\n });\n return rules;\n },\n /**\n * 获取表单项事件通用参数\n * @param column 表单项配置\n * @param value 表单项的值\n */\n getColumnEventBaseParams: function getColumnEventBaseParams(column, value) {\n var selected = this.cachedSelected[column.prop];\n return _objectSpread({\n value: value,\n column: column,\n dic: this.DIC[column.prop] || [],\n item: selected,\n selected: selected,\n label: this.columnDicLabelIndex[column.prop] || String(value)\n }, this.formItemTableData);\n },\n //初始化表单\n dataFormat: function dataFormat() {\n var _this6 = this;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_9__[\"formInitVal\"])(this.propOption).tableForm;\n var formValue = this.value;\n var form = {};\n Object.entries(Object.assign(formDefault, formValue)).forEach(function (ele) {\n var key = ele[0],\n value = ele[1];\n if (_this6.validatenull(formValue[key])) {\n form[key] = value;\n } else {\n form[key] = formValue[key];\n }\n });\n this.$set(this, 'form', form);\n // this.setLabel();\n this.setControl();\n this.setVal();\n setTimeout(function () {\n _this6.formCreate = true;\n _this6.clearValidate();\n _this6.$emit('mounted');\n var events = _this6.tableOption.events || {};\n if (typeof events.didMount === 'function') {\n events.didMount();\n }\n });\n },\n setControl: function setControl() {\n var _this7 = this;\n this.propOption.forEach(function (column) {\n var prop = column.prop;\n var bind = column.bind;\n var control = column.control;\n if (!_this7.formBind[prop]) {\n var bindList = [];\n if (bind) {\n var formProp = _this7.$watch('form.' + prop, function (n, o) {\n if (!lodash__WEBPACK_IMPORTED_MODULE_6___default.a.isEqual(n, o)) Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"setAsVal\"])(_this7.form, bind, n);\n });\n var formDeep = _this7.$watch('form.' + bind, function (n, o) {\n if (!lodash__WEBPACK_IMPORTED_MODULE_6___default.a.isEqual(n, o)) _this7.$set(_this7.form, prop, n);\n });\n bindList.push(formProp);\n bindList.push(formDeep);\n _this7.$set(_this7.form, prop, Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"getAsVal\"])(_this7.form, bind));\n }\n if (control) {\n var callback = function callback() {\n var value = _this7.form[column.prop];\n var eventParams = _this7.getColumnEventBaseParams(column, value);\n var controlList = control(value, _this7.form, eventParams) || {};\n Object.keys(controlList).forEach(function (item) {\n var ele = Object.assign(_this7.objectOption[item] || {}, controlList[item]);\n _this7.$set(_this7.objectOption, item, ele);\n if (controlList[item].dicData) _this7.DIC[item] = controlList[item].dicData;\n });\n };\n var formControl = _this7.$watch('form.' + prop, function (n, o) {\n callback();\n });\n bindList.push(formControl);\n callback();\n }\n _this7.formBind[prop] = bindList;\n }\n });\n },\n //表单赋值\n setForm: function setForm() {\n var _this8 = this;\n Object.keys(this.value).forEach(function (ele) {\n _this8.$set(_this8.form, ele, _this8.value[ele]);\n });\n },\n setVal: function setVal() {\n this.$emit('input', this.form);\n this.$emit('change', this.form);\n },\n /* setLabel () {\n if (this.tableOption.filterNull === true) {\n this.form = filterParams(this.form, [''], false)\n }\n if (this.tableOption.filterDic == true) {\n this.form = filterParams(this.form, ['$'], false)\n return\n }\n this.propOption.forEach(column => {\n let result;\n let DIC = this.DIC[column.prop]\n if (this.validatenull(DIC)) return;\n result = detail(this.form, column, this.tableOption, DIC);\n if (result) {\n this.$set(this.form, `$${column.prop}`, result);\n } else {\n this.$delete(this.form, `$${column.prop}`);\n }\n });\n }, */\n handleGroupClick: function handleGroupClick(activeNames) {\n this.$emit('tab-click', activeNames);\n },\n handleTabClick: function handleTabClick(tab, event) {\n this.$emit('tab-click', tab, event);\n },\n /**\n * 根据当前表单类型获取列属性值\n * @param {object} column 列配置\n * @param {string} param 属性key\n * @param {*} defaultVal 默认值\n */\n getColumnValue: function getColumnValue(column, param, defaultVal) {\n var key;\n if (this.isAdd) {\n key = 'add' + lodash__WEBPACK_IMPORTED_MODULE_6___default.a.upperFirst(param);\n } else if (this.isEdit) {\n key = 'edit' + lodash__WEBPACK_IMPORTED_MODULE_6___default.a.upperFirst(param);\n } else if (this.isView) {\n key = 'view' + lodash__WEBPACK_IMPORTED_MODULE_6___default.a.upperFirst(param);\n }\n if (!lodash__WEBPACK_IMPORTED_MODULE_6___default.a.has(column, key)) {\n key = param;\n }\n return this.vaildData(column[key], defaultVal);\n },\n getItemParams: function getItemParams(column, item, type, isPx) {\n var result;\n result = this.getColumnValue(column, type);\n if (this.validatenull(result)) {\n result = this.getColumnValue(item, type);\n }\n result = this.vaildData(result, this.parentOption[type]);\n result = this.vaildData(result, this.config[type]);\n return isPx ? this.setPx(result) : result;\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val, cb) {\n if (!val) return;\n var fields = Array.isArray(val) ? val : [val];\n var errorList = [];\n this.$refs.form.validateField(val, function (errMsg, info) {\n var _Object$keys = Object.keys(info || {}),\n _Object$keys2 = _slicedToArray(_Object$keys, 1),\n field = _Object$keys2[0];\n errorList.push({\n valid: !field,\n errMsg: errMsg,\n field: field\n });\n if (errorList.length === fields.length) {\n var errList = errorList.filter(function (item) {\n return !item.valid;\n });\n cb(errList.length === 0, errList);\n }\n });\n },\n validTip: function validTip(column) {\n return !column.tip || column.type === 'upload';\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs[prop][0];\n },\n handleChange: function handleChange(list, column) {\n var _this9 = this;\n this.$nextTick(function () {\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = _this9.form[column.prop];\n // 下一个节点\n var columnNext = _this9.findObject(list, columnNextProp);\n if (_this9.validatenull(columnNext)) return;\n // 如果不是首次加载则清空全部关联节点的属性值和字典值\n if (_this9.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this9.form[ele] = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"blankVal\"])(_this9.form[ele]);\n _this9.$set(_this9.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n if (_this9.validatenull(cascader) || _this9.validatenull(value) || _this9.validatenull(columnNext)) {\n return;\n }\n // 根据当前节点值获取下一个节点的字典\n Object(core_dic__WEBPACK_IMPORTED_MODULE_10__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this9.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this9.formList.includes(str)) _this9.formList.push(str);\n // 修改字典\n var dic = res || [];\n _this9.$set(_this9.DIC, columnNextProp, dic);\n if (!_this9.validatenull(dic) && !_this9.validatenull(dic) && !_this9.validatenull(columnNext.cascaderIndex) && _this9.validatenull(_this9.form[columnNextProp])) {\n _this9.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handlePrint: function handlePrint() {\n this.$Print(this.$el);\n },\n propChange: function propChange(option, column) {\n var key = column.prop;\n if (!count[key]) {\n if (column.cascader) this.handleChange(option, column);\n }\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n handleMock: function handleMock() {\n var _this10 = this;\n if (!this.isMock) return;\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_12__[\"default\"])(this.propOption, this.DIC, this.form, this.isMock);\n if (!this.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this10.form[ele] = form[ele];\n });\n }\n this.$nextTick(function () {\n _this10.clearValidate();\n _this10.$emit('mock-change', _this10.form);\n });\n },\n /**\n * 是否详情模式\n * @returns {boolean | undefined}\n */\n vaildDetail: function vaildDetail(column) {\n // column.viewDetail = undefined;\n delete column.viewDetail;\n return this.getColumnValue(column, 'detail', undefined);\n },\n /**\n * 验证表单是否禁止\n * @description 详情模式默认不禁用\n * @returns {boolean}\n */\n vaildDisabled: function vaildDisabled(column) {\n if (this.disabled) return true;\n column.viewDisabled = true;\n return this.getColumnValue(column, 'disabled', false);\n },\n /**\n * 验证表单是否显隐\n * @description 详情模式默认显示\n * @returns {boolean}\n */\n vaildDisplay: function vaildDisplay(column) {\n return this.getColumnValue(column, 'display', true);\n },\n clearValidate: function clearValidate(list) {\n this.$refs.form && this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this11 = this;\n return new Promise(function (resolve) {\n _this11.$refs.form.validate(function (valid, msg) {\n resolve({\n valid: valid,\n msg: msg\n });\n });\n });\n },\n validate: function validate(callback) {\n var _this12 = this;\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n _this12.dynamicOption.forEach(function (ele) {\n var _ref = _this12.$refs[ele.prop] || [],\n _ref2 = _slicedToArray(_ref, 1),\n $dynamic = _ref2[0];\n if (_this12.validatenull($dynamic)) return;\n var isForm = ele.children.type === 'form';\n dynamicName.push(ele.prop);\n var $main = $dynamic.$refs.temp.$refs.main;\n if (isForm) {\n if (!_this12.validatenull($main)) {\n $main.forEach(function (ele) {\n dynamicList.push(ele.validateCellForm());\n });\n }\n } else {\n dynamicList.push($main.validateCellForm());\n }\n });\n Promise.all(dynamicList).then(function (res) {\n var count = 0;\n res.forEach(function (data, index) {\n if (!data.valid) {\n dynamicError[dynamicName[index]] = data.msg;\n }\n });\n var result = Object.assign(dynamicError, msg);\n if (_this12.validatenull(result)) {\n _this12.show();\n callback && callback(true, _this12.hide, result);\n } else {\n callback && callback(false, _this12.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this13 = this;\n var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (reset) {\n var propList = this.propOption.map(function (ele) {\n return ele.prop;\n });\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"clearVal\"])(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));\n }\n this.$nextTick(function () {\n _this13.clearValidate();\n _this13.$emit(\"reset-change\");\n });\n },\n resetFields: function resetFields() {\n this.$refs.form.resetFields();\n },\n show: function show() {\n this.allDisabled = true;\n },\n hide: function hide() {\n this.allDisabled = false;\n },\n submit: function submit() {\n var _this14 = this;\n this.validate(function (valid, msg) {\n if (valid) {\n _this14.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"filterParams\"])(_this14.form, ['$']), _this14.hide);\n } else {\n _this14.$emit(\"error\", msg);\n }\n });\n },\n // 获取列及子列slot\n getChildrenSlots: function getChildrenSlots(column, type) {\n var _this15 = this;\n var slots = [];\n var columnList = Object(utils_util__WEBPACK_IMPORTED_MODULE_11__[\"flattenColumns\"])([column]);\n columnList.forEach(function (item) {\n if (item.prop && _this15.getSlotName(item, type, _this15.$scopedSlots)) {\n slots.push(_this15.getSlotName(item, type));\n }\n });\n return slots;\n }\n },\n beforeDestroy: function beforeDestroy() {\n var _this16 = this;\n Object.keys(this.formBind).forEach(function (ele) {\n _this16.formBind[ele].forEach(function (unWatch) {\n unWatch();\n });\n });\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_cead2f3db70772ae82e4d433e80fb8e5/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
714
714
|
|
715
715
|
/***/ }),
|
716
716
|
|
@@ -1200,15 +1200,15 @@ eval("!function(t,e){ true?module.exports=e():undefined}(self,(()=>(()=>{var t={
|
|
1200
1200
|
|
1201
1201
|
/***/ }),
|
1202
1202
|
|
1203
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/core/components/dialog-form/index.vue?vue&type=template&id=
|
1203
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/core/components/dialog-form/index.vue?vue&type=template&id=503ef95d&":
|
1204
1204
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1205
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/core/components/dialog-form/index.vue?vue&type=template&id=
|
1205
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/core/components/dialog-form/index.vue?vue&type=template&id=503ef95d& ***!
|
1206
1206
|
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1207
1207
|
/*! exports provided: render, staticRenderFns */
|
1208
1208
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1209
1209
|
|
1210
1210
|
"use strict";
|
1211
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c;return _c(_vm.dialogType,_vm._b({directives:[{name:\"dialogDrag\",rawName:\"v-dialogDrag\",value:(_vm.drag),expression:\"drag\"}],tag:\"component\",class:['avue-dialog',{'avue-dialog--fullscreen':_vm.fullscreen, 'avue-dialog--hide-header': !_vm.withHeader }],attrs:{\"visible\":_vm.visible,\"destroy-on-close\":\"\",\"beforeClose\":_vm.beforeClose},on:{\"update:visible\":function($event){_vm.visible=$event}}},'component',_vm.params,false),[(_vm.showFullScreen)?_c('template',{slot:\"title\"},[_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.dialog.title))]),_vm._v(\" \"),_c('div',{staticClass:\"el-dialog__headerbtn avue-dialog__menu\"},[_c('i',{staticClass:\"el-dialog__close\",class:_vm.fullscreen?'el-icon-news':'el-icon-full-screen',on:{\"click\":_vm.handleFullScreen}})])]):_vm._e(),_vm._v(\" \"),_c('avue-form',{ref:\"form\",attrs:{\"option\":{..._vm.deepClone(_vm.option),...{menuBtn: false}},\"status\":_vm.disabled},on:{\"update:status\":function($event){_vm.disabled=$event},\"submit\":_vm.handleSubmit,\"reset-change\":_vm.close},model:{value:(_vm.data),callback:function ($$v) {_vm.data=$$v},expression:\"data\"}}),_vm._v(\" \"),(_vm.vaildData(_vm.option.menuBtn,true))?_c('
|
1211
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c;return _c(_vm.dialogType,_vm._b({directives:[{name:\"dialogDrag\",rawName:\"v-dialogDrag\",value:(_vm.drag),expression:\"drag\"}],tag:\"component\",class:['avue-dialog',{'avue-dialog--fullscreen':_vm.fullscreen, 'avue-dialog--hide-header': !_vm.withHeader }],attrs:{\"visible\":_vm.visible,\"destroy-on-close\":\"\",\"beforeClose\":_vm.beforeClose},on:{\"update:visible\":function($event){_vm.visible=$event}}},'component',_vm.params,false),[(_vm.showFullScreen)?_c('template',{slot:\"title\"},[_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.dialog.title))]),_vm._v(\" \"),_c('div',{staticClass:\"el-dialog__headerbtn avue-dialog__menu\"},[_c('i',{staticClass:\"el-dialog__close\",class:_vm.fullscreen?'el-icon-news':'el-icon-full-screen',on:{\"click\":_vm.handleFullScreen}})])]):_vm._e(),_vm._v(\" \"),_c('el-container',[_c('el-main',[_c('avue-form',{ref:\"form\",attrs:{\"option\":{..._vm.deepClone(_vm.option),...{menuBtn: false}},\"status\":_vm.disabled},on:{\"update:status\":function($event){_vm.disabled=$event},\"submit\":_vm.handleSubmit,\"reset-change\":_vm.close},model:{value:(_vm.data),callback:function ($$v) {_vm.data=$$v},expression:\"data\"}})],1),_vm._v(\" \"),(_vm.vaildData(_vm.option.menuBtn,true))?_c('el-footer',{staticClass:\"avue-dialog__footer\",class:'avue-dialog__footer--'+_vm.menuPosition,attrs:{\"height\":\"min-content\"}},[(_vm.vaildData(_vm.option.submitBtn,true))?_c('el-button',{attrs:{\"size\":_vm.$AVUE.size,\"icon\":_vm.option.submitIcon,\"loading\":_vm.disabled,\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(_vm._s(_vm.option.submitText))]):_vm._e(),_vm._v(\" \"),(_vm.vaildData(_vm.option.emptyBtn,true))?_c('el-button',{attrs:{\"disabled\":_vm.disabled,\"size\":_vm.$AVUE.size,\"icon\":_vm.option.emptyIcon},on:{\"click\":_vm.reset}},[_vm._v(_vm._s(_vm.option.emptyText))]):_vm._e()],1):_vm._e()],1)],2)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/core/components/dialog-form/index.vue?./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
1212
1212
|
|
1213
1213
|
/***/ }),
|
1214
1214
|
|
@@ -1680,15 +1680,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1680
1680
|
|
1681
1681
|
/***/ }),
|
1682
1682
|
|
1683
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
1683
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=36cefb0c&":
|
1684
1684
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1685
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
1685
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=36cefb0c& ***!
|
1686
1686
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1687
1687
|
/*! exports provided: render, staticRenderFns */
|
1688
1688
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1689
1689
|
|
1690
1690
|
"use strict";
|
1691
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.boxVisible)?_c('div',[_c(_vm.dialogType,_vm._b({directives:[{name:\"dialogDrag\",rawName:\"v-dialogDrag\",value:(_vm.vaildData(_vm.crud.tableOption.dialogDrag,_vm.config.dialogDrag)),expression:\"vaildData(crud.tableOption.dialogDrag,config.dialogDrag)\"}],tag:\"component\",class:['avue-dialog',_vm.b('dialog'),{'avue-dialog--fullscreen':_vm.fullscreen}],attrs:{\"lock-scroll\":\"\",\"destroy-on-close\":_vm.crud.tableOption.dialogDestroy,\"wrapperClosable\":_vm.crud.tableOption.dialogClickModal,\"direction\":_vm.direction,\"custom-class\":_vm.crud.tableOption.dialogCustomClass,\"modal-append-to-body\":_vm.vaildData(_vm.crud.tableOption.dialogModalAppendToBody,_vm.$AVUE.modalAppendToBody),\"append-to-body\":_vm.vaildData(_vm.crud.tableOption.appendToBody,_vm.$AVUE.appendToBody),\"top\":_vm.dialogTop,\"title\":_vm.dialogTitle,\"close-on-press-escape\":_vm.crud.tableOption.dialogEscape,\"close-on-click-modal\":_vm.vaildData(_vm.crud.tableOption.dialogClickModal,false),\"modal\":_vm.crud.tableOption.dialogModal,\"show-close\":_vm.crud.tableOption.dialogCloseBtn,\"visible\":_vm.boxVisible,\"before-close\":_vm.hide},on:{\"update:visible\":function($event){_vm.boxVisible=$event}}},'component',_vm.params,false),[_c('div',{class:_vm.b('dialog__header'),attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.dialogTitle))]),_vm._v(\" \"),_c('div',{class:_vm.b('dialog__menu')},[_c('i',{staticClass:\"el-dialog__close\",class:_vm.fullscreen?'el-icon-news':'el-icon-full-screen',on:{\"click\":_vm.handleFullScreen}})])]),_vm._v(\" \"),_c('avue-form',_vm._b({ref:\"tableForm\",attrs:{\"status\":_vm.disabled,\"option\":_vm.option},on:{\"update:status\":function($event){_vm.disabled=$event},\"change\":_vm.handleChange,\"submit\":_vm.handleSubmit,\"reset-change\":_vm.hide,\"tab-click\":_vm.handleTabClick,\"error\":_vm.handleError},scopedSlots:_vm._u([_vm._l((_vm.crud.formSlot),function(item){return {key:_vm.getSlotName(item),fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n
|
1691
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.boxVisible)?_c('div',[_c(_vm.dialogType,_vm._b({directives:[{name:\"dialogDrag\",rawName:\"v-dialogDrag\",value:(_vm.vaildData(_vm.crud.tableOption.dialogDrag,_vm.config.dialogDrag)),expression:\"vaildData(crud.tableOption.dialogDrag,config.dialogDrag)\"}],tag:\"component\",class:['avue-dialog',_vm.b(_vm.isDrawer ? 'drawer' : 'dialog'),{'avue-dialog--fullscreen':_vm.fullscreen}],attrs:{\"lock-scroll\":\"\",\"destroy-on-close\":_vm.crud.tableOption.dialogDestroy,\"wrapperClosable\":_vm.crud.tableOption.dialogClickModal,\"direction\":_vm.direction,\"custom-class\":_vm.crud.tableOption.dialogCustomClass,\"modal-append-to-body\":_vm.vaildData(_vm.crud.tableOption.dialogModalAppendToBody,_vm.$AVUE.modalAppendToBody),\"append-to-body\":_vm.vaildData(_vm.crud.tableOption.appendToBody,_vm.$AVUE.appendToBody),\"top\":_vm.dialogTop,\"title\":_vm.dialogTitle,\"close-on-press-escape\":_vm.crud.tableOption.dialogEscape,\"close-on-click-modal\":_vm.vaildData(_vm.crud.tableOption.dialogClickModal,false),\"modal\":_vm.crud.tableOption.dialogModal,\"show-close\":_vm.crud.tableOption.dialogCloseBtn,\"visible\":_vm.boxVisible,\"before-close\":_vm.hide},on:{\"update:visible\":function($event){_vm.boxVisible=$event}}},'component',_vm.params,false),[_c('div',{class:_vm.b('dialog__header'),attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.dialogTitle))]),_vm._v(\" \"),_c('div',{class:_vm.b('dialog__menu')},[_c('i',{staticClass:\"el-dialog__close\",class:_vm.fullscreen?'el-icon-news':'el-icon-full-screen',on:{\"click\":_vm.handleFullScreen}})])]),_vm._v(\" \"),_c('el-container',[_c('el-main',[_c('avue-form',_vm._b({ref:\"tableForm\",attrs:{\"status\":_vm.disabled,\"option\":_vm.option},on:{\"update:status\":function($event){_vm.disabled=$event},\"change\":_vm.handleChange,\"submit\":_vm.handleSubmit,\"reset-change\":_vm.hide,\"tab-click\":_vm.handleTabClick,\"error\":_vm.handleError},scopedSlots:_vm._u([_vm._l((_vm.crud.formSlot),function(item){return {key:_vm.getSlotName(item),fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n type:_vm.boxType\n }) )]}}})],null,true),model:{value:(_vm.crud.tableForm),callback:function ($$v) {_vm.$set(_vm.crud, \"tableForm\", $$v)},expression:\"crud.tableForm\"}},'avue-form',_vm.$uploadFun({},_vm.crud),false))],1),_vm._v(\" \"),_c('el-footer',{staticClass:\"avue-dialog__footer\",class:'avue-dialog__footer--'+_vm.dialogMenuPosition,attrs:{\"height\":\"min-content\"}},[_vm._t(\"menuFormBefore\",null,null,_vm.menuParams()),_vm._v(\" \"),(_vm.vaildData(_vm.option.submitBtn,true) && !_vm.isView)?_c('el-button',{attrs:{\"loading\":_vm.disabled,\"size\":_vm.crud.controlSize,\"icon\":_vm.option.submitIcon,\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(_vm._s(_vm.option.submitText))]):_vm._e(),_vm._v(\" \"),(_vm.vaildData(_vm.option.emptyBtn,true) && !_vm.isView)?_c('el-button',{attrs:{\"disabled\":_vm.disabled,\"size\":_vm.crud.controlSize,\"icon\":_vm.option.emptyIcon},on:{\"click\":_vm.reset}},[_vm._v(_vm._s(_vm.option.emptyText))]):_vm._e(),_vm._v(\" \"),_vm._t(\"menuForm\",null,null,_vm.menuParams())],2)],1)],1)],1):_vm._e()\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
1692
1692
|
|
1693
1693
|
/***/ }),
|
1694
1694
|
|
@@ -1800,9 +1800,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1800
1800
|
|
1801
1801
|
/***/ }),
|
1802
1802
|
|
1803
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=
|
1803
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=f020660a&":
|
1804
1804
|
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1805
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=
|
1805
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=f020660a& ***!
|
1806
1806
|
\*****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1807
1807
|
/*! exports provided: render, staticRenderFns */
|
1808
1808
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -2124,15 +2124,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
2124
2124
|
|
2125
2125
|
/***/ }),
|
2126
2126
|
|
2127
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/tag-select/index.vue?vue&type=template&id=
|
2127
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/tag-select/index.vue?vue&type=template&id=ae0e3ad2&":
|
2128
2128
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
2129
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/tag-select/index.vue?vue&type=template&id=
|
2129
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/tag-select/index.vue?vue&type=template&id=ae0e3ad2& ***!
|
2130
2130
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2131
2131
|
/*! exports provided: render, staticRenderFns */
|
2132
2132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2133
2133
|
|
2134
2134
|
"use strict";
|
2135
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{class:_vm.b()},[_c('vue-draggable',{class:_vm.b('tag'),attrs:{\"tag\":\"span\",\"list\":_vm.tagList,\"animation\":\"0\",\"disabled\":!_vm.draggable || _vm.disabled}},_vm._l((_vm.tagList),function(tag,index){return _c('el-tag',{key:index,class:{ draggable: _vm.draggable && !_vm.disabled, handle: _vm.draggable && _vm.isEditMode },attrs:{\"closable\":_vm.isEditMode},on:{\"close\":function($event){return _vm.handleTagClose(tag)}}},[
|
2135
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{class:_vm.b()},[_c('vue-draggable',{class:_vm.b('tag'),attrs:{\"tag\":\"span\",\"list\":_vm.tagList,\"animation\":\"0\",\"disabled\":!_vm.draggable || _vm.disabled}},[_vm._l((_vm.tagList),function(tag,index){return _c('el-tag',{key:index,class:{ draggable: _vm.draggable && !_vm.disabled, handle: _vm.draggable && _vm.isEditMode },attrs:{\"closable\":_vm.isEditMode,\"title\":tag},on:{\"close\":function($event){return _vm.handleTagClose(tag)}}},[_c('span',{staticClass:\"avue-tag__content\"},[_vm._v(_vm._s(tag))])])}),_vm._v(\" \"),_c('span',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.canAdd),expression:\"canAdd\"}]},[(_vm.tagInputVisible)?_c('el-input',{directives:[{name:\"click-outside\",rawName:\"v-click-outside\",value:(_vm.handleInputBlur),expression:\"handleInputBlur\"}],ref:\"tagInput\",class:_vm.b('tag', 'input'),attrs:{\"placeholder\":`请输入 ${_vm.label}`,\"size\":\"small\"},nativeOn:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\"))return null;return _vm.handleAddTag.apply(null, arguments)}},model:{value:(_vm.tagInputValue),callback:function ($$v) {_vm.tagInputValue=$$v},expression:\"tagInputValue\"}},[_c('el-button',{attrs:{\"slot\":\"append\",\"size\":\"small\",\"icon\":\"el-icon-check\"},on:{\"click\":_vm.handleAddTag},slot:\"append\"})],1):_c('el-button',{class:_vm.b('tag', 'button'),attrs:{\"size\":\"small\"},on:{\"click\":_vm.showTagInput}},[_vm._v(\"添加\"+_vm._s(_vm.label))])],1)],2)],1)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/tag-select/index.vue?./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
2136
2136
|
|
2137
2137
|
/***/ }),
|
2138
2138
|
|
@@ -2344,7 +2344,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ind
|
|
2344
2344
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2345
2345
|
|
2346
2346
|
"use strict";
|
2347
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
2347
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_503ef95d___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=503ef95d& */ \"./packages/core/components/dialog-form/index.vue?vue&type=template&id=503ef95d&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/core/components/dialog-form/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_503ef95d___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_503ef95d___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/core/components/dialog-form/index.vue?");
|
2348
2348
|
|
2349
2349
|
/***/ }),
|
2350
2350
|
|
@@ -2360,15 +2360,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
2360
2360
|
|
2361
2361
|
/***/ }),
|
2362
2362
|
|
2363
|
-
/***/ "./packages/core/components/dialog-form/index.vue?vue&type=template&id=
|
2363
|
+
/***/ "./packages/core/components/dialog-form/index.vue?vue&type=template&id=503ef95d&":
|
2364
2364
|
/*!***************************************************************************************!*\
|
2365
|
-
!*** ./packages/core/components/dialog-form/index.vue?vue&type=template&id=
|
2365
|
+
!*** ./packages/core/components/dialog-form/index.vue?vue&type=template&id=503ef95d& ***!
|
2366
2366
|
\***************************************************************************************/
|
2367
2367
|
/*! exports provided: render, staticRenderFns */
|
2368
2368
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2369
2369
|
|
2370
2370
|
"use strict";
|
2371
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
2371
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_503ef95d___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=503ef95d& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/core/components/dialog-form/index.vue?vue&type=template&id=503ef95d&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_503ef95d___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_503ef95d___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/core/components/dialog-form/index.vue?");
|
2372
2372
|
|
2373
2373
|
/***/ }),
|
2374
2374
|
|
@@ -3868,7 +3868,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3868
3868
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3869
3869
|
|
3870
3870
|
"use strict";
|
3871
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3871
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _dialog_form_vue_vue_type_template_id_36cefb0c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dialog-form.vue?vue&type=template&id=36cefb0c& */ \"./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=36cefb0c&\");\n/* harmony import */ var _dialog_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dialog-form.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/dialog-form.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _dialog_form_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _dialog_form_vue_vue_type_template_id_36cefb0c___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _dialog_form_vue_vue_type_template_id_36cefb0c___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?");
|
3872
3872
|
|
3873
3873
|
/***/ }),
|
3874
3874
|
|
@@ -3884,15 +3884,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3884
3884
|
|
3885
3885
|
/***/ }),
|
3886
3886
|
|
3887
|
-
/***/ "./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
3887
|
+
/***/ "./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=36cefb0c&":
|
3888
3888
|
/*!*********************************************************************************!*\
|
3889
|
-
!*** ./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
3889
|
+
!*** ./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=36cefb0c& ***!
|
3890
3890
|
\*********************************************************************************/
|
3891
3891
|
/*! exports provided: render, staticRenderFns */
|
3892
3892
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3893
3893
|
|
3894
3894
|
"use strict";
|
3895
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3895
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_form_vue_vue_type_template_id_36cefb0c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./dialog-form.vue?vue&type=template&id=36cefb0c& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=36cefb0c&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_form_vue_vue_type_template_id_36cefb0c___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_form_vue_vue_type_template_id_36cefb0c___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?");
|
3896
3896
|
|
3897
3897
|
/***/ }),
|
3898
3898
|
|
@@ -4240,7 +4240,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// import { calcCount, calcCa
|
|
4240
4240
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4241
4241
|
|
4242
4242
|
"use strict";
|
4243
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4243
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_f020660a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=f020660a& */ \"./packages/element-ui/form/index.vue?vue&type=template&id=f020660a&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/element-ui/form/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_f020660a___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_f020660a___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?");
|
4244
4244
|
|
4245
4245
|
/***/ }),
|
4246
4246
|
|
@@ -4256,15 +4256,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4256
4256
|
|
4257
4257
|
/***/ }),
|
4258
4258
|
|
4259
|
-
/***/ "./packages/element-ui/form/index.vue?vue&type=template&id=
|
4259
|
+
/***/ "./packages/element-ui/form/index.vue?vue&type=template&id=f020660a&":
|
4260
4260
|
/*!***************************************************************************!*\
|
4261
|
-
!*** ./packages/element-ui/form/index.vue?vue&type=template&id=
|
4261
|
+
!*** ./packages/element-ui/form/index.vue?vue&type=template&id=f020660a& ***!
|
4262
4262
|
\***************************************************************************/
|
4263
4263
|
/*! exports provided: render, staticRenderFns */
|
4264
4264
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4265
4265
|
|
4266
4266
|
"use strict";
|
4267
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4267
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_f020660a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=f020660a& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=f020660a&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_f020660a___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_f020660a___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?");
|
4268
4268
|
|
4269
4269
|
/***/ }),
|
4270
4270
|
|
@@ -5212,7 +5212,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
5212
5212
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5213
5213
|
|
5214
5214
|
"use strict";
|
5215
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
5215
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_ae0e3ad2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=ae0e3ad2& */ \"./packages/element-ui/tag-select/index.vue?vue&type=template&id=ae0e3ad2&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/element-ui/tag-select/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_ae0e3ad2___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_ae0e3ad2___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/tag-select/index.vue?");
|
5216
5216
|
|
5217
5217
|
/***/ }),
|
5218
5218
|
|
@@ -5228,15 +5228,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
5228
5228
|
|
5229
5229
|
/***/ }),
|
5230
5230
|
|
5231
|
-
/***/ "./packages/element-ui/tag-select/index.vue?vue&type=template&id=
|
5231
|
+
/***/ "./packages/element-ui/tag-select/index.vue?vue&type=template&id=ae0e3ad2&":
|
5232
5232
|
/*!*********************************************************************************!*\
|
5233
|
-
!*** ./packages/element-ui/tag-select/index.vue?vue&type=template&id=
|
5233
|
+
!*** ./packages/element-ui/tag-select/index.vue?vue&type=template&id=ae0e3ad2& ***!
|
5234
5234
|
\*********************************************************************************/
|
5235
5235
|
/*! exports provided: render, staticRenderFns */
|
5236
5236
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5237
5237
|
|
5238
5238
|
"use strict";
|
5239
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
5239
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_ae0e3ad2___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=ae0e3ad2& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/tag-select/index.vue?vue&type=template&id=ae0e3ad2&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_ae0e3ad2___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_ae0e3ad2___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/tag-select/index.vue?");
|
5240
5240
|
|
5241
5241
|
/***/ }),
|
5242
5242
|
|
@@ -5584,7 +5584,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
5584
5584
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5585
5585
|
|
5586
5586
|
"use strict";
|
5587
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_COMPONENT_NAME\", function() { return KEY_COMPONENT_NAME; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_PROPS\", function() { return DIC_PROPS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_HTTP_PROPS\", function() { return DIC_HTTP_PROPS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SINGLE_DATE_LIST\", function() { return SINGLE_DATE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATE_ARRAY_LIST\", function() { return DATE_ARRAY_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATE_LIST\", function() { return DATE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CHILDREN_LIST\", function() { return CHILDREN_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INPUT_LIST\", function() { return INPUT_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ARRAY_LIST\", function() { return ARRAY_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MULTIPLE_LIST\", function() { return MULTIPLE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RANGE_LIST\", function() { return RANGE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ARRAY_VALUE_LIST\", function() { return ARRAY_VALUE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SELECT_LIST\", function() { return SELECT_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_SHOW_SPLIT\", function() { return DIC_SHOW_SPLIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_SPLIT\", function() { return DIC_SPLIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"typeList\", function() { return typeList; });\nvar KEY_COMPONENT_NAME = 'avue-';\n/** 字典Props配置 */\nvar DIC_PROPS = {\n rowKey: 'id',\n rowParentKey: 'parentId',\n nodeKey: 'id',\n label: 'label',\n value: 'value',\n type: 'type',\n desc: 'desc',\n groups: 'groups',\n title: 'title',\n leaf: 'leaf',\n children: 'children',\n hasChildren: 'hasChildren',\n labelText: '名称',\n disabled: 'disabled'\n};\n/** 接口请求Props配置 */\nvar DIC_HTTP_PROPS = {\n name: 'name',\n url: 'url',\n fileType: 'type',\n fileName: 'file',\n res: ''\n};\n/** 时间单选类组件类型 */\nvar SINGLE_DATE_LIST = ['year', 'month', 'date', 'week', 'datetime', 'time'];\n/** 时间区间类组件类型 */\nvar DATE_ARRAY_LIST = ['years', 'months', 'dates', 'monthrange', 'daterange', 'datetimerange', 'timerange'];\n/** 时间类组件类型 */\nvar DATE_LIST = [].concat(SINGLE_DATE_LIST, DATE_ARRAY_LIST);\n/** 含子组件的带值组件类型 */\nvar CHILDREN_LIST = ['table', 'dynamic'];\n/** input-开头的组件类型 */\nvar INPUT_LIST = ['tree', 'number', 'number-range', 'icon', 'color', 'table', 'map'];\n/** 纯数组的组件类型 */\nvar ARRAY_LIST = ['img', 'array', 'url'
|
5587
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"KEY_COMPONENT_NAME\", function() { return KEY_COMPONENT_NAME; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_PROPS\", function() { return DIC_PROPS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_HTTP_PROPS\", function() { return DIC_HTTP_PROPS; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SINGLE_DATE_LIST\", function() { return SINGLE_DATE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATE_ARRAY_LIST\", function() { return DATE_ARRAY_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DATE_LIST\", function() { return DATE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"CHILDREN_LIST\", function() { return CHILDREN_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"INPUT_LIST\", function() { return INPUT_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ARRAY_LIST\", function() { return ARRAY_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"MULTIPLE_LIST\", function() { return MULTIPLE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"RANGE_LIST\", function() { return RANGE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"ARRAY_VALUE_LIST\", function() { return ARRAY_VALUE_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SELECT_LIST\", function() { return SELECT_LIST; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_SHOW_SPLIT\", function() { return DIC_SHOW_SPLIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DIC_SPLIT\", function() { return DIC_SPLIT; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"typeList\", function() { return typeList; });\nvar KEY_COMPONENT_NAME = 'avue-';\n/** 字典Props配置 */\nvar DIC_PROPS = {\n rowKey: 'id',\n rowParentKey: 'parentId',\n nodeKey: 'id',\n label: 'label',\n value: 'value',\n type: 'type',\n desc: 'desc',\n groups: 'groups',\n title: 'title',\n leaf: 'leaf',\n children: 'children',\n hasChildren: 'hasChildren',\n labelText: '名称',\n disabled: 'disabled'\n};\n/** 接口请求Props配置 */\nvar DIC_HTTP_PROPS = {\n name: 'name',\n url: 'url',\n fileType: 'type',\n fileName: 'file',\n res: ''\n};\n/** 时间单选类组件类型 */\nvar SINGLE_DATE_LIST = ['year', 'month', 'date', 'week', 'datetime', 'time'];\n/** 时间区间类组件类型 */\nvar DATE_ARRAY_LIST = ['years', 'months', 'dates', 'monthrange', 'daterange', 'datetimerange', 'timerange'];\n/** 时间类组件类型 */\nvar DATE_LIST = [].concat(SINGLE_DATE_LIST, DATE_ARRAY_LIST);\n/** 含子组件的带值组件类型 */\nvar CHILDREN_LIST = ['table', 'dynamic'];\n/** input-开头的组件类型 */\nvar INPUT_LIST = ['tree', 'number', 'number-range', 'icon', 'color', 'table', 'map'];\n/** 纯数组的组件类型 */\nvar ARRAY_LIST = ['img', 'array', 'url'];\n/** 可单选/多选的组件类型 */\nvar MULTIPLE_LIST = ['cascader', 'tree', 'select', 'input-tree', 'table'];\n/** 范围组件类型 */\nvar RANGE_LIST = ['slider'];\n/** 值为数组的组件类型 */\nvar ARRAY_VALUE_LIST = ARRAY_LIST.concat(['number-range', 'upload', 'dynamic', 'checkbox', 'cascader', 'tag-select'].concat(DATE_ARRAY_LIST));\n/** 选择类的组件类型 */\nvar SELECT_LIST = DATE_LIST.concat(['select', 'checkbox', 'radio', 'cascader', 'tree', 'color', 'icon', 'table', 'map']);\n/** 数组转展示的分隔字符 */\nvar DIC_SHOW_SPLIT = ' | ';\n/** 数组转字符串的分隔字符 */\nvar DIC_SPLIT = ',';\n/** 媒体类型正则索引 */\nvar typeList = {\n img: /(\\.|^)(gif|jpg|jpeg|png|webp|svg|GIF|JPG|JPEG|PNG|WEBP|SVG)/,\n video: /(\\.|^)(swf|avi|flv|mpg|rm|mov|wav|asf|3gp|mkv|rmvb|ogg|mp4)/,\n audio: /(\\.|^)(mp3|wav|MP3|WAV)/\n};\n\n//# sourceURL=webpack://AVUE/./src/global/variable.js?");
|
5588
5588
|
|
5589
5589
|
/***/ }),
|
5590
5590
|
|