@smallwei/avue 3.5.0 → 3.5.2
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +15 -15
- package/lib/avue.min.js +2 -2
- package/package.json +1 -1
- package/lib/.DS_Store +0 -0
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v3.5.
|
2
|
+
* Avue.js v3.5.2
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -598,7 +598,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var coun
|
|
598
598
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
599
599
|
|
600
600
|
"use strict";
|
601
|
-
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_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var _grid_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../grid/item */ \"./packages/element-ui/crud/grid/item.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n data: function data() {\n return {\n config: _config_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n rowSortable: null,\n columnSortable: null\n };\n },\n components: {\n tableItemCard: _grid_item__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_1__[\"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 });\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column/column-default.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
601
|
+
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_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var _grid_item__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../grid/item */ \"./packages/element-ui/crud/grid/item.vue\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud\",\n data: function data() {\n return {\n config: _config_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n rowSortable: null,\n columnSortable: null\n };\n },\n components: {\n tableItemCard: _grid_item__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_1__[\"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/column-default.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
602
602
|
|
603
603
|
/***/ }),
|
604
604
|
|
@@ -694,7 +694,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
694
694
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
695
695
|
|
696
696
|
"use strict";
|
697
|
-
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 emits: ['update:modelValue', 'change'],\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 boxVisible: false\n };\n },\n props: {\n modelValue: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n computed: {\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 width: function width() {\n var dialogWidth = this.crud.tableOption.dialogWidth + '';\n var defaultWidth = this.crud.isMobile ? '100%' : _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].dialogWidth;\n var result = this.validData(dialogWidth, defaultWidth);\n return this.setPx(result);\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 var result = this.isDrawer ? {\n size: this.fullscreen ? '100%' : this.width,\n direction: this.crud.tableOption.dialogDirection\n } : {\n width: this.width,\n fullscreen: this.fullscreen\n };\n return Object.assign(result, this.$uploadFun({}, this.crud));\n },\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.emptyIcon = this.crud.getBtnIcon('cancelBtn');\n option.emptyText = this.crud.menuIcon('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 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.size,\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 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.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 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 // 保存\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, index) {\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 item[_this3.crud.childrenKey] = [];\n }\n if (_this3.crud.tableOption.lazy) {\n 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/dialog-form.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
697
|
+
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 emits: ['update:modelValue', 'change'],\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 boxVisible: false\n };\n },\n props: {\n modelValue: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n }\n },\n computed: {\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 width: function width() {\n var dialogWidth = this.crud.tableOption.dialogWidth + '';\n var defaultWidth = this.crud.isMobile ? '100%' : _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].dialogWidth;\n var result = this.validData(dialogWidth, defaultWidth);\n return this.setPx(result);\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 var result = this.isDrawer ? {\n size: this.fullscreen ? '100%' : this.width,\n direction: this.crud.tableOption.dialogDirection\n } : {\n width: this.width,\n fullscreen: this.fullscreen\n };\n return Object.assign(result, this.$uploadFun({}, this.crud));\n },\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.emptyIcon = this.crud.getBtnIcon('cancelBtn');\n option.emptyText = this.crud.menuIcon('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 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.size,\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 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.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 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 // 保存\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, index) {\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 item[_this3.crud.childrenKey] = [];\n }\n if (_this3.crud.tableOption.lazy) {\n 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/dialog-form.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
698
698
|
|
699
699
|
/***/ }),
|
700
700
|
|
@@ -730,7 +730,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
730
730
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
731
731
|
|
732
732
|
"use strict";
|
733
|
-
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 core_locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var common_directive_permission__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! common/directive/permission */ \"./packages/core/directive/permission.js\");\n/* harmony import */ var common_common_init_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! common/common/init.js */ \"./packages/core/common/init.js\");\n/* harmony import */ var _grid_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./grid/index */ \"./packages/element-ui/crud/grid/index.vue\");\n/* harmony import */ var _grid_item__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./grid/item */ \"./packages/element-ui/crud/grid/item.vue\");\n/* harmony import */ var _menu_table_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./menu/table-page */ \"./packages/element-ui/crud/menu/table-page.vue\");\n/* harmony import */ var _menu_header_search__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./menu/header-search */ \"./packages/element-ui/crud/menu/header-search.vue\");\n/* harmony import */ var _menu_header_menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu/header-menu */ \"./packages/element-ui/crud/menu/header-menu.vue\");\n/* harmony import */ var _dialog_dialog_column__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog/dialog-column */ \"./packages/element-ui/crud/dialog/dialog-column.vue\");\n/* harmony import */ var _dialog_dialog_filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog/dialog-filter */ \"./packages/element-ui/crud/dialog/dialog-filter.vue\");\n/* harmony import */ var _dialog_dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog/dialog-form */ \"./packages/element-ui/crud/dialog/dialog-form.vue\");\n/* harmony import */ var _dialog_dialog_excel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dialog/dialog-excel */ \"./packages/element-ui/crud/dialog/dialog-excel.vue\");\n/* harmony import */ var _column_column__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column/column */ \"./packages/element-ui/crud/column/column.vue\");\n/* harmony import */ var _column_column_menu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./column/column-menu */ \"./packages/element-ui/crud/column/column-menu.vue\");\n/* harmony import */ var _column_column_default__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./column/column-default */ \"./packages/element-ui/crud/column/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var element_plus__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! element-plus */ \"element-plus\");\n/* harmony import */ var element_plus__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(element_plus__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\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_4__[\"default\"])('crud'), core_locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n emits: ['update:modelValue', 'tree-load', 'selection-clear', 'header-dragend', 'expand-change', 'current-row-change', 'refresh-change', 'selection-change', 'select', 'select-all', 'sortable-change', 'filter', 'filter-change', 'sort-change', 'row-dblclick', 'row-click', 'cell-mouse-enter', 'cell-mouse-leave', 'cell-click', 'header-click', 'tab-click', 'error', 'date-change', 'update:search', 'update:page', 'search-change', 'search-reset', 'on-load', 'current-change', 'size-change', 'row-contextmenu', 'header-contextmenu', 'cell-dblclick', 'row-del', 'row-save', 'row-update', 'change'],\n directives: {\n permission: common_directive_permission__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n provide: function provide() {\n return {\n crud: this\n };\n },\n components: {\n tableCard: _grid_index__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n tableItemCard: _grid_item__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n column: _column_column__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n columnDefault: _column_column_default__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n //其它列,\n columnMenu: _column_column_menu__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n //操作栏,\n tablePage: _menu_table_page__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n //分页\n headerSearch: _menu_header_search__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //搜索\n headerMenu: _menu_header_menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_dialog_column__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //显隐列\n dialogFilter: _dialog_dialog_filter__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n //过滤器\n dialogForm: _dialog_dialog_form__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n //分页\n dialogExcel: _dialog_dialog_excel__WEBPACK_IMPORTED_MODULE_13__[\"default\"] //导出\n },\n data: function data() {\n return {\n reload: Math.random(),\n cellForm: {\n list: []\n },\n config: _config_js__WEBPACK_IMPORTED_MODULE_17__[\"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 mounted: function mounted() {\n this.dataInit();\n this.getTableHeight();\n },\n computed: {\n tableName: function tableName() {\n return this.gridShow ? 'tableCard' : 'elTable';\n },\n tableColumnName: function tableColumnName() {\n return this.gridShow ? 'tableItemCard' : 'elTableColumn';\n },\n size: function size() {\n return this.tableOption.size || this.$AVUE.tableSize || this.$AVUE.size;\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_19__[\"DIC_PROPS\"].rowParentKey;\n },\n childrenKey: function childrenKey() {\n return this.treeProps.children || global_variable__WEBPACK_IMPORTED_MODULE_19__[\"DIC_PROPS\"].children;\n },\n hasChildrenKey: function hasChildrenKey() {\n return this.treeProps.hasChildren || global_variable__WEBPACK_IMPORTED_MODULE_19__[\"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.$slots, this.propOption);\n },\n searchSlot: function searchSlot() {\n return this.getSlotList(['-search'], this.$slots, this.propOption);\n },\n mainSlot: function mainSlot() {\n var _this = this;\n var result = [];\n this.propOption.forEach(function (item) {\n var prop = item.prop;\n if (_this.$slots[prop]) result.push(prop);\n });\n return this.getSlotList(['-header', '-form'], this.$slots, 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_18__[\"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 this.validData(this.tableOption.tree, 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 return Object(utils_util__WEBPACK_IMPORTED_MODULE_21__[\"getColumn\"])(this.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 modelValue: {\n handler: function handler(val) {\n this.tableForm = val;\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 tableOption: {\n handler: function handler() {\n this.gridShow = this.tableOption.grid;\n },\n immediate: 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 modelValue: {\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.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 this.$nextTick(function () {\n if (_this2.isAutoHeight) {\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) {\n var height = tableRef.$el.offsetTop || 0;\n tableHeight -= height;\n }\n if (tablePageRef) {\n var _height = tablePageRef.$el.offsetHeight || 0;\n tableHeight -= _height;\n }\n _this2.tableHeight = tableHeight;\n } else {\n _this2.tableHeight = _this2.tableOption.height;\n }\n _this2.doLayout();\n });\n },\n doLayout: function doLayout() {\n this.$refs.table.doLayout();\n },\n refreshTable: function refreshTable(callback) {\n this.reload = Math.random();\n this.tableSelect = [];\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.validData(this.tableOption[value + 'Text'], this.t(\"crud.\" + value));\n },\n getBtnIcon: function getBtnIcon(value) {\n var name = value + 'Icon';\n return this.tableOption[name] ? this.tableOption[name].trim() : _config_js__WEBPACK_IMPORTED_MODULE_17__[\"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 //初始化序列的参数\n this.list.forEach(function (ele, index) {\n if (ele.$cellEdit && !_this3.cascaderFormList[index]) {\n _this3.cascaderFormList[index] = _this3.deepClone(ele);\n }\n ele.$cellEdit = ele.$cellEdit || false;\n 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.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.doLayout();\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(row) {\n this.$emit(\"current-row-change\", row);\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_18__[\"formInitVal\"])(this.propOption);\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.cascaderDIC[index] = this.cascaderDicList[index];\n 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 done = function done(row) {\n _this5.btnDisabledList[index] = false;\n _this5.btnDisabled = false;\n if (row) _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 this.validateCellField(index).then(function () {\n _this5.btnDisabledList[index] = true;\n _this5.btnDisabled = true;\n if (_this5.validatenull(row[_this5.rowKey])) {\n _this5.$emit(\"row-save\", row, done, loading);\n } else {\n _this5.$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 _this7 = this;\n return new Promise(function (resolve, reject) {\n _this7.$refs.cellForm.validate(function (valid) {\n var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var result = true;\n var list = [];\n Object.keys(msg).forEach(function (ele) {\n if (ele.indexOf(\"list.\".concat(index)) !== -1) {\n result = false;\n } else {\n list.push(ele);\n }\n });\n if (!_this7.validatenull(list)) _this7.$refs.cellForm.clearValidate(list);\n if (result) resolve();\n });\n });\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('update:modelValue', this.tableForm);\n this.$emit('change', this.tableForm);\n },\n // 编辑\n rowEdit: function rowEdit(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"edit\");\n },\n //复制\n rowCopy: function rowCopy(row) {\n this.tableForm = this.deepClone(row);\n delete this.tableForm[this.rowKey];\n this.tableIndex = -1;\n this.setVal();\n this.$refs.dialogForm.show(\"add\");\n },\n //查看\n rowView: function rowView(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"view\");\n },\n // 删除\n rowDel: function rowDel(row, index) {\n var _this8 = this;\n this.$emit(\"row-del\", row, index, function () {\n var _this8$findData = _this8.findData(row[_this8.rowKey]),\n parentList = _this8$findData.parentList,\n index = _this8$findData.index;\n if (parentList) parentList.splice(index, 1);\n });\n },\n //合并行\n tableSpanMethod: function tableSpanMethod(param) {\n if (typeof this.spanMethod === \"function\") return this.spanMethod(param);\n },\n //合集统计逻辑\n tableSummaryMethod: function tableSummaryMethod(param) {\n var _this9 = this;\n var sumsList = {};\n 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 = _this9.sumColumnList.find(function (item) {\n return item.name === column.property;\n });\n if (currItem) {\n var decimals = currItem.decimals || 2;\n var label = currItem.label || '';\n switch (currItem.type) {\n case \"count\":\n sums[index] = label + data.length;\n break;\n case \"avg\":\n var avgValues = data.map(function (item) {\n return Number(item[column.property]);\n });\n var nowindex = 1;\n sums[index] = avgValues.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return (perv * (nowindex - 1) + curr) / nowindex++;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n case \"sum\":\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n sums[index] = values.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return perv + curr;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n }\n sumsList[column.property] = sums[index];\n } else {\n sums[index] = \"\";\n }\n });\n }\n this.sumsList = sumsList;\n return sums;\n },\n tableDrop: function tableDrop(type, el, callback) {\n if (this.isSortable !== true) {\n if (type == 'row' && !this.isRowSort) {\n return;\n } else if (type == 'column' && !this.isColumnSort) {\n return;\n }\n } 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_17__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_17__[\"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 _this10 = this;\n var result = {};\n var callback = function callback(parentList, parent) {\n parentList.forEach(function (ele, index) {\n if (ele[_this10.rowKey] == id) {\n result = {\n item: ele,\n index: index,\n parentList: parentList,\n parent: parent\n };\n }\n if (ele[_this10.childrenKey]) {\n callback(ele[_this10.childrenKey], ele);\n }\n });\n };\n callback(this.list);\n return result;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
733
|
+
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 core_locale__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var common_directive_permission__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! common/directive/permission */ \"./packages/core/directive/permission.js\");\n/* harmony import */ var common_common_init_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! common/common/init.js */ \"./packages/core/common/init.js\");\n/* harmony import */ var _grid_index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./grid/index */ \"./packages/element-ui/crud/grid/index.vue\");\n/* harmony import */ var _grid_item__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./grid/item */ \"./packages/element-ui/crud/grid/item.vue\");\n/* harmony import */ var _menu_table_page__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./menu/table-page */ \"./packages/element-ui/crud/menu/table-page.vue\");\n/* harmony import */ var _menu_header_search__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./menu/header-search */ \"./packages/element-ui/crud/menu/header-search.vue\");\n/* harmony import */ var _menu_header_menu__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./menu/header-menu */ \"./packages/element-ui/crud/menu/header-menu.vue\");\n/* harmony import */ var _dialog_dialog_column__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./dialog/dialog-column */ \"./packages/element-ui/crud/dialog/dialog-column.vue\");\n/* harmony import */ var _dialog_dialog_filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./dialog/dialog-filter */ \"./packages/element-ui/crud/dialog/dialog-filter.vue\");\n/* harmony import */ var _dialog_dialog_form__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./dialog/dialog-form */ \"./packages/element-ui/crud/dialog/dialog-form.vue\");\n/* harmony import */ var _dialog_dialog_excel__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./dialog/dialog-excel */ \"./packages/element-ui/crud/dialog/dialog-excel.vue\");\n/* harmony import */ var _column_column__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./column/column */ \"./packages/element-ui/crud/column/column.vue\");\n/* harmony import */ var _column_column_menu__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./column/column-menu */ \"./packages/element-ui/crud/column/column-menu.vue\");\n/* harmony import */ var _column_column_default__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./column/column-default */ \"./packages/element-ui/crud/column/column-default.vue\");\n/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./config.js */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var element_plus__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! element-plus */ \"element-plus\");\n/* harmony import */ var element_plus__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(element_plus__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\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_4__[\"default\"])('crud'), core_locale__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n emits: ['update:modelValue', 'tree-load', 'selection-clear', 'header-dragend', 'expand-change', 'current-row-change', 'refresh-change', 'selection-change', 'select', 'select-all', 'sortable-change', \"column-sortable-change\", 'filter', 'filter-change', 'sort-change', 'row-dblclick', 'row-click', 'cell-mouse-enter', 'cell-mouse-leave', 'cell-click', 'header-click', 'tab-click', 'error', 'date-change', 'update:search', 'update:page', 'search-change', 'search-reset', 'on-load', 'current-change', 'size-change', 'row-contextmenu', 'header-contextmenu', 'cell-dblclick', 'row-del', 'row-save', 'row-update', 'change'],\n directives: {\n permission: common_directive_permission__WEBPACK_IMPORTED_MODULE_3__[\"default\"]\n },\n provide: function provide() {\n return {\n crud: this\n };\n },\n components: {\n tableCard: _grid_index__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n tableItemCard: _grid_item__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n column: _column_column__WEBPACK_IMPORTED_MODULE_14__[\"default\"],\n columnDefault: _column_column_default__WEBPACK_IMPORTED_MODULE_16__[\"default\"],\n //其它列,\n columnMenu: _column_column_menu__WEBPACK_IMPORTED_MODULE_15__[\"default\"],\n //操作栏,\n tablePage: _menu_table_page__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n //分页\n headerSearch: _menu_header_search__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n //搜索\n headerMenu: _menu_header_menu__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n //菜单头部\n dialogColumn: _dialog_dialog_column__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n //显隐列\n dialogFilter: _dialog_dialog_filter__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n //过滤器\n dialogForm: _dialog_dialog_form__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n //分页\n dialogExcel: _dialog_dialog_excel__WEBPACK_IMPORTED_MODULE_13__[\"default\"] //导出\n },\n data: function data() {\n return {\n reload: Math.random(),\n cellForm: {\n list: []\n },\n config: _config_js__WEBPACK_IMPORTED_MODULE_17__[\"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 mounted: function mounted() {\n this.dataInit();\n this.getTableHeight();\n },\n computed: {\n tableName: function tableName() {\n return this.gridShow ? 'tableCard' : 'elTable';\n },\n tableColumnName: function tableColumnName() {\n return this.gridShow ? 'tableItemCard' : 'elTableColumn';\n },\n size: function size() {\n return this.tableOption.size || this.$AVUE.tableSize || this.$AVUE.size;\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_19__[\"DIC_PROPS\"].rowParentKey;\n },\n childrenKey: function childrenKey() {\n return this.treeProps.children || global_variable__WEBPACK_IMPORTED_MODULE_19__[\"DIC_PROPS\"].children;\n },\n hasChildrenKey: function hasChildrenKey() {\n return this.treeProps.hasChildren || global_variable__WEBPACK_IMPORTED_MODULE_19__[\"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.$slots, this.propOption);\n },\n searchSlot: function searchSlot() {\n return this.getSlotList(['-search'], this.$slots, this.propOption);\n },\n mainSlot: function mainSlot() {\n var _this = this;\n var result = [];\n this.propOption.forEach(function (item) {\n var prop = item.prop;\n if (_this.$slots[prop]) result.push(prop);\n });\n return this.getSlotList(['-header', '-form'], this.$slots, 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_18__[\"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 this.validData(this.tableOption.tree, 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 return Object(utils_util__WEBPACK_IMPORTED_MODULE_21__[\"getColumn\"])(this.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 modelValue: {\n handler: function handler(val) {\n this.tableForm = val;\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 tableOption: {\n handler: function handler() {\n this.gridShow = this.tableOption.grid;\n },\n immediate: 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 modelValue: {\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.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 this.$nextTick(function () {\n if (_this2.isAutoHeight) {\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) {\n var height = tableRef.$el.offsetTop || 0;\n tableHeight -= height;\n }\n if (tablePageRef) {\n var _height = tablePageRef.$el.offsetHeight || 0;\n tableHeight -= _height;\n }\n _this2.tableHeight = tableHeight;\n } else {\n _this2.tableHeight = _this2.tableOption.height;\n }\n _this2.doLayout();\n });\n },\n doLayout: function doLayout() {\n this.$refs.table.doLayout();\n },\n refreshTable: function refreshTable(callback) {\n this.reload = Math.random();\n this.tableSelect = [];\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.validData(this.tableOption[value + 'Text'], this.t(\"crud.\" + value));\n },\n getBtnIcon: function getBtnIcon(value) {\n var name = value + 'Icon';\n return this.tableOption[name] ? this.tableOption[name].trim() : _config_js__WEBPACK_IMPORTED_MODULE_17__[\"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 //初始化序列的参数\n this.list.forEach(function (ele, index) {\n if (ele.$cellEdit && !_this3.cascaderFormList[index]) {\n _this3.cascaderFormList[index] = _this3.deepClone(ele);\n }\n ele.$cellEdit = ele.$cellEdit || false;\n 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.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.doLayout();\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(row) {\n this.$emit(\"current-row-change\", row);\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_18__[\"formInitVal\"])(this.propOption);\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.cascaderDIC[index] = this.cascaderDicList[index];\n 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 done = function done(row) {\n _this5.btnDisabledList[index] = false;\n _this5.btnDisabled = false;\n if (row) _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 this.validateCellField(index).then(function () {\n _this5.btnDisabledList[index] = true;\n _this5.btnDisabled = true;\n if (_this5.validatenull(row[_this5.rowKey])) {\n _this5.$emit(\"row-save\", row, done, loading);\n } else {\n _this5.$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 _this7 = this;\n return new Promise(function (resolve, reject) {\n _this7.$refs.cellForm.validate(function (valid) {\n var msg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n var result = true;\n var list = [];\n Object.keys(msg).forEach(function (ele) {\n if (ele.indexOf(\"list.\".concat(index)) !== -1) {\n result = false;\n } else {\n list.push(ele);\n }\n });\n if (!_this7.validatenull(list)) _this7.$refs.cellForm.clearValidate(list);\n if (result) resolve();\n });\n });\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('update:modelValue', this.tableForm);\n this.$emit('change', this.tableForm);\n },\n // 编辑\n rowEdit: function rowEdit(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"edit\");\n },\n //复制\n rowCopy: function rowCopy(row) {\n this.tableForm = this.deepClone(row);\n delete this.tableForm[this.rowKey];\n this.tableIndex = -1;\n this.setVal();\n this.$refs.dialogForm.show(\"add\");\n },\n //查看\n rowView: function rowView(row, index) {\n this.tableForm = this.deepClone(row);\n this.tableIndex = index;\n this.setVal();\n this.$refs.dialogForm.show(\"view\");\n },\n // 删除\n rowDel: function rowDel(row, index) {\n var _this8 = this;\n this.$emit(\"row-del\", row, index, function () {\n var _this8$findData = _this8.findData(row[_this8.rowKey]),\n parentList = _this8$findData.parentList,\n index = _this8$findData.index;\n if (parentList) parentList.splice(index, 1);\n });\n },\n //合并行\n tableSpanMethod: function tableSpanMethod(param) {\n if (typeof this.spanMethod === \"function\") return this.spanMethod(param);\n },\n //合集统计逻辑\n tableSummaryMethod: function tableSummaryMethod(param) {\n var _this9 = this;\n var sumsList = {};\n 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 = _this9.sumColumnList.find(function (item) {\n return item.name === column.property;\n });\n if (currItem) {\n var decimals = currItem.decimals || 2;\n var label = currItem.label || '';\n switch (currItem.type) {\n case \"count\":\n sums[index] = label + data.length;\n break;\n case \"avg\":\n var avgValues = data.map(function (item) {\n return Number(item[column.property]);\n });\n var nowindex = 1;\n sums[index] = avgValues.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return (perv * (nowindex - 1) + curr) / nowindex++;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n case \"sum\":\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n sums[index] = values.reduce(function (perv, curr) {\n var value = Number(curr);\n if (!isNaN(value)) {\n return perv + curr;\n } else {\n return perv;\n }\n }, 0);\n sums[index] = label + sums[index].toFixed(decimals);\n break;\n }\n sumsList[column.property] = sums[index];\n } else {\n sums[index] = \"\";\n }\n });\n }\n this.sumsList = sumsList;\n return sums;\n },\n tableDrop: function tableDrop(type, el, callback) {\n if (this.isSortable !== true) {\n if (type == 'row' && !this.isRowSort) {\n return;\n } else if (type == 'column' && !this.isColumnSort) {\n return;\n }\n } 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_17__[\"default\"].ghostClass,\n chosenClass: _config_js__WEBPACK_IMPORTED_MODULE_17__[\"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 _this10 = this;\n var result = {};\n var callback = function callback(parentList, parent) {\n parentList.forEach(function (ele, index) {\n if (ele[_this10.rowKey] == id) {\n result = {\n item: ele,\n index: index,\n parentList: parentList,\n parent: parent\n };\n }\n if (ele[_this10.childrenKey]) {\n callback(ele[_this10.childrenKey], ele);\n }\n });\n };\n callback(this.list);\n return result;\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
734
734
|
|
735
735
|
/***/ }),
|
736
736
|
|
@@ -1090,7 +1090,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
1090
1090
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1091
1091
|
|
1092
1092
|
"use strict";
|
1093
|
-
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 common_common_props_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! common/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var common_common_event_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! common/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"time\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), core_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n data: function data() {\n return {};\n },\n props: {\n editable: {\n type: Boolean,\n \"default\": true\n },\n maxTime: String,\n minTime: String,\n start: String,\n end: String,\n step: String,\n startPlaceholder: String,\n endPlaceholder: String,\n rangeSeparator: String,\n defaultValue: [String, Array],\n valueFormat: String,\n arrowControl: Boolean,\n type: String,\n format: String,\n disabledHours: Function,\n disabledMinutes: Function,\n disabledSeconds: Function\n },\n computed: {\n componentName: function componentName() {\n if (this.start || this.end || this.step || this.maxTime || this.minTime) {\n return \"elTimeSelect\";\n } else {\n return \"elTimePicker\";\n }\n },\n isRange: function isRange() {\n return this.type === \"timerange\";\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/time/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
1093
|
+
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 common_common_props_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! common/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var common_common_event_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! common/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"time\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(), core_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"]],\n data: function data() {\n return {};\n },\n props: {\n editable: {\n type: Boolean,\n \"default\": true\n },\n maxTime: String,\n minTime: String,\n start: String,\n end: String,\n step: String,\n startPlaceholder: String,\n endPlaceholder: String,\n rangeSeparator: String,\n defaultValue: [String, Array],\n valueFormat: String,\n arrowControl: Boolean,\n type: String,\n format: String,\n visibleChange: Function,\n disabledHours: Function,\n disabledMinutes: Function,\n disabledSeconds: Function\n },\n computed: {\n componentName: function componentName() {\n if (this.start || this.end || this.step || this.maxTime || this.minTime) {\n return \"elTimeSelect\";\n } else {\n return \"elTimePicker\";\n }\n },\n isRange: function isRange() {\n return this.type === \"timerange\";\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/time/index.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/dist??ref--1");
|
1094
1094
|
|
1095
1095
|
/***/ }),
|
1096
1096
|
|
@@ -1196,7 +1196,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// run
|
|
1196
1196
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1197
1197
|
|
1198
1198
|
"use strict";
|
1199
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_avue_form = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"avue-form\")\n const _component_el_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-button\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])($options.dialogType), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"mergeProps\"])({\n
|
1199
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_avue_form = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"avue-form\")\n const _component_el_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-button\")\n\n return ($data.visible)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])($options.dialogType), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"mergeProps\"])({\n key: 0,\n modelValue: $data.visible,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => (($data.visible) = $event)),\n \"destroy-on-close\": \"\",\n class: \"avue-dialog\",\n beforeClose: $options.beforeClose\n }, $data.dialog), {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_avue_form, {\n ref: \"form\",\n option: {..._ctx.deepClone($data.option),...{menuBtn: false}},\n modelValue: $data.data,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => (($data.data) = $event)),\n status: $data.disabled,\n \"onUpdate:status\": _cache[1] || (_cache[1] = $event => (($data.disabled) = $event)),\n onSubmit: $options.handleSubmit,\n onResetChange: $options.close\n }, null, 8 /* PROPS */, [\"option\", \"modelValue\", \"status\", \"onSubmit\", \"onResetChange\"]),\n (_ctx.validData($data.option.menuBtn,true))\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])([\"avue-dialog__footer\", 'avue-dialog__footer--'+$options.menuPosition])\n }, [\n (_ctx.validData($data.option.submitBtn,true))\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 0,\n onClick: $options.submit,\n size: _ctx.$AVUE.size,\n icon: $data.option.submitIcon,\n loading: $data.disabled,\n type: \"primary\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])($data.option.submitText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"size\", \"icon\", \"loading\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.validData($data.option.emptyBtn,true))\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 1,\n onClick: $options.reset,\n disabled: $data.disabled,\n size: _ctx.$AVUE.size,\n icon: $data.option.emptyIcon \n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])($data.option.emptyText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"disabled\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 2 /* CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ]),\n _: 1 /* STABLE */\n }, 16 /* FULL_PROPS */, [\"modelValue\", \"beforeClose\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n}\n\n//# sourceURL=webpack://AVUE/./packages/core/components/dialog-form/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1200
1200
|
|
1201
1201
|
/***/ }),
|
1202
1202
|
|
@@ -1592,7 +1592,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1592
1592
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1593
1593
|
|
1594
1594
|
"use strict";
|
1595
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst _hoisted_1 = { class: \"el-dialog__title\" }\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon\")\n const _component_avue_form = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"avue-form\")\n const _component_el_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-button\")\n\n return (_ctx.boxVisible)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.dialogType), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"mergeProps\"])({\n key: 0,\n draggable: _ctx.validData(_ctx.crud.tableOption.dialogDrag,_ctx.config.dialogDrag),\n class: ['avue-dialog',_ctx.b('dialog'),this.crud.tableOption.dialogCustomClass],\n \"append-to-body\": _ctx.validData(_ctx.crud.tableOption.dialogAppendToBody,true),\n top: _ctx.dialogTop,\n title: _ctx.dialogTitle,\n \"close-on-press-escape\": _ctx.crud.tableOption.dialogEscape,\n \"close-on-click-modal\": _ctx.validData(_ctx.crud.tableOption.dialogClickModal,false),\n modal: _ctx.crud.tableOption.dialogModal,\n \"show-close\": _ctx.crud.tableOption.dialogCloseBtn,\n modelValue: _ctx.boxVisible,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => ((_ctx.boxVisible) = $event))\n }, _ctx.params, { \"before-close\": _ctx.hide }), {\n header: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('dialog__header'))\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", _hoisted_1, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.dialogTitle), 1 /* TEXT */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('dialog__menu'))\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_icon, {\n class: \"el-dialog__close\",\n onClick: _ctx.handleFullScreen\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.fullscreen?'el-icon-copy-document':'el-icon-full-screen')))\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\"])\n ], 2 /* CLASS */)\n ], 2 /* CLASS */)\n ]),\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_avue_form, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"mergeProps\"])({\n modelValue: _ctx.crud.tableForm,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.crud.tableForm) = $event)),\n status: _ctx.disabled,\n \"onUpdate:status\": _cache[1] || (_cache[1] = $event => ((_ctx.disabled) = $event)),\n ref: \"tableForm\",\n onChange: _ctx.handleChange,\n onSubmit: _ctx.handleSubmit,\n onResetChange: _ctx.hide,\n onTabClick: _ctx.handleTabClick,\n onError: _ctx.handleError\n }, _ctx.$uploadFun(null,_ctx.crud), { option: _ctx.option }), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createSlots\"])({ _: 2 /* DYNAMIC */ }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.crud.formSlot, (item) => {\n return {\n name: _ctx.getSlotName(item),\n fn: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])((scope) => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, item, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeProps\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"guardReactiveProps\"])(Object.assign(scope,{type:_ctx.boxType}))))\n ])\n }\n })\n ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, [\"modelValue\", \"status\", \"onChange\", \"onSubmit\", \"onResetChange\", \"onTabClick\", \"onError\", \"option\"]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])([\"avue-dialog__footer\", 'avue-dialog__footer--'+_ctx.dialogMenuPosition])\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"menu-form-before\", Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeProps\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"guardReactiveProps\"])(_ctx.menuParams()))),\n (_ctx.validData(_ctx.option.mockBtn,false) && !_ctx.isView)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 0,\n type: \"primary\",\n onClick: (_ctx.$refs.tableForm || {}).handleMock,\n loading: _ctx.disabled,\n size: _ctx.crud.size,\n icon: _ctx.option.mockIcon\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.option.mockText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"loading\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.validData(_ctx.option.submitBtn,true) && !_ctx.isView)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 1,\n onClick: _ctx.submit,\n loading: _ctx.disabled,\n size: _ctx.crud.size,\n icon: _ctx.option.submitIcon,\n type: \"primary\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.option.submitText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"loading\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.validData(_ctx.option.emptyBtn,true) && !_ctx.isView)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 2,\n onClick: _ctx.reset,\n disabled: _ctx.disabled,\n size: _ctx.crud.size,\n icon: _ctx.option.emptyIcon\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.option.emptyText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"disabled\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"menu-form\", Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeProps\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"guardReactiveProps\"])(_ctx.menuParams())))\n ], 2 /* CLASS */)\n ]),\n _: 3 /* FORWARDED */\n }, 16 /* FULL_PROPS */, [\"draggable\", \"class\", \"append-to-body\", \"top\", \"title\", \"close-on-press-escape\", \"close-on-click-modal\", \"modal\", \"show-close\", \"modelValue\", \"before-close\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog/dialog-form.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1595
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst _hoisted_1 = { class: \"el-dialog__title\" }\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_icon = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-icon\")\n const _component_avue_form = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"avue-form\")\n const _component_el_button = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-button\")\n const _directive_loading = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDirective\"])(\"loading\")\n\n return (_ctx.boxVisible)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.dialogType), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"mergeProps\"])({\n key: 0,\n draggable: _ctx.validData(_ctx.crud.tableOption.dialogDrag,_ctx.config.dialogDrag),\n class: ['avue-dialog',_ctx.b('dialog'),this.crud.tableOption.dialogCustomClass],\n \"append-to-body\": _ctx.validData(_ctx.crud.tableOption.dialogAppendToBody,true),\n top: _ctx.dialogTop,\n title: _ctx.dialogTitle,\n \"close-on-press-escape\": _ctx.crud.tableOption.dialogEscape,\n \"close-on-click-modal\": _ctx.validData(_ctx.crud.tableOption.dialogClickModal,false),\n modal: _ctx.crud.tableOption.dialogModal,\n \"show-close\": _ctx.crud.tableOption.dialogCloseBtn,\n modelValue: _ctx.boxVisible,\n \"onUpdate:modelValue\": _cache[2] || (_cache[2] = $event => ((_ctx.boxVisible) = $event))\n }, _ctx.params, { \"before-close\": _ctx.hide }), {\n header: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('dialog__header'))\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", _hoisted_1, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.dialogTitle), 1 /* TEXT */),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('dialog__menu'))\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_component_el_icon, {\n class: \"el-dialog__close\",\n onClick: _ctx.handleFullScreen\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.fullscreen?'el-icon-copy-document':'el-icon-full-screen')))\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\"])\n ], 2 /* CLASS */)\n ], 2 /* CLASS */)\n ]),\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withDirectives\"])((Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_avue_form, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"mergeProps\"])({\n modelValue: _ctx.crud.tableForm,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.crud.tableForm) = $event)),\n status: _ctx.disabled,\n \"onUpdate:status\": _cache[1] || (_cache[1] = $event => ((_ctx.disabled) = $event)),\n ref: \"tableForm\",\n onChange: _ctx.handleChange,\n onSubmit: _ctx.handleSubmit,\n onResetChange: _ctx.hide,\n onTabClick: _ctx.handleTabClick,\n onError: _ctx.handleError\n }, _ctx.$uploadFun(null,_ctx.crud), {\n \"element-loading-text\": _ctx.crud.tableOption.loadingText,\n \"element-loading-spinner\": _ctx.crud.tableOption.loadingSpinner,\n \"element-loading-svg\": _ctx.crud.tableOption.loadingSvg,\n \"element-loading-background\": _ctx.crud.tableOption.loadingBackground,\n option: _ctx.option\n }), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createSlots\"])({ _: 2 /* DYNAMIC */ }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.crud.formSlot, (item) => {\n return {\n name: _ctx.getSlotName(item),\n fn: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])((scope) => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, item, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeProps\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"guardReactiveProps\"])(Object.assign(scope,{type:_ctx.boxType}))))\n ])\n }\n })\n ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, [\"modelValue\", \"status\", \"onChange\", \"onSubmit\", \"onResetChange\", \"onTabClick\", \"onError\", \"element-loading-text\", \"element-loading-spinner\", \"element-loading-svg\", \"element-loading-background\", \"option\"])), [\n [_directive_loading, _ctx.loading]\n ]),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])([\"avue-dialog__footer\", 'avue-dialog__footer--'+_ctx.dialogMenuPosition])\n }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"menu-form-before\", Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeProps\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"guardReactiveProps\"])(_ctx.menuParams()))),\n (_ctx.validData(_ctx.option.mockBtn,false) && !_ctx.isView)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 0,\n type: \"primary\",\n onClick: (_ctx.$refs.tableForm || {}).handleMock,\n loading: _ctx.disabled||_ctx.loading,\n size: _ctx.crud.size,\n icon: _ctx.option.mockIcon\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.option.mockText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"loading\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.validData(_ctx.option.submitBtn,true) && !_ctx.isView)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 1,\n onClick: _ctx.submit,\n loading: _ctx.disabled||_ctx.loading,\n size: _ctx.crud.size,\n icon: _ctx.option.submitIcon,\n type: \"primary\"\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.option.submitText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"loading\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n (_ctx.validData(_ctx.option.emptyBtn,true) && !_ctx.isView)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_button, {\n key: 2,\n onClick: _ctx.reset,\n disabled: _ctx.disabled||_ctx.loading,\n size: _ctx.crud.size,\n icon: _ctx.option.emptyIcon\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.option.emptyText), 1 /* TEXT */)\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"onClick\", \"disabled\", \"size\", \"icon\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true),\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"menu-form\", Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeProps\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"guardReactiveProps\"])(_ctx.menuParams())))\n ], 2 /* CLASS */)\n ]),\n _: 3 /* FORWARDED */\n }, 16 /* FULL_PROPS */, [\"draggable\", \"class\", \"append-to-body\", \"top\", \"title\", \"close-on-press-escape\", \"close-on-click-modal\", \"modal\", \"show-close\", \"modelValue\", \"before-close\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/dialog/dialog-form.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1596
1596
|
|
1597
1597
|
/***/ }),
|
1598
1598
|
|
@@ -1832,7 +1832,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1832
1832
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1833
1833
|
|
1834
1834
|
"use strict";
|
1835
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst _hoisted_1 = {\n key: 1,\n style: {\"margin-left\":\"8px\"}\n}\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_tree_select = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-tree-select\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_tree_select, {\n ref: \"tree\",\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b()),\n \"cache-data\": _ctx.cacheData,\n modelValue: _ctx.text,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event)),\n loading: _ctx.loading,\n lazy: _ctx.lazy,\n load: _ctx.handleLoad,\n onCheck: _ctx.checkChange,\n \"filter-node-method\": _ctx.filterNodeMethod,\n \"render-after-expand\": false,\n \"loading-text\": _ctx.loadingText,\n \"collapse-tags\": _ctx.tags,\n clearable: _ctx.clearableVal,\n placeholder: _ctx.placeholder,\n \"popper-class\": _ctx.popperClass,\n \"popper-append-to-body\": _ctx.popperAppendToBody,\n multiple: _ctx.multiple,\n \"node-key\": _ctx.valueKey,\n \"show-checkbox\": _ctx.multiple,\n filterable: _ctx.filterable,\n \"check-strictly\": _ctx.checkStrictly,\n disabled: _ctx.disabled,\n accordion: _ctx.accordion,\n \"icon-class\": _ctx.iconClass,\n indent: _ctx.indent,\n onFocus: _ctx.handleFocus,\n onBlur: _ctx.handleBlur,\n \"default-checked-keys\": _ctx.keysList,\n \"default-expanded-keys\": _ctx.defaultExpandedKeys?_ctx.defaultExpandedKeys:_ctx.keysList,\n \"default-expand-all\": _ctx.defaultExpandAll,\n \"check-on-click-node\": _ctx.checkOnClickNode,\n \"expand-on-click-node\": _ctx.expandOnClickNode,\n onNodeClick: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withModifiers\"])(_ctx.handleNodeClick, [\"self\"]),\n props: _ctx.treeProps,\n data: _ctx.netDic\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(({data,node}) => [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n node: node,\n item: data\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", _hoisted_1, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(data)), 1 /* TEXT */),\n (data[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(data[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ]))\n ]),\n _: 3 /* FORWARDED */\n }, 8 /* PROPS */, [\"class\", \"cache-data\", \"modelValue\", \"loading\", \"lazy\", \"load\", \"onCheck\", \"filter-node-method\", \"loading-text\", \"collapse-tags\", \"clearable\", \"placeholder\", \"popper-class\", \"popper-append-to-body\", \"multiple\", \"node-key\", \"show-checkbox\", \"filterable\", \"check-strictly\", \"disabled\", \"accordion\", \"icon-class\", \"indent\", \"onFocus\", \"onBlur\", \"default-checked-keys\", \"default-expanded-keys\", \"default-expand-all\", \"check-on-click-node\", \"expand-on-click-node\", \"onNodeClick\", \"props\", \"data\"]))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/input-tree/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1835
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nconst _hoisted_1 = {\n key: 1,\n style: {\"margin-left\":\"8px\"}\n}\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_tree_select = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-tree-select\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_tree_select, {\n ref: \"tree\",\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b()),\n \"cache-data\": _ctx.cacheData,\n modelValue: _ctx.text,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event)),\n loading: _ctx.loading,\n lazy: _ctx.lazy,\n load: _ctx.handleLoad,\n size: _ctx.size,\n onCheck: _ctx.checkChange,\n \"filter-node-method\": _ctx.filterNodeMethod,\n \"render-after-expand\": false,\n \"loading-text\": _ctx.loadingText,\n \"collapse-tags\": _ctx.tags,\n clearable: _ctx.clearableVal,\n placeholder: _ctx.placeholder,\n \"popper-class\": _ctx.popperClass,\n \"popper-append-to-body\": _ctx.popperAppendToBody,\n multiple: _ctx.multiple,\n \"node-key\": _ctx.valueKey,\n \"show-checkbox\": _ctx.multiple,\n filterable: _ctx.filterable,\n \"check-strictly\": _ctx.checkStrictly,\n disabled: _ctx.disabled,\n accordion: _ctx.accordion,\n \"icon-class\": _ctx.iconClass,\n indent: _ctx.indent,\n onFocus: _ctx.handleFocus,\n onBlur: _ctx.handleBlur,\n \"default-checked-keys\": _ctx.keysList,\n \"default-expanded-keys\": _ctx.defaultExpandedKeys?_ctx.defaultExpandedKeys:_ctx.keysList,\n \"default-expand-all\": _ctx.defaultExpandAll,\n \"check-on-click-node\": _ctx.checkOnClickNode,\n \"expand-on-click-node\": _ctx.expandOnClickNode,\n onNodeClick: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withModifiers\"])(_ctx.handleNodeClick, [\"self\"]),\n props: _ctx.treeProps,\n data: _ctx.netDic\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(({data,node}) => [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n node: node,\n item: data\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", _hoisted_1, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(data)), 1 /* TEXT */),\n (data[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(data[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ]))\n ]),\n _: 3 /* FORWARDED */\n }, 8 /* PROPS */, [\"class\", \"cache-data\", \"modelValue\", \"loading\", \"lazy\", \"load\", \"size\", \"onCheck\", \"filter-node-method\", \"loading-text\", \"collapse-tags\", \"clearable\", \"placeholder\", \"popper-class\", \"popper-append-to-body\", \"multiple\", \"node-key\", \"show-checkbox\", \"filterable\", \"check-strictly\", \"disabled\", \"accordion\", \"icon-class\", \"indent\", \"onFocus\", \"onBlur\", \"default-checked-keys\", \"default-expanded-keys\", \"default-expand-all\", \"check-on-click-node\", \"expand-on-click-node\", \"onNodeClick\", \"props\", \"data\"]))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/input-tree/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1836
1836
|
|
1837
1837
|
/***/ }),
|
1838
1838
|
|
@@ -1916,7 +1916,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1916
1916
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1917
1917
|
|
1918
1918
|
"use strict";
|
1919
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_option = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-option\")\n const _component_el_option_group = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-option-group\")\n const _component_el_checkbox = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-checkbox\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.componentName), {\n ref: \"main\",\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b()),\n modelValue: _ctx.text,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event)),\n size: _ctx.size,\n options: _ctx.options,\n loading: _ctx.loading,\n \"loading-text\": _ctx.loadingText,\n \"empty-values\": _ctx.emptyValues,\n \"value-on-clear\": _ctx.valueOnClear,\n multiple: _ctx.multiple,\n filterable: _ctx.remote?true:_ctx.filterable,\n remote: _ctx.remote,\n readonly: _ctx.readonly,\n \"no-match-text\": _ctx.noMatchText,\n \"no-data-text\": _ctx.noDataText,\n \"remote-method\": _ctx.remote?_ctx.handleRemoteMethod:undefined,\n \"popper-class\": _ctx.popperClass,\n \"popper-append-to-body\": _ctx.popperAppendToBody,\n \"collapse-tags\": _ctx.tags || _ctx.collapseTags,\n \"collapse-tags-tooltip\": _ctx.collapseTagsTooltip,\n \"max-collapse-tags\": _ctx.maxCollapseTags,\n clearable: _ctx.clearableVal,\n placeholder: _ctx.placeholder,\n onFocus: _ctx.handleFocus,\n onBlur: _ctx.handleBlur,\n onClick: _ctx.handleClick,\n \"multiple-limit\": _ctx.limit,\n \"allow-create\": _ctx.allowCreate,\n \"default-first-option\": _ctx.defaultFirstOption,\n disabled: _ctx.disabled\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(({item}) => [\n (_ctx.virtualize)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 0 }, [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n item: item\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(item)), 1 /* TEXT */),\n (item[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n ], 64 /* STABLE_FRAGMENT */))\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n (_ctx.isGroup)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 0 }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.netDic, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_option_group, {\n key: index,\n label: _ctx.getLabelText(item)\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(item[_ctx.groupsKey], (citem, cindex) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_option, {\n key: cindex,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(citem[_ctx.classNameKey]),\n disabled: citem[_ctx.disabledKey],\n label: _ctx.getLabelText(citem),\n value: citem[_ctx.valueKey]\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n item: citem\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(citem)), 1 /* TEXT */),\n (citem[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(citem[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"class\", \"disabled\", \"label\", \"value\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"label\"]))\n }), 128 /* KEYED_FRAGMENT */))\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('check'))\n }, [\n (_ctx.all&&_ctx.multiple)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_checkbox, {\n key: 0,\n value: _ctx.checked,\n checked: _ctx.checked,\n disabled: _ctx.disabled,\n indeterminate: _ctx.indeterminate,\n onChange: _ctx.checkChange\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(\"全选\")\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"value\", \"checked\", \"disabled\", \"indeterminate\", \"onChange\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 2 /* CLASS */),\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.netDic, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_option, {\n key: index,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(item[_ctx.classNameKey]),\n disabled: item[_ctx.disabledKey],\n label: _ctx.getLabelText(item) ,\n value: item[_ctx.valueKey]\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n item: item\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(item)), 1 /* TEXT */),\n (item[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"class\", \"disabled\", \"label\", \"value\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ], 64 /* STABLE_FRAGMENT */))\n ], 64 /* STABLE_FRAGMENT */))\n ]),\n _: 3 /* FORWARDED */\n }, 40 /* PROPS, NEED_HYDRATION */, [\"class\", \"modelValue\", \"size\", \"options\", \"loading\", \"loading-text\", \"empty-values\", \"value-on-clear\", \"multiple\", \"filterable\", \"remote\", \"readonly\", \"no-match-text\", \"no-data-text\", \"remote-method\", \"popper-class\", \"popper-append-to-body\", \"collapse-tags\", \"collapse-tags-tooltip\", \"max-collapse-tags\", \"clearable\", \"placeholder\", \"onFocus\", \"onBlur\", \"onClick\", \"multiple-limit\", \"allow-create\", \"default-first-option\", \"disabled\"]))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1919
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _component_el_option = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-option\")\n const _component_el_option_group = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-option-group\")\n const _component_el_checkbox = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveComponent\"])(\"el-checkbox\")\n\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.componentName), {\n ref: \"main\",\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b()),\n modelValue: _ctx.text,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event)),\n size: _ctx.size,\n options: _ctx.options,\n loading: _ctx.loading,\n \"loading-text\": _ctx.loadingText,\n \"empty-values\": _ctx.emptyValues,\n \"value-on-clear\": _ctx.valueOnClear,\n multiple: _ctx.multiple,\n filterable: _ctx.remote?true:_ctx.filterable,\n remote: _ctx.remote,\n readonly: _ctx.readonly,\n \"no-match-text\": _ctx.noMatchText,\n \"no-data-text\": _ctx.noDataText,\n \"remote-method\": _ctx.remote?_ctx.handleRemoteMethod:undefined,\n \"popper-class\": _ctx.popperClass,\n \"popper-append-to-body\": _ctx.popperAppendToBody,\n \"collapse-tags\": _ctx.tags || _ctx.collapseTags,\n \"collapse-tags-tooltip\": _ctx.collapseTagsTooltip,\n \"max-collapse-tags\": _ctx.maxCollapseTags,\n clearable: _ctx.clearableVal,\n placeholder: _ctx.placeholder,\n onFocus: _ctx.handleFocus,\n onBlur: _ctx.handleBlur,\n onClick: _ctx.handleClick,\n \"multiple-limit\": _ctx.limit,\n \"allow-create\": _ctx.allowCreate,\n \"default-first-option\": _ctx.defaultFirstOption,\n disabled: _ctx.disabled\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(({item}) => [\n (_ctx.virtualize)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 0 }, [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n item: item\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(item)), 1 /* TEXT */),\n (item[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n ], 64 /* STABLE_FRAGMENT */))\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n (_ctx.isGroup)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 0 }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.netDic, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_option_group, {\n key: index,\n label: _ctx.getLabelText(item)\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(item[_ctx.groupsKey], (citem, cindex) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_option, {\n key: citem[_ctx.valueKey],\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(citem[_ctx.classNameKey]),\n disabled: citem[_ctx.disabledKey],\n label: _ctx.getLabelText(citem),\n value: citem[_ctx.valueKey]\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n item: citem\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(citem)), 1 /* TEXT */),\n (citem[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(citem[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"class\", \"disabled\", \"label\", \"value\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"label\"]))\n }), 128 /* KEYED_FRAGMENT */))\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('check'))\n }, [\n (_ctx.all&&_ctx.multiple)\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_checkbox, {\n key: 0,\n value: _ctx.checked,\n checked: _ctx.checked,\n disabled: _ctx.disabled,\n indeterminate: _ctx.indeterminate,\n onChange: _ctx.checkChange\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createTextVNode\"])(\"全选\")\n ]),\n _: 1 /* STABLE */\n }, 8 /* PROPS */, [\"value\", \"checked\", \"disabled\", \"indeterminate\", \"onChange\"]))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 2 /* CLASS */),\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(true), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderList\"])(_ctx.netDic, (item, index) => {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(_component_el_option, {\n key: item[_ctx.valueKey],\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(item[_ctx.classNameKey]),\n disabled: item[_ctx.disabledKey],\n label: _ctx.getLabelText(item) ,\n value: item[_ctx.valueKey]\n }, {\n default: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"withCtx\"])(() => [\n (_ctx.$slots.default)\n ? Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"renderSlot\"])(_ctx.$slots, \"default\", {\n key: 0,\n label: _ctx.labelKey,\n value: _ctx.valueKey,\n item: item\n })\n : (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(vue__WEBPACK_IMPORTED_MODULE_0__[\"Fragment\"], { key: 1 }, [\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementVNode\"])(\"span\", null, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(_ctx.getLabelText(item)), 1 /* TEXT */),\n (item[_ctx.descKey])\n ? (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"span\", {\n key: 0,\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b('desc'))\n }, Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"toDisplayString\"])(item[_ctx.descKey]), 3 /* TEXT, CLASS */))\n : Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createCommentVNode\"])(\"v-if\", true)\n ], 64 /* STABLE_FRAGMENT */))\n ]),\n _: 2 /* DYNAMIC */\n }, 1032 /* PROPS, DYNAMIC_SLOTS */, [\"class\", \"disabled\", \"label\", \"value\"]))\n }), 128 /* KEYED_FRAGMENT */))\n ], 64 /* STABLE_FRAGMENT */))\n ], 64 /* STABLE_FRAGMENT */))\n ]),\n _: 3 /* FORWARDED */\n }, 40 /* PROPS, NEED_HYDRATION */, [\"class\", \"modelValue\", \"size\", \"options\", \"loading\", \"loading-text\", \"empty-values\", \"value-on-clear\", \"multiple\", \"filterable\", \"remote\", \"readonly\", \"no-match-text\", \"no-data-text\", \"remote-method\", \"popper-class\", \"popper-append-to-body\", \"collapse-tags\", \"collapse-tags-tooltip\", \"max-collapse-tags\", \"clearable\", \"placeholder\", \"onFocus\", \"onBlur\", \"onClick\", \"multiple-limit\", \"allow-create\", \"default-first-option\", \"disabled\"]))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1920
1920
|
|
1921
1921
|
/***/ }),
|
1922
1922
|
|
@@ -1988,7 +1988,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1988
1988
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1989
1989
|
|
1990
1990
|
"use strict";
|
1991
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b())\n }, [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.componentName), {\n modelValue: _ctx.text,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event)),\n \"popper-class\": _ctx.popperClass,\n \"is-range\": _ctx.isRange,\n size: _ctx.size,\n editable: _ctx.editable,\n \"disabled-hours\": _ctx.disabledHours,\n \"disabled-minutes\": _ctx.disabledMinutes,\n \"disabled-seconds\": _ctx.disabledSeconds,\n \"default-value\": _ctx.defaultValue,\n \"range-separator\": _ctx.rangeSeparator,\n \"arrow-control\": _ctx.arrowControl,\n \"start-placeholder\": _ctx.startPlaceholder || _ctx.t('time.start'),\n \"end-placeholder\": _ctx.endPlaceholder || _ctx.t('time.end'),\n format: _ctx.format,\n readonly: _ctx.readonly,\n clearable: _ctx.clearableVal,\n start: _ctx.start,\n end: _ctx.end,\n step: _ctx.step,\n \"max-time\": _ctx.maxTime,\n \"min-time\": _ctx.minTime,\n \"value-format\": _ctx.valueFormat,\n placeholder: _ctx.placeholder,\n onClick: _ctx.handleClick,\n disabled: _ctx.disabled\n }, null,
|
1991
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n return (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createElementBlock\"])(\"div\", {\n class: Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"normalizeClass\"])(_ctx.b())\n }, [\n (Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"openBlock\"])(), Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createBlock\"])(Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"resolveDynamicComponent\"])(_ctx.componentName), {\n modelValue: _ctx.text,\n \"onUpdate:modelValue\": _cache[0] || (_cache[0] = $event => ((_ctx.text) = $event)),\n \"popper-class\": _ctx.popperClass,\n \"is-range\": _ctx.isRange,\n size: _ctx.size,\n editable: _ctx.editable,\n \"disabled-hours\": _ctx.disabledHours,\n \"disabled-minutes\": _ctx.disabledMinutes,\n \"disabled-seconds\": _ctx.disabledSeconds,\n \"default-value\": _ctx.defaultValue,\n \"range-separator\": _ctx.rangeSeparator,\n onVisibleChange: _ctx.visibleChange,\n \"arrow-control\": _ctx.arrowControl,\n \"start-placeholder\": _ctx.startPlaceholder || _ctx.t('time.start'),\n \"end-placeholder\": _ctx.endPlaceholder || _ctx.t('time.end'),\n format: _ctx.format,\n readonly: _ctx.readonly,\n clearable: _ctx.clearableVal,\n start: _ctx.start,\n end: _ctx.end,\n step: _ctx.step,\n \"max-time\": _ctx.maxTime,\n \"min-time\": _ctx.minTime,\n \"value-format\": _ctx.valueFormat,\n placeholder: _ctx.placeholder,\n onClick: _ctx.handleClick,\n disabled: _ctx.disabled\n }, null, 40 /* PROPS, NEED_HYDRATION */, [\"modelValue\", \"popper-class\", \"is-range\", \"size\", \"editable\", \"disabled-hours\", \"disabled-minutes\", \"disabled-seconds\", \"default-value\", \"range-separator\", \"onVisibleChange\", \"arrow-control\", \"start-placeholder\", \"end-placeholder\", \"format\", \"readonly\", \"clearable\", \"start\", \"end\", \"step\", \"max-time\", \"min-time\", \"value-format\", \"placeholder\", \"onClick\", \"disabled\"]))\n ], 2 /* CLASS */))\n}\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/time/index.vue?./node_modules/vue-loader/dist/templateLoader.js??ref--5!./node_modules/vue-loader/dist??ref--1");
|
1992
1992
|
|
1993
1993
|
/***/ }),
|
1994
1994
|
|
@@ -2084,7 +2084,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _bab
|
|
2084
2084
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2085
2085
|
|
2086
2086
|
"use strict";
|
2087
|
-
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 emits: ['update:modelValue', 'click', 'focus', 'blur', 'change'],\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 \"default\": ''\n },\n tableData: {\n type: Object\n },\n modelValue: {},\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 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(val) {\n this.handleChange(val);\n this.handleTextValue && this.handleTextValue(val);\n },\n deep: true\n },\n modelValue: {\n handler: function handler(val) {\n this.initVal();\n this.handleModelValue && this.handleModelValue(val);\n },\n deep: true\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 isGroup: function isGroup() {\n var _this = this;\n var result = false;\n this.dic.forEach(function (ele) {\n if (ele[_this.groupsKey]) {\n result = true;\n }\n });\n return result;\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?");
|
2087
|
+
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 emits: ['update:modelValue', 'click', 'focus', 'blur', 'change'],\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 \"default\": ''\n },\n tableData: {\n type: Object\n },\n modelValue: {},\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 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(val) {\n this.handleChange(val);\n this.handleTextValue && this.handleTextValue(val);\n },\n deep: true\n },\n modelValue: {\n handler: function handler(val) {\n this.initVal();\n this.handleModelValue && this.handleModelValue(val);\n },\n deep: true\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 isGroup: function isGroup() {\n var _this = this;\n var result = false;\n this.dic.forEach(function (ele) {\n if (ele[_this.groupsKey]) {\n result = true;\n }\n });\n return result;\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?");
|
2088
2088
|
|
2089
2089
|
/***/ }),
|
2090
2090
|
|
@@ -2096,7 +2096,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var glob
|
|
2096
2096
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2097
2097
|
|
2098
2098
|
"use strict";
|
2099
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue */ \"./packages/core/components/dialog-form/index.vue\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (_context) {\n var defaultContext = _context;\n return function (opt) {\n var options = {\n opt: opt\n };\n var appendTo = opt.appendTo;\n if (opt.appendTo) {\n appendTo = document.querySelector(opt.appendTo);\n } else {\n appendTo = document.body;\n }\n var parent = document.createElement('div');\n var instance = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_index_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"], options);\n instance.appContext = defaultContext;\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"render\"])(instance, parent);\n appendTo.appendChild(parent.firstElementChild);\n return instance;\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/components/dialog-form/index.js?");
|
2099
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue */ \"./packages/core/components/dialog-form/index.vue\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (_context) {\n var defaultContext = _context;\n return function (opt) {\n var options = {\n opt: opt\n };\n var appendTo = opt.appendTo;\n if (opt.appendTo) {\n appendTo = document.querySelector(opt.appendTo);\n } else {\n appendTo = document.body;\n }\n var parent = document.createElement('div');\n var instance = Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"createVNode\"])(_index_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"], options);\n instance.appContext = defaultContext;\n var onDestroy = function onDestroy() {\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"render\"])(null, parent);\n parent.remove();\n };\n instance.props.onDestroy = onDestroy;\n instance.close = onDestroy;\n Object(vue__WEBPACK_IMPORTED_MODULE_0__[\"render\"])(instance, parent);\n appendTo.appendChild(parent.firstElementChild);\n return instance;\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/components/dialog-form/index.js?");
|
2100
2100
|
|
2101
2101
|
/***/ }),
|
2102
2102
|
|
@@ -2228,7 +2228,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
2228
2228
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2229
2229
|
|
2230
2230
|
"use strict";
|
2231
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue */ \"./packages/core/components/image-preview/index.vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (_context) {\n var defaultContext = _context;\n return function () {\n var datas = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var options = {\n datas: datas,\n index: index,\n ops: Object.assign({\n closeOnClickModal: false,\n beforeClose: null,\n click: null,\n modal: true\n }, ops)\n };\n var appendTo = ops.appendTo;\n if (ops.appendTo) {\n appendTo = document.querySelector(ops.appendTo);\n } else {\n appendTo = document.body;\n }\n var parent = document.createElement('div');\n var instance = Object(vue__WEBPACK_IMPORTED_MODULE_1__[\"createVNode\"])(_index_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"], options);\n instance.appContext = defaultContext;\n Object(vue__WEBPACK_IMPORTED_MODULE_1__[\"render\"])(instance, parent);\n appendTo.appendChild(parent.firstElementChild);\n return instance;\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.js?");
|
2231
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue */ \"./packages/core/components/image-preview/index.vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"vue\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function (_context) {\n var defaultContext = _context;\n return function () {\n var datas = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var index = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;\n var ops = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n var options = {\n datas: datas,\n index: index,\n ops: Object.assign({\n closeOnClickModal: false,\n beforeClose: null,\n click: null,\n modal: true\n }, ops)\n };\n var appendTo = ops.appendTo;\n if (ops.appendTo) {\n appendTo = document.querySelector(ops.appendTo);\n } else {\n appendTo = document.body;\n }\n var parent = document.createElement('div');\n var instance = Object(vue__WEBPACK_IMPORTED_MODULE_1__[\"createVNode\"])(_index_vue__WEBPACK_IMPORTED_MODULE_0__[\"default\"], options);\n instance.appContext = defaultContext;\n instance.props.onDestroy = function () {\n Object(vue__WEBPACK_IMPORTED_MODULE_1__[\"render\"])(null, parent);\n parent.remove();\n };\n Object(vue__WEBPACK_IMPORTED_MODULE_1__[\"render\"])(instance, parent);\n appendTo.appendChild(parent.firstElementChild);\n return instance;\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/components/image-preview/index.js?");
|
2232
2232
|
|
2233
2233
|
/***/ }),
|
2234
2234
|
|
@@ -2276,7 +2276,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
2276
2276
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2277
2277
|
|
2278
2278
|
"use strict";
|
2279
|
-
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
|
2279
|
+
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 mounted: function mounted(el, binding) {\n var id = binding.value.id;\n var event = binding.value.event;\n var hide = binding.value.hide;\n var value = binding.value.value;\n dialogDom = document.getElementById(id);\n if (!dialogDom) return;\n dialogDom.style.display = 'none';\n setEvent(el, value, event, hide);\n },\n updated: function updated(el, binding) {\n var event = binding.value.event;\n var hide = binding.value.hide;\n var value = binding.value.value;\n setEvent(el, value, event, hide);\n },\n unmounted: function unmounted(el) {\n el.oncontextmenu = null;\n }\n };\n})());\n\n//# sourceURL=webpack://AVUE/./packages/core/directive/contextmenu.js?");
|
2280
2280
|
|
2281
2281
|
/***/ }),
|
2282
2282
|
|
@@ -5132,7 +5132,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5132
5132
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5133
5133
|
|
5134
5134
|
"use strict";
|
5135
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.5.
|
5135
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '3.5.2';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
|
5136
5136
|
|
5137
5137
|
/***/ }),
|
5138
5138
|
|