@smallwei/avue 2.12.8 → 2.13.1
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +57 -57
- package/lib/avue.min.js +2 -2
- package/package.json +1 -1
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v2.
|
2
|
+
* Avue.js v2.13.1
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -458,7 +458,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var coun
|
|
458
458
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
459
459
|
|
460
460
|
"use strict";
|
461
|
-
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 _config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _grid_column__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./grid/column */ \"./packages/element-ui/crud/grid/column.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n components: {\n tableGridColumn: _grid_column__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n data: function data() {\n return {\n config: _config_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"]\n };\n },\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n inject: [\"crud\"],\n mounted: function mounted() {\n this.
|
461
|
+
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 _config_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _grid_column__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./grid/column */ \"./packages/element-ui/crud/grid/column.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n components: {\n tableGridColumn: _grid_column__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n data: function data() {\n return {\n config: _config_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n rowSortable: null,\n columnSortable: null\n };\n },\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n inject: [\"crud\"],\n watch: {\n 'crud.isSortable': function crudIsSortable(val) {\n this.rowDrop(val);\n this.columnDrop(val);\n },\n 'crud.isRowSort': function crudIsRowSort(val) {\n this.rowDrop(val);\n },\n 'crud.isColumnSort': function crudIsColumnSort(val) {\n this.columnDrop(val);\n }\n },\n mounted: function mounted() {\n this.rowDrop();\n this.columnDrop();\n },\n methods: {\n indexMethod: function indexMethod(index) {\n return index + 1 + ((this.crud.page.currentPage || 1) - 1) * (this.crud.page.pageSize || 10);\n },\n rowDrop: function rowDrop(flag) {\n var _this = this;\n this.$nextTick(function () {\n if (flag == false) {\n _this.rowSortable && _this.rowSortable.destroy();\n return;\n }\n if (!_this.crud.$refs.table.$el) return;\n var el = _this.crud.$refs.table.$el.querySelectorAll(_this.config.dropRowClass)[0];\n _this.rowSortable = _this.crud.tableDrop('row', el, function (evt) {\n var oldIndex = evt.oldIndex;\n var newIndex = evt.newIndex;\n var targetRow = _this.crud.list.splice(oldIndex, 1)[0];\n _this.crud.list.splice(newIndex, 0, targetRow);\n _this.crud.$emit('sortable-change', oldIndex, newIndex);\n });\n });\n },\n columnDrop: function columnDrop(flag) {\n var _this2 = this;\n this.$nextTick(function () {\n if (flag == false) {\n _this2.columnSortable && _this2.columnSortable.destroy();\n return;\n }\n if (!_this2.crud.$refs.table.$el) return;\n var el = _this2.crud.$refs.table.$el.querySelector(_this2.config.dropColClass);\n var noIndexCount = 0;\n ['selection', 'index', 'expand'].forEach(function (ele) {\n if (_this2.crud.tableOption[ele]) {\n noIndexCount += 1;\n }\n });\n _this2.columnSortable = _this2.crud.tableDrop('column', el, function (evt) {\n _this2.crud.headerSort(evt.oldIndex - noIndexCount, evt.newIndex - noIndexCount);\n _this2.crud.$emit('column-sortable-change', evt.oldIndex - noIndexCount, evt.newIndex - noIndexCount);\n });\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-default.vue?./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
462
462
|
|
463
463
|
/***/ }),
|
464
464
|
|
@@ -530,7 +530,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
530
530
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
531
531
|
|
532
532
|
"use strict";
|
533
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'crud',\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n inject: ['crud'],\n data: function data() {\n return {\n option: {},\n columnOption: {},\n box: false,\n form: {\n name: this.crud.tableOption.title\n }\n };\n },\n methods: {\n handleShow: function handleShow() {\n this.getColumnOption();\n this.getOption();\n this.box = true;\n },\n handleSubmit: function handleSubmit() {\n this.$Export.excel({\n title: this.form.name,\n columns: this.getColumn(),\n data: this.handleSum()\n });\n this.box = false;\n },\n //计算统计\n handleSum: function handleSum() {\n var _this = this;\n var option = this.crud.tableOption;\n var columnOption = this.crud.propOption;\n var list = this.form.type ? this.crud.list : this.crud.tableSelect;\n var data = [];\n if (this.form.params.includes('data')) {\n list.forEach(function (ele) {\n var row = _this.deepClone(ele);\n columnOption.forEach(function (column) {\n var DIC = column.parentProp ? (_this.crud.cascaderDIC[row.$index] || {})[column.prop] : _this.crud.DIC[column.prop];\n row[column.prop] = Object(core_detail__WEBPACK_IMPORTED_MODULE_1__[\"detail\"])(row, column, option, DIC);\n });\n data.push(row);\n });\n }\n if (this.form.params.includes('sum') && option.showSummary) {\n data.push(this.crud.sumsList);\n }\n return data;\n },\n getOption: function getOption() {\n var _this2 = this;\n this.option = {\n submitBtn: false,\n emptyBtn: false,\n column: [{\n label: this.t('crud.excel.name'),\n prop: 'name',\n span: 24\n }, {\n label: this.t('crud.excel.type'),\n prop: \"type\",\n span: 24,\n type: 'select',\n dicData: [{\n label: this.t('crud.excel.typeDic.true'),\n value: true\n }, {\n label: this.t('crud.excel.typeDic.false'),\n disabled: this.crud.tableOption.selection != true,\n value: false\n }]\n }, {\n label: this.t('crud.excel.prop'),\n prop: \"prop\",\n type: 'tree',\n multiple: true,\n checkStrictly: true,\n span: 24,\n props: {\n value: 'prop'\n },\n dicData: this.columnOption\n }, {\n label: this.t('crud.excel.params'),\n prop: 'params',\n type: 'checkbox',\n span: 24,\n value: ['header', 'data'].concat(function () {\n var result = [];\n if (_this2.crud.isHeader) result.push('headers');\n if (_this2.crud.isShowSummary) result.push('sum');\n return result;\n }()),\n dicData: [{\n label: this.t('crud.excel.paramsDic.header'),\n disabled: true,\n value: 'header'\n }, {\n label: this.t('crud.excel.paramsDic.data'),\n value: 'data'\n }].concat(function () {\n var result = [];\n result.push({\n label: _this2.t('crud.excel.paramsDic.headers'),\n value: 'headers',\n disabled: !_this2.crud.isHeader\n });\n result.push({\n label: _this2.t('crud.excel.paramsDic.sum'),\n value: 'sum',\n disabled: !_this2.crud.isShowSummary\n });\n return result;\n }())\n }]\n };\n this.form.type = this.crud.selectLen == 0;\n },\n getColumnOption: function getColumnOption() {\n var column = this.deepClone(this.crud.columnOption);\n var prop = [];\n var findProp = function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var count = [];\n
|
533
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var core_detail__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/detail */ \"./src/core/detail.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'crud',\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_0__[\"default\"]],\n inject: ['crud'],\n data: function data() {\n return {\n option: {},\n columnOption: {},\n box: false,\n form: {\n name: this.crud.tableOption.title\n }\n };\n },\n methods: {\n handleShow: function handleShow() {\n this.getColumnOption();\n this.getOption();\n this.box = true;\n },\n handleSubmit: function handleSubmit() {\n this.$Export.excel({\n title: this.form.name,\n columns: this.getColumn(),\n data: this.handleSum()\n });\n this.box = false;\n },\n //计算统计\n handleSum: function handleSum() {\n var _this = this;\n var option = this.crud.tableOption;\n var columnOption = this.crud.propOption;\n var list = this.form.type ? this.crud.list : this.crud.tableSelect;\n var data = [];\n if (this.form.params.includes('data')) {\n list.forEach(function (ele) {\n var row = _this.deepClone(ele);\n columnOption.forEach(function (column) {\n var DIC = column.parentProp ? (_this.crud.cascaderDIC[row.$index] || {})[column.prop] : _this.crud.DIC[column.prop];\n row[column.prop] = Object(core_detail__WEBPACK_IMPORTED_MODULE_1__[\"detail\"])(row, column, option, DIC);\n });\n data.push(row);\n });\n }\n if (this.form.params.includes('sum') && option.showSummary) {\n data.push(this.crud.sumsList);\n }\n return data;\n },\n getOption: function getOption() {\n var _this2 = this;\n this.option = {\n submitBtn: false,\n emptyBtn: false,\n column: [{\n label: this.t('crud.excel.name'),\n prop: 'name',\n span: 24\n }, {\n label: this.t('crud.excel.type'),\n prop: \"type\",\n span: 24,\n type: 'select',\n dicData: [{\n label: this.t('crud.excel.typeDic.true'),\n value: true\n }, {\n label: this.t('crud.excel.typeDic.false'),\n disabled: this.crud.tableOption.selection != true,\n value: false\n }]\n }, {\n label: this.t('crud.excel.prop'),\n prop: \"prop\",\n type: 'tree',\n multiple: true,\n checkStrictly: true,\n span: 24,\n props: {\n value: 'prop'\n },\n dicData: this.columnOption\n }, {\n label: this.t('crud.excel.params'),\n prop: 'params',\n type: 'checkbox',\n span: 24,\n value: ['header', 'data'].concat(function () {\n var result = [];\n if (_this2.crud.isHeader) result.push('headers');\n if (_this2.crud.isShowSummary) result.push('sum');\n return result;\n }()),\n dicData: [{\n label: this.t('crud.excel.paramsDic.header'),\n disabled: true,\n value: 'header'\n }, {\n label: this.t('crud.excel.paramsDic.data'),\n value: 'data'\n }].concat(function () {\n var result = [];\n result.push({\n label: _this2.t('crud.excel.paramsDic.headers'),\n value: 'headers',\n disabled: !_this2.crud.isHeader\n });\n result.push({\n label: _this2.t('crud.excel.paramsDic.sum'),\n value: 'sum',\n disabled: !_this2.crud.isShowSummary\n });\n return result;\n }())\n }]\n };\n this.form.type = this.crud.selectLen == 0;\n },\n getColumnOption: function getColumnOption() {\n var column = this.deepClone(this.crud.columnOption);\n var prop = [];\n var findProp = function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var count = [];\n list.forEach(function (ele, index) {\n var children = ele.children;\n if (children && !Array.isArray(children)) delete ele.children;else if (ele.showColumn === false) count.push(index);else {\n ele.prop = ele.prop || Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"uuid\"])();\n prop.push(ele.prop);\n if (ele.children) findProp(children);\n }\n });\n for (var i = count.length - 1; i >= 0; i--) {\n list.splice(count[i], 1);\n }\n };\n findProp(column);\n this.columnOption = column;\n this.form.prop = prop;\n },\n getColumn: function getColumn() {\n var columns = this.deepClone(this.columnOption);\n var props = this.$refs.form.getPropRef('prop').$refs.temp.getHalfList();\n if (!this.form.params) return [];\n if (this.form.params.includes('headers')) {\n var findProp = function findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list.forEach(function (ele, index) {\n if (!props.includes(ele.prop)) {\n list.splice(index, 1);\n } else if (ele.children) {\n findProp(ele.children);\n }\n });\n };\n findProp(columns);\n return columns;\n } else {\n var result = [];\n var _findProp = function _findProp() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list.forEach(function (ele, index) {\n if (ele.children) {\n _findProp(ele.children);\n } else if (props.includes(ele.prop)) {\n result.push(ele);\n }\n });\n };\n _findProp(columns);\n return result;\n }\n }\n }\n});\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-excel.vue?./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
534
534
|
|
535
535
|
/***/ }),
|
536
536
|
|
@@ -554,7 +554,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
554
554
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
555
555
|
|
556
556
|
"use strict";
|
557
|
-
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_locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n inject: [\"crud\"],\n data: function data() {\n return {\n disabled: false,\n config: _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n boxType: \"\",\n fullscreen: false,\n size: null,\n boxVisible: false\n };\n },\n props: {\n value: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n computed: {\n option: function option() {\n var _this = this;\n var option = this.deepClone(this.crud.tableOption);\n option.boxType = this.boxType;\n option.column = this.deepClone(this.crud.propOption);\n option.column.forEach(function (ele) {\n delete ele.render;\n if (ele.renderForm) ele.render = ele.renderForm;\n });\n option.menuBtn = false;\n if (this.isAdd) {\n option.submitBtn = option.saveBtn;\n option.submitText = this.crud.menuIcon('saveBtn');\n option.submitIcon = this.crud.getBtnIcon('saveBtn');\n } else if (this.isEdit) {\n option.submitBtn = option.updateBtn;\n option.submitText = this.crud.menuIcon('updateBtn');\n option.submitIcon = this.crud.getBtnIcon('updateBtn');\n } else if (this.isView) {\n option.detail = true;\n }\n option.mockIcon = this.crud.getBtnIcon('mockBtn');\n option.mockText = this.crud.menuIcon('mockBtn');\n option.emptyBtn = option.cancelBtn;\n option.emptyText = this.crud.menuIcon('cancelBtn');\n option.emptyIcon = this.crud.getBtnIcon('cancelBtn');\n //不分组的表单不加载字典\n if (!this.crud.isGroup) {\n option.dicFlag = false;\n option.dicData = this.crud.DIC;\n }\n if (!this.validatenull(option.dicFlag)) {\n option.column.forEach(function (ele) {\n ele.boxType = _this.boxType;\n ele.dicFlag = ele.dicFlag || option.dicFlag;\n });\n }\n return option;\n },\n isView: function isView() {\n return this.boxType === 'view';\n },\n isAdd: function isAdd() {\n return this.boxType === 'add';\n },\n isEdit: function isEdit() {\n return this.boxType === 'edit';\n },\n direction: function direction() {\n return this.crud.tableOption.dialogDirection;\n },\n width: function width() {\n return this.vaildData(this.crud.tableOption.dialogWidth + '', this.crud.isMobile ? '100%' : _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].dialogWidth + '');\n },\n dialogType: function dialogType() {\n return this.isDrawer ? 'elDrawer' : 'elDialog';\n },\n dialogTop: function dialogTop() {\n return !this.isDrawer && !this.fullscreen ? this.crud.tableOption.dialogTop : '0';\n },\n isDrawer: function isDrawer() {\n return this.crud.tableOption.dialogType === 'drawer';\n },\n params: function params() {\n return this.isDrawer ? {\n size: this.fullscreen ? '100%' : this.setPx(this.width),\n direction: this.crud.tableOption.dialogDirection\n } : {\n width: this.setPx(this.width),\n fullscreen: this.fullscreen\n };\n },\n dialogTitle: function dialogTitle() {\n var key = \"\".concat(this.boxType);\n if (!this.validatenull(this.boxType)) {\n return this.crud.tableOption[key + 'Title'] || this.t(\"crud.\".concat(key, \"Title\"));\n }\n },\n dialogMenuPosition: function dialogMenuPosition() {\n return this.crud.tableOption.dialogMenuPosition || 'right';\n }\n },\n methods: {\n menuParams: function menuParams() {\n return {\n disabled: this.disabled,\n size: this.crud.controlSize,\n type: this.boxType\n };\n },\n submit: function submit() {\n this.$refs.tableForm.submit();\n },\n reset: function reset() {\n this.$refs.tableForm.resetForm(false);\n },\n getSlotName: function getSlotName(item) {\n return item.replace('Form', '');\n },\n initFun: function initFun() {\n var _this2 = this;\n ['clearValidate', 'validate', 'resetForm', 'validateField'].forEach(function (ele) {\n _this2.crud[ele] = _this2.$refs.tableForm[ele];\n });\n },\n handleChange: function handleChange() {\n this.crud.setVal();\n },\n handleTabClick: function handleTabClick(tab, event) {\n this.crud.$emit('tab-click', tab, event);\n },\n handleFullScreen: function handleFullScreen() {\n if (this.isDrawer) {\n if (this.validatenull(this.size)) {\n this.size = '100%';\n } else {\n this.size = '';\n }\n }\n if (this.fullscreen) {\n this.fullscreen = false;\n } else {\n this.fullscreen = true;\n }\n },\n handleError: function handleError(error) {\n this.crud.$emit('error', error);\n },\n handleSubmit: function handleSubmit(form, hide) {\n if (this.isAdd) {\n this.rowSave(hide);\n } else if (this.isEdit) {\n this.rowUpdate(hide);\n }\n },\n // 保存\n rowSave: function rowSave(hide) {\n this.crud.$emit(\"row-save\", Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"filterParams\"])(this.crud.tableForm, ['$']), this.closeDialog, hide);\n },\n // 更新\n rowUpdate: function rowUpdate(hide) {\n this.crud.$emit(\"row-update\", Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"filterParams\"])(this.crud.tableForm, ['$']), this.crud.tableIndex, this.closeDialog, hide);\n },\n closeDialog: function closeDialog(row) {\n var _this3 = this;\n row = this.deepClone(row);\n var callback = function callback() {\n if (_this3.isEdit) {\n var _this3$crud$findData = _this3.crud.findData(row[_this3.crud.rowKey]),\n parentList = _this3$crud$findData.parentList,\n index = _this3$crud$findData.index;\n if (parentList) {\n var oldRow = parentList.splice(index, 1)[0];\n row[_this3.crud.childrenKey] = oldRow[_this3.crud.childrenKey];\n parentList.splice(index, 0, row);\n }\n } else if (_this3.isAdd) {\n var _this3$crud$findData2 = _this3.crud.findData(row[_this3.crud.rowParentKey]),\n item = _this3$crud$findData2.item;\n if (item) {\n if (!item[_this3.crud.childrenKey]) {\n _this3.$set(item, _this3.crud.childrenKey, []);\n }\n if (_this3.crud.tableOption.lazy) {\n _this3.$set(item, _this3.crud.hasChildrenKey, true);\n }\n item[_this3.crud.childrenKey].push(row);\n } else {\n _this3.crud.list.push(row);\n }\n }\n };\n if (row) callback();\n this.hide();\n },\n // 隐藏表单\n hide: function hide(done) {\n var _this4 = this;\n var callback = function callback() {\n done && done();\n _this4.crud.tableIndex = -1;\n _this4.crud.tableForm = {};\n _this4.crud.setVal();\n _this4.boxVisible = false;\n };\n if (typeof this.crud.beforeClose === \"function\") {\n this.crud.beforeClose(callback, this.boxType);\n } else {\n callback();\n }\n },\n // 显示表单\n show: function show(type) {\n var _this5 = this;\n this.boxType = type;\n var callback = function callback() {\n _this5.fullscreen = _this5.crud.tableOption.dialogFullscreen;\n _this5.boxVisible = true;\n _this5.$nextTick(function () {\n _this5.initFun();\n });\n };\n if (typeof this.crud.beforeOpen === \"function\") {\n this.crud.beforeOpen(callback, this.boxType);\n } else {\n callback();\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
557
|
+
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_locale__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n inject: [\"crud\"],\n data: function data() {\n return {\n loading: false,\n disabled: false,\n config: _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n boxType: \"\",\n fullscreen: false,\n size: null,\n boxVisible: false\n };\n },\n props: {\n value: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n computed: {\n option: function option() {\n var _this = this;\n var option = this.deepClone(this.crud.tableOption);\n option.boxType = this.boxType;\n option.column = this.deepClone(this.crud.propOption);\n option.column.forEach(function (ele) {\n delete ele.render;\n if (ele.renderForm) ele.render = ele.renderForm;\n });\n option.menuBtn = false;\n if (this.isAdd) {\n option.submitBtn = option.saveBtn;\n option.submitText = this.crud.menuIcon('saveBtn');\n option.submitIcon = this.crud.getBtnIcon('saveBtn');\n } else if (this.isEdit) {\n option.submitBtn = option.updateBtn;\n option.submitText = this.crud.menuIcon('updateBtn');\n option.submitIcon = this.crud.getBtnIcon('updateBtn');\n } else if (this.isView) {\n option.detail = true;\n }\n option.mockIcon = this.crud.getBtnIcon('mockBtn');\n option.mockText = this.crud.menuIcon('mockBtn');\n option.emptyBtn = option.cancelBtn;\n option.emptyText = this.crud.menuIcon('cancelBtn');\n option.emptyIcon = this.crud.getBtnIcon('cancelBtn');\n //不分组的表单不加载字典\n if (!this.crud.isGroup) {\n option.dicFlag = false;\n option.dicData = this.crud.DIC;\n }\n if (!this.validatenull(option.dicFlag)) {\n option.column.forEach(function (ele) {\n ele.boxType = _this.boxType;\n ele.dicFlag = ele.dicFlag || option.dicFlag;\n });\n }\n return option;\n },\n isView: function isView() {\n return this.boxType === 'view';\n },\n isAdd: function isAdd() {\n return this.boxType === 'add';\n },\n isEdit: function isEdit() {\n return this.boxType === 'edit';\n },\n direction: function direction() {\n return this.crud.tableOption.dialogDirection;\n },\n width: function width() {\n return this.vaildData(this.crud.tableOption.dialogWidth + '', this.crud.isMobile ? '100%' : _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].dialogWidth + '');\n },\n dialogType: function dialogType() {\n return this.isDrawer ? 'elDrawer' : 'elDialog';\n },\n dialogTop: function dialogTop() {\n return !this.isDrawer && !this.fullscreen ? this.crud.tableOption.dialogTop : '0';\n },\n isDrawer: function isDrawer() {\n return this.crud.tableOption.dialogType === 'drawer';\n },\n params: function params() {\n return this.isDrawer ? {\n size: this.fullscreen ? '100%' : this.setPx(this.width),\n direction: this.crud.tableOption.dialogDirection\n } : {\n width: this.setPx(this.width),\n fullscreen: this.fullscreen\n };\n },\n dialogTitle: function dialogTitle() {\n var key = \"\".concat(this.boxType);\n if (!this.validatenull(this.boxType)) {\n return this.crud.tableOption[key + 'Title'] || this.t(\"crud.\".concat(key, \"Title\"));\n }\n },\n dialogMenuPosition: function dialogMenuPosition() {\n return this.crud.tableOption.dialogMenuPosition || 'right';\n }\n },\n methods: {\n menuParams: function menuParams() {\n return {\n disabled: this.disabled,\n size: this.crud.controlSize,\n type: this.boxType\n };\n },\n submit: function submit() {\n this.$refs.tableForm.submit();\n },\n reset: function reset() {\n this.$refs.tableForm.resetForm(false);\n },\n getSlotName: function getSlotName(item) {\n return item.replace('Form', '');\n },\n initFun: function initFun() {\n var _this2 = this;\n ['clearValidate', 'validate', 'resetForm', 'validateField'].forEach(function (ele) {\n _this2.crud[ele] = _this2.$refs.tableForm[ele];\n });\n },\n handleChange: function handleChange() {\n this.crud.setVal();\n },\n handleTabClick: function handleTabClick(tab, event) {\n this.crud.$emit('tab-click', tab, event);\n },\n handleFullScreen: function handleFullScreen() {\n if (this.isDrawer) {\n if (this.validatenull(this.size)) {\n this.size = '100%';\n } else {\n this.size = '';\n }\n }\n if (this.fullscreen) {\n this.fullscreen = false;\n } else {\n this.fullscreen = true;\n }\n },\n handleError: function handleError(error) {\n this.crud.$emit('error', error);\n },\n handleSubmit: function handleSubmit(form, hide) {\n if (this.isAdd) {\n this.rowSave(hide);\n } else if (this.isEdit) {\n this.rowUpdate(hide);\n }\n },\n // 保存\n rowSave: function rowSave(hide) {\n this.crud.$emit(\"row-save\", Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"filterParams\"])(this.crud.tableForm, ['$']), this.closeDialog, hide);\n },\n // 更新\n rowUpdate: function rowUpdate(hide) {\n this.crud.$emit(\"row-update\", Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"filterParams\"])(this.crud.tableForm, ['$']), this.crud.tableIndex, this.closeDialog, hide);\n },\n closeDialog: function closeDialog(row) {\n var _this3 = this;\n row = this.deepClone(row);\n var callback = function callback() {\n if (_this3.isEdit) {\n var _this3$crud$findData = _this3.crud.findData(row[_this3.crud.rowKey]),\n parentList = _this3$crud$findData.parentList,\n index = _this3$crud$findData.index;\n if (parentList) {\n var oldRow = parentList.splice(index, 1)[0];\n row[_this3.crud.childrenKey] = oldRow[_this3.crud.childrenKey];\n parentList.splice(index, 0, row);\n }\n } else if (_this3.isAdd) {\n var _this3$crud$findData2 = _this3.crud.findData(row[_this3.crud.rowParentKey]),\n item = _this3$crud$findData2.item;\n if (item) {\n if (!item[_this3.crud.childrenKey]) {\n _this3.$set(item, _this3.crud.childrenKey, []);\n }\n if (_this3.crud.tableOption.lazy) {\n _this3.$set(item, _this3.crud.hasChildrenKey, true);\n }\n item[_this3.crud.childrenKey].push(row);\n } else {\n _this3.crud.list.push(row);\n }\n }\n };\n if (row) callback();\n this.hide();\n },\n // 隐藏表单\n hide: function hide(done) {\n var _this4 = this;\n var callback = function callback() {\n done && done();\n _this4.crud.tableIndex = -1;\n _this4.crud.tableForm = {};\n _this4.crud.setVal();\n _this4.boxVisible = false;\n };\n if (typeof this.crud.beforeClose === \"function\") {\n this.crud.beforeClose(callback, this.boxType);\n } else {\n callback();\n }\n },\n // 显示表单\n show: function show(type) {\n var _this5 = this;\n this.boxType = type;\n var callback = function callback(fn) {\n _this5.fullscreen = _this5.crud.tableOption.dialogFullscreen;\n _this5.boxVisible = true;\n _this5.loading = false;\n _this5.$nextTick(function () {\n _this5.initFun();\n fn && fn();\n });\n };\n var loading = function loading() {\n callback(function () {\n _this5.loading = true;\n });\n };\n if (typeof this.crud.beforeOpen === \"function\") {\n this.crud.beforeOpen(callback, this.boxType, loading);\n } else {\n callback();\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?./node_modules/.pnpm/babel-loader@8.3.0_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
558
558
|
|
559
559
|
/***/ }),
|
560
560
|
|
@@ -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 _grid_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./grid/index */ \"./packages/element-ui/crud/grid/index.vue\");\n/* harmony import */ var _table_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./table-page */ \"./packages/element-ui/crud/table-page.vue\");\n/* harmony import */ var _header_search__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./header-search */ \"./packages/element-ui/crud/header-search.vue\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./column */ \"./packages/element-ui/crud/column.vue\");\n/* harmony import */ var _header_menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./header-menu */ \"./packages/element-ui/crud/header-menu.vue\");\n/* harmony import */ var _dialog_column__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog-column */ \"./packages/element-ui/crud/dialog-column.vue\");\n/* harmony import */ var _dialog_filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog-filter */ \"./packages/element-ui/crud/dialog-filter.vue\");\n/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog-form */ \"./packages/element-ui/crud/dialog-form.vue\");\n/* harmony import */ var _dialog_excel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dialog-excel */ \"./packages/element-ui/crud/dialog-excel.vue\");\n/* harmony import */ var _column_menu__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column-menu */ \"./packages/element-ui/crud/column-menu.vue\");\n/* harmony import */ var _column_default__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./column-default */ \"./packages/element-ui/crud/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_19__ = __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\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\"])('crud'), core_locale__WEBPACK_IMPORTED_MODULE_7__[\"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_8__[\"default\"],\n columnDefault: _column_default__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n //其它列,\n columnMenu: _column_menu__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n //操作栏,\n tableGrid: _grid_index__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n tablePage: _table_page__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //分页\n headerSearch: _header_search__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n //搜索\n headerMenu: _header_menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_column__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //显隐列\n dialogFilter: _dialog_filter__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n //过滤器\n dialogExcel: _dialog_excel__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n //导出数据\n dialogForm: _dialog_form__WEBPACK_IMPORTED_MODULE_12__[\"default\"] //分页,\n },\n data: function data() {\n return {\n reload: Math.random(),\n cellForm: {\n list: []\n },\n config: _config_js__WEBPACK_IMPORTED_MODULE_16__[\"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 gridShow: false\n };\n },\n created: function created() {\n this.gridShow = this.tableOption.grid;\n },\n mounted: function mounted() {\n this.dataInit();\n this.getTableHeight();\n this.refreshTable();\n },\n computed: {\n tableName: function tableName() {\n return this.gridShow ? 'tableGrid' : 'elTable';\n },\n tableColumnName: function tableColumnName() {\n return this.gridShow ? 'tableGridColumn' : 'elTableColumn';\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_18__[\"DIC_PROPS\"].rowParentKey;\n },\n childrenKey: function childrenKey() {\n return this.treeProps.children || global_variable__WEBPACK_IMPORTED_MODULE_18__[\"DIC_PROPS\"].children;\n },\n hasChildrenKey: function hasChildrenKey() {\n return this.treeProps.hasChildren || global_variable__WEBPACK_IMPORTED_MODULE_18__[\"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', 'Header'], 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_17__[\"calcCascader\"])(result);\n return result;\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 tableOption = this.deepClone(this.tableOption);\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_19__[\"getColumn\"])(tableOption.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 beforeClose: Function,\n beforeOpen: Function,\n rowStyle: [Function, Object],\n cellStyle: [Function, Object],\n rowClassName: [Function, String],\n cellClassName: [Function, String],\n headerCellClassName: [Function, String],\n headerRowClassName: [Function, String],\n headerRowStyle: [Function, Object],\n headerCellStyle: [Function, Object],\n uploadSized: 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 methods: {\n handleGridShow: function handleGridShow() {\n this.gridShow = !this.gridShow;\n this.$emit('grid-status-change', this.gridShow);\n },\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 clientHeight = document.documentElement.clientHeight;\n var calcHeight = _this2.calcHeight || 0;\n var tableRef = _this2.$refs.table;\n var tablePageRef = _this2.$refs.tablePage;\n var tableHeight = clientHeight - calcHeight;\n if (tableRef && tableRef.$el.getBoundingClientRect) {\n var tableBoundingClientRect = tableRef.$el.getBoundingClientRect();\n tableHeight -= tableBoundingClientRect.top;\n }\n if (tablePageRef && tablePageRef.$el.getBoundingClientRect) {\n var tablePageBoundingClientRect = tablePageRef.$el.getBoundingClientRect();\n tableHeight -= tablePageBoundingClientRect.height;\n }\n _this2.tableHeight = tableHeight;\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_16__[\"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.$emit('selection-clear', this.deepClone(this.tableSelect));\n this.$refs.table.clearSelection();\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, checked) {\n var _this4 = this;\n if (rows) {\n rows.forEach(function (row) {\n _this4.$refs.table.toggleRowSelection(row, checked);\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_17__[\"formInitVal\"])(this.propOption).tableForm;\n row = this.deepClone(Object.assign({\n $cellEdit: true,\n $index: len\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] = row;\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 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 _this6 = this;\n return new Promise(function (resolve) {\n _this6.$refs.cellForm.validate(function (valid, msg) {\n resolve(msg);\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 _this7 = this;\n this.$emit(\"row-del\", row, index, function () {\n var _this7$findData = _this7.findData(row[_this7.rowKey]),\n parentList = _this7$findData.parentList,\n index = _this7$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 _this8 = this;\n var sumsList = {};\n var sums = [];\n var columns = param.columns,\n data = param.data;\n //如果自己写逻辑则调用summaryMethod方法\n if (typeof this.summaryMethod === \"function\") {\n sums = this.summaryMethod(param);\n columns.forEach(function (column, index) {\n sumsList[column.property] = sums[index];\n });\n this.sumsList = sumsList;\n } else {\n columns.forEach(function (column, index) {\n var currItem = _this8.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 } else if (!el) return;\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_16__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_16__[\"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 _this9 = this;\n var result = {};\n var callback = function callback(parentList, parent) {\n parentList.forEach(function (ele, index) {\n if (ele[_this9.rowKey] == id) {\n result = {\n item: ele,\n index: index,\n parentList: parentList,\n parent: parent\n };\n }\n if (ele[_this9.childrenKey]) {\n callback(ele[_this9.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_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/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 _grid_index__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./grid/index */ \"./packages/element-ui/crud/grid/index.vue\");\n/* harmony import */ var _table_page__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./table-page */ \"./packages/element-ui/crud/table-page.vue\");\n/* harmony import */ var _header_search__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./header-search */ \"./packages/element-ui/crud/header-search.vue\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var _column__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./column */ \"./packages/element-ui/crud/column.vue\");\n/* harmony import */ var _header_menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./header-menu */ \"./packages/element-ui/crud/header-menu.vue\");\n/* harmony import */ var _dialog_column__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog-column */ \"./packages/element-ui/crud/dialog-column.vue\");\n/* harmony import */ var _dialog_filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog-filter */ \"./packages/element-ui/crud/dialog-filter.vue\");\n/* harmony import */ var _dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog-form */ \"./packages/element-ui/crud/dialog-form.vue\");\n/* harmony import */ var _dialog_excel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dialog-excel */ \"./packages/element-ui/crud/dialog-excel.vue\");\n/* harmony import */ var _column_menu__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column-menu */ \"./packages/element-ui/crud/column-menu.vue\");\n/* harmony import */ var _column_default__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./column-default */ \"./packages/element-ui/crud/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_19__ = __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\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\"])('crud'), core_locale__WEBPACK_IMPORTED_MODULE_7__[\"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_8__[\"default\"],\n columnDefault: _column_default__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n //其它列,\n columnMenu: _column_menu__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n //操作栏,\n tableGrid: _grid_index__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n tablePage: _table_page__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n //分页\n headerSearch: _header_search__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n //搜索\n headerMenu: _header_menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_column__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //显隐列\n dialogFilter: _dialog_filter__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n //过滤器\n dialogExcel: _dialog_excel__WEBPACK_IMPORTED_MODULE_13__[\"default\"],\n //导出数据\n dialogForm: _dialog_form__WEBPACK_IMPORTED_MODULE_12__[\"default\"] //分页,\n },\n data: function data() {\n return {\n reload: Math.random(),\n cellForm: {\n list: []\n },\n config: _config_js__WEBPACK_IMPORTED_MODULE_16__[\"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 gridShow: false\n };\n },\n created: function created() {\n this.gridShow = this.tableOption.grid;\n },\n mounted: function mounted() {\n this.dataInit();\n this.getTableHeight();\n this.refreshTable();\n },\n computed: {\n tableName: function tableName() {\n return this.gridShow ? 'tableGrid' : 'elTable';\n },\n tableColumnName: function tableColumnName() {\n return this.gridShow ? 'tableGridColumn' : 'elTableColumn';\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_18__[\"DIC_PROPS\"].rowParentKey;\n },\n childrenKey: function childrenKey() {\n return this.treeProps.children || global_variable__WEBPACK_IMPORTED_MODULE_18__[\"DIC_PROPS\"].children;\n },\n hasChildrenKey: function hasChildrenKey() {\n return this.treeProps.hasChildren || global_variable__WEBPACK_IMPORTED_MODULE_18__[\"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', 'Header'], 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_17__[\"calcCascader\"])(result);\n return result;\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 tableOption = this.deepClone(this.tableOption);\n return Object(utils_util__WEBPACK_IMPORTED_MODULE_19__[\"getColumn\"])(tableOption.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 beforeClose: Function,\n beforeOpen: Function,\n rowStyle: [Function, Object],\n cellStyle: [Function, Object],\n rowClassName: [Function, String],\n cellClassName: [Function, String],\n headerCellClassName: [Function, String],\n headerRowClassName: [Function, String],\n headerRowStyle: [Function, Object],\n headerCellStyle: [Function, Object],\n uploadSized: 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 methods: {\n handleGridShow: function handleGridShow() {\n this.gridShow = !this.gridShow;\n this.$emit('grid-status-change', this.gridShow);\n },\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 clientHeight = document.documentElement.clientHeight;\n var calcHeight = _this2.calcHeight || 0;\n var tableRef = _this2.$refs.table;\n var tablePageRef = _this2.$refs.tablePage;\n var tableHeight = clientHeight - calcHeight;\n if (tableRef && tableRef.$el.getBoundingClientRect) {\n var tableBoundingClientRect = tableRef.$el.getBoundingClientRect();\n tableHeight -= tableBoundingClientRect.top;\n }\n if (tablePageRef && tablePageRef.$el.getBoundingClientRect) {\n var tablePageBoundingClientRect = tablePageRef.$el.getBoundingClientRect();\n tableHeight -= tablePageBoundingClientRect.height;\n }\n _this2.tableHeight = tableHeight;\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_16__[\"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.$emit('selection-clear', this.deepClone(this.tableSelect));\n this.$refs.table.clearSelection();\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 notHideColumn = column.filter(function (ele) {\n return ele.hide != true;\n });\n var newColumn = notHideColumn[newIndex];\n var oldColumn = notHideColumn[oldIndex];\n newIndex = column.findIndex(function (ele) {\n return ele.prop == newColumn.prop;\n });\n oldIndex = column.findIndex(function (ele) {\n return ele.prop == oldColumn.prop;\n });\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, checked) {\n var _this4 = this;\n if (rows) {\n rows.forEach(function (row) {\n _this4.$refs.table.toggleRowSelection(row, checked);\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_17__[\"formInitVal\"])(this.propOption).tableForm;\n row = this.deepClone(Object.assign({\n $cellEdit: true,\n $index: len\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] = row;\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 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 _this6 = this;\n return new Promise(function (resolve) {\n _this6.$refs.cellForm.validate(function (valid, msg) {\n resolve(msg);\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 _this7 = this;\n this.$emit(\"row-del\", row, index, function () {\n var _this7$findData = _this7.findData(row[_this7.rowKey]),\n parentList = _this7$findData.parentList,\n index = _this7$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 _this8 = this;\n var sumsList = {};\n var sums = [];\n var columns = param.columns,\n data = param.data;\n //如果自己写逻辑则调用summaryMethod方法\n if (typeof this.summaryMethod === \"function\") {\n sums = this.summaryMethod(param);\n columns.forEach(function (column, index) {\n sumsList[column.property] = sums[index];\n });\n this.sumsList = sumsList;\n } else {\n columns.forEach(function (column, index) {\n var currItem = _this8.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 } else if (!el) return;\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_1__[\"default\"].logs(\"Sortable\");\n return;\n }\n return window.Sortable.create(el, {\n ghostClass: _config_js__WEBPACK_IMPORTED_MODULE_16__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_16__[\"default\"].ghostClass,\n animation: 100,\n delay: 0,\n onEnd: function onEnd(evt) {\n return callback(evt);\n }\n });\n },\n findData: function findData(id) {\n var _this9 = this;\n var result = {};\n var callback = function callback(parentList, parent) {\n parentList.forEach(function (ele, index) {\n if (ele[_this9.rowKey] == id) {\n result = {\n item: ele,\n index: index,\n parentList: parentList,\n parent: parent\n };\n }\n if (ele[_this9.childrenKey]) {\n callback(ele[_this9.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_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/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 _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/form/config.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar count = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"form\",\n mixins: [Object(common_common_init__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('form')],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"]\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\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 config: _config_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n activeName: '',\n allDisabled: false,\n tableOption: {},\n form: {},\n formCreate: false,\n formList: [],\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 this.setLabel();\n this.setVal();\n }\n },\n deep: true\n },\n tabsActive: {\n handler: function handler(val) {\n this.activeName = this.tabsActive;\n },\n immediate: true\n },\n DIC: {\n handler: function 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 isMenu: function isMenu() {\n return this.columnOption.length != 1;\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 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 tabsType: function tabsType() {\n return this.parentOption.tabsType;\n },\n columnLen: function columnLen() {\n return this.columnOption.length;\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 = [];\n this.columnOption.forEach(function (option) {\n if (option.display !== false) {\n option.column.forEach(function (column) {\n list.push(column);\n });\n }\n });\n return list;\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n columnOption: function columnOption() {\n var _this3 = this;\n var tableOption = this.deepClone(this.tableOption);\n var column = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"getColumn\"])(tableOption.column);\n var group = tableOption.group || [];\n var footer = tableOption.footer || [];\n group.unshift({\n header: false,\n column: column\n });\n if (footer.length !== 0) {\n group.push({\n header: false,\n column: footer\n });\n }\n group.forEach(function (ele, index) {\n ele.column = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"getColumn\"])(ele.column);\n // 循环列的全部属性\n ele.column.forEach(function (column, cindex) {\n //动态计算列的位置,如果为隐藏状态则或则手机状态不计算\n if (column.display !== false && !_this3.isMobile) {\n column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCount\"])(column, _this3.config.span, cindex === 0);\n }\n });\n //处理级联属性\n ele.column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCascader\"])(ele.column);\n //根据order排序\n ele.column = ele.column.sort(function (a, b) {\n return (b.order || 0) - (a.order || 0);\n });\n });\n return group;\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 tabsActive: function tabsActive() {\n return this.vaildData(this.tableOption.tabsActive + '', '1');\n },\n isMock: function isMock() {\n return this.vaildData(this.parentOption.mockBtn, false);\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n setTimeout(function () {\n _this4.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 isGroupShow: function isGroupShow(item, index) {\n if (this.isTabs) {\n return index == this.activeName || index == 0;\n } else {\n return true;\n }\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 });\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 var value = _this6.form;\n if (!_this6.formBind[prop]) {\n var bindList = [];\n if (bind) {\n var formProp = _this6.$watch('form.' + prop, function (n, o) {\n Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"setAsVal\"])(_this6.form, bind, n);\n });\n var formDeep = _this6.$watch('form.' + bind, function (n, o) {\n _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 controlList = control(_this6.form[column.prop], _this6.form) || {};\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 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: function setLabel() {\n var _this8 = this;\n if (this.tableOption.filterNull === true) {\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(this.form, [''], false);\n }\n if (this.tableOption.filterDic == true) {\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(this.form, ['$'], false);\n } else {\n this.propOption.forEach(function (column) {\n var result;\n var DIC = _this8.DIC[column.prop];\n if (_this8.validatenull(DIC)) return;\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_0__[\"detail\"])(_this8.form, column, _this8.tableOption, DIC);\n if (result) {\n _this8.$set(_this8.form, \"$\".concat(column.prop), result);\n } else {\n _this8.$delete(_this8.form, \"$\".concat(column.prop));\n }\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 getItemParams: function getItemParams(column, item, type, isPx) {\n var result;\n if (!this.validatenull(column[type])) {\n result = column[type];\n } else if (!this.validatenull(item[type])) {\n result = item[type];\n } else {\n result = this.parentOption[type];\n }\n result = this.vaildData(result, this.config[type]);\n return isPx ? this.setPx(result) : result;\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 _this9 = this;\n this.$nextTick(function () {\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = _this9.form[column.prop];\n // 下一个节点\n var columnNext = _this9.findObject(list, columnNextProp);\n if (_this9.validatenull(columnNext)) return;\n // 如果不是首次加载则清空全部关联节点的属性值和字典值\n if (_this9.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this9.form[ele] = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"blankVal\"])(_this9.form[ele]);\n _this9.$set(_this9.DIC, ele, []);\n });\n }\n /**\n * 1.判断当前节点是否有下级节点\n * 2.判断当前节点是否有值\n */\n if (_this9.validatenull(cascader) || _this9.validatenull(value) || _this9.validatenull(columnNext)) {\n return;\n }\n // 根据当前节点值获取下一个节点的字典\n Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this9.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this9.formList.includes(str)) _this9.formList.push(str);\n // 修改字典\n var dic = res || [];\n _this9.$set(_this9.DIC, columnNextProp, dic);\n if (!_this9.validatenull(dic) && !_this9.validatenull(dic) && !_this9.validatenull(columnNext.cascaderIndex) && _this9.validatenull(_this9.form[columnNextProp])) {\n _this9.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handlePrint: function handlePrint() {\n this.$Print(this.$el);\n },\n propChange: function propChange(option, column) {\n var key = column.prop;\n if (!count[key]) {\n if (column.cascader) this.handleChange(option, column);\n }\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n handleMock: function handleMock() {\n var _this10 = this;\n if (!this.isMock) return;\n this.columnOption.forEach(function (column) {\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(column.column, _this10.DIC, _this10.form, _this10.isMock);\n if (!_this10.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this10.form[ele] = form[ele];\n });\n }\n });\n this.$nextTick(function () {\n _this10.clearValidate();\n _this10.$emit('mock-change', _this10.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 return this.vaildData(column[key], 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 return this.vaildData(column[key], 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 return this.vaildData(column[key], true);\n },\n clearValidate: function clearValidate(list) {\n if (this.$refs.form) this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this11 = this;\n return new Promise(function (resolve) {\n _this11.$refs.form.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validate: function validate(callback) {\n var _this12 = this;\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n _this12.dynamicOption.forEach(function (ele) {\n var isForm = ele.children.type === 'form';\n dynamicName.push(ele.prop);\n if (isForm) {\n if (!_this12.validatenull(_this12.$refs[ele.prop][0].$refs.temp.$refs.main)) {\n _this12.$refs[ele.prop][0].$refs.temp.$refs.main.forEach(function (ele) {\n dynamicList.push(ele.validateCellForm());\n });\n }\n } else {\n dynamicList.push(_this12.$refs[ele.prop][0].$refs.temp.$refs.main.validateCellForm());\n }\n });\n Promise.all(dynamicList).then(function (res) {\n var count = 0;\n res.forEach(function (error, index) {\n if (!_this12.validatenull(error)) {\n dynamicError[dynamicName[index]] = error;\n }\n });\n var result = Object.assign(dynamicError, msg);\n if (_this12.validatenull(result)) {\n _this12.show();\n callback && callback(true, _this12.hide, result);\n } else {\n callback && callback(false, _this12.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this13 = this;\n var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (reset) {\n var propList = this.propOption.map(function (ele) {\n return ele.prop;\n });\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"clearVal\"])(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));\n }\n this.$nextTick(function () {\n _this13.clearValidate();\n _this13.$emit(\"reset-change\");\n });\n },\n resetFields: function resetFields() {\n this.$refs.form.resetFields();\n },\n show: function show() {\n this.allDisabled = true;\n },\n hide: function hide() {\n this.allDisabled = false;\n },\n submit: function submit() {\n var _this14 = this;\n this.validate(function (valid, hide, msg) {\n if (valid) {\n _this14.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(_this14.form, ['$']), _this14.hide);\n } else {\n _this14.$emit(\"error\", msg);\n }\n });\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_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/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 _menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu */ \"./packages/element-ui/form/menu.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/form/config.js\");\n\n\n\n\n\n\n\n\n\n\n\nvar count = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_1__[\"default\"])({\n name: \"form\",\n mixins: [Object(common_common_init__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('form')],\n components: {\n formTemp: common_components_form_index__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n formMenu: _menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"]\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\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 config: _config_js__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n activeName: '',\n allDisabled: false,\n tableOption: {},\n form: {},\n formCreate: false,\n formList: [],\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 this.setLabel();\n this.setVal();\n }\n },\n deep: true\n },\n tabsActive: {\n handler: function handler(val) {\n this.activeName = this.tabsActive;\n },\n immediate: true\n },\n DIC: {\n handler: function 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 isMenu: function isMenu() {\n return this.columnOption.length != 1;\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 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 tabsType: function tabsType() {\n return this.parentOption.tabsType;\n },\n columnLen: function columnLen() {\n return this.columnOption.length;\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 = [];\n this.columnOption.forEach(function (option) {\n if (option.display !== false) {\n option.column.forEach(function (column) {\n list.push(column);\n });\n }\n });\n return list;\n },\n parentOption: function parentOption() {\n return this.tableOption || {};\n },\n columnOption: function columnOption() {\n var _this3 = this;\n var tableOption = this.deepClone(this.tableOption);\n var column = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"getColumn\"])(tableOption.column);\n var group = tableOption.group || [];\n var footer = tableOption.footer || [];\n group.unshift({\n header: false,\n column: column\n });\n if (footer.length !== 0) {\n group.push({\n header: false,\n column: footer\n });\n }\n group.forEach(function (ele, index) {\n ele.column = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"getColumn\"])(ele.column);\n // 循环列的全部属性\n ele.column.forEach(function (column, cindex) {\n //动态计算列的位置,如果为隐藏状态则或则手机状态不计算\n if (column.display !== false && !_this3.isMobile) {\n column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCount\"])(column, _this3.config.span, cindex === 0);\n }\n });\n //处理级联属性\n ele.column = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_5__[\"calcCascader\"])(ele.column);\n //根据order排序\n ele.column = ele.column.sort(function (a, b) {\n return (b.order || 0) - (a.order || 0);\n });\n });\n return group;\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 tabsActive: function tabsActive() {\n return this.vaildData(this.tableOption.tabsActive + '', '1');\n },\n isMock: function isMock() {\n return this.vaildData(this.parentOption.mockBtn, false);\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n setTimeout(function () {\n _this4.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 isGroupShow: function isGroupShow(item, index) {\n if (this.isTabs) {\n return index == this.activeName || index == 0;\n } else {\n return true;\n }\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 });\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 var value = _this6.form;\n if (!_this6.formBind[prop]) {\n var bindList = [];\n if (bind) {\n var formProp = _this6.$watch('form.' + prop, function (n, o) {\n Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"setAsVal\"])(_this6.form, bind, n);\n });\n var formDeep = _this6.$watch('form.' + bind, function (n, o) {\n _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 controlResolve = function controlResolve(list) {\n Object.keys(list).forEach(function (item) {\n var ele = Object.assign(_this6.objectOption[item] || {}, list[item]);\n _this6.objectOption[item] = ele;\n if (list[item].dicData) _this6.DIC[item] = list[item].dicData;\n });\n };\n var controlList = control(_this6.form[column.prop], _this6.form) || {};\n if (controlList instanceof Promise) {\n controlList.then(function (res) {\n controlResolve(res);\n });\n } else {\n controlResolve(controlList);\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 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: function setLabel() {\n var _this8 = this;\n if (this.tableOption.filterNull === true) {\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(this.form, [''], false);\n }\n if (this.tableOption.filterDic == true) {\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(this.form, ['$'], false);\n } else {\n this.propOption.forEach(function (column) {\n var result;\n var DIC = _this8.DIC[column.prop];\n if (_this8.validatenull(DIC)) return;\n result = Object(core_detail__WEBPACK_IMPORTED_MODULE_0__[\"detail\"])(_this8.form, column, _this8.tableOption, DIC);\n if (result) {\n _this8.$set(_this8.form, \"$\".concat(column.prop), result);\n } else {\n _this8.$delete(_this8.form, \"$\".concat(column.prop));\n }\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 getItemParams: function getItemParams(column, item, type, isPx) {\n var result;\n if (!this.validatenull(column[type])) {\n result = column[type];\n } else if (!this.validatenull(item[type])) {\n result = item[type];\n } else {\n result = this.parentOption[type];\n }\n result = this.vaildData(result, this.config[type]);\n return isPx ? this.setPx(result) : result;\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 _this9 = this;\n this.$nextTick(function () {\n var cascader = column.cascader;\n var str = cascader.join(\",\");\n cascader.forEach(function (item) {\n var columnNextProp = item;\n var value = _this9.form[column.prop];\n // 下一个节点\n var columnNext = _this9.findObject(list, columnNextProp);\n if (_this9.validatenull(columnNext)) return;\n // 如果不是首次加载则清空全部关联节点的属性值和字典值\n if (_this9.formList.includes(str)) {\n //清空子类字典列表和值\n cascader.forEach(function (ele) {\n _this9.form[ele] = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"blankVal\"])(_this9.form[ele]);\n _this9.$set(_this9.DIC, ele, []);\n });\n }\n /**\r\n * 1.判断当前节点是否有下级节点\r\n * 2.判断当前节点是否有值\r\n */\n if (_this9.validatenull(cascader) || _this9.validatenull(value) || _this9.validatenull(columnNext)) {\n return;\n }\n // 根据当前节点值获取下一个节点的字典\n Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])({\n column: columnNext,\n value: value,\n form: _this9.form\n }).then(function (res) {\n //首次加载的放入队列记录\n if (!_this9.formList.includes(str)) _this9.formList.push(str);\n // 修改字典\n var dic = res || [];\n _this9.$set(_this9.DIC, columnNextProp, dic);\n if (!_this9.validatenull(dic) && !_this9.validatenull(dic) && !_this9.validatenull(columnNext.cascaderIndex) && _this9.validatenull(_this9.form[columnNextProp])) {\n _this9.form[columnNextProp] = dic[columnNext.cascaderIndex][(columnNext.props || {}).value || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_PROPS\"].value];\n }\n });\n });\n });\n },\n handlePrint: function handlePrint() {\n this.$Print(this.$el);\n },\n propChange: function propChange(option, column) {\n var key = column.prop;\n if (!count[key]) {\n if (column.cascader) this.handleChange(option, column);\n }\n count[key] = true;\n this.$nextTick(function () {\n return count[key] = false;\n });\n },\n handleMock: function handleMock() {\n var _this10 = this;\n if (!this.isMock) return;\n this.columnOption.forEach(function (column) {\n var form = Object(utils_mock__WEBPACK_IMPORTED_MODULE_8__[\"default\"])(column.column, _this10.DIC, _this10.form, _this10.isMock);\n if (!_this10.validatenull(form)) {\n Object.keys(form).forEach(function (ele) {\n _this10.form[ele] = form[ele];\n });\n }\n });\n this.$nextTick(function () {\n _this10.clearValidate();\n _this10.$emit('mock-change', _this10.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 return this.vaildData(column[key], 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 return this.vaildData(column[key], 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 return this.vaildData(column[key], true);\n },\n clearValidate: function clearValidate(list) {\n if (this.$refs.form) this.$refs.form.clearValidate(list);\n },\n validateCellForm: function validateCellForm() {\n var _this11 = this;\n return new Promise(function (resolve) {\n _this11.$refs.form.validate(function (valid, msg) {\n resolve(msg);\n });\n });\n },\n validate: function validate(callback) {\n var _this12 = this;\n this.$refs.form.validate(function (valid, msg) {\n var dynamicList = [];\n var dynamicName = [];\n var dynamicError = {};\n _this12.dynamicOption.forEach(function (ele) {\n var isForm = ele.children.type === 'form';\n dynamicName.push(ele.prop);\n if (isForm) {\n if (!_this12.validatenull(_this12.$refs[ele.prop][0].$refs.temp.$refs.main)) {\n _this12.$refs[ele.prop][0].$refs.temp.$refs.main.forEach(function (ele) {\n dynamicList.push(ele.validateCellForm());\n });\n }\n } else {\n dynamicList.push(_this12.$refs[ele.prop][0].$refs.temp.$refs.main.validateCellForm());\n }\n });\n Promise.all(dynamicList).then(function (res) {\n var count = 0;\n res.forEach(function (error, index) {\n if (!_this12.validatenull(error)) {\n dynamicError[dynamicName[index]] = error;\n }\n });\n var result = Object.assign(dynamicError, msg);\n if (_this12.validatenull(result)) {\n _this12.show();\n callback && callback(true, _this12.hide, result);\n } else {\n callback && callback(false, _this12.hide, result);\n }\n });\n });\n },\n resetForm: function resetForm() {\n var _this13 = this;\n var reset = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;\n if (reset) {\n var propList = this.propOption.map(function (ele) {\n return ele.prop;\n });\n this.form = Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"clearVal\"])(this.form, propList, (this.tableOption.filterParams || []).concat([this.rowKey]));\n }\n this.$nextTick(function () {\n _this13.clearValidate();\n _this13.$emit(\"reset-change\");\n });\n },\n resetFields: function resetFields() {\n this.$refs.form.resetFields();\n },\n show: function show() {\n this.allDisabled = true;\n },\n hide: function hide() {\n this.allDisabled = false;\n },\n submit: function submit() {\n var _this14 = this;\n this.validate(function (valid, hide, msg) {\n if (valid) {\n _this14.$emit(\"submit\", Object(utils_util__WEBPACK_IMPORTED_MODULE_7__[\"filterParams\"])(_this14.form, ['$']), _this14.hide);\n } else {\n _this14.$emit(\"error\", msg);\n }\n });\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_@babel+core@7.24.0_webpack@4.47.0/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
714
714
|
|
715
715
|
/***/ }),
|
716
716
|
|
@@ -1214,15 +1214,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1214
1214
|
|
1215
1215
|
/***/ }),
|
1216
1216
|
|
1217
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/data/display/index.vue?vue&type=template&id=
|
1217
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/data/display/index.vue?vue&type=template&id=556c25ed":
|
1218
1218
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1219
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/data/display/index.vue?vue&type=template&id=
|
1219
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/data/display/index.vue?vue&type=template&id=556c25ed ***!
|
1220
1220
|
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1221
1221
|
/*! exports provided: render, staticRenderFns */
|
1222
1222
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1223
1223
|
|
1224
1224
|
"use strict";
|
1225
|
-
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',{staticClass:\"avue-data-display\"},[_c('el-row',{attrs:{\"span\":24}},_vm._l((_vm.data),function(item,index){return _c('el-col',{key:index,attrs:{\"md\":_vm.span,\"xs\":12,\"sm\":12}},[_c('div',{staticClass:\"item\",style:({color:_vm.color})},[_c('a',{attrs:{\"href\":item.href,\"target\":item.target},on:{\"click\":function($event){item.click&&item.click(item)}}},[_c('avue-count-up',{staticClass:\"count\",attrs:{\"animation\":item.animation || _vm.animation,\"decimals\":item.decimals || _vm.decimals,\"end\":item.count}}),_vm._v(\" \"),_c('span',{staticClass:\"splitLine\"}),_vm._v(\" \"),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(item.title))])],1)])])}),1)],1)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/data/display/index.vue?./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
1225
|
+
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',{staticClass:\"avue-data-display\"},[_c('el-row',{attrs:{\"span\":24}},_vm._l((_vm.data),function(item,index){return _c('el-col',{key:index,attrs:{\"md\":_vm.span,\"xs\":12,\"sm\":12}},[_c('div',{staticClass:\"item\",style:({color:_vm.color})},[_c('a',{attrs:{\"href\":item.href,\"target\":item.target},on:{\"click\":function($event){item.click&&item.click(item)}}},[_c('avue-count-up',{staticClass:\"count\",style:({color:item.color}),attrs:{\"animation\":item.animation || _vm.animation,\"decimals\":item.decimals || _vm.decimals,\"end\":item.count}}),_vm._v(\" \"),_c('span',{staticClass:\"splitLine\"}),_vm._v(\" \"),_c('div',{staticClass:\"title\",style:({color:item.fontColor})},[_vm._v(_vm._s(item.title))])],1)])])}),1)],1)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/data/display/index.vue?./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
1226
1226
|
|
1227
1227
|
/***/ }),
|
1228
1228
|
|
@@ -1466,9 +1466,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1466
1466
|
|
1467
1467
|
/***/ }),
|
1468
1468
|
|
1469
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-default.vue?vue&type=template&id=
|
1469
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-default.vue?vue&type=template&id=404b2d89":
|
1470
1470
|
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1471
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-default.vue?vue&type=template&id=
|
1471
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-default.vue?vue&type=template&id=404b2d89 ***!
|
1472
1472
|
\*************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1473
1473
|
/*! exports provided: render, staticRenderFns */
|
1474
1474
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1538,9 +1538,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1538
1538
|
|
1539
1539
|
/***/ }),
|
1540
1540
|
|
1541
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=
|
1541
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=4087f4c9":
|
1542
1542
|
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1543
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=
|
1543
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=4087f4c9 ***!
|
1544
1544
|
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1545
1545
|
/*! exports provided: render, staticRenderFns */
|
1546
1546
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1562,15 +1562,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1562
1562
|
|
1563
1563
|
/***/ }),
|
1564
1564
|
|
1565
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
1565
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=7c6b8025":
|
1566
1566
|
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1567
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
1567
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=7c6b8025 ***!
|
1568
1568
|
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1569
1569
|
/*! exports provided: render, staticRenderFns */
|
1570
1570
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1571
1571
|
|
1572
1572
|
"use strict";
|
1573
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.boxVisible)?_c('div',[_c(_vm.dialogType,_vm._b({directives:[{name:\"dialogDrag\",rawName:\"v-dialogDrag\",value:(_vm.vaildData(_vm.crud.tableOption.dialogDrag,_vm.config.dialogDrag)),expression:\"vaildData(crud.tableOption.dialogDrag,config.dialogDrag)\"}],tag:\"component\",class:['avue-dialog',_vm.b('dialog'),{'avue-dialog--fullscreen':_vm.fullscreen}],attrs:{\"lock-scroll\":\"\",\"destroy-on-close\":_vm.crud.tableOption.dialogDestroy,\"wrapperClosable\":_vm.crud.tableOption.dialogClickModal,\"direction\":_vm.direction,\"custom-class\":_vm.crud.tableOption.dialogCustomClass,\"modal-append-to-body\":_vm.vaildData(_vm.crud.tableOption.dialogModalAppendToBody,_vm.$AVUE.modalAppendToBody),\"append-to-body\":_vm.vaildData(_vm.crud.tableOption.appendToBody,_vm.$AVUE.appendToBody),\"top\":_vm.dialogTop,\"title\":_vm.dialogTitle,\"close-on-press-escape\":_vm.crud.tableOption.dialogEscape,\"close-on-click-modal\":_vm.vaildData(_vm.crud.tableOption.dialogClickModal,false),\"modal\":_vm.crud.tableOption.dialogModal,\"show-close\":_vm.crud.tableOption.dialogCloseBtn,\"visible\":_vm.boxVisible,\"before-close\":_vm.hide},on:{\"update:visible\":function($event){_vm.boxVisible=$event}}},'component',_vm.params,false),[_c('div',{class:_vm.b('dialog__header'),attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.dialogTitle))]),_vm._v(\" \"),_c('div',{class:_vm.b('dialog__menu')},[_c('i',{staticClass:\"el-dialog__close\",class:_vm.fullscreen?'el-icon-news':'el-icon-full-screen',on:{\"click\":_vm.handleFullScreen}})])]),_vm._v(\" \"),_c('avue-form',_vm._b({ref:\"tableForm\",attrs:{\"status\":_vm.disabled,\"option\":_vm.option},on:{\"update:status\":function($event){_vm.disabled=$event},\"change\":_vm.handleChange,\"submit\":_vm.handleSubmit,\"reset-change\":_vm.hide,\"tab-click\":_vm.handleTabClick,\"error\":_vm.handleError},scopedSlots:_vm._u([_vm._l((_vm.crud.formSlot),function(item){return {key:_vm.getSlotName(item),fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n type:_vm.boxType\n }) )]}}})],null,true),model:{value:(_vm.crud.tableForm),callback:function ($$v) {_vm.$set(_vm.crud, \"tableForm\", $$v)},expression:\"crud.tableForm\"}},'avue-form',_vm.$uploadFun(null,_vm.crud),false)),_vm._v(\" \"),_c('span',{staticClass:\"avue-dialog__footer\",class:'avue-dialog__footer--'+_vm.dialogMenuPosition},[(_vm.vaildData(_vm.option.mockBtn,false) && !_vm.isView)?_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.disabled,\"size\":_vm.crud.size,\"icon\":_vm.option.mockIcon},on:{\"click\":function($event){(_vm.$refs.tableForm || {}).handleMock}}},[_vm._v(\"\\n \"+_vm._s(_vm.option.mockText)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_vm._t(\"menuFormBefore\",null,null,_vm.menuParams()),_vm._v(\" \"),(_vm.vaildData(_vm.option.submitBtn,true) && !_vm.isView)?_c('el-button',{attrs:{\"loading\":_vm.disabled,\"size\":_vm.crud.controlSize,\"icon\":_vm.option.submitIcon,\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(_vm._s(_vm.option.submitText))]):_vm._e(),_vm._v(\" \"),(_vm.vaildData(_vm.option.emptyBtn,true) && !_vm.isView)?_c('el-button',{attrs:{\"
|
1573
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (_vm.boxVisible)?_c('div',[_c(_vm.dialogType,_vm._b({directives:[{name:\"dialogDrag\",rawName:\"v-dialogDrag\",value:(_vm.vaildData(_vm.crud.tableOption.dialogDrag,_vm.config.dialogDrag)),expression:\"vaildData(crud.tableOption.dialogDrag,config.dialogDrag)\"}],tag:\"component\",class:['avue-dialog',_vm.b('dialog'),{'avue-dialog--fullscreen':_vm.fullscreen}],attrs:{\"lock-scroll\":\"\",\"destroy-on-close\":_vm.crud.tableOption.dialogDestroy,\"wrapperClosable\":_vm.crud.tableOption.dialogClickModal,\"direction\":_vm.direction,\"custom-class\":_vm.crud.tableOption.dialogCustomClass,\"modal-append-to-body\":_vm.vaildData(_vm.crud.tableOption.dialogModalAppendToBody,_vm.$AVUE.modalAppendToBody),\"append-to-body\":_vm.vaildData(_vm.crud.tableOption.appendToBody,_vm.$AVUE.appendToBody),\"top\":_vm.dialogTop,\"title\":_vm.dialogTitle,\"close-on-press-escape\":_vm.crud.tableOption.dialogEscape,\"close-on-click-modal\":_vm.vaildData(_vm.crud.tableOption.dialogClickModal,false),\"modal\":_vm.crud.tableOption.dialogModal,\"show-close\":_vm.crud.tableOption.dialogCloseBtn,\"visible\":_vm.boxVisible,\"before-close\":_vm.hide},on:{\"update:visible\":function($event){_vm.boxVisible=$event}}},'component',_vm.params,false),[_c('div',{class:_vm.b('dialog__header'),attrs:{\"slot\":\"title\"},slot:\"title\"},[_c('span',{staticClass:\"el-dialog__title\"},[_vm._v(_vm._s(_vm.dialogTitle))]),_vm._v(\" \"),_c('div',{class:_vm.b('dialog__menu')},[_c('i',{staticClass:\"el-dialog__close\",class:_vm.fullscreen?'el-icon-news':'el-icon-full-screen',on:{\"click\":_vm.handleFullScreen}})])]),_vm._v(\" \"),_c('avue-form',_vm._b({directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"tableForm\",attrs:{\"status\":_vm.disabled,\"element-loading-text\":_vm.crud.tableOption.loadingText,\"element-loading-spinner\":_vm.crud.tableOption.loadingSpinner,\"element-loading-svg\":_vm.crud.tableOption.loadingSvg,\"element-loading-background\":_vm.crud.tableOption.loadingBackground,\"option\":_vm.option},on:{\"update:status\":function($event){_vm.disabled=$event},\"change\":_vm.handleChange,\"submit\":_vm.handleSubmit,\"reset-change\":_vm.hide,\"tab-click\":_vm.handleTabClick,\"error\":_vm.handleError},scopedSlots:_vm._u([_vm._l((_vm.crud.formSlot),function(item){return {key:_vm.getSlotName(item),fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n type:_vm.boxType\n }) )]}}})],null,true),model:{value:(_vm.crud.tableForm),callback:function ($$v) {_vm.$set(_vm.crud, \"tableForm\", $$v)},expression:\"crud.tableForm\"}},'avue-form',_vm.$uploadFun(null,_vm.crud),false)),_vm._v(\" \"),_c('span',{staticClass:\"avue-dialog__footer\",class:'avue-dialog__footer--'+_vm.dialogMenuPosition},[(_vm.vaildData(_vm.option.mockBtn,false) && !_vm.isView)?_c('el-button',{attrs:{\"type\":\"primary\",\"loading\":_vm.disabled||_vm.loading,\"size\":_vm.crud.size,\"icon\":_vm.option.mockIcon},on:{\"click\":function($event){(_vm.$refs.tableForm || {}).handleMock}}},[_vm._v(\"\\n \"+_vm._s(_vm.option.mockText)+\"\\n \")]):_vm._e(),_vm._v(\" \"),_vm._t(\"menuFormBefore\",null,null,_vm.menuParams()),_vm._v(\" \"),(_vm.vaildData(_vm.option.submitBtn,true) && !_vm.isView)?_c('el-button',{attrs:{\"loading\":_vm.disabled||_vm.loading,\"size\":_vm.crud.controlSize,\"icon\":_vm.option.submitIcon,\"type\":\"primary\"},on:{\"click\":_vm.submit}},[_vm._v(_vm._s(_vm.option.submitText))]):_vm._e(),_vm._v(\" \"),(_vm.vaildData(_vm.option.emptyBtn,true) && !_vm.isView)?_c('el-button',{attrs:{\"loading\":_vm.disabled||_vm.loading,\"size\":_vm.crud.controlSize,\"icon\":_vm.option.emptyIcon},on:{\"click\":_vm.reset}},[_vm._v(_vm._s(_vm.option.emptyText))]):_vm._e(),_vm._v(\" \"),_vm._t(\"menuForm\",null,null,_vm.menuParams())],2)],1)],1):_vm._e()\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
1574
1574
|
|
1575
1575
|
/***/ }),
|
1576
1576
|
|
@@ -1622,9 +1622,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1622
1622
|
|
1623
1623
|
/***/ }),
|
1624
1624
|
|
1625
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=
|
1625
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=825d0026":
|
1626
1626
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1627
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/index.vue?vue&type=template&id=
|
1627
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/index.vue?vue&type=template&id=825d0026 ***!
|
1628
1628
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1629
1629
|
/*! exports provided: render, staticRenderFns */
|
1630
1630
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1706,9 +1706,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1706
1706
|
|
1707
1707
|
/***/ }),
|
1708
1708
|
|
1709
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=
|
1709
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=3bff5351":
|
1710
1710
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1711
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=
|
1711
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/form/index.vue?vue&type=template&id=3bff5351 ***!
|
1712
1712
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1713
1713
|
/*! exports provided: render, staticRenderFns */
|
1714
1714
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1922,15 +1922,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1922
1922
|
|
1923
1923
|
/***/ }),
|
1924
1924
|
|
1925
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=
|
1925
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=4f7cb236":
|
1926
1926
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1927
|
-
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=
|
1927
|
+
!*** ./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=4f7cb236 ***!
|
1928
1928
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1929
1929
|
/*! exports provided: render, staticRenderFns */
|
1930
1930
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1931
1931
|
|
1932
1932
|
"use strict";
|
1933
|
-
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('el-select',{ref:\"main\",class:_vm.b(),attrs:{\"size\":_vm.size,\"loading\":_vm.loading,\"loading-text\":_vm.loadingText,\"multiple\":_vm.multiple,\"filterable\":_vm.remote?true:_vm.filterable,\"remote\":_vm.remote,\"readonly\":_vm.readonly,\"no-match-text\":_vm.noMatchText,\"no-data-text\":_vm.noDataText,\"remote-method\":_vm.remote?_vm.handleRemoteMethod:undefined,\"popper-class\":_vm.popperClass,\"popper-append-to-body\":_vm.popperAppendToBody,\"collapse-tags\":_vm.tags,\"clearable\":_vm.clearableVal,\"placeholder\":_vm.placeholder,\"multiple-limit\":_vm.limit,\"allow-create\":_vm.allowCreate,\"default-first-option\":_vm.defaultFirstOption,\"disabled\":_vm.disabled},on:{\"focus\":_vm.handleFocus,\"blur\":_vm.handleBlur},nativeOn:{\"click\":function($event){return _vm.handleClick.apply(null, arguments)}},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:\"text\"}},[(_vm.group)?_vm._l((_vm.netDic),function(item,index){return _c('el-option-group',{key:index,attrs:{\"label\":_vm.getLabelText(item)}},_vm._l((item[_vm.groupsKey]),function(citem,cindex){return _c('el-option',{key:
|
1933
|
+
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('el-select',{ref:\"main\",class:_vm.b(),attrs:{\"size\":_vm.size,\"loading\":_vm.loading,\"loading-text\":_vm.loadingText,\"multiple\":_vm.multiple,\"filterable\":_vm.remote?true:_vm.filterable,\"remote\":_vm.remote,\"readonly\":_vm.readonly,\"no-match-text\":_vm.noMatchText,\"no-data-text\":_vm.noDataText,\"remote-method\":_vm.remote?_vm.handleRemoteMethod:undefined,\"popper-class\":_vm.popperClass,\"popper-append-to-body\":_vm.popperAppendToBody,\"collapse-tags\":_vm.tags,\"clearable\":_vm.clearableVal,\"placeholder\":_vm.placeholder,\"multiple-limit\":_vm.limit,\"allow-create\":_vm.allowCreate,\"default-first-option\":_vm.defaultFirstOption,\"disabled\":_vm.disabled},on:{\"focus\":_vm.handleFocus,\"blur\":_vm.handleBlur},nativeOn:{\"click\":function($event){return _vm.handleClick.apply(null, arguments)}},model:{value:(_vm.text),callback:function ($$v) {_vm.text=$$v},expression:\"text\"}},[(_vm.group)?_vm._l((_vm.netDic),function(item,index){return _c('el-option-group',{key:index,attrs:{\"label\":_vm.getLabelText(item)}},_vm._l((item[_vm.groupsKey]),function(citem,cindex){return _c('el-option',{key:citem[_vm.valueKey],class:citem[_vm.classNameKey],attrs:{\"disabled\":citem[_vm.disabledKey],\"label\":_vm.getLabelText(citem),\"value\":citem[_vm.valueKey]}},[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{\"label\":_vm.labelKey,\"value\":_vm.valueKey,\"item\":citem}):[_c('span',[_vm._v(_vm._s(_vm.getLabelText(citem)))]),_vm._v(\" \"),(citem[_vm.descKey])?_c('span',{class:_vm.b('desc')},[_vm._v(_vm._s(citem[_vm.descKey]))]):_vm._e()]],2)}),1)}):[(_vm.all&&_vm.multiple)?_c('el-checkbox',{class:_vm.b('check'),attrs:{\"value\":_vm.checked,\"checked\":_vm.checked,\"disabled\":_vm.disabled,\"indeterminate\":_vm.indeterminate},on:{\"change\":_vm.checkChange}},[_vm._v(\"全选\")]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.netDic),function(item,index){return _c('el-option',{key:item[_vm.valueKey],class:item[_vm.classNameKey],attrs:{\"disabled\":item[_vm.disabledKey],\"label\":_vm.getLabelText(item),\"value\":item[_vm.valueKey]}},[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{\"label\":_vm.labelKey,\"value\":_vm.valueKey,\"item\":item}):[_c('span',[_vm._v(_vm._s(_vm.getLabelText(item)))]),_vm._v(\" \"),(item[_vm.descKey])?_c('span',{class:_vm.b('desc')},[_vm._v(_vm._s(item[_vm.descKey]))]):_vm._e()]],2)})]],2)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options");
|
1934
1934
|
|
1935
1935
|
/***/ }),
|
1936
1936
|
|
@@ -2122,7 +2122,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
2122
2122
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2123
2123
|
|
2124
2124
|
"use strict";
|
2125
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n data: function data() {\n return {\n stringMode: false,\n name: '',\n text: undefined,\n propsHttpDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"],\n propsDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"]\n };\n },\n props: {\n blur: Function,\n focus: Function,\n change: Function,\n click: Function,\n typeformat: Function,\n control: Function,\n separator: {\n type: String,\n \"default\": global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_SPLIT\"]\n },\n params: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n listType: {\n type: String\n },\n tableData: {\n type: Object\n },\n value: {},\n column: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n label: {\n type: String,\n \"default\": ''\n },\n readonly: {\n type: Boolean,\n \"default\": false\n },\n size: {\n type: String,\n \"default\": ''\n },\n tip: {\n type: String,\n \"default\": ''\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n dataType: {\n type: String\n },\n clearable: {\n type: Boolean,\n \"default\": true\n },\n type: {\n type: String,\n \"default\": ''\n },\n dicUrl: {\n type: String,\n \"default\": ''\n },\n dicMethod: {\n type: String,\n \"default\": ''\n },\n dicFormatter: Function,\n dicQuery: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n dic: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n placeholder: {\n type: String,\n \"default\": ''\n },\n rules: {\n type: Array\n },\n min: {\n type: Number\n },\n max: {\n type: Number\n },\n multiple: {\n type: Boolean,\n \"default\": false\n },\n button: {\n type: Boolean,\n \"default\": false\n },\n group: {\n type: Boolean,\n \"default\": false\n },\n row: {\n type: Boolean,\n \"default\": false\n },\n prop: {\n type: String,\n \"default\": ''\n },\n border: {\n type: Boolean,\n \"default\": false\n },\n popperClass: {\n type: String\n },\n propsHttp: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"];\n }\n },\n props: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"];\n }\n }\n },\n watch: {\n text: {\n handler: function handler(n) {\n this.handleChange(n);\n }\n },\n value: {\n handler: function handler() {\n this.initVal();\n }\n }\n },\n computed: {\n clearableVal: function clearableVal() {\n return this.disabled ? false : this.clearable;\n },\n componentName: function componentName() {\n var type = 'el';\n var result = \"\".concat(type, \"-\").concat(this.name).concat(this.button ? '-button' : '');\n return result;\n },\n required: function required() {\n return !this.validatenull(this.rules);\n },\n isArray: function isArray() {\n return this.dataType === 'array';\n },\n isString: function isString() {\n return this.dataType === 'string';\n },\n isNumber: function isNumber() {\n return this.dataType === 'number';\n },\n isJson: function isJson() {\n return this.dataType === 'json';\n },\n nameKey: function nameKey() {\n return this.propsHttp.name || this.propsHttpDefault.name;\n },\n urlKey: function urlKey() {\n return this.propsHttp.url || this.propsHttpDefault.url;\n },\n resKey: function resKey() {\n return this.propsHttp.res || this.propsHttpDefault.res;\n },\n fileTypeKey: function fileTypeKey() {\n return this.propsHttp.fileType || this.propsHttpDefault.fileType;\n },\n groupsKey: function groupsKey() {\n return this.props.groups || this.propsDefault.groups;\n },\n valueKey: function valueKey() {\n return this.props.value || this.propsDefault.value;\n },\n typeKey: function typeKey() {\n return this.props.type || this.propsDefault.type;\n },\n descKey: function descKey() {\n return this.props.desc || this.propsDefault.desc;\n },\n leafKey: function leafKey() {\n return this.props.leaf || this.propsDefault.leaf;\n },\n labelKey: function labelKey() {\n return this.props.label || this.propsDefault.label;\n },\n childrenKey: function childrenKey() {\n return this.props.children || this.propsDefault.children;\n },\n disabledKey: function disabledKey() {\n return this.props.disabled || this.propsDefault.disabled;\n },\n idKey: function idKey() {\n return this.props.id || this.propsDefault.id;\n }\n },\n created: function created() {\n this.initVal();\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/props.js?");
|
2125
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n data: function data() {\n return {\n stringMode: false,\n name: '',\n text: undefined,\n propsHttpDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"],\n propsDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"]\n };\n },\n props: {\n blur: Function,\n focus: Function,\n change: Function,\n click: Function,\n typeformat: Function,\n control: Function,\n separator: {\n type: String,\n \"default\": global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_SPLIT\"]\n },\n params: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n listType: {\n type: String\n },\n tableData: {\n type: Object\n },\n value: {},\n column: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n label: {\n type: String,\n \"default\": ''\n },\n readonly: {\n type: Boolean,\n \"default\": false\n },\n size: {\n type: String,\n \"default\": ''\n },\n tip: {\n type: String,\n \"default\": ''\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n dataType: {\n type: String\n },\n clearable: {\n type: Boolean,\n \"default\": true\n },\n type: {\n type: String,\n \"default\": ''\n },\n dicUrl: {\n type: String,\n \"default\": ''\n },\n dicMethod: {\n type: String,\n \"default\": ''\n },\n dicFormatter: Function,\n dicQuery: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n dic: {\n type: [Array, Function],\n \"default\": function _default() {\n return [];\n }\n },\n placeholder: {\n type: String,\n \"default\": ''\n },\n rules: {\n type: Array\n },\n min: {\n type: Number\n },\n max: {\n type: Number\n },\n multiple: {\n type: Boolean,\n \"default\": false\n },\n button: {\n type: Boolean,\n \"default\": false\n },\n group: {\n type: Boolean,\n \"default\": false\n },\n row: {\n type: Boolean,\n \"default\": false\n },\n prop: {\n type: String,\n \"default\": ''\n },\n border: {\n type: Boolean,\n \"default\": false\n },\n popperClass: {\n type: String\n },\n propsHttp: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"];\n }\n },\n props: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"];\n }\n }\n },\n watch: {\n text: {\n handler: function handler(n) {\n this.handleChange(n);\n }\n },\n value: {\n handler: function handler() {\n this.initVal();\n }\n }\n },\n computed: {\n clearableVal: function clearableVal() {\n return this.disabled ? false : this.clearable;\n },\n componentName: function componentName() {\n var type = 'el';\n var result = \"\".concat(type, \"-\").concat(this.name).concat(this.button ? '-button' : '');\n return result;\n },\n required: function required() {\n return !this.validatenull(this.rules);\n },\n isArray: function isArray() {\n return this.dataType === 'array';\n },\n isString: function isString() {\n return this.dataType === 'string';\n },\n isNumber: function isNumber() {\n return this.dataType === 'number';\n },\n isJson: function isJson() {\n return this.dataType === 'json';\n },\n nameKey: function nameKey() {\n return this.propsHttp.name || this.propsHttpDefault.name;\n },\n urlKey: function urlKey() {\n return this.propsHttp.url || this.propsHttpDefault.url;\n },\n resKey: function resKey() {\n return this.propsHttp.res || this.propsHttpDefault.res;\n },\n fileTypeKey: function fileTypeKey() {\n return this.propsHttp.fileType || this.propsHttpDefault.fileType;\n },\n groupsKey: function groupsKey() {\n return this.props.groups || this.propsDefault.groups;\n },\n valueKey: function valueKey() {\n return this.props.value || this.propsDefault.value;\n },\n typeKey: function typeKey() {\n return this.props.type || this.propsDefault.type;\n },\n descKey: function descKey() {\n return this.props.desc || this.propsDefault.desc;\n },\n leafKey: function leafKey() {\n return this.props.leaf || this.propsDefault.leaf;\n },\n labelKey: function labelKey() {\n return this.props.label || this.propsDefault.label;\n },\n childrenKey: function childrenKey() {\n return this.props.children || this.propsDefault.children;\n },\n disabledKey: function disabledKey() {\n return this.props.disabled || this.propsDefault.disabled;\n },\n idKey: function idKey() {\n return this.props.id || this.propsDefault.id;\n }\n },\n created: function created() {\n this.initVal();\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/props.js?");
|
2126
2126
|
|
2127
2127
|
/***/ }),
|
2128
2128
|
|
@@ -2362,7 +2362,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
2362
2362
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2363
2363
|
|
2364
2364
|
"use strict";
|
2365
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ((function () {\n var dialogDom;\n function setEvent(el, value, event, hide) {\n var v_params = value,\n e_params = event,\n h_params = hide;\n el.oncontextmenu = function (e) {\n var divLeft = e.clientX,\n divTop = e.clientY;\n dialogDom.style.display = 'block';\n var
|
2365
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */ __webpack_exports__[\"default\"] = ((function () {\n var dialogDom;\n function setEvent(el, value, event, hide) {\n var v_params = value,\n e_params = event,\n h_params = hide;\n el.oncontextmenu = function (e) {\n var _document$documentEle = document.documentElement,\n clientWidth = _document$documentEle.clientWidth,\n clientHeight = _document$documentEle.clientHeight;\n var divLeft = e.clientX,\n divTop = e.clientY;\n dialogDom.style.display = 'block';\n var _dialogDom = dialogDom,\n dialogDomWidth = _dialogDom.offsetWidth,\n dialogDomHeight = _dialogDom.offsetHeight;\n var calcWidth = clientWidth - divLeft - dialogDomWidth;\n var calcHeight = clientHeight - divTop - dialogDomHeight;\n if (calcHeight < 0) {\n divTop = divTop - dialogDomHeight;\n }\n if (calcWidth < 0) {\n divLeft = divLeft - dialogDomWidth;\n }\n var liDom = dialogDom.querySelectorAll('li');\n var firstLevelItems = Array.from(liDom).filter(function (item) {\n return item.parentNode === dialogDom;\n });\n var len = firstLevelItems.length;\n var _loop = function _loop(i) {\n var ele = firstLevelItems[i];\n var childDom = ele.querySelector(\"ul\");\n if (childDom) {\n childDom.style.position = 'absolute';\n childDom.style.top = '-9999px';\n childDom.style.width = 'max-content';\n ele.addEventListener('mouseenter', function () {\n childDom.style.left = \"\".concat(dialogDom.clientWidth + 1, \"px\");\n var calc_height = clientHeight - (divTop + ele.clientHeight * (i + 1)) - childDom.clientHeight;\n var top = calc_height < 0 ? calc_height : 0;\n childDom.style.top = \"\".concat(top, \"px\");\n });\n ele.addEventListener('mouseleave', function () {\n childDom.style.top = '-9999px';\n });\n }\n };\n for (var i = 0; i < len; i++) {\n _loop(i);\n }\n function closeDialog() {\n dialogDom.style.display = 'none';\n h_params && h_params(v_params, e);\n document.removeEventListener('click', closeDialog);\n }\n function showDialog() {\n dialogDom.style.position = 'fixed';\n dialogDom.style.zIndex = 1024;\n dialogDom.style.top = \"\".concat(divTop, \"px\");\n dialogDom.style.left = \"\".concat(divLeft, \"px\");\n document.addEventListener('click', closeDialog);\n }\n if (e_params) {\n e_params(v_params, showDialog);\n } else {\n showDialog();\n }\n return false;\n };\n }\n return {\n inserted: function inserted(el, binding) {\n var id = binding.value.id;\n var event = binding.value.event;\n var value = binding.value.value;\n var hide = binding.value.hide;\n dialogDom = document.getElementById(id);\n if (!dialogDom) return;\n dialogDom.style.display = 'none';\n setEvent(el, value, event, hide);\n },\n update: function update(el, binding) {\n var event = binding.value.event;\n var value = binding.value.value;\n var hide = binding.value.hide;\n setEvent(el, value, event, hide);\n },\n unbind: function unbind(el) {\n el.oncontextmenu = null;\n }\n };\n})());\n\n//# sourceURL=webpack://AVUE/./packages/core/directive/contextmenu.js?");
|
2366
2366
|
|
2367
2367
|
/***/ }),
|
2368
2368
|
|
@@ -2506,7 +2506,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
2506
2506
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2507
2507
|
|
2508
2508
|
"use strict";
|
2509
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
2509
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_556c25ed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=556c25ed */ \"./packages/data/display/index.vue?vue&type=template&id=556c25ed\");\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/data/display/index.vue?vue&type=script&lang=js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_556c25ed__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_556c25ed__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/data/display/index.vue?");
|
2510
2510
|
|
2511
2511
|
/***/ }),
|
2512
2512
|
|
@@ -2522,15 +2522,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
2522
2522
|
|
2523
2523
|
/***/ }),
|
2524
2524
|
|
2525
|
-
/***/ "./packages/data/display/index.vue?vue&type=template&id=
|
2525
|
+
/***/ "./packages/data/display/index.vue?vue&type=template&id=556c25ed":
|
2526
2526
|
/*!***********************************************************************!*\
|
2527
|
-
!*** ./packages/data/display/index.vue?vue&type=template&id=
|
2527
|
+
!*** ./packages/data/display/index.vue?vue&type=template&id=556c25ed ***!
|
2528
2528
|
\***********************************************************************/
|
2529
2529
|
/*! exports provided: render, staticRenderFns */
|
2530
2530
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2531
2531
|
|
2532
2532
|
"use strict";
|
2533
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
2533
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_556c25ed__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=556c25ed */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/data/display/index.vue?vue&type=template&id=556c25ed\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_556c25ed__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_556c25ed__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/data/display/index.vue?");
|
2534
2534
|
|
2535
2535
|
/***/ }),
|
2536
2536
|
|
@@ -3262,7 +3262,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3262
3262
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3263
3263
|
|
3264
3264
|
"use strict";
|
3265
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3265
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _column_default_vue_vue_type_template_id_404b2d89__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./column-default.vue?vue&type=template&id=404b2d89 */ \"./packages/element-ui/crud/column-default.vue?vue&type=template&id=404b2d89\");\n/* harmony import */ var _column_default_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./column-default.vue?vue&type=script&lang=js */ \"./packages/element-ui/crud/column-default.vue?vue&type=script&lang=js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _column_default_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _column_default_vue_vue_type_template_id_404b2d89__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _column_default_vue_vue_type_template_id_404b2d89__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-default.vue?");
|
3266
3266
|
|
3267
3267
|
/***/ }),
|
3268
3268
|
|
@@ -3278,15 +3278,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3278
3278
|
|
3279
3279
|
/***/ }),
|
3280
3280
|
|
3281
|
-
/***/ "./packages/element-ui/crud/column-default.vue?vue&type=template&id=
|
3281
|
+
/***/ "./packages/element-ui/crud/column-default.vue?vue&type=template&id=404b2d89":
|
3282
3282
|
/*!***********************************************************************************!*\
|
3283
|
-
!*** ./packages/element-ui/crud/column-default.vue?vue&type=template&id=
|
3283
|
+
!*** ./packages/element-ui/crud/column-default.vue?vue&type=template&id=404b2d89 ***!
|
3284
3284
|
\***********************************************************************************/
|
3285
3285
|
/*! exports provided: render, staticRenderFns */
|
3286
3286
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3287
3287
|
|
3288
3288
|
"use strict";
|
3289
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3289
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_default_vue_vue_type_template_id_404b2d89__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./column-default.vue?vue&type=template&id=404b2d89 */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-default.vue?vue&type=template&id=404b2d89\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_default_vue_vue_type_template_id_404b2d89__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_default_vue_vue_type_template_id_404b2d89__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-default.vue?");
|
3290
3290
|
|
3291
3291
|
/***/ }),
|
3292
3292
|
|
@@ -3490,7 +3490,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3490
3490
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3491
3491
|
|
3492
3492
|
"use strict";
|
3493
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3493
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _dialog_excel_vue_vue_type_template_id_4087f4c9__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dialog-excel.vue?vue&type=template&id=4087f4c9 */ \"./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=4087f4c9\");\n/* harmony import */ var _dialog_excel_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dialog-excel.vue?vue&type=script&lang=js */ \"./packages/element-ui/crud/dialog-excel.vue?vue&type=script&lang=js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _dialog_excel_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _dialog_excel_vue_vue_type_template_id_4087f4c9__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _dialog_excel_vue_vue_type_template_id_4087f4c9__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-excel.vue?");
|
3494
3494
|
|
3495
3495
|
/***/ }),
|
3496
3496
|
|
@@ -3506,15 +3506,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3506
3506
|
|
3507
3507
|
/***/ }),
|
3508
3508
|
|
3509
|
-
/***/ "./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=
|
3509
|
+
/***/ "./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=4087f4c9":
|
3510
3510
|
/*!*********************************************************************************!*\
|
3511
|
-
!*** ./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=
|
3511
|
+
!*** ./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=4087f4c9 ***!
|
3512
3512
|
\*********************************************************************************/
|
3513
3513
|
/*! exports provided: render, staticRenderFns */
|
3514
3514
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3515
3515
|
|
3516
3516
|
"use strict";
|
3517
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3517
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_excel_vue_vue_type_template_id_4087f4c9__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./dialog-excel.vue?vue&type=template&id=4087f4c9 */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-excel.vue?vue&type=template&id=4087f4c9\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_excel_vue_vue_type_template_id_4087f4c9__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_excel_vue_vue_type_template_id_4087f4c9__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-excel.vue?");
|
3518
3518
|
|
3519
3519
|
/***/ }),
|
3520
3520
|
|
@@ -3562,7 +3562,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3562
3562
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3563
3563
|
|
3564
3564
|
"use strict";
|
3565
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3565
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _dialog_form_vue_vue_type_template_id_7c6b8025__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./dialog-form.vue?vue&type=template&id=7c6b8025 */ \"./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=7c6b8025\");\n/* harmony import */ var _dialog_form_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./dialog-form.vue?vue&type=script&lang=js */ \"./packages/element-ui/crud/dialog-form.vue?vue&type=script&lang=js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _dialog_form_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _dialog_form_vue_vue_type_template_id_7c6b8025__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _dialog_form_vue_vue_type_template_id_7c6b8025__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?");
|
3566
3566
|
|
3567
3567
|
/***/ }),
|
3568
3568
|
|
@@ -3578,15 +3578,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3578
3578
|
|
3579
3579
|
/***/ }),
|
3580
3580
|
|
3581
|
-
/***/ "./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
3581
|
+
/***/ "./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=7c6b8025":
|
3582
3582
|
/*!********************************************************************************!*\
|
3583
|
-
!*** ./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=
|
3583
|
+
!*** ./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=7c6b8025 ***!
|
3584
3584
|
\********************************************************************************/
|
3585
3585
|
/*! exports provided: render, staticRenderFns */
|
3586
3586
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3587
3587
|
|
3588
3588
|
"use strict";
|
3589
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3589
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_form_vue_vue_type_template_id_7c6b8025__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./dialog-form.vue?vue&type=template&id=7c6b8025 */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/dialog-form.vue?vue&type=template&id=7c6b8025\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_form_vue_vue_type_template_id_7c6b8025__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_dialog_form_vue_vue_type_template_id_7c6b8025__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog-form.vue?");
|
3590
3590
|
|
3591
3591
|
/***/ }),
|
3592
3592
|
|
@@ -3766,7 +3766,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3766
3766
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3767
3767
|
|
3768
3768
|
"use strict";
|
3769
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3769
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_825d0026__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=825d0026 */ \"./packages/element-ui/crud/index.vue?vue&type=template&id=825d0026\");\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_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_825d0026__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_825d0026__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?");
|
3770
3770
|
|
3771
3771
|
/***/ }),
|
3772
3772
|
|
@@ -3782,15 +3782,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3782
3782
|
|
3783
3783
|
/***/ }),
|
3784
3784
|
|
3785
|
-
/***/ "./packages/element-ui/crud/index.vue?vue&type=template&id=
|
3785
|
+
/***/ "./packages/element-ui/crud/index.vue?vue&type=template&id=825d0026":
|
3786
3786
|
/*!**************************************************************************!*\
|
3787
|
-
!*** ./packages/element-ui/crud/index.vue?vue&type=template&id=
|
3787
|
+
!*** ./packages/element-ui/crud/index.vue?vue&type=template&id=825d0026 ***!
|
3788
3788
|
\**************************************************************************/
|
3789
3789
|
/*! exports provided: render, staticRenderFns */
|
3790
3790
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3791
3791
|
|
3792
3792
|
"use strict";
|
3793
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3793
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_825d0026__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=825d0026 */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/index.vue?vue&type=template&id=825d0026\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_825d0026__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_825d0026__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?");
|
3794
3794
|
|
3795
3795
|
/***/ }),
|
3796
3796
|
|
@@ -4030,7 +4030,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// form配置文件\n/* harmo
|
|
4030
4030
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4031
4031
|
|
4032
4032
|
"use strict";
|
4033
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4033
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_3bff5351__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=3bff5351 */ \"./packages/element-ui/form/index.vue?vue&type=template&id=3bff5351\");\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_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_3bff5351__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_3bff5351__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?");
|
4034
4034
|
|
4035
4035
|
/***/ }),
|
4036
4036
|
|
@@ -4046,15 +4046,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4046
4046
|
|
4047
4047
|
/***/ }),
|
4048
4048
|
|
4049
|
-
/***/ "./packages/element-ui/form/index.vue?vue&type=template&id=
|
4049
|
+
/***/ "./packages/element-ui/form/index.vue?vue&type=template&id=3bff5351":
|
4050
4050
|
/*!**************************************************************************!*\
|
4051
|
-
!*** ./packages/element-ui/form/index.vue?vue&type=template&id=
|
4051
|
+
!*** ./packages/element-ui/form/index.vue?vue&type=template&id=3bff5351 ***!
|
4052
4052
|
\**************************************************************************/
|
4053
4053
|
/*! exports provided: render, staticRenderFns */
|
4054
4054
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4055
4055
|
|
4056
4056
|
"use strict";
|
4057
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4057
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_3bff5351__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=3bff5351 */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/form/index.vue?vue&type=template&id=3bff5351\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_3bff5351__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_3bff5351__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/form/index.vue?");
|
4058
4058
|
|
4059
4059
|
/***/ }),
|
4060
4060
|
|
@@ -4678,7 +4678,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4678
4678
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4679
4679
|
|
4680
4680
|
"use strict";
|
4681
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4681
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_4f7cb236__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=4f7cb236 */ \"./packages/element-ui/select/index.vue?vue&type=template&id=4f7cb236\");\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/select/index.vue?vue&type=script&lang=js\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_4f7cb236__WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_4f7cb236__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/select/index.vue?");
|
4682
4682
|
|
4683
4683
|
/***/ }),
|
4684
4684
|
|
@@ -4694,15 +4694,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4694
4694
|
|
4695
4695
|
/***/ }),
|
4696
4696
|
|
4697
|
-
/***/ "./packages/element-ui/select/index.vue?vue&type=template&id=
|
4697
|
+
/***/ "./packages/element-ui/select/index.vue?vue&type=template&id=4f7cb236":
|
4698
4698
|
/*!****************************************************************************!*\
|
4699
|
-
!*** ./packages/element-ui/select/index.vue?vue&type=template&id=
|
4699
|
+
!*** ./packages/element-ui/select/index.vue?vue&type=template&id=4f7cb236 ***!
|
4700
4700
|
\****************************************************************************/
|
4701
4701
|
/*! exports provided: render, staticRenderFns */
|
4702
4702
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4703
4703
|
|
4704
4704
|
"use strict";
|
4705
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4705
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_4f7cb236__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=4f7cb236 */ \"./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.11.1_css-loader@5.2.7_webpack@4.47.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=4f7cb236\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_4f7cb236__WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_11_1_css_loader_5_2_7_webpack_4_47_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_4f7cb236__WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?");
|
4706
4706
|
|
4707
4707
|
/***/ }),
|
4708
4708
|
|
@@ -5158,7 +5158,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var util
|
|
5158
5158
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5159
5159
|
|
5160
5160
|
"use strict";
|
5161
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCascader\", function() { return calcCascader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCount\", function() { return calcCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initVal\", function() { return initVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSearchType\", function() { return getSearchType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getComponent\", function() { return getComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formInitVal\", function() { return formInitVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPlaceholder\", function() { return getPlaceholder; });\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! locale */ \"./src/locale/index.js\");\n\n\n\n\n/**\n * 计算级联属性\n */\nvar calcCascader = function calcCascader() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list.forEach(function (ele) {\n var cascader = ele.cascader;\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(cascader)) {\n var parentProp = ele.prop;\n cascader.forEach(function (citem) {\n var column = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findObject\"])(list, citem);\n if (column) column.parentProp = parentProp;\n });\n }\n });\n return list;\n};\n/**\n * 计算空白列row\n */\nvar count = 0;\nvar calcCount = function calcCount(ele) {\n var spanDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 12;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n if (init) count = 0;\n var spanAll = 24;\n count = count + (ele.span || spanDefault) + (ele.offset || 0);\n if (count === spanAll) {\n count = 0;\n } else if (count > spanAll) {\n count = 0 + (ele.span || spanDefault) + (ele.offset || 0);\n } else if (ele.row && count !== spanAll) {\n ele.count = spanAll - count;\n count = 0;\n }\n return ele;\n};\n\n/**\n * 初始化数据格式\n */\nvar initVal = function initVal(value, safe) {\n var type = safe.type,\n multiple = safe.multiple,\n dataType = safe.dataType,\n _safe$separator = safe.separator,\n separator = _safe$separator === void 0 ? global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SPLIT\"] : _safe$separator,\n alone = safe.alone,\n emitPath = safe.emitPath,\n range = safe.range;\n var list = value;\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(type) && multiple == true || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(type) && emitPath !== false || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(type) && range == true) {\n if (!Array.isArray(list)) {\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list)) {\n list = [];\n } else {\n if (dataType == 'json') {\n list = JSON.parse(list);\n } else {\n list = (list + '').split(separator) || [];\n }\n }\n }\n // 数据转化\n list.forEach(function (ele, index) {\n list[index] = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(ele, dataType);\n });\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_LIST\"].includes(type) && Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list) && alone) list = [''];\n } else {\n list = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(list, dataType);\n }\n return list;\n};\n\n/**\n * 搜索框获取动态组件\n */\nvar getSearchType = function getSearchType(column) {\n var type = column.type;\n var range = column.searchRange;\n var result = type;\n if (column.searchType) return column.searchType;\n if (['radio', 'checkbox', 'switch'].includes(type)) {\n result = 'select';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n var rangeKey = 'range';\n if (range) {\n if (!type.includes(rangeKey)) {\n result = type + rangeKey;\n } else {\n result = type;\n }\n } else result = type.replace(rangeKey, '');\n } else if (['textarea'].includes(type)) {\n result = 'input';\n }\n return result;\n};\n\n/**\n * 动态获取组件\n */\nvar getComponent = function getComponent(type, component) {\n var result = type || 'input';\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(component)) {\n return component;\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_LIST\"].includes(type)) {\n result = 'array';\n } else if (['time', 'timerange'].includes(type)) {\n result = 'time';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n result = 'date';\n } else if (['password', 'textarea', 'search'].includes(type)) {\n result = 'input';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"INPUT_LIST\"].includes(type)) {\n result = 'input-' + type;\n }\n return global_variable__WEBPACK_IMPORTED_MODULE_1__[\"KEY_COMPONENT_NAME\"] + result;\n};\n\n/**\n * 表格初始化值\n */\n\nvar formInitVal = function formInitVal() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var tableForm = {};\n list.forEach(function (ele) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(ele.type) && ele.emitPath !== false && ele.dataType != 'json' || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(ele.type) && ele.multiple || ele.dataType === 'array') {\n tableForm[ele.prop] = [];\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(ele.type) && ele.range == true) {\n tableForm[ele.prop] = [0, 0];\n } else if (['rate', 'slider', 'number'].includes(ele.type) || ele.dataType === 'number') {\n tableForm[ele.prop] = undefined;\n } else {\n tableForm[ele.prop] = '';\n }\n if (ele.bind) {\n tableForm = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"createObj\"])(tableForm, ele.bind);\n }\n // 表单默认值设置\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele.value)) {\n tableForm[ele.prop] = ele.value;\n }\n });\n return {\n tableForm: tableForm\n };\n};\nvar getPlaceholder = function getPlaceholder(column) {\n var placeholder = column.placeholder;\n var label = column.label;\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(placeholder)) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"SELECT_LIST\"].includes(column.type)) {\n return \"\".concat(Object(locale__WEBPACK_IMPORTED_MODULE_3__[\"t\"])('tip.select'), \" \").concat(label);\n } else {\n return \"\".concat(Object(locale__WEBPACK_IMPORTED_MODULE_3__[\"t\"])('tip.input'), \" \").concat(label);\n }\n }\n return placeholder;\n};\n\n//# sourceURL=webpack://AVUE/./src/core/dataformat.js?");
|
5161
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCascader\", function() { return calcCascader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCount\", function() { return calcCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initVal\", function() { return initVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSearchType\", function() { return getSearchType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getComponent\", function() { return getComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formInitVal\", function() { return formInitVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPlaceholder\", function() { return getPlaceholder; });\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! locale */ \"./src/locale/index.js\");\n\n\n\n\n/**\r\n * 计算级联属性\r\n */\nvar calcCascader = function calcCascader() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list.forEach(function (ele) {\n var cascader = ele.cascader;\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(cascader)) {\n var parentProp = ele.prop;\n cascader.forEach(function (citem) {\n var column = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findObject\"])(list, citem);\n if (column) column.parentProp = parentProp;\n });\n }\n });\n return list;\n};\n/**\r\n * 计算空白列row\r\n */\nvar count = 0;\nvar calcCount = function calcCount(ele) {\n var spanDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 12;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n if (init) count = 0;\n var spanAll = 24;\n count = count + (ele.span || spanDefault) + (ele.offset || 0);\n if (count === spanAll) {\n count = 0;\n } else if (count > spanAll) {\n count = 0 + (ele.span || spanDefault) + (ele.offset || 0);\n } else if (ele.row && count !== spanAll) {\n ele.count = spanAll - count;\n count = 0;\n }\n return ele;\n};\n\n/**\r\n * 初始化数据格式\r\n */\nvar initVal = function initVal(value, safe) {\n var type = safe.type,\n multiple = safe.multiple,\n dataType = safe.dataType,\n _safe$separator = safe.separator,\n separator = _safe$separator === void 0 ? global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SPLIT\"] : _safe$separator,\n alone = safe.alone,\n emitPath = safe.emitPath,\n range = safe.range;\n var list = value;\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(type) && multiple == true || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(type) && emitPath !== false || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(type) && range == true) {\n if (!Array.isArray(list)) {\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list)) {\n list = [];\n } else {\n if (dataType == 'json') {\n list = JSON.parse(list);\n } else {\n list = (list + '').split(separator) || [];\n }\n }\n }\n // 数据转化\n list.forEach(function (ele, index) {\n list[index] = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(ele, dataType);\n });\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_LIST\"].includes(type) && Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list) && alone) list = [''];\n } else {\n list = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(list, dataType);\n }\n return list;\n};\n\n/**\r\n * 搜索框获取动态组件\r\n */\nvar getSearchType = function getSearchType(column) {\n var type = column.type;\n var range = column.searchRange;\n var result = type;\n if (column.searchType) return column.searchType;\n if (['radio', 'checkbox', 'switch'].includes(type)) {\n result = 'select';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n var rangeKey = 'range';\n if (range) {\n if (!type.includes(rangeKey)) {\n result = type + rangeKey;\n } else {\n result = type;\n }\n } else result = type.replace(rangeKey, '');\n } else if (['textarea'].includes(type)) {\n result = 'input';\n }\n return result;\n};\n\n/**\r\n * 动态获取组件\r\n */\nvar getComponent = function getComponent(type, component) {\n var result = type || 'input';\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(component)) {\n return component;\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_LIST\"].includes(type)) {\n result = 'array';\n } else if (['time', 'timerange'].includes(type)) {\n result = 'time';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n result = 'date';\n } else if (['password', 'textarea', 'search'].includes(type)) {\n result = 'input';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"INPUT_LIST\"].includes(type)) {\n result = 'input-' + type;\n }\n return global_variable__WEBPACK_IMPORTED_MODULE_1__[\"KEY_COMPONENT_NAME\"] + result;\n};\n\n/**\r\n * 表格初始化值\r\n */\n\nvar formInitVal = function formInitVal() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var tableForm = {};\n list.forEach(function (ele) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(ele.type) && ele.emitPath !== false && ele.dataType != 'json' || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(ele.type) && ele.multiple || ele.dataType === 'array') {\n tableForm[ele.prop] = [];\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(ele.type) && ele.range == true) {\n tableForm[ele.prop] = [0, 0];\n } else if (['rate', 'slider', 'number'].includes(ele.type) || ele.dataType === 'number') {\n tableForm[ele.prop] = undefined;\n } else {\n tableForm[ele.prop] = '';\n }\n if (ele.bind) {\n tableForm = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"createObj\"])(tableForm, ele.bind);\n }\n // 表单默认值设置\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele.value)) {\n tableForm[ele.prop] = ele.value;\n }\n });\n return {\n tableForm: tableForm\n };\n};\nvar getPlaceholder = function getPlaceholder(column) {\n var placeholder = column.placeholder;\n var label = column.label;\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(placeholder)) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"SELECT_LIST\"].includes(column.type)) {\n return \"\".concat(Object(locale__WEBPACK_IMPORTED_MODULE_3__[\"t\"])('tip.select'), \" \").concat(label);\n } else {\n return \"\".concat(Object(locale__WEBPACK_IMPORTED_MODULE_3__[\"t\"])('tip.input'), \" \").concat(label);\n }\n }\n return placeholder;\n};\n\n//# sourceURL=webpack://AVUE/./src/core/dataformat.js?");
|
5162
5162
|
|
5163
5163
|
/***/ }),
|
5164
5164
|
|
@@ -5182,7 +5182,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5182
5182
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5183
5183
|
|
5184
5184
|
"use strict";
|
5185
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadCascaderDic\", function() { return loadCascaderDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadDic\", function() { return loadDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadLocalDic\", function() { return loadLocalDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sendDic\", function() { return sendDic; });\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\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(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar key = 'key';\nfunction getDataType() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var valueKey = props.value || global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_PROPS\"].value;\n var childrenKey = props.children || global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_PROPS\"].children;\n list.forEach(function (ele) {\n ele[valueKey] = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"detailDataType\"])(ele[valueKey], type);\n if (ele[childrenKey]) getDataType(ele[childrenKey], props, type);\n });\n return list;\n}\n;\nfunction getResData(data, props, dataType) {\n var bind = props.res;\n var res = data;\n var deep = data.data;\n if (bind) {\n res = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"getAsVal\"])(res, bind);\n } else if (deep) {\n res = Array.isArray(deep) ? deep : [deep];\n }\n if (dataType) res = getDataType(res, props, dataType);\n return res;\n}\n;\nvar loadCascaderDic = function loadCascaderDic(columnOption, safe) {\n return new Promise(function (resolve) {\n var list = [];\n var result = {};\n var columnList = columnOption.filter(function (ele) {\n return ele.parentProp;\n });\n safe.data.forEach(function (ele, index) {\n if (!safe.cascaderDIC[index]) safe.$set(safe.cascaderDIC, index, {});\n columnList.forEach(function (column) {\n if (column.hide !== true && column.dicFlag !== false) {\n list.push(new Promise(function (resolve) {\n if (ele[column.parentProp]) {\n sendDic({\n url: column.dicUrl,\n props: column.props,\n method: column.dicMethod,\n headers: column.dicHeaders,\n formatter: column.dicFormatter,\n query: column.dicQuery,\n dataType: column.dataType,\n form: ele,\n value: ele[column.parentProp]\n }).then(function (res) {\n var obj = {\n prop: column.prop,\n data: res,\n index: index\n };\n safe.$set(safe.cascaderDIC[index], obj.prop, obj.data);\n resolve(obj);\n });\n } else {\n var obj = {\n prop: column.prop,\n data: [],\n index: index\n };\n safe.$set(safe.cascaderDIC[index], obj.prop, obj.data);\n resolve(obj);\n }\n }));\n }\n });\n });\n Promise.all(list).then(function (data) {\n data.forEach(function (ele) {\n if (!result[ele.index]) result[ele.index] = {};\n result[ele.index][ele.prop] = ele.data;\n });\n resolve(result);\n });\n });\n};\nvar loadDic = function loadDic(option, safe) {\n return new Promise(function (resolve) {\n var list = [],\n result = {};\n var notList = [],\n nameList = [],\n column = option.column || [];\n column.forEach(function (ele) {\n var url = ele.dicUrl;\n var prop = ele.prop;\n var parentProp = ele.parentProp;\n notList = notList.concat(ele.cascader || []);\n var flag = ele.dicFlag === false || ele.lazy === true || notList.includes(prop);\n if (url && !parentProp && !flag) {\n list.push(new Promise(function (resolve) {\n sendDic({\n url: url,\n name: prop,\n method: ele.dicMethod,\n headers: ele.dicHeaders,\n formatter: ele.dicFormatter,\n props: ele.props,\n dataType: ele.dataType,\n query: ele.dicQuery\n }).then(function (res) {\n safe.$set(safe.DIC, prop, res);\n resolve(res);\n });\n }));\n }\n });\n Promise.all(list).then(function (res) {\n nameList.forEach(function (ele, index) {\n result[ele] = res[index];\n });\n resolve(result);\n });\n });\n};\nvar loadLocalDic = function loadLocalDic(option, safe) {\n var columnData = {};\n var optionData = option.dicData || {};\n option.column.forEach(function (ele) {\n if (ele.dicData) columnData[ele.prop] = getDataType(ele.dicData, ele.props, ele.dataType);\n });\n var result = _objectSpread(_objectSpread({}, optionData), columnData);\n Object.keys(result).forEach(function (ele) {\n safe.$set(safe.DIC, ele, result[ele]);\n });\n return result;\n};\nvar sendDic = function sendDic(params) {\n var url = params.url,\n query = params.query,\n method = params.method,\n props = params.props,\n formatter = params.formatter,\n headers = params.headers,\n value = params.value,\n _params$column = params.column,\n column = _params$column === void 0 ? {} : _params$column,\n _params$form = params.form,\n form = _params$form === void 0 ? {} : _params$form,\n dataType = params.dataType;\n url = column.dicUrl || url;\n method = (column.dicMethod || method || 'get').toLowerCase();\n headers = column.dicHeaders || headers || {};\n query = column.dicQuery || query || {};\n formatter = column.dicFormatter || formatter;\n props = column.props || props || {};\n var list = url.match(/[^\\{\\}]+(?=\\})/g) || [];\n list.forEach(function (ele) {\n var result = ele === key ? value : form[ele];\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_1__[\"validatenull\"])(result)) result = '';\n url = url.replace(\"{{\".concat(ele, \"}}\"), result);\n });\n var getKey = function getKey(data) {\n var result = {};\n Object.keys(data).forEach(function (ele) {\n var eleKey = data[ele];\n if (typeof eleKey == 'string' && eleKey.match(/\\{{|}}/g)) {\n var prop = eleKey.replace(/\\{{|}}/g, '');\n result[ele] = prop == key ? value : form[prop];\n } else {\n result[ele] = eleKey;\n }\n });\n return result;\n };\n return new Promise(function (resolve, reject) {\n if (!url) resolve([]);\n var callback = function callback(res) {\n var list = [];\n res = res.data || {};\n if (typeof formatter === 'function') {\n list = formatter(res, form);\n } else {\n list = getResData(res, props, dataType);\n }\n resolve(list);\n };\n var getData = function getData() {\n var data = getKey(query);\n if (method == 'get') return {\n params: data\n };\n return {\n data: data\n };\n };\n window.axios(Object.assign({\n url: url,\n method: method,\n headers: getKey(headers)\n }, getData())).then(function (res) {\n callback(res);\n })[\"catch\"](function (err) {\n return [reject(err)];\n });\n });\n};\n\n//# sourceURL=webpack://AVUE/./src/core/dic.js?");
|
5185
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadCascaderDic\", function() { return loadCascaderDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadDic\", function() { return loadDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadLocalDic\", function() { return loadLocalDic; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sendDic\", function() { return sendDic; });\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\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(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\n\n\n\nvar key = 'key';\nfunction getDataType() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var type = arguments.length > 2 ? arguments[2] : undefined;\n var valueKey = props.value || global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_PROPS\"].value;\n var childrenKey = props.children || global_variable__WEBPACK_IMPORTED_MODULE_2__[\"DIC_PROPS\"].children;\n list.forEach(function (ele) {\n ele[valueKey] = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"detailDataType\"])(ele[valueKey], type);\n if (ele[childrenKey]) getDataType(ele[childrenKey], props, type);\n });\n return list;\n}\n;\nfunction getResData(data, props, dataType) {\n var bind = props.res;\n var res = data;\n var deep = data.data;\n if (bind) {\n res = Object(utils_util__WEBPACK_IMPORTED_MODULE_0__[\"getAsVal\"])(res, bind);\n } else if (deep) {\n res = Array.isArray(deep) ? deep : [deep];\n }\n if (dataType) res = getDataType(res, props, dataType);\n return res;\n}\n;\nvar loadCascaderDic = function loadCascaderDic(columnOption, safe) {\n return new Promise(function (resolve) {\n var list = [];\n var result = {};\n var columnList = columnOption.filter(function (ele) {\n return ele.parentProp;\n });\n safe.data.forEach(function (ele, index) {\n if (!safe.cascaderDIC[index]) safe.$set(safe.cascaderDIC, index, {});\n columnList.forEach(function (column) {\n if (column.hide !== true && column.dicFlag !== false) {\n list.push(new Promise(function (resolve) {\n if (ele[column.parentProp]) {\n sendDic({\n url: column.dicUrl,\n props: column.props,\n method: column.dicMethod,\n headers: column.dicHeaders,\n formatter: column.dicFormatter,\n query: column.dicQuery,\n dataType: column.dataType,\n form: ele,\n value: ele[column.parentProp]\n }).then(function (res) {\n var obj = {\n prop: column.prop,\n data: res,\n index: index\n };\n safe.$set(safe.cascaderDIC[index], obj.prop, obj.data);\n resolve(obj);\n });\n } else {\n var obj = {\n prop: column.prop,\n data: [],\n index: index\n };\n safe.$set(safe.cascaderDIC[index], obj.prop, obj.data);\n resolve(obj);\n }\n }));\n }\n });\n });\n Promise.all(list).then(function (data) {\n data.forEach(function (ele) {\n if (!result[ele.index]) result[ele.index] = {};\n result[ele.index][ele.prop] = ele.data;\n });\n resolve(result);\n });\n });\n};\nvar loadDic = function loadDic(option, safe) {\n return new Promise(function (resolve) {\n var list = [],\n result = {};\n var notList = [],\n nameList = [],\n column = option.column || [];\n column.forEach(function (ele) {\n var url = ele.dicUrl;\n var prop = ele.prop;\n var parentProp = ele.parentProp;\n notList = notList.concat(ele.cascader || []);\n var flag = ele.dicFlag === false || ele.lazy === true || notList.includes(prop);\n if (url && !parentProp && !flag) {\n list.push(new Promise(function (resolve) {\n sendDic({\n url: url,\n name: prop,\n method: ele.dicMethod,\n headers: ele.dicHeaders,\n formatter: ele.dicFormatter,\n props: ele.props,\n dataType: ele.dataType,\n query: ele.dicQuery\n }).then(function (res) {\n safe.$set(safe.DIC, prop, res);\n resolve(res);\n });\n }));\n }\n });\n Promise.all(list).then(function (res) {\n nameList.forEach(function (ele, index) {\n result[ele] = res[index];\n });\n resolve(result);\n });\n });\n};\nvar loadLocalDic = function loadLocalDic(option, safe) {\n var columnData = {};\n var optionData = option.dicData || {};\n option.column.forEach(function (ele) {\n var dic = ele.dicData;\n var prop = ele.prop;\n if (dic instanceof Function) {\n var dicResult = dic(ele);\n if (dicResult instanceof Promise) {\n dicResult.then(function (res) {\n safe.DIC[prop] = getDataType(res, ele.props, ele.dataType);\n });\n } else {\n columnData[prop] = getDataType(dicResult, ele.props, ele.dataType);\n }\n } else if (dic instanceof Array) {\n columnData[prop] = getDataType(dic, ele.props, ele.dataType);\n }\n });\n var result = _objectSpread(_objectSpread({}, optionData), columnData);\n Object.keys(result).forEach(function (ele) {\n safe.$set(safe.DIC, ele, result[ele]);\n });\n return result;\n};\nvar sendDic = function sendDic(params) {\n var url = params.url,\n query = params.query,\n method = params.method,\n props = params.props,\n formatter = params.formatter,\n headers = params.headers,\n value = params.value,\n _params$column = params.column,\n column = _params$column === void 0 ? {} : _params$column,\n _params$form = params.form,\n form = _params$form === void 0 ? {} : _params$form,\n dataType = params.dataType;\n url = column.dicUrl || url;\n method = (column.dicMethod || method || 'get').toLowerCase();\n headers = column.dicHeaders || headers || {};\n query = column.dicQuery || query || {};\n formatter = column.dicFormatter || formatter;\n props = column.props || props || {};\n var list = url.match(/[^\\{\\}]+(?=\\})/g) || [];\n list.forEach(function (ele) {\n var result = ele === key ? value : form[ele];\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_1__[\"validatenull\"])(result)) result = '';\n url = url.replace(\"{{\".concat(ele, \"}}\"), result);\n });\n var getKey = function getKey(data) {\n var result = {};\n Object.keys(data).forEach(function (ele) {\n var eleKey = data[ele];\n if (typeof eleKey === 'string' && eleKey.match(/\\{{|}}/g)) {\n var prop = eleKey.replace(/\\{{|}}/g, '');\n result[ele] = prop == key ? value : form[prop];\n } else {\n result[ele] = eleKey;\n }\n });\n return result;\n };\n return new Promise(function (resolve, reject) {\n if (!url) resolve([]);\n var callback = function callback(res) {\n var list = [];\n res = res.data || {};\n if (typeof formatter === 'function') {\n list = formatter(res, form);\n } else {\n list = getResData(res, props, dataType);\n }\n resolve(list);\n };\n var getData = function getData() {\n var data = getKey(query);\n if (method == 'get') return {\n params: data\n };\n return {\n data: data\n };\n };\n window.axios(Object.assign({\n url: url,\n method: method,\n headers: getKey(headers)\n }, getData())).then(function (res) {\n callback(res);\n })[\"catch\"](function (err) {\n return [reject(err)];\n });\n });\n};\n\n//# sourceURL=webpack://AVUE/./src/core/dic.js?");
|
5186
5186
|
|
5187
5187
|
/***/ }),
|
5188
5188
|
|
@@ -5302,7 +5302,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5302
5302
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5303
5303
|
|
5304
5304
|
"use strict";
|
5305
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fileToBase64\", function() { return fileToBase64; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailImg\", function() { return detailImg; });\n/* harmony import */ var _watermark__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./watermark */ \"./src/plugin/canvas/watermark.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n// file转base64\nfunction fileToBase64(file, callback) {\n var reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = function (e) {\n callback(e.target.result);\n };\n}\n// 标准参数\nvar canvas,\n ctx,\n configDefault = {\n width: 200,\n height: 200\n };\nvar config = {\n text: 'avueJS',\n // 文字\n fontFamily: 'microsoft yahei',\n // 字体\n color: '#999',\n // 颜色\n fontSize: 16,\n // 大小\n opacity: 100,\n // 透明度\n bottom: 10,\n // 下边位置\n right: 10,\n // 右边位置\n ratio: 1 // 压缩比\n};\n\n/**\n * 参数 {Object} opt\n * @param {String} text 水印文本,默认'avue商用通用无敌大水印'\n * @param {String} font 水印字体,默认'30px 黑体'\n * @param {Int} canvasWidth 单个水印容器宽度,默认500\n * @param {Int} canvasHeight 单个水印容器高度,默认200\n * @param {String} textAlign 水印文本对齐方式,默认'center'\n * @param {String} textStyle 水印文本样式,默认'rgba(100,100,100,0.15)'\n * @param {Int} degree 水印文本旋转角度,默认 -20\n * @param return\n **/\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return new _watermark__WEBPACK_IMPORTED_MODULE_0__[\"default\"](opt);\n});\n;\n\n// 将base64转换为文件\n\nfunction detailImg(file) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return new Promise(function (resolve, reject) {\n var text = option.text,\n fontFamily = option.fontFamily,\n color = option.color,\n fontSize = option.fontSize,\n opacity = option.opacity,\n bottom = option.bottom,\n right = option.right,\n ratio = option.ratio;\n initParams();\n fileToBase64(file, initImg);\n // 参数初始化\n function initParams() {\n config.text = text || config.text;\n config.fontFamily = fontFamily || config.fontFamily;\n config.color = color || config.color;\n config.fontSize = fontSize || config.fontSize;\n config.opacity = opacity || config.opacity;\n config.bottom = bottom || config.bottom;\n config.right = right || config.right;\n config.ratio = ratio || config.ratio;\n }\n // 加载图片\n function initImg(data) {\n var img = new Image();\n img.src = data;\n img.onload = function () {\n var width = img.width;\n var height = img.height;\n cretedCanvas(width, height);\n ctx.drawImage(img, 0, 0, width, height);\n setText(width, height);\n resolve(Object(utils_util__WEBPACK_IMPORTED_MODULE_1__[\"dataURLtoFile\"])(document.getElementById('canvas').toDataURL(file.type, config.ratio), file.name));\n };\n }\n // 创建画板\n function cretedCanvas(width, height) {\n canvas = document.getElementById('canvas');\n if (canvas === null) {\n canvas = document.createElement('canvas');\n canvas.id = 'canvas';\n canvas.className = 'avue-canvas';\n document.body.appendChild(canvas);\n }\n ctx = canvas.getContext('2d');\n canvas.width = width;\n canvas.height = height;\n }\n // 添加水印\n function setText(width, height) {\n var txt = config.text;\n var param = calcParam(txt, width, height);\n ctx.font = param.fontSize + 'px ' + config.fontFamily;\n ctx.fillStyle = config.color;\n ctx.globalAlpha = config.opacity / 100;\n ctx.fillText(txt, param.x, param.y);\n }\n // 计算比例\n function calcParam(txt, width, height) {\n var x, y;\n\n // 字体的比例\n var calcFontSize = config.fontSize / configDefault.width;\n var fontSize = calcFontSize * width;\n if (config.bottom) {\n y = configDefault.height - config.bottom;\n } else {\n y = config.top;\n }\n if (config.right) {\n x = configDefault.width - config.right;\n } else {\n x = config.left;\n }\n ctx.font = config.fontSize + 'px ' + config.fontFamily;\n var txtWidth = Number(ctx.measureText(txt).width);\n x = x - txtWidth;\n var calcPosX = x / configDefault.width;\n var calcPosY = y / configDefault.height;\n x = calcPosX * width;\n y = calcPosY * height;\n return {\n x: x,\n y: y,\n fontSize: fontSize\n };\n }\n });\n}\n\n//# sourceURL=webpack://AVUE/./src/plugin/canvas/index.js?");
|
5305
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fileToBase64\", function() { return fileToBase64; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"detailImg\", function() { return detailImg; });\n/* harmony import */ var _watermark__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./watermark */ \"./src/plugin/canvas/watermark.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n// file转base64\nfunction fileToBase64(file, callback) {\n var reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = function (e) {\n callback(e.target.result);\n };\n}\n// 标准参数\nvar canvas,\n ctx,\n configDefault = {\n width: 200,\n height: 200\n };\nvar config = {\n text: 'avueJS',\n // 文字\n fontFamily: 'microsoft yahei',\n // 字体\n color: '#999',\n // 颜色\n fontSize: 16,\n // 大小\n opacity: 100,\n // 透明度\n bottom: 10,\n // 下边位置\n right: 10,\n // 右边位置\n ratio: 1 // 压缩比\n};\n\n/**\r\n * 参数 {Object} opt\r\n * @param {String} text 水印文本,默认'avue商用通用无敌大水印'\r\n * @param {String} font 水印字体,默认'30px 黑体'\r\n * @param {Int} canvasWidth 单个水印容器宽度,默认500\r\n * @param {Int} canvasHeight 单个水印容器高度,默认200\r\n * @param {String} textAlign 水印文本对齐方式,默认'center'\r\n * @param {String} textStyle 水印文本样式,默认'rgba(100,100,100,0.15)'\r\n * @param {Int} degree 水印文本旋转角度,默认 -20\r\n * @param return\r\n **/\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n return new _watermark__WEBPACK_IMPORTED_MODULE_0__[\"default\"](opt);\n});\n;\n\n// 将base64转换为文件\n\nfunction detailImg(file) {\n var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return new Promise(function (resolve, reject) {\n var text = option.text,\n fontFamily = option.fontFamily,\n color = option.color,\n fontSize = option.fontSize,\n opacity = option.opacity,\n bottom = option.bottom,\n right = option.right,\n ratio = option.ratio;\n initParams();\n fileToBase64(file, initImg);\n // 参数初始化\n function initParams() {\n config.text = text || config.text;\n config.fontFamily = fontFamily || config.fontFamily;\n config.color = color || config.color;\n config.fontSize = fontSize || config.fontSize;\n config.opacity = opacity || config.opacity;\n config.bottom = bottom || config.bottom;\n config.right = right || config.right;\n config.ratio = ratio || config.ratio;\n }\n // 加载图片\n function initImg(data) {\n var img = new Image();\n img.src = data;\n img.onload = function () {\n var width = img.width;\n var height = img.height;\n cretedCanvas(width, height);\n ctx.drawImage(img, 0, 0, width, height);\n setText(width, height);\n resolve(Object(utils_util__WEBPACK_IMPORTED_MODULE_1__[\"dataURLtoFile\"])(document.getElementById('canvas').toDataURL(file.type, config.ratio), file.name));\n };\n }\n // 创建画板\n function cretedCanvas(width, height) {\n canvas = document.getElementById('canvas');\n if (canvas === null) {\n canvas = document.createElement('canvas');\n canvas.id = 'canvas';\n canvas.className = 'avue-canvas';\n document.body.appendChild(canvas);\n }\n ctx = canvas.getContext('2d');\n canvas.width = width;\n canvas.height = height;\n }\n // 添加水印\n function setText(width, height) {\n var txt = config.text;\n var param = calcParam(txt, width, height);\n ctx.font = param.fontSize + 'px ' + config.fontFamily;\n ctx.fillStyle = config.color;\n ctx.globalAlpha = config.opacity / 100;\n ctx.fillText(txt, param.x, param.y);\n }\n // 计算比例\n function calcParam(txt, width, height) {\n var x, y;\n\n // 字体的比例\n var calcFontSize = config.fontSize / configDefault.width;\n var fontSize = calcFontSize * width;\n if (config.bottom) {\n y = configDefault.height - config.bottom;\n } else {\n y = config.top;\n }\n if (config.right) {\n x = configDefault.width - config.right;\n } else {\n x = config.left;\n }\n ctx.font = config.fontSize + 'px ' + config.fontFamily;\n var txtWidth = Number(ctx.measureText(txt).width);\n x = x - txtWidth;\n var calcPosX = x / configDefault.width;\n var calcPosY = y / configDefault.height;\n x = calcPosX * width;\n y = calcPosY * height;\n return {\n x: x,\n y: y,\n fontSize: fontSize\n };\n }\n });\n}\n\n//# sourceURL=webpack://AVUE/./src/plugin/canvas/index.js?");
|
5306
5306
|
|
5307
5307
|
/***/ }),
|
5308
5308
|
|
@@ -5542,7 +5542,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5542
5542
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5543
5543
|
|
5544
5544
|
"use strict";
|
5545
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.
|
5545
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.13.1';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
|
5546
5546
|
|
5547
5547
|
/***/ }),
|
5548
5548
|
|