@ttkj/avue 2.10.22 → 2.10.24
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +25 -25
- package/lib/avue.min.js +2 -2
- package/package.json +1 -1
- package/types/crud/index.d.ts +39 -4
- package/types/crud/option.d.ts +1 -1
- package/types/crud/refs/dialog-form.d.ts +1 -0
- package/types/crud/refs/header-search.d.ts +8 -0
- package/types/form/column.d.ts +2 -4
- package/types/form/index.d.ts +29 -2
- package/types/form/option.d.ts +1 -1
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v2.10.
|
2
|
+
* Avue.js v2.10.24
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -482,7 +482,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var coun
|
|
482
482
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
483
483
|
|
484
484
|
"use strict";
|
485
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n// 引用组件\n\n// 引用方法/配置\n\n\n\n// 引用API接口\n\n// 样式\nvar count = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'column-cell-item',\n inject: ['crud'],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n column: Object,\n row: Object,\n index: Number\n },\n data: function data() {\n return {\n cellColumn: {}\n };\n },\n computed: {\n propName: function propName() {\n return \"list.\".concat(this.index, \".\").concat(this.column.prop);\n },\n errorInfo: function errorInfo() {\n return this.crud.listError[this.propName] || {};\n },\n disabled: function disabled() {\n var crud = this.crud;\n return crud.disabled || crud.tableOption.disabled || this.cellColumn.disabled || crud.btnDisabledList[this.index];\n },\n /** 行表单列配置索引 */columnIndex: function columnIndex() {\n var columns = this.crud.cellForm.columns;\n var uuid = this.row.$uuid;\n return columns[uuid] || {};\n },\n label: function label() {\n return this.handleDetail(this.row, this.cellColumn);\n },\n props: function props() {\n return this.cellColumn.props || this.crud.tableOption.props;\n },\n dic: function dic() {\n var crud = this.crud,\n index = this.index,\n cellColumn = this.cellColumn;\n return (crud.cascaderDIC[index] || {})[cellColumn.prop] || crud.DIC[cellColumn.prop];\n },\n tableData: function tableData() {\n var index = this.index,\n row = this.row,\n label = this.label,\n columnIndex = this.columnIndex,\n dic = this.dic;\n return {\n index: index,\n row: row,\n label: label,\n columnIndex: columnIndex,\n dic: dic,\n rootFormData: this.crud.rootFormData\n };\n }\n },\n created: function created() {\n if (this.crud.isTree) return;\n var columns = this.crud.cellForm.columns;\n var uuid = this.row.$uuid;\n if (!columns[uuid]) {\n columns[uuid] = {};\n }\n var rowIndex = columns[uuid];\n if (rowIndex[this.column.prop]) {\n this.cellColumn = rowIndex[this.column.prop];\n } else {\n this.cellColumn = this.deepClone(this.column || {});\n rowIndex[this.column.prop] = this.cellColumn;\n }\n },\n methods: {\n columnChange: function columnChange(row, column, index) {\n var key = \"\".concat(row.$uuid, \"-\").concat(column.prop);\n if (!count[key]) {\n this.handleChange(column, row);\n if (typeof column.change === 'function' && column.cell == true) {\n var value = row[column.prop];\n var item = Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"findNode\"])(this.dic, this.props, value);\n column.change({\n row: row,\n column: column,\n index: index,\n value: value,\n label: this.label,\n columnIndex: this.columnIndex,\n dic: this.dic,\n item: item\n });\n }\n }\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n /** 表单项级联处理 */handleChange: function handleChange(column, row) {\n var
|
485
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n// 引用组件\n\n// 引用方法/配置\n\n\n\n// 引用API接口\n\n// 样式\nvar count = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'column-cell-item',\n inject: ['crud'],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_0__[\"default\"]\n },\n props: {\n column: Object,\n row: Object,\n index: Number\n },\n data: function data() {\n return {\n cellColumn: {}\n };\n },\n computed: {\n propName: function propName() {\n return \"list.\".concat(this.index, \".\").concat(this.column.prop);\n },\n errorInfo: function errorInfo() {\n return this.crud.listError[this.propName] || {};\n },\n disabled: function disabled() {\n var crud = this.crud;\n return crud.disabled || crud.tableOption.disabled || this.cellColumn.disabled || crud.btnDisabledList[this.index];\n },\n /** 行表单列配置索引 */columnIndex: function columnIndex() {\n var columns = this.crud.cellForm.columns;\n var uuid = this.row.$uuid;\n return columns[uuid] || {};\n },\n label: function label() {\n return this.handleDetail(this.row, this.cellColumn);\n },\n props: function props() {\n return this.cellColumn.props || this.crud.tableOption.props;\n },\n dic: function dic() {\n var crud = this.crud,\n index = this.index,\n cellColumn = this.cellColumn;\n return (crud.cascaderDIC[index] || {})[cellColumn.prop] || crud.DIC[cellColumn.prop];\n },\n tableData: function tableData() {\n var index = this.index,\n row = this.row,\n label = this.label,\n columnIndex = this.columnIndex,\n dic = this.dic;\n return {\n index: index,\n row: row,\n label: label,\n columnIndex: columnIndex,\n dic: dic,\n rootFormData: this.crud.rootFormData\n };\n },\n rules: function rules() {\n var _this = this;\n if (!Array.isArray(this.cellColumn.rules)) return;\n var rules = [];\n this.cellColumn.rules.forEach(function (rule) {\n if (Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"getObjType\"])(rule.validator) !== 'function') {\n rules.push(rule);\n return;\n }\n var validatorRule = _this.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 console.log(args);\n rule.validator.apply(rule, [_rule, value, callback, _this.tableData].concat(args));\n };\n rules.push(validatorRule);\n });\n return rules;\n }\n },\n created: function created() {\n if (this.crud.isTree) return;\n var columns = this.crud.cellForm.columns;\n var uuid = this.row.$uuid || this.row[this.crud.rowKey];\n if (!columns[uuid]) {\n columns[uuid] = {};\n }\n var rowIndex = columns[uuid];\n if (rowIndex[this.column.prop]) {\n this.cellColumn = rowIndex[this.column.prop];\n } else {\n this.cellColumn = this.deepClone(this.column || {});\n rowIndex[this.column.prop] = this.cellColumn;\n }\n },\n methods: {\n columnChange: function columnChange(row, column, index) {\n var key = \"\".concat(row.$uuid || row[this.crud.rowKey], \"-\").concat(column.prop);\n if (!count[key]) {\n this.handleChange(column, row);\n if (typeof column.change === 'function' && column.cell == true) {\n var value = row[column.prop];\n var item = Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"findNode\"])(this.dic, this.props, value);\n column.change({\n row: row,\n column: column,\n index: index,\n value: value,\n label: this.label,\n columnIndex: this.columnIndex,\n dic: this.dic,\n item: item\n });\n }\n }\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n /** 表单项级联处理 */handleChange: function handleChange(column, row) {\n var _this2 = this;\n if (!column.cascader) return;\n this.$nextTick(function () {\n //本节点;\n var cascader = column.cascader;\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = row[column.prop];\n var rowIndex = row.$index;\n // 下一个节点\n var columnNext = _this2.findObject(_this2.columnOption, columnNextProp);\n if (_this2.validatenull(columnNext)) return;\n // 如果本节点没有字典则创建节点数组\n if (_this2.validatenull(_this2.crud.cascaderDIC[rowIndex])) {\n _this2.$set(_this2.crud.cascaderDIC, rowIndex, {});\n }\n if (_this2.crud.cascaderIndexList.includes(rowIndex)) {\n //清空子类字典\n cascader.forEach(function (ele) {\n _this2.$set(_this2.crud.cascaderDIC[rowIndex], ele.prop, []);\n cascader.forEach(function (ele) {\n return row[ele] = \"\";\n });\n });\n }\n //最后一级\n if (_this2.validatenull(cascader) || _this2.validatenull(value) || _this2.validatenull(columnNext)) {\n return;\n }\n Object(core_dic__WEBPACK_IMPORTED_MODULE_4__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: row\n }).then(function (res) {\n var dic = res || [];\n //首次加载的放入队列记录\n if (!_this2.crud.cascaderIndexList.includes(rowIndex)) {\n _this2.crud.cascaderIndexList.push(rowIndex);\n }\n if (!_this2.crud.cascaderDicList[rowIndex]) {\n _this2.$set(_this2.crud.cascaderDicList, rowIndex, {});\n }\n if (!_this2.crud.cascaderDicList[rowIndex][columnNextProp]) {\n _this2.$set(_this2.crud.cascaderDicList[rowIndex], columnNextProp, dic);\n }\n // 修改字典\n _this2.$set(_this2.crud.cascaderDIC[rowIndex], columnNextProp, dic);\n if (!_this2.validatenull(dic[columnNext.cascaderIndex]) && !_this2.validatenull(dic) && !_this2.validatenull(columnNext.cascaderIndex)) {\n row[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handleDetail: function handleDetail(row, column) {\n var result;\n // let dic = column.parentProp ? (this.crud.cascaderDIC[this.index] || {})[column.prop] : this.crud.dic[column.prop]\n var crud = this.crud,\n dic = this.dic;\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_2__[\"detail\"])(row, column, crud.tableOption, dic);\n /* if (!this.validatenull(dic) && crud.tableOption.filterDic !== true) {\r\n row[\"$\" + column.prop] = result;\r\n } */\n return result;\n }\n }\n});\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-cell-item.vue?./node_modules/.pnpm/babel-loader@8.3.0_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
486
486
|
|
487
487
|
/***/ }),
|
488
488
|
|
@@ -626,7 +626,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
626
626
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
627
627
|
|
628
628
|
"use strict";
|
629
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var common_directive_permission__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! common/directive/permission */ \"./packages/core/directive/permission.js\");\n/* harmony import */ var common_common_init_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! common/common/init.js */ \"./packages/core/common/init.js\");\n/* harmony import */ var _table_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table-page */ \"./packages/element-ui/crud/table-page.vue\");\n/* harmony import */ var _header_search__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./header-search */ \"./packages/element-ui/crud/header-search.vue\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./column */ \"./packages/element-ui/crud/column.vue\");\n/* harmony import */ var _header_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header-menu */ \"./packages/element-ui/crud/header-menu.vue\");\n/* harmony import */ var _dialog_column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dialog-column */ \"./packages/element-ui/crud/dialog-column.vue\");\n/* harmony import */ var _dialog_filter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog-filter */ \"./packages/element-ui/crud/dialog-filter.vue\");\n/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog-form */ \"./packages/element-ui/crud/dialog-form.vue\");\n/* harmony import */ var _dialog_excel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog-excel */ \"./packages/element-ui/crud/dialog-excel.vue\");\n/* harmony import */ var _column_menu__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./column-menu */ \"./packages/element-ui/crud/column-menu.vue\");\n/* harmony import */ var _column_default__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column-default */ \"./packages/element-ui/crud/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\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 _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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n mixins: [Object(common_common_init_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(), core_locale__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n directives: {\n permission: common_directive_permission__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n provide: function provide() {\n return {\n crud: this\n };\n },\n components: {\n column: _column__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n columnDefault: _column_default__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n //其它列,\n columnMenu: _column_menu__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n //操作栏,\n tablePage: _table_page__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n //分页\n headerSearch: _header_search__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //搜索\n headerMenu: _header_menu__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_column__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //显隐列\n dialogFilter: _dialog_filter__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //过滤器\n dialogExcel: _dialog_excel__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n //导出数据\n dialogForm: _dialog_form__WEBPACK_IMPORTED_MODULE_11__[\"default\"] //分页,\n },\n data: function data() {\n return {\n reload: Math.random(),\n cellForm: {\n list: [],\n columns: {}\n },\n config: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n list: [],\n listError: {},\n tableForm: {},\n tableHeight: undefined,\n tableIndex: -1,\n tableSelect: [],\n sumsList: {},\n cascaderIndexList: [],\n cascaderDicList: {},\n cascaderFormList: {},\n btnDisabledList: {},\n btnDisabled: false,\n \"default\": {}\n };\n },\n mounted: function mounted() {\n this.dataInit();\n this.getTableHeight();\n this.refreshTable();\n },\n computed: {\n isHeightAuto: function isHeightAuto() {\n return this.tableOption.height == 'auto';\n },\n isSortable: function isSortable() {\n return this.tableOption.sortable;\n },\n isRowSort: function isRowSort() {\n return this.tableOption.rowSort;\n },\n isColumnSort: function isColumnSort() {\n return this.tableOption.columnSort;\n },\n rowParentKey: function rowParentKey() {\n return this.option.rowParentKey || global_variable__WEBPACK_IMPORTED_MODULE_17__[\"DIC_PROPS\"].rowParentKey;\n },\n childrenKey: function childrenKey() {\n return this.treeProps.children || global_variable__WEBPACK_IMPORTED_MODULE_17__[\"DIC_PROPS\"].children;\n },\n hasChildrenKey: function hasChildrenKey() {\n return this.treeProps.hasChildren || global_variable__WEBPACK_IMPORTED_MODULE_17__[\"DIC_PROPS\"].hasChildren;\n },\n treeProps: function treeProps() {\n return this.tableOption.treeProps || {};\n },\n isAutoHeight: function isAutoHeight() {\n return this.tableOption.height === \"auto\";\n },\n formSlot: function formSlot() {\n return this.getSlotList(['Error', 'Label', 'Type', 'Form'], this.$scopedSlots, this.propOption);\n },\n searchSlot: function searchSlot() {\n return this.getSlotList(['Search'], this.$scopedSlots, this.propOption);\n },\n mainSlot: function mainSlot() {\n var _this = this;\n var result = [];\n this.propOption.forEach(function (item) {\n if (_this.$scopedSlots[item.prop]) result.push(item.prop);\n });\n return this.getSlotList(['Header', 'Form'], this.$scopedSlots, this.propOption).concat(result);\n },\n calcHeight: function calcHeight() {\n return (this.tableOption.calcHeight || 0) + this.$AVUE.calcHeight;\n },\n propOption: function propOption() {\n var result = [];\n function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!Array.isArray(list)) return;\n list.forEach(function (ele) {\n if (Array.isArray(ele.children)) findProp(ele.children);else result.push(ele);\n });\n }\n findProp(this.columnOption);\n result = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_16__[\"calcCascader\"])(result);\n return result;\n },\n columnList: function columnList() {\n return this.propOption;\n },\n isShowSummary: function isShowSummary() {\n return this.option.showSummary;\n },\n isHeader: function isHeader() {\n var flag = false;\n this.columnOption.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isTree: function isTree() {\n var flag = false;\n this.data.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isCard: function isCard() {\n return this.option.card ? 'always' : 'never';\n },\n expandLevel: function expandLevel() {\n return this.parentOption.expandLevel || 0;\n },\n expandAll: function expandAll() {\n return this.parentOption.expandAll || false;\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n columnOption: function columnOption() {\n var column = this.tableOption.column || [];\n return column;\n },\n sumColumnList: function sumColumnList() {\n return this.tableOption.sumColumnList || [];\n },\n selectLen: function selectLen() {\n return this.tableSelect ? this.tableSelect.length : 0;\n }\n },\n watch: {\n value: {\n handler: function handler() {\n this.tableForm = this.value;\n },\n immediate: true,\n deep: true\n },\n list: {\n handler: function handler() {\n this.cellForm.list = this.list;\n },\n deep: true\n },\n data: {\n handler: function handler() {\n this.dataInit();\n },\n deep: true\n }\n },\n props: {\n spanMethod: Function,\n summaryMethod: Function,\n rowStyle: Function,\n cellStyle: Function,\n beforeClose: Function,\n beforeOpen: Function,\n rowClassName: Function,\n cellClassName: Function,\n headerCellClassName: Function,\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n permission: {\n type: [Function, Object],\n \"default\": function _default() {\n return {};\n }\n },\n value: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n search: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n page: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n tableLoading: {\n type: Boolean,\n \"default\": false\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n data: {\n type: Array,\n required: true,\n \"default\": function _default() {\n return [];\n }\n },\n /** 根表单信息 */\n rootFormData: {\n type: Object\n }\n },\n methods: {\n handleValidate: function handleValidate(prop, valid, msg) {\n if (!this.listError[prop]) this.$set(this.listError, prop, {\n valid: false,\n msg: ''\n });\n this.listError[prop].valid = !valid;\n this.listError[prop].msg = msg;\n },\n getPermission: function getPermission(key, row, index) {\n if (typeof this.permission === \"function\") {\n return this.permission(key, row, index);\n } else if (!this.validatenull(this.permission[key])) {\n return this.permission[key];\n } else {\n return true;\n }\n },\n getTableHeight: function getTableHeight() {\n var _this2 = this;\n if (this.isAutoHeight) {\n this.$nextTick(function () {\n var tableRef = _this2.$refs.table;\n var tablePageRef = _this2.$refs.tablePage;\n if (!tableRef) return;\n var tableStyle = tableRef.$el;\n var pageStyle = tablePageRef.$el.offsetHeight || 20;\n _this2.tableHeight = document.documentElement.clientHeight - tableStyle.offsetTop - pageStyle - _this2.calcHeight;\n });\n } else {\n this.tableHeight = this.tableOption.height;\n }\n },\n doLayout: function doLayout() {\n this.$refs.table.doLayout();\n },\n refreshTable: function refreshTable(callback) {\n this.reload = Math.random();\n this.$nextTick(function () {\n callback && callback();\n });\n },\n //树懒加载\n treeLoad: function treeLoad(tree, treeNode, resolve) {\n this.$emit('tree-load', tree, treeNode, function (data) {\n tree.children = data;\n resolve(data);\n });\n },\n menuIcon: function menuIcon(value) {\n return this.vaildData(this.tableOption[value + 'Text'], this.t(\"crud.\" + value));\n },\n getBtnIcon: function getBtnIcon(value) {\n var name = value + 'Icon';\n return this.tableOption[name] || _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"][name];\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.dialogForm.$refs.tableForm.validateField(val);\n },\n clearSelection: function clearSelection() {\n this.$refs.table.clearSelection();\n this.$emit('selection-clear', this.deepClone(this.tableSelect));\n },\n toggleAllSelection: function toggleAllSelection() {\n this.$refs.table.toggleAllSelection();\n },\n toggleRowSelection: function toggleRowSelection(row, selected) {\n this.$refs.table.toggleRowSelection(row, selected);\n },\n toggleRowExpansion: function toggleRowExpansion(row, expanded) {\n this.$refs.table.toggleRowExpansion(row, expanded);\n },\n setCurrentRow: function setCurrentRow(row) {\n this.$refs.table.setCurrentRow(row);\n },\n dataInit: function dataInit() {\n var _this3 = this;\n this.list = this.data;\n this.list.forEach(function (ele, index) {\n if (ele.$cellEdit && !_this3.cascaderFormList[index]) {\n _this3.cascaderFormList[index] = _this3.deepClone(ele);\n }\n _this3.$set(ele, '$cellEdit', ele.$cellEdit || false);\n _this3.$set(ele, '$index', index);\n });\n },\n //拖动表头事件\n headerDragend: function headerDragend(newWidth, oldWidth, column, event) {\n var obj = this.objectOption[column.property];\n if (obj) this.$set(this.objectOption[column.property], 'width', newWidth);\n this.$emit(\"header-dragend\", newWidth, oldWidth, column, event);\n },\n headerSort: function headerSort(oldIndex, newIndex) {\n var column = this.columnOption;\n var targetRow = column.splice(oldIndex, 1)[0];\n column.splice(newIndex, 0, targetRow);\n this.refreshTable();\n },\n // 清除过滤器执行函数\n clearFilter: function clearFilter(name) {\n this.$refs.table.clearFilter(name);\n },\n //展开或则关闭\n expandChange: function expandChange(row, expand) {\n this.$emit(\"expand-change\", row, expand);\n },\n //设置单选\n currentRowChange: function currentRowChange(currentRow, oldCurrentRow) {\n this.$emit(\"current-row-change\", currentRow, oldCurrentRow);\n },\n //刷新事件\n refreshChange: function refreshChange() {\n this.$emit(\"refresh-change\");\n },\n // 选中实例\n toggleSelection: function toggleSelection(rows) {\n var _this4 = this;\n if (rows) {\n rows.forEach(function (row) {\n _this4.$refs.table.toggleRowSelection(row);\n });\n } else {\n this.$refs.table.clearSelection();\n }\n },\n // 选择回调\n selectionChange: function selectionChange(val) {\n this.tableSelect = val;\n this.$emit(\"selection-change\", this.tableSelect);\n },\n // 单个选择回调\n select: function select(selection, row) {\n this.$emit(\"select\", selection, row);\n },\n // 点击勾选全选 Checkbox\n selectAll: function selectAll(selection) {\n this.$emit(\"select-all\", selection);\n },\n //筛选回调用\n filterChange: function filterChange(filters) {\n this.$emit(\"filter-change\", filters);\n },\n // 排序回调\n sortChange: function sortChange(val) {\n this.$emit(\"sort-change\", val);\n },\n // 行双击\n rowDblclick: function rowDblclick(row, event) {\n this.$emit(\"row-dblclick\", row, event);\n },\n // 行单机\n rowClick: function rowClick(row, event, column) {\n this.$emit(\"row-click\", row, event, column);\n },\n //清空排序\n clearSort: function clearSort() {\n this.$refs.table.clearSort();\n },\n //当单元格 hover 进入时会触发该事件\n cellMouseEnter: function cellMouseEnter(row, column, cell, event) {\n this.$emit(\"cell-mouse-enter\", row, column, cell, event);\n },\n //当单元格 hover 退出时会触发该事件\n cellMouseLeave: function cellMouseLeave(row, column, cell, event) {\n this.$emit(\"cell-mouse-leave\", row, column, cell, event);\n },\n //当某个单元格被点击时会触发该事件\n cellClick: function cellClick(row, column, cell, event) {\n this.$emit(\"cell-click\", row, column, cell, event);\n },\n //\t当某一列的表头被点击时会触发该事件\n headerClick: function headerClick(column, event) {\n this.$emit(\"header-click\", column, event);\n },\n //当某一行被鼠标右键点击时会触发该事件\n rowContextmenu: function rowContextmenu(row, column, event) {\n this.$emit(\"row-contextmenu\", row, column, event);\n },\n //当某一列的表头被鼠标右键点击时触发该事件\n headerContextmenu: function headerContextmenu(column, event) {\n this.$emit(\"header-contextmenu\", column, event);\n },\n //当某个单元格被双击击时会触发该事件\n cellDblclick: function cellDblclick(row, column, cell, event) {\n this.$emit(\"cell-dblclick\", row, column, cell, event);\n },\n //单元格新增\n rowCellAdd: function rowCellAdd() {\n var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var len = this.list.length;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_16__[\"formInitVal\"])(this.propOption).tableForm;\n row = this.deepClone(Object.assign({\n $cellEdit: true,\n $index: len,\n $uuid: Object(utils_util__WEBPACK_IMPORTED_MODULE_18__[\"uuid\"])()\n }, formDefault, row));\n this.list.push(row);\n },\n //行取消\n rowCancel: function rowCancel(row, index) {\n if (this.validatenull(row[this.rowKey])) {\n this.list.splice(index, 1);\n delete this.cascaderDIC[index];\n } else {\n this.cascaderFormList[index].$cellEdit = false;\n this.$set(this.cascaderDIC, index, this.cascaderDicList[index]);\n this.$set(this.list, index, this.cascaderFormList[index]);\n }\n delete this.cascaderDicList[index];\n delete this.cascaderFormList[index];\n this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(index), 1);\n },\n //行编辑点击\n rowCell: function rowCell(row, index) {\n if (row.$cellEdit) {\n this.rowCellUpdate(row, index);\n } else {\n this.rowCellEdit(row, index);\n }\n },\n rowCellUpdate: function rowCellUpdate(row, index) {\n var _this5 = this;\n row = this.deepClone(row);\n var result = this.validateCellField(index);\n var done = function done() {\n _this5.btnDisabledList[index] = false;\n _this5.btnDisabled = false;\n _this5.list[index].$cellEdit = false;\n _this5.cascaderIndexList.splice(_this5.cascaderIndexList.indexOf(index), 1);\n delete _this5.cascaderFormList[index];\n };\n var loading = function loading() {\n _this5.btnDisabledList[index] = false;\n _this5.btnDisabled = false;\n };\n if (result) {\n this.btnDisabledList[index] = true;\n this.btnDisabled = true;\n if (this.validatenull(row[this.rowKey])) {\n this.$emit(\"row-save\", row, done, loading);\n } else {\n this.$emit(\"row-update\", row, index, done, loading);\n }\n }\n },\n // 行删除\n rowCellDelete: function rowCellDelete(row, index) {\n var _this6 = this;\n this.list.splice(index, 1);\n delete this.cellForm.columns[row.$uuid];\n this.$nextTick(function () {\n _this6.$refs.cellForm.clearValidate();\n });\n },\n // 单元格编辑\n rowCellEdit: function rowCellEdit(row, index) {\n row.$cellEdit = true;\n //缓冲行数据\n this.cascaderFormList[index] = this.deepClone(row);\n //缓冲级联字典\n this.cascaderDicList[index] = this.deepClone(this.cascaderDIC[index]);\n },\n // 对行内表单进行校验\n validateCellForm: function validateCellForm(cb) {\n var _this7 = this;\n return new Promise(function (resolve) {\n _this7.$refs.cellForm.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n // 对指定行表单项进行校验\n validateCellField: function validateCellField(index) {\n var result = true;\n var _iterator = _createForOfIteratorHelper(this.$refs.cellForm.fields),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (item.prop.split('.')[1] == index) {\n this.$refs.cellForm.validateField(item.prop, function (error) {\n if (error) {\n result = false;\n }\n });\n }\n if (!result) break;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return result;\n },\n rowAdd: function rowAdd() {\n this.$refs.dialogForm.show(\"add\");\n },\n rowSave: function rowSave() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n rowUpdate: function rowUpdate() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n closeDialog: function closeDialog() {\n return this.$refs.dialogForm.closeDialog();\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs.dialogForm.$refs.tableForm.getPropRef(prop);\n },\n setVal: function setVal() {\n this.$emit(\"input\", this.tableForm);\n this.$emit(\"change\", this.tableForm);\n },\n // 编辑\n rowEdit: function rowEdit(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"edit\");\n },\n //复制\n rowCopy: function rowCopy(row) {\n this.tableForm = this.deepClone(row);\n delete this.tableForm[this.rowKey];\n this.tableIndex = -1;\n this.setVal();\n this.$refs.dialogForm.show(\"add\");\n },\n //查看\n rowView: function rowView(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"view\");\n },\n // 删除\n rowDel: function rowDel(row, index) {\n var _this8 = this;\n this.$emit(\"row-del\", row, index, function () {\n var _this8$findData = _this8.findData(row[_this8.rowKey]),\n parentList = _this8$findData.parentList,\n index = _this8$findData.index;\n if (parentList) parentList.splice(index, 1);\n });\n },\n //合并行\n tableSpanMethod: function tableSpanMethod(param) {\n if (typeof this.spanMethod === \"function\") return this.spanMethod(param);\n },\n //合集统计逻辑\n tableSummaryMethod: function tableSummaryMethod(param) {\n var _this9 = this;\n var sumsList = {};\n //如果自己写逻辑则调用summaryMethod方法\n if (typeof this.summaryMethod === \"function\") return this.summaryMethod(param);\n var columns = param.columns,\n data = param.data;\n var sums = [];\n if (columns.length > 0) {\n columns.forEach(function (column, index) {\n var currItem = _this9.sumColumnList.find(function (item) {\n return item.name === column.property;\n });\n if (currItem) {\n var decimals = currItem.decimals || 2;\n var label = currItem.label || '';\n switch (currItem.type) {\n case \"count\":\n sums[index] = label + data.length;\n break;\n case \"avg\":\n var avgValues = data.map(function (item) {\n return Number(item[column.property]);\n });\n var nowindex = 1;\n sums[index] = avgValues.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return (perv * (nowindex - 1) + curr) / nowindex++;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n case \"sum\":\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n sums[index] = values.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return perv + curr;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n }\n sumsList[column.property] = sums[index];\n } else {\n sums[index] = \"\";\n }\n });\n }\n this.sumsList = sumsList;\n return sums;\n },\n tableDrop: function tableDrop(type, el, callback) {\n if (this.isSortable !== true) {\n if (type == 'row' && !this.isRowSort) {\n return;\n } else if (type == 'column' && !this.isColumnSort) {\n return;\n }\n }\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_1__[\"default\"].logs(\"Sortable\");\n return;\n }\n window.Sortable.create(el, {\n ghostClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n animation: 500,\n delay: 0,\n onEnd: function onEnd(evt) {\n return callback(evt);\n }\n });\n },\n findData: function findData(id) {\n var _this10 = this;\n var result = {};\n var callback = function callback(parentList, parent) {\n parentList.forEach(function (ele, index) {\n if (ele[_this10.rowKey] == id) {\n result = {\n item: ele,\n index: index,\n parentList: parentList,\n parent: parent\n };\n }\n if (ele[_this10.childrenKey]) {\n callback(ele[_this10.childrenKey], ele);\n }\n });\n };\n callback(this.list);\n return result;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
629
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var common_directive_permission__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! common/directive/permission */ \"./packages/core/directive/permission.js\");\n/* harmony import */ var common_common_init_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! common/common/init.js */ \"./packages/core/common/init.js\");\n/* harmony import */ var _table_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./table-page */ \"./packages/element-ui/crud/table-page.vue\");\n/* harmony import */ var _header_search__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./header-search */ \"./packages/element-ui/crud/header-search.vue\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./column */ \"./packages/element-ui/crud/column.vue\");\n/* harmony import */ var _header_menu__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./header-menu */ \"./packages/element-ui/crud/header-menu.vue\");\n/* harmony import */ var _dialog_column__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./dialog-column */ \"./packages/element-ui/crud/dialog-column.vue\");\n/* harmony import */ var _dialog_filter__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog-filter */ \"./packages/element-ui/crud/dialog-filter.vue\");\n/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog-form */ \"./packages/element-ui/crud/dialog-form.vue\");\n/* harmony import */ var _dialog_excel__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog-excel */ \"./packages/element-ui/crud/dialog-excel.vue\");\n/* harmony import */ var _column_menu__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./column-menu */ \"./packages/element-ui/crud/column-menu.vue\");\n/* harmony import */ var _column_default__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column-default */ \"./packages/element-ui/crud/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it[\"return\"] != null) it[\"return\"](); } finally { if (didErr) throw err; } } }; }\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 _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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n mixins: [Object(common_common_init_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(), core_locale__WEBPACK_IMPORTED_MODULE_6__[\"default\"]],\n directives: {\n permission: common_directive_permission__WEBPACK_IMPORTED_MODULE_2__[\"default\"]\n },\n provide: function provide() {\n return {\n crud: this\n };\n },\n components: {\n column: _column__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n columnDefault: _column_default__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n //其它列,\n columnMenu: _column_menu__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n //操作栏,\n tablePage: _table_page__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n //分页\n headerSearch: _header_search__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //搜索\n headerMenu: _header_menu__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_column__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //显隐列\n dialogFilter: _dialog_filter__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //过滤器\n dialogExcel: _dialog_excel__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n //导出数据\n dialogForm: _dialog_form__WEBPACK_IMPORTED_MODULE_11__[\"default\"] //分页,\n },\n data: function data() {\n return {\n reload: Math.random(),\n cellForm: {\n list: [],\n columns: {}\n },\n config: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n list: [],\n listError: {},\n tableForm: {},\n tableHeight: undefined,\n tableIndex: -1,\n tableSelect: [],\n sumsList: {},\n cascaderIndexList: [],\n cascaderDicList: {},\n cascaderFormList: {},\n btnDisabledList: {},\n btnDisabled: false,\n \"default\": {}\n };\n },\n mounted: function mounted() {\n this.dataInit();\n this.getTableHeight();\n this.refreshTable();\n },\n computed: {\n isHeightAuto: function isHeightAuto() {\n return this.tableOption.height == 'auto';\n },\n isSortable: function isSortable() {\n return this.tableOption.sortable;\n },\n isRowSort: function isRowSort() {\n return this.tableOption.rowSort;\n },\n isColumnSort: function isColumnSort() {\n return this.tableOption.columnSort;\n },\n rowParentKey: function rowParentKey() {\n return this.option.rowParentKey || global_variable__WEBPACK_IMPORTED_MODULE_17__[\"DIC_PROPS\"].rowParentKey;\n },\n childrenKey: function childrenKey() {\n return this.treeProps.children || global_variable__WEBPACK_IMPORTED_MODULE_17__[\"DIC_PROPS\"].children;\n },\n hasChildrenKey: function hasChildrenKey() {\n return this.treeProps.hasChildren || global_variable__WEBPACK_IMPORTED_MODULE_17__[\"DIC_PROPS\"].hasChildren;\n },\n treeProps: function treeProps() {\n return this.tableOption.treeProps || {};\n },\n isAutoHeight: function isAutoHeight() {\n return this.tableOption.height === \"auto\";\n },\n formSlot: function formSlot() {\n return this.getSlotList(['Error', 'Label', 'Type', 'Form'], this.$scopedSlots, this.propOption);\n },\n searchSlot: function searchSlot() {\n return this.getSlotList(['Search'], this.$scopedSlots, this.propOption);\n },\n mainSlot: function mainSlot() {\n var _this = this;\n var result = [];\n this.propOption.forEach(function (item) {\n if (_this.$scopedSlots[item.prop]) result.push(item.prop);\n });\n return this.getSlotList(['Header', 'Form'], this.$scopedSlots, this.propOption).concat(result);\n },\n calcHeight: function calcHeight() {\n return (this.tableOption.calcHeight || 0) + this.$AVUE.calcHeight;\n },\n propOption: function propOption() {\n var result = [];\n function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n if (!Array.isArray(list)) return;\n list.forEach(function (ele) {\n if (Array.isArray(ele.children)) findProp(ele.children);else result.push(ele);\n });\n }\n findProp(this.columnOption);\n result = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_16__[\"calcCascader\"])(result);\n return result;\n },\n columnList: function columnList() {\n return this.propOption;\n },\n isShowSummary: function isShowSummary() {\n return this.option.showSummary;\n },\n isHeader: function isHeader() {\n var flag = false;\n this.columnOption.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isTree: function isTree() {\n var flag = false;\n this.data.forEach(function (ele) {\n if (ele.children) {\n flag = true;\n }\n });\n return flag;\n },\n isCard: function isCard() {\n return this.option.card ? 'always' : 'never';\n },\n expandLevel: function expandLevel() {\n return this.parentOption.expandLevel || 0;\n },\n expandAll: function expandAll() {\n return this.parentOption.expandAll || false;\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n columnOption: function columnOption() {\n var column = this.tableOption.column || [];\n return column;\n },\n sumColumnList: function sumColumnList() {\n return this.tableOption.sumColumnList || [];\n },\n selectLen: function selectLen() {\n return this.tableSelect ? this.tableSelect.length : 0;\n }\n },\n watch: {\n value: {\n handler: function handler() {\n this.tableForm = this.value;\n },\n immediate: true,\n deep: true\n },\n list: {\n handler: function handler() {\n this.cellForm.list = this.list;\n },\n deep: true\n },\n data: {\n handler: function handler() {\n this.dataInit();\n },\n deep: true\n }\n },\n props: {\n spanMethod: Function,\n summaryMethod: Function,\n rowStyle: Function,\n cellStyle: Function,\n beforeClose: Function,\n beforeOpen: Function,\n rowClassName: Function,\n cellClassName: Function,\n headerCellClassName: Function,\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n permission: {\n type: [Function, Object],\n \"default\": function _default() {\n return {};\n }\n },\n value: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n search: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n page: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n tableLoading: {\n type: Boolean,\n \"default\": false\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n data: {\n type: Array,\n required: true,\n \"default\": function _default() {\n return [];\n }\n },\n /** 根表单信息 */\n rootFormData: {\n type: Object\n }\n },\n methods: {\n handleValidate: function handleValidate(prop, valid, msg) {\n if (!this.listError[prop]) this.$set(this.listError, prop, {\n valid: false,\n msg: ''\n });\n this.listError[prop].valid = !valid;\n this.listError[prop].msg = msg;\n },\n getPermission: function getPermission(key, row, index) {\n if (typeof this.permission === \"function\") {\n return this.permission(key, row, index);\n } else if (!this.validatenull(this.permission[key])) {\n return this.permission[key];\n } else {\n return true;\n }\n },\n getTableHeight: function getTableHeight() {\n var _this2 = this;\n if (this.isAutoHeight) {\n this.$nextTick(function () {\n var tableRef = _this2.$refs.table;\n var tablePageRef = _this2.$refs.tablePage;\n if (!tableRef) return;\n var tableStyle = tableRef.$el;\n var pageStyle = tablePageRef.$el.offsetHeight || 20;\n _this2.tableHeight = document.documentElement.clientHeight - tableStyle.offsetTop - pageStyle - _this2.calcHeight;\n });\n } else {\n this.tableHeight = this.tableOption.height;\n }\n },\n doLayout: function doLayout() {\n this.$refs.table.doLayout();\n },\n refreshTable: function refreshTable(callback) {\n this.reload = Math.random();\n this.$nextTick(function () {\n callback && callback();\n });\n },\n //树懒加载\n treeLoad: function treeLoad(tree, treeNode, resolve) {\n this.$emit('tree-load', tree, treeNode, function (data) {\n tree.children = data;\n resolve(data);\n });\n },\n menuIcon: function menuIcon(value) {\n return this.vaildData(this.tableOption[value + 'Text'], this.t(\"crud.\" + value));\n },\n getBtnIcon: function getBtnIcon(value) {\n var name = value + 'Icon';\n return this.tableOption[name] || _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"][name];\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.dialogForm.$refs.tableForm.validateField(val);\n },\n clearSelection: function clearSelection() {\n this.$refs.table.clearSelection();\n this.$emit('selection-clear', this.deepClone(this.tableSelect));\n },\n toggleAllSelection: function toggleAllSelection() {\n this.$refs.table.toggleAllSelection();\n },\n toggleRowSelection: function toggleRowSelection(row, selected) {\n this.$refs.table.toggleRowSelection(row, selected);\n },\n toggleRowExpansion: function toggleRowExpansion(row, expanded) {\n this.$refs.table.toggleRowExpansion(row, expanded);\n },\n setCurrentRow: function setCurrentRow(row) {\n this.$refs.table.setCurrentRow(row);\n },\n dataInit: function dataInit() {\n var _this3 = this;\n this.list = this.data;\n this.list.forEach(function (ele, index) {\n if (ele.$cellEdit && !_this3.cascaderFormList[index]) {\n _this3.cascaderFormList[index] = _this3.deepClone(ele);\n }\n _this3.$set(ele, '$cellEdit', ele.$cellEdit || false);\n _this3.$set(ele, '$index', index);\n });\n },\n //拖动表头事件\n headerDragend: function headerDragend(newWidth, oldWidth, column, event) {\n var obj = this.objectOption[column.property];\n if (obj) this.$set(this.objectOption[column.property], 'width', newWidth);\n this.$emit(\"header-dragend\", newWidth, oldWidth, column, event);\n },\n headerSort: function headerSort(oldIndex, newIndex) {\n var column = this.columnOption;\n var targetRow = column.splice(oldIndex, 1)[0];\n column.splice(newIndex, 0, targetRow);\n this.refreshTable();\n },\n // 清除过滤器执行函数\n clearFilter: function clearFilter(name) {\n this.$refs.table.clearFilter(name);\n },\n //展开或则关闭\n expandChange: function expandChange(row, expand) {\n this.$emit(\"expand-change\", row, expand);\n },\n //设置单选\n currentRowChange: function currentRowChange(currentRow, oldCurrentRow) {\n this.$emit(\"current-row-change\", currentRow, oldCurrentRow);\n },\n //刷新事件\n refreshChange: function refreshChange() {\n this.$emit(\"refresh-change\");\n },\n // 选中实例\n toggleSelection: function toggleSelection(rows) {\n var _this4 = this;\n if (rows) {\n rows.forEach(function (row) {\n _this4.$refs.table.toggleRowSelection(row);\n });\n } else {\n this.$refs.table.clearSelection();\n }\n },\n // 选择回调\n selectionChange: function selectionChange(val) {\n this.tableSelect = val;\n this.$emit(\"selection-change\", this.tableSelect);\n },\n // 单个选择回调\n select: function select(selection, row) {\n this.$emit(\"select\", selection, row);\n },\n // 点击勾选全选 Checkbox\n selectAll: function selectAll(selection) {\n this.$emit(\"select-all\", selection);\n },\n //筛选回调用\n filterChange: function filterChange(filters) {\n this.$emit(\"filter-change\", filters);\n },\n // 排序回调\n sortChange: function sortChange(val) {\n this.$emit(\"sort-change\", val);\n },\n // 行双击\n rowDblclick: function rowDblclick(row, event) {\n this.$emit(\"row-dblclick\", row, event);\n },\n // 行单机\n rowClick: function rowClick(row, event, column) {\n this.$emit(\"row-click\", row, event, column);\n },\n //清空排序\n clearSort: function clearSort() {\n this.$refs.table.clearSort();\n },\n //当单元格 hover 进入时会触发该事件\n cellMouseEnter: function cellMouseEnter(row, column, cell, event) {\n this.$emit(\"cell-mouse-enter\", row, column, cell, event);\n },\n //当单元格 hover 退出时会触发该事件\n cellMouseLeave: function cellMouseLeave(row, column, cell, event) {\n this.$emit(\"cell-mouse-leave\", row, column, cell, event);\n },\n //当某个单元格被点击时会触发该事件\n cellClick: function cellClick(row, column, cell, event) {\n this.$emit(\"cell-click\", row, column, cell, event);\n },\n //\t当某一列的表头被点击时会触发该事件\n headerClick: function headerClick(column, event) {\n this.$emit(\"header-click\", column, event);\n },\n //当某一行被鼠标右键点击时会触发该事件\n rowContextmenu: function rowContextmenu(row, column, event) {\n this.$emit(\"row-contextmenu\", row, column, event);\n },\n //当某一列的表头被鼠标右键点击时触发该事件\n headerContextmenu: function headerContextmenu(column, event) {\n this.$emit(\"header-contextmenu\", column, event);\n },\n //当某个单元格被双击击时会触发该事件\n cellDblclick: function cellDblclick(row, column, cell, event) {\n this.$emit(\"cell-dblclick\", row, column, cell, event);\n },\n //单元格新增\n rowCellAdd: function rowCellAdd() {\n var row = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var len = this.list.length;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_16__[\"formInitVal\"])(this.propOption).tableForm;\n row = this.deepClone(Object.assign({\n $cellEdit: true,\n $index: len,\n $uuid: Object(utils_util__WEBPACK_IMPORTED_MODULE_18__[\"uuid\"])()\n }, formDefault, row));\n this.list.push(row);\n },\n //行取消\n rowCancel: function rowCancel(row, index) {\n if (this.validatenull(row[this.rowKey])) {\n this.list.splice(index, 1);\n delete this.cascaderDIC[index];\n } else {\n this.cascaderFormList[index].$cellEdit = false;\n this.$set(this.cascaderDIC, index, this.cascaderDicList[index]);\n this.$set(this.list, index, this.cascaderFormList[index]);\n }\n delete this.cascaderDicList[index];\n delete this.cascaderFormList[index];\n this.cascaderIndexList.splice(this.cascaderIndexList.indexOf(index), 1);\n },\n //行编辑点击\n rowCell: function rowCell(row, index) {\n if (row.$cellEdit) {\n this.rowCellUpdate(row, index);\n } else {\n this.rowCellEdit(row, index);\n }\n },\n rowCellUpdate: function rowCellUpdate(row, index) {\n var _this5 = this;\n row = this.deepClone(row);\n var result = this.validateCellField(index);\n var done = function done() {\n _this5.btnDisabledList[index] = false;\n _this5.btnDisabled = false;\n _this5.list[index].$cellEdit = false;\n _this5.cascaderIndexList.splice(_this5.cascaderIndexList.indexOf(index), 1);\n delete _this5.cascaderFormList[index];\n };\n var loading = function loading() {\n _this5.btnDisabledList[index] = false;\n _this5.btnDisabled = false;\n };\n if (result) {\n this.btnDisabledList[index] = true;\n this.btnDisabled = true;\n if (this.validatenull(row[this.rowKey])) {\n this.$emit(\"row-save\", row, done, loading);\n } else {\n this.$emit(\"row-update\", row, index, done, loading);\n }\n }\n },\n // 行删除\n rowCellDelete: function rowCellDelete(row, index) {\n var _this6 = this;\n this.list.splice(index, 1);\n delete this.cellForm.columns[row.$uuid];\n this.$nextTick(function () {\n _this6.$refs.cellForm.clearValidate();\n });\n },\n // 单元格编辑\n rowCellEdit: function rowCellEdit(row, index) {\n row.$cellEdit = true;\n //缓冲行数据\n this.cascaderFormList[index] = this.deepClone(row);\n //缓冲级联字典\n this.cascaderDicList[index] = this.deepClone(this.cascaderDIC[index]);\n },\n // 对行内表单进行校验\n validateCellForm: function validateCellForm(cb) {\n var _this7 = this;\n return new Promise(function (resolve) {\n _this7.$refs.cellForm.validate(function (valid, msg) {\n resolve({\n valid: valid,\n msg: msg\n });\n });\n });\n },\n // 对指定行表单项进行校验\n validateCellField: function validateCellField(index) {\n var result = true;\n var _iterator = _createForOfIteratorHelper(this.$refs.cellForm.fields),\n _step;\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n var item = _step.value;\n if (item.prop.split('.')[1] == index) {\n this.$refs.cellForm.validateField(item.prop, function (error) {\n if (error) {\n result = false;\n }\n });\n }\n if (!result) break;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n return result;\n },\n /** 清除行编辑模式表单项校验结果 */clearCellFormValidate: function clearCellFormValidate() {\n this.$refs.cellForm.clearValidate();\n this.listError = {};\n },\n rowAdd: function rowAdd() {\n this.$refs.dialogForm.show(\"add\");\n },\n rowSave: function rowSave() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n rowUpdate: function rowUpdate() {\n return this.$refs.dialogForm.$refs.tableForm.submit();\n },\n closeDialog: function closeDialog() {\n return this.$refs.dialogForm.closeDialog();\n },\n getPropRef: function getPropRef(prop) {\n return this.$refs.dialogForm.$refs.tableForm.getPropRef(prop);\n },\n setVal: function setVal() {\n this.$emit(\"input\", this.tableForm);\n this.$emit(\"change\", this.tableForm);\n },\n // 编辑\n rowEdit: function rowEdit(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"edit\");\n },\n //复制\n rowCopy: function rowCopy(row) {\n this.tableForm = this.deepClone(row);\n delete this.tableForm[this.rowKey];\n this.tableIndex = -1;\n this.setVal();\n this.$refs.dialogForm.show(\"add\");\n },\n //查看\n rowView: function rowView(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"view\");\n },\n // 删除\n rowDel: function rowDel(row, index) {\n var _this8 = this;\n this.$emit(\"row-del\", row, index, function () {\n var _this8$findData = _this8.findData(row[_this8.rowKey]),\n parentList = _this8$findData.parentList,\n index = _this8$findData.index;\n if (parentList) parentList.splice(index, 1);\n });\n },\n //合并行\n tableSpanMethod: function tableSpanMethod(param) {\n if (typeof this.spanMethod === \"function\") return this.spanMethod(param);\n },\n //合集统计逻辑\n tableSummaryMethod: function tableSummaryMethod(param) {\n var _this9 = this;\n var sumsList = {};\n //如果自己写逻辑则调用summaryMethod方法\n if (typeof this.summaryMethod === \"function\") return this.summaryMethod(param);\n var columns = param.columns,\n data = param.data;\n var sums = [];\n if (columns.length > 0) {\n columns.forEach(function (column, index) {\n var currItem = _this9.sumColumnList.find(function (item) {\n return item.name === column.property;\n });\n if (currItem) {\n var decimals = currItem.decimals || 2;\n var label = currItem.label || '';\n switch (currItem.type) {\n case \"count\":\n sums[index] = label + data.length;\n break;\n case \"avg\":\n var avgValues = data.map(function (item) {\n return Number(item[column.property]);\n });\n var nowindex = 1;\n sums[index] = avgValues.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return (perv * (nowindex - 1) + curr) / nowindex++;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n case \"sum\":\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n sums[index] = values.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return perv + curr;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n }\n sumsList[column.property] = sums[index];\n } else {\n sums[index] = \"\";\n }\n });\n }\n this.sumsList = sumsList;\n return sums;\n },\n tableDrop: function tableDrop(type, el, callback) {\n if (this.isSortable !== true) {\n if (type == 'row' && !this.isRowSort) {\n return;\n } else if (type == 'column' && !this.isColumnSort) {\n return;\n }\n }\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_1__[\"default\"].logs(\"Sortable\");\n return;\n }\n window.Sortable.create(el, {\n ghostClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_15__[\"default\"].ghostClass,\n animation: 500,\n delay: 0,\n onEnd: function onEnd(evt) {\n return callback(evt);\n }\n });\n },\n findData: function findData(id) {\n var _this10 = this;\n var result = {};\n var callback = function callback(parentList, parent) {\n parentList.forEach(function (ele, index) {\n if (ele[_this10.rowKey] == id) {\n result = {\n item: ele,\n index: index,\n parentList: parentList,\n parent: parent\n };\n }\n if (ele[_this10.childrenKey]) {\n callback(ele[_this10.childrenKey], ele);\n }\n });\n };\n callback(this.list);\n return result;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
630
630
|
|
631
631
|
/***/ }),
|
632
632
|
|
@@ -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 core_detail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var common_common_init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! common/common/init */ \"./packages/core/common/init.js\");\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_mock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! utils/mock */ \"./src/utils/mock.js\");\n/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./item */ \"./packages/element-ui/form/item.vue\");\n/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\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 _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\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"form\",\n mixins: [Object(common_common_init__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n formItem: _item__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_10__[\"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 isCrud: {\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 /** 表单项label的宽度 */\n labelWidth: 90,\n /** 表单是否提交状态 */\n allDisabled: false,\n /** 表单配置 */\n tableOption: {},\n /** 默认表单项占位 */\n itemSpanDefault: 12,\n /** 表单数据 */\n form: {},\n /** 表单是否创建完成 */\n formCreate: false,\n /** 级联项列表 */\n formList: [],\n /** 表单项控制器索引 */\n formBind: {}\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 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 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_7__[\"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_7__[\"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_7__[\"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 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_0__[\"detail\"])(this.form, column, this.tableOption, dic);\n labelIndex[prop] = label;\n }\n return labelIndex;\n }\n },\n mounted: function mounted() {\n var _this3 = this;\n setTimeout(function () {\n _this3.dataFormat();\n });\n },\n methods: {\n getComponent: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getComponent\"],\n getPlaceholder: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getPlaceholder\"],\n getDisabled: function getDisabled(column) {\n return this.vaildDetail(column) || this.isDetail || this.vaildDisabled(column) || this.allDisabled;\n },\n getSpan: function getSpan(column) {\n return column.span || this.parentOption.span || this.itemSpanDefault;\n },\n //初始化表单\n dataFormat: function dataFormat() {\n var _this4 = this;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"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 (_this4.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 _this4.formCreate = true;\n _this4.clearValidate();\n _this4.$emit('mounted');\n var events = _this4.tableOption.events || {};\n if (typeof events.didMount === 'function') {\n events.didMount();\n }\n });\n },\n setControl: function setControl() {\n var _this5 = this;\n this.propOption.forEach(function (column) {\n var prop = column.prop;\n var bind = column.bind;\n var control = column.control;\n if (!_this5.formBind[prop]) {\n var bindList = [];\n if (bind) {\n var formProp = _this5.$watch('form.' + prop, function (n, o) {\n if (n != o) Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"setAsVal\"])(_this5.form, bind, n);\n });\n var formDeep = _this5.$watch('form.' + bind, function (n, o) {\n if (n != o) _this5.$set(_this5.form, prop, n);\n });\n bindList.push(formProp);\n bindList.push(formDeep);\n _this5.$set(_this5.form, prop, Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"getAsVal\"])(_this5.form, bind));\n }\n if (control) {\n var callback = function callback() {\n var controlList = control(_this5.form[column.prop], _this5.form) || {};\n Object.keys(controlList).forEach(function (item) {\n var ele = Object.assign(_this5.objectOption[item] || {}, controlList[item]);\n _this5.$set(_this5.objectOption, item, ele);\n if (controlList[item].dicData) _this5.DIC[item] = controlList[item].dicData;\n });\n };\n var formControl = _this5.$watch('form.' + prop, function (n, o) {\n callback();\n });\n bindList.push(formControl);\n callback();\n }\n _this5.formBind[prop] = bindList;\n }\n });\n },\n //表单赋值\n setForm: function setForm() {\n var _this6 = this;\n Object.keys(this.value).forEach(function (ele) {\n _this6.$set(_this6.form, ele, _this6.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 getLabelWidth: function getLabelWidth(column, item) {\n var result;\n if (!this.validatenull(column.labelWidth)) {\n result = column.labelWidth;\n } else if (!this.validatenull(item.labelWidth)) {\n result = item.labelWidth;\n } else {\n result = this.parentOption.labelWidth;\n }\n return this.setPx(result, this.labelWidth);\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.form.validateField(val);\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 _this7 = 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 = _this7.form[column.prop];\n // 下一个节点\n var columnNext = _this7.findObject(list, columnNextProp);\n if (_this7.validatenull(columnNext)) return;\n // 如果不是首次加载则清空全部关联节点的属性值和字典值\n if (_this7.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this7.form[ele] = \"\";\n _this7.$set(_this7.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n if (_this7.validatenull(cascader) || _this7.validatenull(value) || _this7.validatenull(columnNext)) {\n return;\n }\n // 根据当前节点值获取下一个节点的字典\n Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this7.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this7.formList.includes(str)) _this7.formList.push(str);\n // 修改字典\n var dic = res || [];\n _this7.$set(_this7.DIC, columnNextProp, dic);\n if (!_this7.validatenull(dic) && !_this7.validatenull(dic) && !_this7.validatenull(columnNext.cascaderIndex) && _this7.validatenull(_this7.form[columnNextProp])) {\n _this7.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 if (column.cascader) this.handleChange(option, column);\n },\n handleMock: function handleMock() {\n var _this8 = this;\n if (!this.isMock) return;\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(this.propOption, this.DIC, this.form, this.isMock);\n if (!this.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this8.form[ele] = form[ele];\n });\n }\n this.$nextTick(function () {\n _this8.clearValidate();\n _this8.$emit('mock-change', _this8.form);\n });\n },\n vaildDetail: function vaildDetail(column) {\n var key;\n if (this.detail) return false;\n if (!this.validatenull(column.detail)) {\n key = 'detail';\n } else if (this.isAdd) {\n key = 'addDetail';\n } else if (this.isEdit) {\n key = 'editDetail';\n } else if (this.isView) {\n return false;\n }\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否禁止\n vaildDisabled: function vaildDisabled(column) {\n var key;\n if (this.disabled) return true;\n if (!this.validatenull(column.disabled)) {\n key = 'disabled';\n } else if (this.isAdd) {\n key = 'addDisabled';\n } else if (this.isEdit) {\n key = 'editDisabled';\n } else if (this.isView) {\n return true;\n }\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否显隐\n vaildDisplay: function vaildDisplay(column) {\n var key;\n if (!this.validatenull(column.display)) {\n key = 'display';\n } else if (this.isAdd) {\n key = 'addDisplay';\n } else if (this.isEdit) {\n key = 'editDisplay';\n } else if (this.isView) {\n key = 'viewDisplay';\n }\n if (key) return this.vaildData(column[key], true);\n return true;\n },\n clearValidate: function clearValidate(list) {\n this.$refs.form && this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this9 = this;\n return new Promise(function (resolve) {\n _this9.$refs.form.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validate: function validate(callback) {\n var _this10 = this;\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n _this10.dynamicOption.forEach(function (ele) {\n var _ref = _this10.$refs[ele.prop] || [],\n _ref2 = _slicedToArray(_ref, 1),\n $dynamic = _ref2[0];\n if (_this10.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 (!_this10.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 (error, index) {\n if (!_this10.validatenull(error)) {\n dynamicError[dynamicName[index]] = error;\n }\n });\n var result = Object.assign(dynamicError, msg);\n if (_this10.validatenull(result)) {\n _this10.show();\n callback(true, _this10.hide);\n } else {\n callback(false, _this10.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this11 = this;\n var propList = this.propOption.map(function (ele) {\n return ele.prop;\n });\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"clearVal\"])(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));\n this.$nextTick(function () {\n _this11.clearValidate();\n _this11.$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 _this12 = this;\n this.validate(function (valid, msg) {\n if (valid) {\n _this12.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(_this12.form, ['$']), _this12.hide);\n } else {\n _this12.$emit(\"error\", msg);\n }\n });\n },\n // 获取列及子列slot\n getChildrenSlots: function getChildrenSlots(column, type) {\n var _this13 = this;\n var slots = [];\n var columnList = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"flattenColumns\"])([column]);\n columnList.forEach(function (item) {\n if (item.prop && _this13.getSlotName(item, type, _this13.$scopedSlots)) {\n slots.push(_this13.getSlotName(item, type));\n }\n });\n return slots;\n }\n },\n beforeDestroy: function beforeDestroy() {\n var _this14 = this;\n Object.keys(this.formBind).forEach(function (ele) {\n _this14.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_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
713
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var common_common_init__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! common/common/init */ \"./packages/core/common/init.js\");\n/* harmony import */ var common_components_form_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! common/components/form/index */ \"./packages/core/components/form/index.vue\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_mock__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! utils/mock */ \"./src/utils/mock.js\");\n/* harmony import */ var _item__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./item */ \"./packages/element-ui/form/item.vue\");\n/* harmony import */ var _menu__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\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\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"form\",\n mixins: [Object(common_common_init__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n formItem: _item__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_10__[\"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 isCrud: {\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 /** 表单项label的宽度 */\n labelWidth: 90,\n /** 表单是否提交状态 */\n allDisabled: false,\n /** 表单配置 */\n tableOption: {},\n /** 默认表单项占位 */\n itemSpanDefault: 12,\n /** 表单数据 */\n form: {},\n /** 表单是否创建完成 */\n formCreate: false,\n /** 级联项列表 */\n formList: [],\n /** 表单项控制器索引 */\n formBind: {}\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 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 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_7__[\"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_7__[\"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_7__[\"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 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_0__[\"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 _this3 = this;\n setTimeout(function () {\n _this3.dataFormat();\n });\n },\n methods: {\n getComponent: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getComponent\"],\n getPlaceholder: core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"getPlaceholder\"],\n getDisabled: function getDisabled(column) {\n return this.vaildDetail(column) || this.isDetail || this.vaildDisabled(column) || this.allDisabled;\n },\n getSpan: function getSpan(column) {\n return column.span || this.parentOption.span || this.itemSpanDefault;\n },\n /** 表单项校验添加配置 */getColumnRules: function getColumnRules(column) {\n var _this4 = 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_7__[\"getObjType\"])(rule.validator) !== 'function') {\n rules.push(rule);\n return;\n }\n var validatorRule = _this4.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 console.log(args);\n rule.validator.apply(rule, [_rule, value, callback, _this4.formItemTableData].concat(args));\n };\n rules.push(validatorRule);\n });\n return rules;\n },\n //初始化表单\n dataFormat: function dataFormat() {\n var _this5 = this;\n var formDefault = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"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 (_this5.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 _this5.formCreate = true;\n _this5.clearValidate();\n _this5.$emit('mounted');\n var events = _this5.tableOption.events || {};\n if (typeof events.didMount === 'function') {\n events.didMount();\n }\n });\n },\n setControl: function setControl() {\n var _this6 = this;\n this.propOption.forEach(function (column) {\n var prop = column.prop;\n var bind = column.bind;\n var control = column.control;\n if (!_this6.formBind[prop]) {\n var bindList = [];\n if (bind) {\n var formProp = _this6.$watch('form.' + prop, function (n, o) {\n if (n != o) Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"setAsVal\"])(_this6.form, bind, n);\n });\n var formDeep = _this6.$watch('form.' + bind, function (n, o) {\n if (n != o) _this6.$set(_this6.form, prop, n);\n });\n bindList.push(formProp);\n bindList.push(formDeep);\n _this6.$set(_this6.form, prop, Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"getAsVal\"])(_this6.form, bind));\n }\n if (control) {\n var callback = function callback() {\n var value = _this6.form[column.prop];\n var controlList = control(value, _this6.form, _objectSpread({\n column: column,\n dic: _this6.DIC[column.prop] || [],\n value: value\n }, _this6.formItemTableData)) || {};\n Object.keys(controlList).forEach(function (item) {\n var ele = Object.assign(_this6.objectOption[item] || {}, controlList[item]);\n _this6.$set(_this6.objectOption, item, ele);\n if (controlList[item].dicData) _this6.DIC[item] = controlList[item].dicData;\n });\n };\n var formControl = _this6.$watch('form.' + prop, function (n, o) {\n callback();\n });\n bindList.push(formControl);\n callback();\n }\n _this6.formBind[prop] = bindList;\n }\n });\n },\n //表单赋值\n setForm: function setForm() {\n var _this7 = this;\n Object.keys(this.value).forEach(function (ele) {\n _this7.$set(_this7.form, ele, _this7.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 getLabelWidth: function getLabelWidth(column, item) {\n var result;\n if (!this.validatenull(column.labelWidth)) {\n result = column.labelWidth;\n } else if (!this.validatenull(item.labelWidth)) {\n result = item.labelWidth;\n } else {\n result = this.parentOption.labelWidth;\n }\n return this.setPx(result, this.labelWidth);\n },\n //对部分表单字段进行校验的方法\n validateField: function validateField(val) {\n return this.$refs.form.validateField(val);\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 _this8 = 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 = _this8.form[column.prop];\n // 下一个节点\n var columnNext = _this8.findObject(list, columnNextProp);\n if (_this8.validatenull(columnNext)) return;\n // 如果不是首次加载则清空全部关联节点的属性值和字典值\n if (_this8.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this8.form[ele] = \"\";\n _this8.$set(_this8.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n if (_this8.validatenull(cascader) || _this8.validatenull(value) || _this8.validatenull(columnNext)) {\n return;\n }\n // 根据当前节点值获取下一个节点的字典\n Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this8.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this8.formList.includes(str)) _this8.formList.push(str);\n // 修改字典\n var dic = res || [];\n _this8.$set(_this8.DIC, columnNextProp, dic);\n if (!_this8.validatenull(dic) && !_this8.validatenull(dic) && !_this8.validatenull(columnNext.cascaderIndex) && _this8.validatenull(_this8.form[columnNextProp])) {\n _this8.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 if (column.cascader) this.handleChange(option, column);\n },\n handleMock: function handleMock() {\n var _this9 = this;\n if (!this.isMock) return;\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(this.propOption, this.DIC, this.form, this.isMock);\n if (!this.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this9.form[ele] = form[ele];\n });\n }\n this.$nextTick(function () {\n _this9.clearValidate();\n _this9.$emit('mock-change', _this9.form);\n });\n },\n vaildDetail: function vaildDetail(column) {\n var key;\n if (this.detail) return false;\n if (!this.validatenull(column.detail)) {\n key = 'detail';\n } else if (this.isAdd) {\n key = 'addDetail';\n } else if (this.isEdit) {\n key = 'editDetail';\n } else if (this.isView) {\n return false;\n }\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否禁止\n vaildDisabled: function vaildDisabled(column) {\n var key;\n if (this.disabled) return true;\n if (!this.validatenull(column.disabled)) {\n key = 'disabled';\n } else if (this.isAdd) {\n key = 'addDisabled';\n } else if (this.isEdit) {\n key = 'editDisabled';\n } else if (this.isView) {\n return true;\n }\n if (key) return this.vaildData(column[key], false);\n return false;\n },\n // 验证表单是否显隐\n vaildDisplay: function vaildDisplay(column) {\n var key;\n if (!this.validatenull(column.display)) {\n key = 'display';\n } else if (this.isAdd) {\n key = 'addDisplay';\n } else if (this.isEdit) {\n key = 'editDisplay';\n } else if (this.isView) {\n key = 'viewDisplay';\n }\n if (key) return this.vaildData(column[key], true);\n return true;\n },\n clearValidate: function clearValidate(list) {\n this.$refs.form && this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this10 = this;\n return new Promise(function (resolve) {\n _this10.$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 _this11 = this;\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n _this11.dynamicOption.forEach(function (ele) {\n var _ref = _this11.$refs[ele.prop] || [],\n _ref2 = _slicedToArray(_ref, 1),\n $dynamic = _ref2[0];\n if (_this11.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 (!_this11.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 (_this11.validatenull(result)) {\n _this11.show();\n callback(true, _this11.hide);\n } else {\n callback(false, _this11.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this12 = this;\n var propList = this.propOption.map(function (ele) {\n return ele.prop;\n });\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"clearVal\"])(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));\n this.$nextTick(function () {\n _this12.clearValidate();\n _this12.$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 _this13 = this;\n this.validate(function (valid, msg) {\n if (valid) {\n _this13.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(_this13.form, ['$']), _this13.hide);\n } else {\n _this13.$emit(\"error\", msg);\n }\n });\n },\n // 获取列及子列slot\n getChildrenSlots: function getChildrenSlots(column, type) {\n var _this14 = this;\n var slots = [];\n var columnList = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"flattenColumns\"])([column]);\n columnList.forEach(function (item) {\n if (item.prop && _this14.getSlotName(item, type, _this14.$scopedSlots)) {\n slots.push(_this14.getSlotName(item, type));\n }\n });\n return slots;\n }\n },\n beforeDestroy: function beforeDestroy() {\n var _this15 = this;\n Object.keys(this.formBind).forEach(function (ele) {\n _this15.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_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
714
714
|
|
715
715
|
/***/ }),
|
716
716
|
|
@@ -1494,15 +1494,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1494
1494
|
|
1495
1495
|
/***/ }),
|
1496
1496
|
|
1497
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
1497
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=97c4b280&":
|
1498
1498
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1499
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
1499
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=97c4b280& ***!
|
1500
1500
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1501
1501
|
/*! exports provided: render, staticRenderFns */
|
1502
1502
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1503
1503
|
|
1504
1504
|
"use strict";
|
1505
|
-
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('el-form-item',{attrs:{\"prop\":_vm.crud.isTree? '' : _vm.propName,\"label\":\" \",\"label-width\":_vm.cellColumn.rules ? '1px' : '',\"rules\":_vm.
|
1505
|
+
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('el-form-item',{attrs:{\"prop\":_vm.crud.isTree? '' : _vm.propName,\"label\":\" \",\"label-width\":_vm.cellColumn.rules ? '1px' : '',\"rules\":_vm.rules}},[_c('el-tooltip',{attrs:{\"content\":_vm.errorInfo.msg,\"disabled\":!_vm.errorInfo.valid,\"placement\":\"top\"}},[(_vm.crud.getSlotName(_vm.cellColumn,'F',_vm.crud.$scopedSlots))?_vm._t(_vm.crud.getSlotName(_vm.cellColumn,'F'),null,{\"row\":_vm.row,\"index\":_vm.index,\"size\":_vm.crud.isMediumSize,\"tableData\":_vm.tableData,\"dic\":_vm.dic,\"props\":_vm.props,\"readonly\":_vm.cellColumn.readonly,\"disabled\":_vm.disabled,\"clearable\":_vm.vaildData(_vm.cellColumn.clearable,false),\"label\":_vm.label},{ '$cell':_vm.row.$cellEdit }):_c('form-temp',_vm._b({ref:\"column\",attrs:{\"column\":_vm.cellColumn,\"size\":_vm.crud.isMediumSize,\"table-data\":_vm.tableData,\"dic\":_vm.dic,\"props\":_vm.props,\"readonly\":_vm.cellColumn.readonly,\"disabled\":_vm.disabled,\"clearable\":_vm.vaildData(_vm.cellColumn.clearable,false),\"column-slot\":_vm.crud.mainSlot,\"validate-event\":_vm.validateEvent},on:{\"change\":function($event){return _vm.columnChange(_vm.row,_vm.cellColumn,_vm.index)}},scopedSlots:_vm._u([_vm._l((_vm.crud.mainSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}})],null,true),model:{value:(_vm.row[_vm.cellColumn.prop]),callback:function ($$v) {_vm.$set(_vm.row, _vm.cellColumn.prop, $$v)},expression:\"row[cellColumn.prop]\"}},'form-temp',_vm.$uploadFun(_vm.cellColumn,_vm.crud),false))],2)],1)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-cell-item.vue?./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
1506
1506
|
|
1507
1507
|
/***/ }),
|
1508
1508
|
|
@@ -1638,9 +1638,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1638
1638
|
|
1639
1639
|
/***/ }),
|
1640
1640
|
|
1641
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=
|
1641
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=410147c9&":
|
1642
1642
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1643
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/index.vue?vue&type=template&id=
|
1643
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/index.vue?vue&type=template&id=410147c9& ***!
|
1644
1644
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1645
1645
|
/*! exports provided: render, staticRenderFns */
|
1646
1646
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1722,15 +1722,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1722
1722
|
|
1723
1723
|
/***/ }),
|
1724
1724
|
|
1725
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=
|
1725
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=750b7c89&":
|
1726
1726
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1727
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=
|
1727
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=750b7c89& ***!
|
1728
1728
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1729
1729
|
/*! exports provided: render, staticRenderFns */
|
1730
1730
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1731
1731
|
|
1732
1732
|
"use strict";
|
1733
|
-
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('div',{class:[_vm.b(),{'avue--detail':_vm.isDetail}],style:({width:_vm.setPx(_vm.parentOption.formWidth,'100%')})},[_c('el-form',{ref:\"form\",attrs:{\"status-icon\":_vm.parentOption.statusIcon,\"model\":_vm.form,\"label-suffix\":_vm.labelSuffix,\"size\":_vm.$AVUE.formSize || _vm.controlSize,\"label-position\":_vm.parentOption.labelPosition,\"label-width\":_vm.setPx(_vm.parentOption.labelWidth,_vm.labelWidth)},nativeOn:{\"submit\":function($event){$event.preventDefault();}}},[_c('el-row',{attrs:{\"span\":24}},[_c('div',{class:_vm.b('group',{'flex':true})},[_vm._l((_vm.columnOption),function(column,index){return [(_vm.vaildDisplay(column))?_c('form-item',{key:index,attrs:{\"column\":column,\"parentOption\":_vm.parentOption},scopedSlots:_vm._u([_vm._l((_vm.getChildrenSlots(column, 'H')),function(slotName){return {key:slotName,fn:function(scope){return [_vm._t(slotName,null,{\"column\":scope.column,\"index\":scope.index})]}}}),{key:\"default\",fn:function({ column, groupItem }){return [_c('el-form-item',{class:_vm.b('item--'+(column.labelPosition || groupItem.labelPosition || '')),attrs:{\"prop\":column.prop,\"label\":column.label,\"rules\":column
|
1733
|
+
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('div',{class:[_vm.b(),{'avue--detail':_vm.isDetail}],style:({width:_vm.setPx(_vm.parentOption.formWidth,'100%')})},[_c('el-form',{ref:\"form\",attrs:{\"status-icon\":_vm.parentOption.statusIcon,\"model\":_vm.form,\"label-suffix\":_vm.labelSuffix,\"size\":_vm.$AVUE.formSize || _vm.controlSize,\"label-position\":_vm.parentOption.labelPosition,\"label-width\":_vm.setPx(_vm.parentOption.labelWidth,_vm.labelWidth)},nativeOn:{\"submit\":function($event){$event.preventDefault();}}},[_c('el-row',{attrs:{\"span\":24}},[_c('div',{class:_vm.b('group',{'flex':true})},[_vm._l((_vm.columnOption),function(column,index){return [(_vm.vaildDisplay(column))?_c('form-item',{key:index,attrs:{\"column\":column,\"parentOption\":_vm.parentOption},scopedSlots:_vm._u([_vm._l((_vm.getChildrenSlots(column, 'H')),function(slotName){return {key:slotName,fn:function(scope){return [_vm._t(slotName,null,{\"column\":scope.column,\"index\":scope.index})]}}}),{key:\"default\",fn:function({ column, groupItem }){return [_c('el-form-item',{class:_vm.b('item--'+(column.labelPosition || groupItem.labelPosition || '')),attrs:{\"prop\":column.prop,\"label\":column.label,\"rules\":_vm.getColumnRules(column),\"label-position\":column.labelPosition || groupItem.labelPosition || _vm.parentOption.labelPosition,\"label-width\":_vm.getLabelWidth(column, groupItem)},scopedSlots:_vm._u([{key:\"error\",fn:function(scope){return (_vm.getSlotName(column,'E',_vm.$scopedSlots))?[_vm._t(_vm.getSlotName(column,'E'),null,null,Object.assign(scope,{\n column,\n value:_vm.form[column.prop],\n readonly:_vm.readonly || column.readonly,\n disabled:_vm.getDisabled(column),\n size:column.size || _vm.controlSize,\n dic:_vm.DIC[column.prop]\n }))]:undefined}}],null,true)},[(_vm.getSlotName(column,'L',_vm.$scopedSlots))?_c('template',{slot:\"label\"},[_vm._t(_vm.getSlotName(column,'L'),null,{\"column\":column,\"value\":_vm.form[column.prop],\"readonly\":column.readonly || _vm.readonly,\"disabled\":_vm.getDisabled(column),\"size\":column.size || _vm.controlSize,\"dic\":_vm.DIC[column.prop]})],2):(column.labelTip)?_c('template',{slot:\"label\"},[_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":\"dark\",\"placement\":column.labelTipPlacement || 'top-start'}},[_c('div',{attrs:{\"slot\":\"content\"},domProps:{\"innerHTML\":_vm._s(column.labelTip)},slot:\"content\"}),_vm._v(\" \"),_c('i',{staticClass:\"el-icon-info\"})]),_vm._v(\" \"),_c('span',[_vm._v(\" \"+_vm._s(column.label)+_vm._s(_vm.labelSuffix))])],1):_vm._e(),_vm._v(\" \"),_vm._v(\" \"),_c(_vm.validTip(column)?'div':'elTooltip',{tag:\"component\",attrs:{\"disabled\":_vm.validTip(column),\"content\":_vm.vaildData(column.tip,_vm.getPlaceholder(column)),\"placement\":column.tipPlacement}},[(_vm.$scopedSlots[column.prop])?_vm._t(column.prop,null,{\"value\":_vm.form[column.prop],\"column\":column,\"dic\":_vm.DIC[column.prop],\"label\":_vm.columnDicLabelIndex[column.prop],\"props\":_vm.parentOption.props,\"propsHttp\":_vm.parentOption.propsHttp,\"tableData\":_vm.formItemTableData,\"size\":column.size || _vm.controlSize,\"readonly\":_vm.readonly || column.readonly,\"disabled\":_vm.getDisabled(column),\"enter\":_vm.parentOption.enter,\"validateEvent\":_vm.validateEvent}):_c('form-temp',_vm._b({ref:column.prop,refInFor:true,attrs:{\"column\":column,\"dic\":_vm.DIC[column.prop],\"props\":_vm.parentOption.props,\"propsHttp\":_vm.parentOption.propsHttp,\"table-data\":_vm.formItemTableData,\"disabled\":_vm.getDisabled(column),\"readonly\":column.readonly || _vm.readonly,\"enter\":_vm.parentOption.enter,\"size\":_vm.parentOption.size,\"validate-event\":_vm.validateEvent,\"column-slot\":_vm.columnSlot},on:{\"enter\":_vm.submit,\"change\":function($event){return _vm.propChange(_vm.columnOption,column)}},scopedSlots:_vm._u([_vm._l((_vm.getSlotName(column,'T',_vm.$scopedSlots)?[column]:[]),function(item){return {key:_vm.getSlotName(column,'T'),fn:function(scope){return [_vm._t(_vm.getSlotName(item,'T'),null,null,scope)]}}}),_vm._l((_vm.columnSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,scope)]}}})],null,true),model:{value:(_vm.form[column.prop]),callback:function ($$v) {_vm.$set(_vm.form, column.prop, $$v)},expression:\"form[column.prop]\"}},'form-temp',_vm.$uploadFun(column),false))],2)],2),_vm._v(\" \"),(_vm.vaildDisplay(column)&&column.row && column.span!==24 && column.count)?_c('div',{key:`line${index}`,class:_vm.b('line'),style:({width:(column.count/24*100)+'%'})}):_vm._e()]}}],null,true)}):_vm._e()]}),_vm._v(\" \"),(!_vm.isDetail)?_c('form-menu',{scopedSlots:_vm._u([{key:\"menuForm\",fn:function(scope){return [_vm._t(\"menuForm\",null,null,scope)]}}],null,true)}):_vm._e()],2)])],1)],1)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
1734
1734
|
|
1735
1735
|
/***/ }),
|
1736
1736
|
|
@@ -2272,7 +2272,7 @@ eval("(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\
|
|
2272
2272
|
/*! exports provided: name, version, description, main, unpkg, jsdelivr, scripts, typings, keywords, repository, author, license, homepage, devDependencies, peerDependencies, dependencies, files, default */
|
2273
2273
|
/***/ (function(module) {
|
2274
2274
|
|
2275
|
-
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"@ttkj/avue\\\",\\\"version\\\":\\\"2.10.
|
2275
|
+
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"@ttkj/avue\\\",\\\"version\\\":\\\"2.10.24\\\",\\\"description\\\":\\\"A Magic Configurable Web Framework\\\",\\\"main\\\":\\\"lib/avue.min.js\\\",\\\"unpkg\\\":\\\"lib/avue.min.js\\\",\\\"jsdelivr\\\":\\\"lib/avue.min.js\\\",\\\"scripts\\\":{\\\"bootstrap\\\":\\\"yarn --registry https://registry.npmmirror.com || npm install --registry https://registry.npmmirror.com \\\",\\\"analyz\\\":\\\"NODE_ENV=production npm_config_report=true npm run build\\\",\\\"dev\\\":\\\"cross-env TARGET=dev UINAME=element-ui gulp watch\\\",\\\"build\\\":\\\"cross-env TARGET=prod UINAME=element-ui gulp build\\\",\\\"all\\\":\\\"yarn build && yarn dev\\\"},\\\"typings\\\":\\\"types/index.d.ts\\\",\\\"keywords\\\":[\\\"vue\\\",\\\"element-ui\\\",\\\"avue\\\"],\\\"repository\\\":{\\\"type\\\":\\\"gitee\\\",\\\"url\\\":\\\"gitee+https://gitee.com/nbhm_department/avue.git\\\"},\\\"author\\\":\\\"osxcn\\\",\\\"license\\\":\\\"MIT\\\",\\\"homepage\\\":\\\"https://gitee.com/nbhm_department/avue/blob/v2.10.x/README.md\\\",\\\"devDependencies\\\":{\\\"@babel/core\\\":\\\"^7.13.14\\\",\\\"@babel/preset-env\\\":\\\"^7.13.12\\\",\\\"@types/lodash\\\":\\\"^4.14.202\\\",\\\"axios\\\":\\\"^0.21.1\\\",\\\"babel-loader\\\":\\\"^8.2.2\\\",\\\"cross-env\\\":\\\"^3.2.4\\\",\\\"css-loader\\\":\\\"^5.2.0\\\",\\\"element-ui\\\":\\\"^2.15.10\\\",\\\"eslint\\\":\\\"4.14.0\\\",\\\"eslint-config-elemefe\\\":\\\"0.1.1\\\",\\\"eslint-loader\\\":\\\"^1.9.0\\\",\\\"eslint-plugin-html\\\":\\\"^4.0.1\\\",\\\"eslint-plugin-json\\\":\\\"^1.2.0\\\",\\\"gulp\\\":\\\"^4.0.0\\\",\\\"gulp-autoprefixer\\\":\\\"^4.0.0\\\",\\\"gulp-cssmin\\\":\\\"^0.1.7\\\",\\\"gulp-postcss\\\":\\\"^6.1.1\\\",\\\"gulp-sass\\\":\\\"^5.1.0\\\",\\\"progress-bar-webpack-plugin\\\":\\\"^1.11.0\\\",\\\"sass\\\":\\\"^1.54.5\\\",\\\"vue\\\":\\\"2.7.10\\\",\\\"vue-loader\\\":\\\"^15.9.6\\\",\\\"webpack\\\":\\\"^4.27.0\\\",\\\"webpack-bundle-analyzer\\\":\\\"^3.0.3\\\",\\\"webpack-merge\\\":\\\"^4.1.4\\\"},\\\"peerDependencies\\\":{\\\"element-ui\\\":\\\">=2.15.3\\\",\\\"vue\\\":\\\">=2.6.14\\\"},\\\"dependencies\\\":{\\\"countup.js\\\":\\\"^1.9.3\\\",\\\"dayjs\\\":\\\"^1.10.4\\\",\\\"lodash\\\":\\\"^4.17.21\\\",\\\"nprogress\\\":\\\"^0.2.0\\\",\\\"vue-cropper\\\":\\\"^0.5.8\\\",\\\"vuedraggable\\\":\\\"^2.24.3\\\"},\\\"files\\\":[\\\"lib\\\",\\\"types\\\",\\\"README.md\\\",\\\"LICENSE\\\"]}\");\n\n//# sourceURL=webpack://AVUE/./package.json?");
|
2276
2276
|
|
2277
2277
|
/***/ }),
|
2278
2278
|
|
@@ -3532,7 +3532,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3532
3532
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3533
3533
|
|
3534
3534
|
"use strict";
|
3535
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3535
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _column_cell_item_vue_vue_type_template_id_97c4b280___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./column-cell-item.vue?vue&type=template&id=97c4b280& */ \"./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=97c4b280&\");\n/* harmony import */ var _column_cell_item_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./column-cell-item.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/column-cell-item.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/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_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _column_cell_item_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _column_cell_item_vue_vue_type_template_id_97c4b280___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _column_cell_item_vue_vue_type_template_id_97c4b280___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/column-cell-item.vue?");
|
3536
3536
|
|
3537
3537
|
/***/ }),
|
3538
3538
|
|
@@ -3548,15 +3548,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3548
3548
|
|
3549
3549
|
/***/ }),
|
3550
3550
|
|
3551
|
-
/***/ "./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
3551
|
+
/***/ "./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=97c4b280&":
|
3552
3552
|
/*!**************************************************************************************!*\
|
3553
|
-
!*** ./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
3553
|
+
!*** ./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=97c4b280& ***!
|
3554
3554
|
\**************************************************************************************/
|
3555
3555
|
/*! exports provided: render, staticRenderFns */
|
3556
3556
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3557
3557
|
|
3558
3558
|
"use strict";
|
3559
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3559
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_column_cell_item_vue_vue_type_template_id_97c4b280___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./column-cell-item.vue?vue&type=template&id=97c4b280& */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=97c4b280&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_column_cell_item_vue_vue_type_template_id_97c4b280___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_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_column_cell_item_vue_vue_type_template_id_97c4b280___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-cell-item.vue?");
|
3560
3560
|
|
3561
3561
|
/***/ }),
|
3562
3562
|
|
@@ -3976,7 +3976,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3976
3976
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3977
3977
|
|
3978
3978
|
"use strict";
|
3979
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3979
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_410147c9___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=410147c9& */ \"./packages/element-ui/crud/index.vue?vue&type=template&id=410147c9&\");\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/crud/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/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_3ngm42yq4q4efcqlzctwtjfjeq_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_410147c9___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_410147c9___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/index.vue?");
|
3980
3980
|
|
3981
3981
|
/***/ }),
|
3982
3982
|
|
@@ -3992,15 +3992,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3992
3992
|
|
3993
3993
|
/***/ }),
|
3994
3994
|
|
3995
|
-
/***/ "./packages/element-ui/crud/index.vue?vue&type=template&id=
|
3995
|
+
/***/ "./packages/element-ui/crud/index.vue?vue&type=template&id=410147c9&":
|
3996
3996
|
/*!***************************************************************************!*\
|
3997
|
-
!*** ./packages/element-ui/crud/index.vue?vue&type=template&id=
|
3997
|
+
!*** ./packages/element-ui/crud/index.vue?vue&type=template&id=410147c9& ***!
|
3998
3998
|
\***************************************************************************/
|
3999
3999
|
/*! exports provided: render, staticRenderFns */
|
4000
4000
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4001
4001
|
|
4002
4002
|
"use strict";
|
4003
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4003
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_410147c9___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=410147c9& */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=410147c9&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_410147c9___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_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_410147c9___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?");
|
4004
4004
|
|
4005
4005
|
/***/ }),
|
4006
4006
|
|
@@ -4228,7 +4228,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4228
4228
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4229
4229
|
|
4230
4230
|
"use strict";
|
4231
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4231
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_750b7c89___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=750b7c89& */ \"./packages/element-ui/form/index.vue?vue&type=template&id=750b7c89&\");\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_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/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_3ngm42yq4q4efcqlzctwtjfjeq_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_750b7c89___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_750b7c89___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?");
|
4232
4232
|
|
4233
4233
|
/***/ }),
|
4234
4234
|
|
@@ -4244,15 +4244,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4244
4244
|
|
4245
4245
|
/***/ }),
|
4246
4246
|
|
4247
|
-
/***/ "./packages/element-ui/form/index.vue?vue&type=template&id=
|
4247
|
+
/***/ "./packages/element-ui/form/index.vue?vue&type=template&id=750b7c89&":
|
4248
4248
|
/*!***************************************************************************!*\
|
4249
|
-
!*** ./packages/element-ui/form/index.vue?vue&type=template&id=
|
4249
|
+
!*** ./packages/element-ui/form/index.vue?vue&type=template&id=750b7c89& ***!
|
4250
4250
|
\***************************************************************************/
|
4251
4251
|
/*! exports provided: render, staticRenderFns */
|
4252
4252
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4253
4253
|
|
4254
4254
|
"use strict";
|
4255
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4255
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_750b7c89___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=750b7c89& */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=750b7c89&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_750b7c89___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_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_750b7c89___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?");
|
4256
4256
|
|
4257
4257
|
/***/ }),
|
4258
4258
|
|