@ttkj/avue 2.10.15 → 2.10.16
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +19 -19
- package/lib/avue.min.js +3 -3
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/types/form/column.d.ts +7 -1
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v2.10.
|
2
|
+
* Avue.js v2.10.16
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -674,7 +674,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
674
674
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
675
675
|
|
676
676
|
"use strict";
|
677
|
-
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\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"dynamic\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n inject: {\n formSafe: {\n \"default\": undefined\n }\n },\n data: function data() {\n return {\n reload: Math.random()\n };\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n max: Number,\n columnSlot: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n children: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 输入时是否触发表单的校验 */\n validateEvent: {\n type: Boolean,\n \"default\": true\n }\n },\n computed: {\n /** 是否显示索引 */showIndex: function showIndex() {\n return this.vaildData(this.children.index, true);\n },\n /** 明细类型 */showType: function showType() {\n return this.children.type || 'crud';\n },\n /** 是否表单模式 */isForm: function isForm() {\n return this.showType === 'form';\n },\n /** 是否表格模式 */isCrud: function isCrud() {\n return this.showType === 'crud';\n },\n /** 最大数量 */maxRows: function maxRows() {\n if (this.validatenull(this.max) || this.max < 0) return 0;\n return this.max;\n },\n /** 最小数量 */minRows: function minRows() {\n if (this.validatenull(this.min) || this.min < 0) return 0;\n if (this.maxRows > 0 && this.maxRows < this.min) return this.maxRows;\n return this.min;\n },\n /** 当明细组件位于表单中时表单的配置 */formOption: function formOption() {\n return this.formSafe ? this.formSafe.tableOption : {};\n },\n /** 能否操作 */canAction: function canAction() {\n if (this.formSafe) {\n var _this$formSafe$tableO = this.formSafe.tableOption,\n detail = _this$formSafe$tableO.detail,\n boxType = _this$formSafe$tableO.boxType;\n if (detail || boxType === 'view' || this.column.detail) return false;\n return true;\n }\n return !this.disabled && !this.readonly;\n },\n /** 是否显示新增按钮 */addBtn: function addBtn() {\n return this.children.addBtn !== false;\n },\n /** 新增按钮文字 */addBtnText: function addBtnText() {\n return this.children.addBtnText || '新 增';\n },\n /** 是否禁用添加按钮 */disableAddBtn: function disableAddBtn() {\n return this.maxRows > 0 && this.text.length >= this.maxRows;\n },\n /** 是否显示删除按钮 */delBtn: function delBtn() {\n return this.children.delBtn !== false;\n },\n /** 删除按钮文字 */delBtnText: function delBtnText() {\n return this.children.delBtnText || '删 除';\n },\n /** 是否禁用删除按钮 */disabledDelBtn: function disabledDelBtn() {\n return this.minRows > 0 && this.text.length <= this.minRows;\n },\n /** 是否开启排序 */sortable: function sortable() {\n return this.children.sortable;\n },\n /** 默认值配置 */valueOption: function valueOption() {\n var result = {};\n (this.children.column || []).forEach(function (ele) {\n if (ele.value) {\n result[ele.prop] = ele.value;\n }\n });\n return result;\n },\n /** 明细组件配置 */option: function option() {\n var _objectSpread2,\n _this = this;\n var formOption = this.formOption;\n var option = _objectSpread((_objectSpread2 = {\n border: true,\n header: false,\n size: this.size,\n disabled: this.disabled,\n readonly: this.readonly\n }, _defineProperty(_objectSpread2, \"size\", formOption.size), _defineProperty(_objectSpread2, \"validateEvent\", this.validateEvent), _objectSpread2), this.deepClone(this.children));\n if (this.isForm) {\n option = _objectSpread(_objectSpread({}, option), {}, {\n menuBtn: false,\n submitBtn: false,\n emptyBtn: false,\n labelWidth: formOption.labelWidth,\n labelPosition: formOption.labelPosition\n });\n }\n if (this.isCrud) {\n var showMenu = false;\n var menuWidth = 0;\n var menuAlign = 'center';\n delete option.sortable;\n // 详情模式或无按钮不显示菜单\n if (!formOption.detail) {\n var delBtn = this.delBtn,\n sortable = this.sortable;\n if (this.canAction && (delBtn || sortable)) {\n showMenu = true;\n }\n if (delBtn) {\n menuWidth += sortable ? 40 : 80;\n }\n if (sortable) {\n menuWidth += 100;\n menuAlign = 'left';\n }\n }\n option = _objectSpread(_objectSpread({}, option), {}, {\n indexLabel: ' ',\n menu: showMenu,\n menuWidth: menuWidth,\n menuAlign: menuAlign,\n editBtn: false,\n delBtn: false\n });\n !formOption.detail && option.column.forEach(function (column) {\n column.cell = _this.vaildData(column.cell, true);\n });\n }\n return option;\n },\n /** 根表单配置信息 */rootFormData: function rootFormData() {\n var _this$tableData = this.tableData,\n columnIndex = _this$tableData.columnIndex,\n row = _this$tableData.row;\n return {\n columnIndex: columnIndex,\n form: row,\n formOption: this.formOption\n };\n }\n },\n mounted: function mounted() {\n this.initData();\n },\n watch: {\n text: function text() {\n this.initData();\n }\n },\n methods: {\n handleSelectionChange: function handleSelectionChange(val) {\n var selectionChange = this.children.selectionChange;\n selectionChange && selectionChange(val);\n },\n handleSortableChange: function handleSortableChange(oldIndex, newIndex, row, list) {\n var sortableChange = this.children.sortableChange;\n sortableChange && sortableChange(oldIndex, newIndex, row, list);\n },\n /** 数据初始化 */initData: function initData() {\n var _this2 = this;\n this.text.forEach(function (ele) {\n ele = Object.assign(ele, {\n $cellEdit: true\n });\n });\n this.$nextTick(function () {\n // 初始化时若条数少于最小数量,则补充\n if (_this2.minRows > 0 && _this2.text.length < _this2.minRows) {\n for (var i = 0; i < _this2.minRows - _this2.text.length; i++) {\n _this2.addRow(true);\n }\n }\n });\n },\n /** 删除明细项 */delRow: function delRow(row, index) {\n var _this3 = this;\n var callback = function callback() {\n if (_this3.isCrud) {\n _this3.$refs.main.rowCellDelete(row, index);\n } else {\n var list = _this3.deepClone(_this3.text);\n list.splice(index, 1);\n _this3.text = list;\n // this.reload = Math.random();\n _this3.$nextTick(function () {\n _this3.clearValidate();\n });\n }\n };\n if (typeof this.children.rowDel === 'function') {\n this.children.rowDel(this.text[index], callback);\n } else {\n callback();\n }\n },\n /** 添加明细项 */addRow: function addRow() {\n var _this4 = this;\n var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var callback = function callback() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n obj = Object.assign(_this4.valueOption, obj);\n if (_this4.isCrud) {\n _this4.$refs.main.rowCellAdd(obj);\n } else if (_this4.isForm) {\n _this4.text.push(obj);\n }\n };\n if (!init && typeof this.children.rowAdd === 'function') {\n this.children.rowAdd(callback);\n } else {\n callback();\n }\n console.log(this.tableData.columnIndex, this.rootFormData.columnIndex);\n },\n /** 排序 */sortRow: function sortRow(row, index, isUp) {\n var _this5 = this;\n var text = _toConsumableArray(this.text);\n text.splice(index, 1);\n var nextIndex = isUp ? index - 1 : index + 1;\n text.splice(nextIndex, 0, row);\n this.text = text;\n this.$nextTick(function () {\n _this5.clearValidate();\n });\n },\n clearValidate: function clearValidate() {\n if (this.isCrud) {\n this.$refs.main.$refs.cellForm.clearValidate();\n } else if (this.isForm) {\n var main = this.$refs.main;\n (Array.isArray(main) ? main : [main]).forEach(function (main) {\n main.clearValidate();\n });\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/dynamic/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
677
|
+
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 utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"dynamic\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n inject: {\n formSafe: {\n \"default\": undefined\n }\n },\n data: function data() {\n return {\n reload: Math.random(),\n /** 配置项存储 */\n optionIndex: {}\n };\n },\n props: {\n uploadBefore: Function,\n uploadAfter: Function,\n uploadDelete: Function,\n uploadPreview: Function,\n uploadError: Function,\n uploadExceed: Function,\n max: Number,\n columnSlot: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n children: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 输入时是否触发表单的校验 */\n validateEvent: {\n type: Boolean,\n \"default\": true\n }\n },\n computed: {\n /** 是否显示索引 */showIndex: function showIndex() {\n return this.vaildData(this.children.index, true);\n },\n /** 明细类型 */showType: function showType() {\n return this.children.type || 'crud';\n },\n /** 是否表单模式 */isForm: function isForm() {\n return this.showType === 'form';\n },\n /** 是否表格模式 */isCrud: function isCrud() {\n return this.showType === 'crud';\n },\n /** 最大数量 */maxRows: function maxRows() {\n if (this.validatenull(this.max) || this.max < 0) return 0;\n return this.max;\n },\n /** 最小数量 */minRows: function minRows() {\n if (this.validatenull(this.min) || this.min < 0) return 0;\n if (this.maxRows > 0 && this.maxRows < this.min) return this.maxRows;\n return this.min;\n },\n /** 当明细组件位于表单中时表单的配置 */formOption: function formOption() {\n return this.formSafe ? this.formSafe.tableOption : {};\n },\n /** 能否操作 */canAction: function canAction() {\n if (this.formSafe) {\n var _this$formSafe$tableO = this.formSafe.tableOption,\n detail = _this$formSafe$tableO.detail,\n boxType = _this$formSafe$tableO.boxType;\n if (detail || boxType === 'view' || this.column.detail) return false;\n return true;\n }\n return !this.disabled && !this.readonly;\n },\n /** 是否显示新增按钮 */addBtn: function addBtn() {\n return this.children.addBtn !== false;\n },\n /** 新增按钮文字 */addBtnText: function addBtnText() {\n return this.children.addBtnText || '新 增';\n },\n /** 是否禁用添加按钮 */disableAddBtn: function disableAddBtn() {\n return this.maxRows > 0 && this.text.length >= this.maxRows;\n },\n /** 是否显示删除按钮 */delBtn: function delBtn() {\n return this.children.delBtn !== false;\n },\n /** 删除按钮文字 */delBtnText: function delBtnText() {\n return this.children.delBtnText || '删 除';\n },\n /** 是否禁用删除按钮 */disabledDelBtn: function disabledDelBtn() {\n return this.minRows > 0 && this.text.length <= this.minRows;\n },\n /** 是否开启排序 */sortable: function sortable() {\n return this.children.sortable;\n },\n /** 默认值配置 */valueOption: function valueOption() {\n var result = {};\n (this.children.column || []).forEach(function (ele) {\n if (ele.value) {\n result[ele.prop] = ele.value;\n }\n });\n return result;\n },\n /** 明细组件配置 */option: function option() {\n var _objectSpread2,\n _this = this;\n var formOption = this.formOption;\n var option = _objectSpread((_objectSpread2 = {\n border: true,\n header: false,\n size: this.size,\n disabled: this.disabled,\n readonly: this.readonly\n }, _defineProperty(_objectSpread2, \"size\", formOption.size), _defineProperty(_objectSpread2, \"validateEvent\", this.validateEvent), _objectSpread2), this.deepClone(this.children));\n if (this.isForm) {\n option = _objectSpread(_objectSpread({}, option), {}, {\n menuBtn: false,\n submitBtn: false,\n emptyBtn: false,\n labelWidth: formOption.labelWidth,\n labelPosition: formOption.labelPosition\n });\n }\n if (this.isCrud) {\n var showMenu = false;\n var menuWidth = 0;\n var menuAlign = 'center';\n delete option.sortable;\n // 详情模式或无按钮不显示菜单\n if (!formOption.detail) {\n var delBtn = this.delBtn,\n sortable = this.sortable;\n if (this.canAction && (delBtn || sortable)) {\n showMenu = true;\n }\n if (delBtn) {\n menuWidth += sortable ? 40 : 80;\n }\n if (sortable) {\n menuWidth += 100;\n menuAlign = 'left';\n }\n }\n option = _objectSpread(_objectSpread({}, option), {}, {\n indexLabel: ' ',\n menu: showMenu,\n menuWidth: menuWidth,\n menuAlign: menuAlign,\n editBtn: false,\n delBtn: false\n });\n !formOption.detail && option.column.forEach(function (column) {\n column.cell = _this.vaildData(column.cell, true);\n });\n }\n return option;\n },\n /** 根表单配置信息 */rootFormData: function rootFormData() {\n var _this$tableData = this.tableData,\n columnIndex = _this$tableData.columnIndex,\n row = _this$tableData.row;\n return {\n columnIndex: columnIndex,\n form: row,\n formOption: this.formOption\n };\n }\n },\n mounted: function mounted() {\n this.initData();\n },\n watch: {\n text: function text() {\n this.initData();\n },\n option: {\n deep: true,\n handler: function handler() {\n var _this2 = this;\n /** 外部调整配置后,所有表单项配置强制更新 */\n this.text.forEach(function (ele) {\n var $uuid = ele.$uuid || Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"UUID\"])(8);\n _this2.optionIndex[$uuid] = _this2.deepClone(_this2.option);\n });\n }\n }\n },\n methods: {\n getOption: function getOption(value) {\n if (!this.optionIndex[value.$uuid]) {\n this.optionIndex[value.$uuid] = this.deepClone(this.option);\n }\n return this.optionIndex[value.$uuid];\n },\n handleSelectionChange: function handleSelectionChange(val) {\n var selectionChange = this.children.selectionChange;\n selectionChange && selectionChange(val);\n },\n handleSortableChange: function handleSortableChange(oldIndex, newIndex, row, list) {\n var sortableChange = this.children.sortableChange;\n sortableChange && sortableChange(oldIndex, newIndex, row, list);\n },\n /** 数据初始化 */initData: function initData() {\n var _this3 = this;\n var optionIndex = {};\n this.text.forEach(function (ele) {\n var $uuid = ele.$uuid || Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"UUID\"])(8);\n ele = Object.assign(ele, {\n $cellEdit: true,\n $uuid: $uuid\n });\n if (_this3.optionIndex[$uuid]) {\n optionIndex[$uuid] = _this3.optionIndex[$uuid];\n } else {\n optionIndex[$uuid] = _this3.deepClone(_this3.option);\n }\n });\n this.optionIndex = optionIndex;\n this.$nextTick(function () {\n // 初始化时若条数少于最小数量,则补充\n if (_this3.minRows > 0 && _this3.text.length < _this3.minRows) {\n for (var i = 0; i < _this3.minRows - _this3.text.length; i++) {\n _this3.addRow(true);\n }\n }\n });\n },\n /** 删除明细项 */delRow: function delRow(row, index) {\n var _this4 = this;\n var callback = function callback() {\n if (_this4.isCrud) {\n _this4.$refs.main.rowCellDelete(row, index);\n } else {\n var list = _this4.deepClone(_this4.text);\n list.splice(index, 1);\n _this4.text = list;\n // this.reload = Math.random();\n _this4.$nextTick(function () {\n _this4.clearValidate();\n });\n }\n };\n if (typeof this.children.rowDel === 'function') {\n this.children.rowDel(this.text[index], callback);\n } else {\n callback();\n }\n },\n /** 添加明细项 */addRow: function addRow() {\n var _this5 = this;\n var init = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n var callback = function callback() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n obj = Object.assign({}, _this5.valueOption, obj);\n if (_this5.isCrud) {\n _this5.$refs.main.rowCellAdd(obj);\n } else if (_this5.isForm) {\n _this5.text.push(obj);\n }\n };\n if (!init && typeof this.children.rowAdd === 'function') {\n this.children.rowAdd(callback);\n } else {\n callback();\n }\n console.log(this.tableData.columnIndex, this.rootFormData.columnIndex);\n },\n /** 排序 */sortRow: function sortRow(row, index, isUp) {\n var _this6 = this;\n var text = _toConsumableArray(this.text);\n text.splice(index, 1);\n var nextIndex = isUp ? index - 1 : index + 1;\n text.splice(nextIndex, 0, row);\n this.text = text;\n this.$nextTick(function () {\n _this6.clearValidate();\n });\n },\n clearValidate: function clearValidate() {\n if (this.isCrud) {\n this.$refs.main.$refs.cellForm.clearValidate();\n } else if (this.isForm) {\n var main = this.$refs.main;\n (Array.isArray(main) ? main : [main]).forEach(function (main) {\n main.clearValidate();\n });\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/dynamic/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
678
678
|
|
679
679
|
/***/ }),
|
680
680
|
|
@@ -962,7 +962,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
962
962
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
963
963
|
|
964
964
|
"use strict";
|
965
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_common_props_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var common_common_event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! common/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n// 引用组件\n// 引入Mixin\n\n\n// 引用方法/配置\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n name: \"select\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])()],\n data: function data() {\n return {\n checked: false,\n indeterminate: false,\n created: false,\n netDic: [],\n loading: false,\n selected: undefined\n };\n },\n props: {\n /** 远程加载时显示的文字 */\n loadingText: {\n type: String\n },\n /** 搜索条件无匹配时显示的文字 */\n noMatchText: {\n type: String\n },\n /** 选项为空时显示的文字 */\n noDataText: {\n type: String\n },\n /** 是否允许选项拖拽 */\n drag: {\n type: Boolean,\n \"default\": false\n },\n /** 多选时是否将选中值按文字的形式展示 */\n tags: {\n type: Boolean,\n \"default\": false\n },\n /** 多选时用户最多可以选择的项目数,为 0 则不限制 */\n limit: {\n type: Number,\n \"default\": 0\n },\n /** 是否可搜索 */\n filterable: {\n type: Boolean,\n \"default\": false\n },\n /** 是否允许用户创建新条目,需配合 filterable 使用 */\n allowCreate: {\n type: Boolean,\n \"default\": false\n },\n /** 在输入框按下回车,选择第一个匹配项。需配合 filterable 或 remote 使用 */\n defaultFirstOption: {\n type: Boolean,\n \"default\": false\n },\n /** 多选情况下是否全选 */\n all: {\n type: Boolean,\n \"default\": false\n },\n /** 是否将弹出框插入至 body 元素。在弹出框的定位出现问题时,可将该属性设置为 false */\n popperAppendToBody: {\n type: Boolean,\n \"default\": true\n },\n /** 是否为远程搜索 */\n remote: {\n type: Boolean,\n \"default\": false\n },\n /** 远程搜索方法 */\n remoteMethod: {\n type: Function,\n required: false\n }\n },\n watch: {\n dic: {\n immediate: true,\n handler: function handler(dic, oldDic) {\n if (lodash__WEBPACK_IMPORTED_MODULE_2___default.a.isEqual(dic, oldDic)) return;\n this.netDic = dic;\n }\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n /** 值改变时进行部分处理 */textChange: function textChange(val) {\n if (!this.validatenull(val)) {\n if (this.remote && !this.created) {\n // 默认进行一次远程搜索用以获取当前选中值对应的下拉选项\n this.created = true;\n this.handleRemoteMethod(this.multiple ? this.text.join(global_variable__WEBPACK_IMPORTED_MODULE_3__[\"DIC_SPLIT\"]) : this.text);\n }\n }\n // 设置选中情况\n if (this.multiple) {\n if (this.text.length == 0) {\n this.checked = false;\n this.indeterminate = false;\n } else if (this.text.length == this.netDic.length) {\n this.checked = true;\n this.indeterminate = false;\n } else {\n this.checked = false;\n this.indeterminate = true;\n }\n }\n this.handleChange(val);\n },\n /** 选项排序 */setSort: function setSort() {\n var _this = this;\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_4__[\"default\"].logs('Sortable');\n return;\n }\n var el = this.$refs.main.$el.querySelectorAll('.el-select__tags > span')[0];\n window.Sortable.create(el, {\n animation: 100,\n onEnd: function onEnd(evt) {\n var targetRow = _this.value.splice(evt.oldIndex, 1)[0];\n _this.value.splice(evt.newIndex, 0, targetRow);\n }\n });\n },\n /** 远程搜索 */handleRemoteMethod: function handleRemoteMethod(query) {\n var _this2 = this;\n this.loading = true;\n var updateDic = function updateDic(dic) {\n _this2.loading = false;\n _this2.netDic = dic;\n };\n if (this.remoteMethod) {\n var remote = this.remoteMethod({\n column: this.column,\n value: query\n });\n if (remote.then) {\n return remote.then(updateDic);\n } else if (Array.isArray(remote)) {\n updateDic(remote);\n }\n } else {\n
|
965
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_common_props_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/common/props.js */ \"./packages/core/common/props.js\");\n/* harmony import */ var common_common_event_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! common/common/event.js */ \"./packages/core/common/event.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && \"function\" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }, _typeof(obj); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\n// 引用组件\n// 引入Mixin\n\n\n// 引用方法/配置\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_5__[\"default\"])({\n name: \"select\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])()],\n data: function data() {\n return {\n checked: false,\n indeterminate: false,\n created: false,\n netDic: [],\n loading: false,\n selected: undefined\n };\n },\n props: {\n /** 远程加载时显示的文字 */\n loadingText: {\n type: String\n },\n /** 搜索条件无匹配时显示的文字 */\n noMatchText: {\n type: String\n },\n /** 选项为空时显示的文字 */\n noDataText: {\n type: String\n },\n /** 是否允许选项拖拽 */\n drag: {\n type: Boolean,\n \"default\": false\n },\n /** 多选时是否将选中值按文字的形式展示 */\n tags: {\n type: Boolean,\n \"default\": false\n },\n /** 多选时用户最多可以选择的项目数,为 0 则不限制 */\n limit: {\n type: Number,\n \"default\": 0\n },\n /** 是否可搜索 */\n filterable: {\n type: Boolean,\n \"default\": false\n },\n /** 是否允许用户创建新条目,需配合 filterable 使用 */\n allowCreate: {\n type: Boolean,\n \"default\": false\n },\n /** 在输入框按下回车,选择第一个匹配项。需配合 filterable 或 remote 使用 */\n defaultFirstOption: {\n type: Boolean,\n \"default\": false\n },\n /** 多选情况下是否全选 */\n all: {\n type: Boolean,\n \"default\": false\n },\n /** 是否将弹出框插入至 body 元素。在弹出框的定位出现问题时,可将该属性设置为 false */\n popperAppendToBody: {\n type: Boolean,\n \"default\": true\n },\n /** 是否为远程搜索 */\n remote: {\n type: Boolean,\n \"default\": false\n },\n /** 远程搜索方法 */\n remoteMethod: {\n type: Function,\n required: false\n }\n },\n watch: {\n dic: {\n immediate: true,\n handler: function handler(dic, oldDic) {\n if (lodash__WEBPACK_IMPORTED_MODULE_2___default.a.isEqual(dic, oldDic)) return;\n this.netDic = dic;\n this.updateSelected();\n }\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n /** 值改变时进行部分处理 */textChange: function textChange(val) {\n if (!this.validatenull(val)) {\n if (this.remote && !this.created) {\n // 默认进行一次远程搜索用以获取当前选中值对应的下拉选项\n this.created = true;\n this.handleRemoteMethod(this.multiple ? this.text.join(global_variable__WEBPACK_IMPORTED_MODULE_3__[\"DIC_SPLIT\"]) : this.text);\n }\n }\n // 设置选中情况\n if (this.multiple) {\n if (this.text.length == 0) {\n this.checked = false;\n this.indeterminate = false;\n } else if (this.text.length == this.netDic.length) {\n this.checked = true;\n this.indeterminate = false;\n } else {\n this.checked = false;\n this.indeterminate = true;\n }\n }\n this.handleChange(val);\n },\n /** 选项排序 */setSort: function setSort() {\n var _this = this;\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_4__[\"default\"].logs('Sortable');\n return;\n }\n var el = this.$refs.main.$el.querySelectorAll('.el-select__tags > span')[0];\n window.Sortable.create(el, {\n animation: 100,\n onEnd: function onEnd(evt) {\n var targetRow = _this.value.splice(evt.oldIndex, 1)[0];\n _this.value.splice(evt.newIndex, 0, targetRow);\n }\n });\n },\n /** 远程搜索 */handleRemoteMethod: function handleRemoteMethod(query) {\n var _this2 = this;\n this.loading = true;\n var updateDic = function updateDic(dic) {\n _this2.loading = false;\n _this2.netDic = dic;\n };\n if (this.remoteMethod) {\n var remote = this.remoteMethod({\n column: this.column,\n value: query\n });\n if (remote.then) {\n return remote.then(updateDic);\n } else if (Array.isArray(remote)) {\n updateDic(remote);\n }\n } else {\n var params = {\n column: this.column,\n value: query,\n form: {}\n };\n if (this.tableData && this.tableData.row) {\n params.form = this.tableData.row;\n }\n return Object(core_dic__WEBPACK_IMPORTED_MODULE_6__[\"sendDic\"])(params).then(updateDic);\n }\n },\n /** 多选取值 */checkChange: function checkChange(val) {\n var _this3 = this;\n this.text = [];\n this.checked = val;\n this.indeterminate = false;\n if (val) {\n this.text = this.netDic.map(function (ele) {\n return ele[_this3.valueKey];\n });\n }\n },\n /** 根据选中值获取DIC对象 */updateSelected: function updateSelected() {\n var _this4 = this;\n if (this.multiple) {\n var selected = (this.text || []).reduce(function (selected, value) {\n var dic = _this4.netDic.find(function (dic) {\n return dic[_this4.valueKey] === value;\n });\n if (!dic) {\n dic = _this4.selected.find(function (dic) {\n return dic[_this4.valueKey] === value;\n });\n if (!dic) {\n var _dic;\n dic = (_dic = {}, _defineProperty(_dic, _this4.valueKey, value), _defineProperty(_dic, _this4.labelKey, value), _dic);\n }\n }\n selected.push(dic);\n return selected;\n }, []);\n this.selected = selected;\n return;\n }\n this.selected = this.text ? this.netDic.find(function (dic) {\n return dic[_this4.valueKey] === _this4.text;\n }) : undefined;\n },\n /** 值改变事件 */handleChange: function handleChange(value) {\n var result = value;\n var flag = this.isString || this.isNumber || this.stringMode || this.listType === \"picture-img\";\n if (flag && Array.isArray(value)) {\n result = value.join(this.separator);\n }\n this.updateSelected();\n this.$emit('input', result);\n this.bindEvent('change', {\n value: result,\n selected: this.selected\n });\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_z2ws6pnxa5zk5axe2qz6qd5y4u/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
966
966
|
|
967
967
|
/***/ }),
|
968
968
|
|
@@ -1686,15 +1686,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1686
1686
|
|
1687
1687
|
/***/ }),
|
1688
1688
|
|
1689
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/dynamic/index.vue?vue&type=template&id=
|
1689
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/dynamic/index.vue?vue&type=template&id=41d27f52&":
|
1690
1690
|
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1691
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/dynamic/index.vue?vue&type=template&id=
|
1691
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/dynamic/index.vue?vue&type=template&id=41d27f52& ***!
|
1692
1692
|
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1693
1693
|
/*! exports provided: render, staticRenderFns */
|
1694
1694
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
1695
1695
|
|
1696
1696
|
"use strict";
|
1697
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{key:_vm.reload,class:_vm.b()},[(_vm.isForm)?_vm._l((_vm.text),function(row,index){return _c('section',{key:index,class:_vm.b('row')},[_c('header',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showIndex || _vm.canAction),expression:\"showIndex || canAction\"}],class:_vm.b('row--header')},[_c('span',[(_vm.showIndex)?[_vm._v(\"\\n \"+_vm._s(_vm.label)+\" \"+_vm._s(_vm.text.length > 1 ? index + 1 : '')+\"\\n \")]:_vm._e()],2),_vm._v(\" \"),(_vm.canAction)?_c('span',[(_vm.delBtn)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\",\"disabled\":_vm.disabledDelBtn},on:{\"click\":function($event){return _vm.delRow(row, index)}}},[_vm._v(_vm._s(_vm.delBtnText))]):_vm._e()],1):_vm._e()]),_vm._v(\" \"),_c('avue-form',_vm._b({key:index,ref:\"main\",refInFor:true,attrs:{\"option\":_vm.
|
1697
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{key:_vm.reload,class:_vm.b()},[(_vm.isForm)?_vm._l((_vm.text),function(row,index){return _c('section',{key:index,class:_vm.b('row')},[_c('header',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showIndex || _vm.canAction),expression:\"showIndex || canAction\"}],class:_vm.b('row--header')},[_c('span',[(_vm.showIndex)?[_vm._v(\"\\n \"+_vm._s(_vm.label)+\" \"+_vm._s(_vm.text.length > 1 ? index + 1 : '')+\"\\n \")]:_vm._e()],2),_vm._v(\" \"),(_vm.canAction)?_c('span',[(_vm.delBtn)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\",\"disabled\":_vm.disabledDelBtn},on:{\"click\":function($event){return _vm.delRow(row, index)}}},[_vm._v(_vm._s(_vm.delBtnText))]):_vm._e()],1):_vm._e()]),_vm._v(\" \"),_c('avue-form',_vm._b({key:index,ref:\"main\",refInFor:true,attrs:{\"option\":_vm.getOption(row),\"table-data\":{ rootFormData: { columnIndex: _vm.tableData.columnIndex, formOption: _vm.formOption, data: _vm.tableData.row }, index }},scopedSlots:_vm._u([_vm._l((_vm.columnSlot),function(item){return {key:item,fn:function(scope){return [_vm._t(item,null,null,Object.assign(scope,{\n row:_vm.text[index]\n }))]}}})],null,true),model:{value:(_vm.text[index]),callback:function ($$v) {_vm.$set(_vm.text, index, $$v)},expression:\"text[index]\"}},'avue-form',_vm.$uploadFun({},this),false))],1)}):(_vm.isCrud)?_c('avue-crud',_vm._b({ref:\"main\",attrs:{\"option\":_vm.option,\"disabled\":_vm.disabled,\"root-form-data\":{ columnIndex: _vm.tableData.columnIndex, formOption: _vm.formOption, data: _vm.tableData.row },\"data\":_vm.text},on:{\"selection-change\":_vm.handleSelectionChange},scopedSlots:_vm._u([{key:\"menu\",fn:function({ row, index }){return [(_vm.delBtn)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\",\"disabled\":_vm.disabledDelBtn},on:{\"click\":function($event){return _vm.delRow(row, index)}}},[_vm._v(_vm._s(_vm.delBtnText))]):_vm._e(),_vm._v(\" \"),(_vm.sortable)?[(index !== 0)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.sortRow(row, index, true)}}},[_vm._v(\"上 移\")]):_vm._e(),_vm._v(\" \"),(index !== _vm.text.length - 1)?_c('el-button',{attrs:{\"type\":\"text\",\"size\":\"mini\"},on:{\"click\":function($event){return _vm.sortRow(row, index)}}},[_vm._v(\"下 移\")]):_vm._e()]:_vm._e()]}},_vm._l((_vm.columnSlot),function(item){return {key:_vm.getSlotName({prop:item},'F'),fn:function(scope){return [_vm._t(item,null,null,scope)]}}}),{key:\"empty\",fn:function(){return [_c('span')]},proxy:true}],null,true)},'avue-crud',_vm.$uploadFun({},this),false)):_vm._e(),_vm._v(\" \"),(_vm.canAction && _vm.addBtn)?_c('div',{class:_vm.b('toolbar')},[_c('el-button',{attrs:{\"type\":\"primary\",\"icon\":\"el-icon-plus\",\"size\":\"mini\",\"disabled\":_vm.disableAddBtn},on:{\"click\":function($event){return _vm.addRow()}}},[_vm._v(_vm._s(_vm.addBtnText))]),_vm._v(\" \"),(this.maxRows)?_c('span',{class:_vm.b('max-message')},[_vm._v(\"\\n (最多添加\"+_vm._s(this.maxRows)+\"条)\\n \")]):_vm._e()],1):_vm._e()],2)\n}\nvar staticRenderFns = []\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/dynamic/index.vue?./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options");
|
1698
1698
|
|
1699
1699
|
/***/ }),
|
1700
1700
|
|
@@ -1974,9 +1974,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1974
1974
|
|
1975
1975
|
/***/ }),
|
1976
1976
|
|
1977
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=
|
1977
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=08608570&":
|
1978
1978
|
/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1979
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=
|
1979
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=08608570& ***!
|
1980
1980
|
\*********************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1981
1981
|
/*! exports provided: render, staticRenderFns */
|
1982
1982
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -2297,7 +2297,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
2297
2297
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2298
2298
|
|
2299
2299
|
"use strict";
|
2300
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n data: function data() {\n return {\n stringMode: false,\n name: '',\n text: undefined,\n propsHttpDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"],\n propsDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"]\n };\n },\n props: {\n blur: Function,\n focus: Function,\n change: Function,\n click: Function,\n typeformat: Function,\n control: Function,\n separator: {\n type: String,\n \"default\": global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_SPLIT\"]\n },\n params: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n listType: {\n type: String\n },\n tableData: {\n type: Object\n },\n value: {},\n column: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n label: {\n type: String,\n \"default\": ''\n },\n readonly: {\n type: Boolean,\n \"default\": false\n },\n size: {\n type: String,\n \"default\": ''\n },\n tip: {\n type: String,\n \"default\": ''\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n dataType: {\n type: String\n },\n clearable: {\n type: Boolean,\n \"default\": true\n },\n type: {\n type: String,\n \"default\": ''\n },\n /** 自定义组件 */\n component: String,\n /**\r\n * 组件类型\r\n * 可选值: layout(布局)、basic(基础)、form(表单)\r\n * 默认值:form\r\n */\n componentType: String,\n dicUrl: {\n type: String,\n \"default\": ''\n },\n dicMethod: {\n type: String,\n \"default\": ''\n },\n dicFormatter: Function,\n dicQuery: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n dic: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n placeholder: {\n type: String,\n \"default\": ''\n },\n rules: {\n type: Array\n },\n min: {\n type: Number\n },\n max: {\n type: Number\n },\n multiple: {\n type: Boolean,\n \"default\": false\n },\n button: {\n type: Boolean,\n \"default\": false\n },\n group: {\n type: Boolean,\n \"default\": false\n },\n row: {\n type: Boolean,\n \"default\": false\n },\n prop: {\n type: String,\n \"default\": ''\n },\n border: {\n type: Boolean,\n \"default\": false\n },\n popperClass: {\n type: String\n },\n propsHttp: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"];\n }\n },\n props: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"];\n }\n }\n },\n watch: {\n text: {\n handler: function handler(text, oldText) {\n this.textChange(text, oldText);\n }\n },\n value: {\n handler: function handler() {\n this.initVal();\n }\n }\n },\n computed: {\n clearableVal: function clearableVal() {\n return this.disabled ? false : this.clearable;\n },\n componentName: function componentName() {\n var type = 'el';\n var result = \"\".concat(type, \"-\").concat(this.name).concat(this.button ? '-button' : '');\n return result;\n },\n required: function required() {\n return !this.validatenull(this.rules);\n },\n isArray: function isArray() {\n return this.dataType === 'array';\n },\n isString: function isString() {\n return this.dataType === 'string';\n },\n isNumber: function isNumber() {\n return this.dataType === 'number';\n },\n 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 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 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 methods: {\n /** 值改变事件 */textChange: function textChange(text) {\n this.handleChange(text);\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/props.js?");
|
2300
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n data: function data() {\n return {\n stringMode: false,\n name: '',\n text: undefined,\n propsHttpDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"],\n propsDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"]\n };\n },\n props: {\n blur: Function,\n focus: Function,\n change: Function,\n click: Function,\n typeformat: Function,\n control: Function,\n separator: {\n type: String,\n \"default\": global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_SPLIT\"]\n },\n params: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n listType: {\n type: String\n },\n tableData: {\n type: Object\n },\n value: {},\n column: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n label: {\n type: String,\n \"default\": ''\n },\n readonly: {\n type: Boolean,\n \"default\": false\n },\n size: {\n type: String,\n \"default\": ''\n },\n tip: {\n type: String,\n \"default\": ''\n },\n disabled: {\n type: Boolean,\n \"default\": false\n },\n dataType: {\n type: String\n },\n clearable: {\n type: Boolean,\n \"default\": true\n },\n type: {\n type: String,\n \"default\": ''\n },\n /** 自定义组件 */\n component: String,\n /**\r\n * 组件类型\r\n * 可选值: layout(布局)、basic(基础)、form(表单)\r\n * 默认值:form\r\n */\n componentType: String,\n dicUrl: {\n type: String,\n \"default\": ''\n },\n dicMethod: {\n type: String,\n \"default\": ''\n },\n dicFormatter: Function,\n dicQuery: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n dic: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n placeholder: {\n type: String,\n \"default\": ''\n },\n rules: {\n type: Array\n },\n min: {\n type: Number\n },\n max: {\n type: Number\n },\n multiple: {\n type: Boolean,\n \"default\": false\n },\n button: {\n type: Boolean,\n \"default\": false\n },\n group: {\n type: Boolean,\n \"default\": false\n },\n row: {\n type: Boolean,\n \"default\": false\n },\n prop: {\n type: String,\n \"default\": ''\n },\n border: {\n type: Boolean,\n \"default\": false\n },\n popperClass: {\n type: String\n },\n propsHttp: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"];\n }\n },\n props: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"];\n }\n }\n },\n watch: {\n text: {\n handler: function handler(text, oldText) {\n this.textChange(text, oldText);\n }\n },\n value: {\n handler: function handler() {\n this.initVal();\n }\n }\n },\n computed: {\n clearableVal: function clearableVal() {\n return this.disabled ? false : this.clearable;\n },\n componentName: function componentName() {\n var type = 'el';\n var result = \"\".concat(type, \"-\").concat(this.name).concat(this.button ? '-button' : '');\n return result;\n },\n required: function required() {\n return !this.validatenull(this.rules);\n },\n isArray: function isArray() {\n return this.dataType === 'array';\n },\n isString: function isString() {\n return this.dataType === 'string';\n },\n isNumber: function isNumber() {\n return this.dataType === 'number';\n },\n isObject: function isObject() {\n return this.dataType === 'object';\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 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 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 methods: {\n /** 值改变事件 */textChange: function textChange(text) {\n this.handleChange(text);\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/props.js?");
|
2301
2301
|
|
2302
2302
|
/***/ }),
|
2303
2303
|
|
@@ -4097,7 +4097,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4097
4097
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4098
4098
|
|
4099
4099
|
"use strict";
|
4100
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4100
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_41d27f52___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=41d27f52& */ \"./packages/element-ui/dynamic/index.vue?vue&type=template&id=41d27f52&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/element-ui/dynamic/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_41d27f52___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_41d27f52___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/dynamic/index.vue?");
|
4101
4101
|
|
4102
4102
|
/***/ }),
|
4103
4103
|
|
@@ -4113,15 +4113,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4113
4113
|
|
4114
4114
|
/***/ }),
|
4115
4115
|
|
4116
|
-
/***/ "./packages/element-ui/dynamic/index.vue?vue&type=template&id=
|
4116
|
+
/***/ "./packages/element-ui/dynamic/index.vue?vue&type=template&id=41d27f52&":
|
4117
4117
|
/*!******************************************************************************!*\
|
4118
|
-
!*** ./packages/element-ui/dynamic/index.vue?vue&type=template&id=
|
4118
|
+
!*** ./packages/element-ui/dynamic/index.vue?vue&type=template&id=41d27f52& ***!
|
4119
4119
|
\******************************************************************************/
|
4120
4120
|
/*! exports provided: render, staticRenderFns */
|
4121
4121
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4122
4122
|
|
4123
4123
|
"use strict";
|
4124
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4124
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_41d27f52___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=41d27f52& */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/dynamic/index.vue?vue&type=template&id=41d27f52&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_41d27f52___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_41d27f52___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/dynamic/index.vue?");
|
4125
4125
|
|
4126
4126
|
/***/ }),
|
4127
4127
|
|
@@ -4961,7 +4961,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4961
4961
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4962
4962
|
|
4963
4963
|
"use strict";
|
4964
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4964
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_08608570___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=08608570& */ \"./packages/element-ui/select/index.vue?vue&type=template&id=08608570&\");\n/* harmony import */ var _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index.vue?vue&type=script&lang=js& */ \"./packages/element-ui/select/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_08608570___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_08608570___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?");
|
4965
4965
|
|
4966
4966
|
/***/ }),
|
4967
4967
|
|
@@ -4977,15 +4977,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4977
4977
|
|
4978
4978
|
/***/ }),
|
4979
4979
|
|
4980
|
-
/***/ "./packages/element-ui/select/index.vue?vue&type=template&id=
|
4980
|
+
/***/ "./packages/element-ui/select/index.vue?vue&type=template&id=08608570&":
|
4981
4981
|
/*!*****************************************************************************!*\
|
4982
|
-
!*** ./packages/element-ui/select/index.vue?vue&type=template&id=
|
4982
|
+
!*** ./packages/element-ui/select/index.vue?vue&type=template&id=08608570& ***!
|
4983
4983
|
\*****************************************************************************/
|
4984
4984
|
/*! exports provided: render, staticRenderFns */
|
4985
4985
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4986
4986
|
|
4987
4987
|
"use strict";
|
4988
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4988
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_08608570___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=08608570& */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=08608570&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_08608570___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_3ngm42yq4q4efcqlzctwtjfjeq_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_08608570___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?");
|
4989
4989
|
|
4990
4990
|
/***/ }),
|
4991
4991
|
|
@@ -5477,7 +5477,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var util
|
|
5477
5477
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5478
5478
|
|
5479
5479
|
"use strict";
|
5480
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCascader\", function() { return calcCascader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCount\", function() { return calcCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initVal\", function() { return initVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSearchType\", function() { return getSearchType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getComponent\", function() { return getComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formInitVal\", function() { return formInitVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPlaceholder\", function() { return getPlaceholder; });\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! locale */ \"./src/locale/index.js\");\n\n\n\n\n/**\n * 计算级联属性\n */\nvar calcCascader = function calcCascader() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list.forEach(function (ele) {\n var cascader = ele.cascader;\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(cascader)) {\n var parentProp = ele.prop;\n cascader.forEach(function (citem) {\n var column = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findObject\"])(list, citem);\n if (column) column.parentProp = parentProp;\n });\n }\n });\n return list;\n};\n/**\n * 计算空白列row\n */\nvar count = 0;\nvar calcCount = function calcCount(ele) {\n var spanDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 12;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n if (init) count = 0;\n var spanAll = 24;\n count = count + (ele.span || spanDefault) + (ele.offset || 0);\n if (count === spanAll) {\n count = 0;\n } else if (count > spanAll) {\n count = 0 + (ele.span || spanDefault) + (ele.offset || 0);\n } else if (ele.row && count !== spanAll) {\n ele.count = spanAll - count;\n count = 0;\n }\n return ele;\n};\n\n/**\n * 初始化数据格式\n */\nvar initVal = function initVal(value, safe) {\n var type = safe.type,\n multiple = safe.multiple,\n dataType = safe.dataType,\n _safe$separator = safe.separator,\n separator = _safe$separator === void 0 ? global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SPLIT\"] : _safe$separator,\n alone = safe.alone,\n emitPath = safe.emitPath,\n range = safe.range;\n var list = value;\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(type) && multiple == true || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(type) && emitPath !== false || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(type) && range == true) {\n if (!Array.isArray(list)) {\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list)) {\n list = [];\n } else {\n list = (list + '').split(separator) || [];\n }\n }\n // 数据转化\n list.forEach(function (ele, index) {\n list[index] = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(ele, dataType);\n });\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_LIST\"].includes(type) && Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list) && alone) list = [''];\n } else {\n list = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(list, dataType);\n }\n return list;\n};\n\n/**\n * 搜索框获取动态组件\n */\nvar getSearchType = function getSearchType(column) {\n var type = column.type;\n var range = column.searchRange;\n var result = type;\n if (column.searchType) return column.searchType;\n if (['radio', 'checkbox', 'switch', 'tag-select'].includes(type)) {\n result = 'select';\n } else if (['rate', 'slider', 'number'].includes(type)) {\n if (range || column.range) {\n result = 'number-range';\n } else {\n result = 'number';\n }\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n var rangeKey = 'range';\n if (range) {\n if (!type.includes(rangeKey)) {\n result = type + rangeKey;\n } else {\n result = type;\n }\n } else result = type.replace(rangeKey, '');\n } else if (['textarea', 'dynamic'].includes(type)) {\n result = 'input';\n }\n return result;\n};\n\n/**\n * 动态获取组件\n */\nvar getComponent = function getComponent(type, component) {\n var result = type || 'input';\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(component)) {\n return component;\n } else if (['img', 'array', 'url'].includes(type)) {\n result = 'array';\n } else if (['time', 'timerange'].includes(type)) {\n result = 'time';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n result = 'date';\n } else if (['password', 'textarea', 'search'].includes(type)) {\n result = 'input';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"INPUT_LIST\"].includes(type)) {\n result = 'input-' + type;\n }\n return global_variable__WEBPACK_IMPORTED_MODULE_1__[\"KEY_COMPONENT_NAME\"] + result;\n};\n\n/**\n * 表格初始化值\n */\n\nvar formInitVal = function formInitVal() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var tableForm = {};\n list.forEach(function (ele) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(ele.type) && ele.emitPath !== false || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(ele.type) && ele.multiple || ele.dataType === 'array') {\n tableForm[ele.prop] = [];\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(ele.type) && ele.range == true) {\n tableForm[ele.prop] = [0, 0];\n } else if (['rate', 'slider', 'number'].includes(ele.type) || ele.dataType
|
5480
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCascader\", function() { return calcCascader; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"calcCount\", function() { return calcCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"initVal\", function() { return initVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSearchType\", function() { return getSearchType; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getComponent\", function() { return getComponent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"formInitVal\", function() { return formInitVal; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getPlaceholder\", function() { return getPlaceholder; });\n/* harmony import */ var utils_validate__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! utils/validate */ \"./src/utils/validate.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! locale */ \"./src/locale/index.js\");\n\n\n\n\n/**\n * 计算级联属性\n */\nvar calcCascader = function calcCascader() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list.forEach(function (ele) {\n var cascader = ele.cascader;\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(cascader)) {\n var parentProp = ele.prop;\n cascader.forEach(function (citem) {\n var column = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findObject\"])(list, citem);\n if (column) column.parentProp = parentProp;\n });\n }\n });\n return list;\n};\n/**\n * 计算空白列row\n */\nvar count = 0;\nvar calcCount = function calcCount(ele) {\n var spanDefault = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 12;\n var init = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n if (init) count = 0;\n var spanAll = 24;\n count = count + (ele.span || spanDefault) + (ele.offset || 0);\n if (count === spanAll) {\n count = 0;\n } else if (count > spanAll) {\n count = 0 + (ele.span || spanDefault) + (ele.offset || 0);\n } else if (ele.row && count !== spanAll) {\n ele.count = spanAll - count;\n count = 0;\n }\n return ele;\n};\n\n/**\n * 初始化数据格式\n */\nvar initVal = function initVal(value, safe) {\n var type = safe.type,\n multiple = safe.multiple,\n dataType = safe.dataType,\n _safe$separator = safe.separator,\n separator = _safe$separator === void 0 ? global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_SPLIT\"] : _safe$separator,\n alone = safe.alone,\n emitPath = safe.emitPath,\n range = safe.range;\n var list = value;\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(type) && multiple == true || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(type) && emitPath !== false || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(type) && range == true) {\n if (!Array.isArray(list)) {\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list)) {\n list = [];\n } else {\n list = (list + '').split(separator) || [];\n }\n }\n // 数据转化\n list.forEach(function (ele, index) {\n list[index] = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(ele, dataType);\n });\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_LIST\"].includes(type) && Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(list) && alone) list = [''];\n } else {\n list = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"detailDataType\"])(list, dataType);\n }\n return list;\n};\n\n/**\n * 搜索框获取动态组件\n */\nvar getSearchType = function getSearchType(column) {\n var type = column.type;\n var range = column.searchRange;\n var result = type;\n if (column.searchType) return column.searchType;\n if (['radio', 'checkbox', 'switch', 'tag-select'].includes(type)) {\n result = 'select';\n } else if (['rate', 'slider', 'number'].includes(type)) {\n if (range || column.range) {\n result = 'number-range';\n } else {\n result = 'number';\n }\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n var rangeKey = 'range';\n if (range) {\n if (!type.includes(rangeKey)) {\n result = type + rangeKey;\n } else {\n result = type;\n }\n } else result = type.replace(rangeKey, '');\n } else if (['textarea', 'dynamic'].includes(type)) {\n result = 'input';\n }\n return result;\n};\n\n/**\n * 动态获取组件\n */\nvar getComponent = function getComponent(type, component) {\n var result = type || 'input';\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(component)) {\n return component;\n } else if (['img', 'array', 'url'].includes(type)) {\n result = 'array';\n } else if (['time', 'timerange'].includes(type)) {\n result = 'time';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DATE_LIST\"].includes(type)) {\n result = 'date';\n } else if (['password', 'textarea', 'search'].includes(type)) {\n result = 'input';\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"INPUT_LIST\"].includes(type)) {\n result = 'input-' + type;\n }\n return global_variable__WEBPACK_IMPORTED_MODULE_1__[\"KEY_COMPONENT_NAME\"] + result;\n};\n\n/**\n * 表格初始化值\n */\n\nvar formInitVal = function formInitVal() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n var tableForm = {};\n list.forEach(function (ele) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"ARRAY_VALUE_LIST\"].includes(ele.type) && ele.emitPath !== false || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"MULTIPLE_LIST\"].includes(ele.type) && ele.multiple || ele.dataType === 'array') {\n tableForm[ele.prop] = [];\n } else if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"RANGE_LIST\"].includes(ele.type) && ele.range == true) {\n tableForm[ele.prop] = [0, 0];\n } else if (['rate', 'slider', 'number'].includes(ele.type) || ['number', 'object'].includes(ele.dataType)) {\n tableForm[ele.prop] = undefined;\n } else {\n tableForm[ele.prop] = '';\n }\n if (ele.bind) {\n tableForm = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"createObj\"])(tableForm, ele.bind);\n }\n // 表单默认值设置\n if (!Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(ele.value)) {\n tableForm[ele.prop] = ele.value;\n }\n });\n return {\n tableForm: tableForm\n };\n};\nvar getPlaceholder = function getPlaceholder(column) {\n var placeholder = column.placeholder;\n var label = column.label;\n if (Object(utils_validate__WEBPACK_IMPORTED_MODULE_0__[\"validatenull\"])(placeholder)) {\n if (global_variable__WEBPACK_IMPORTED_MODULE_1__[\"SELECT_LIST\"].includes(column.type) || ['array', 'object'].includes(column.dataType)) {\n return \"\".concat(Object(locale__WEBPACK_IMPORTED_MODULE_3__[\"t\"])('tip.select'), \" \").concat(label);\n } else {\n return \"\".concat(Object(locale__WEBPACK_IMPORTED_MODULE_3__[\"t\"])('tip.input'), \" \").concat(label);\n }\n }\n return placeholder;\n};\n\n//# sourceURL=webpack://AVUE/./src/core/dataformat.js?");
|
5481
5481
|
|
5482
5482
|
/***/ }),
|
5483
5483
|
|
@@ -5861,7 +5861,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
5861
5861
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5862
5862
|
|
5863
5863
|
"use strict";
|
5864
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.10.
|
5864
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"version\", function() { return version; });\nvar version = '2.10.16';\n\n//# sourceURL=webpack://AVUE/./src/version.js?");
|
5865
5865
|
|
5866
5866
|
/***/ }),
|
5867
5867
|
|