@ttkj/avue 2.10.17 → 2.10.19
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +11 -11
- package/lib/avue.min.js +2 -2
- package/lib/index.css +1 -1
- package/package.json +1 -1
- package/types/crud/column.d.ts +7 -0
- package/types/form/index.d.ts +2 -0
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v2.10.
|
2
|
+
* Avue.js v2.10.18
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -614,7 +614,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
614
614
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
615
615
|
|
616
616
|
"use strict";
|
617
|
-
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_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud__search\",\n inject: [\"crud\"],\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"], core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n data: function data() {\n return {\n show: false,\n searchIndex: 2,\n searchShow: true\n };\n },\n props: {\n search: Object\n },\n watch: {\n 'crud.propOption': {\n handler: function handler() {\n this.dataFormat();\n },\n deep: true\n },\n show: function show() {\n this.crud.getTableHeight();\n },\n searchShow: function searchShow() {\n this.crud.getTableHeight();\n }\n },\n created: function created() {\n this.initFun();\n this.dataFormat();\n this.handleSearchCollapse(false);\n },\n computed: {\n searchForm: {\n get: function get() {\n return this.crud.search;\n },\n set: function set(val) {\n this.crud.$emit('update:search', val);\n }\n },\n option: function option() {\n var _this = this;\n var option = this.crud.option;\n this.searchIndex = option.searchIndex || 2;\n var detailColumn = function detailColumn() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list = _this.deepClone(list);\n var column = [];\n var count = 0;\n list = Object(utils_util__WEBPACK_IMPORTED_MODULE_5__[\"columnsSort\"])(list, 'searchOrder');\n list.forEach(function (ele) {\n ['click', 'change', 'focus', 'blur', 'control', 'event', '_event'].forEach(function (event) {\n delete ele[event];\n });\n if (ele.search) {\n var isCount = count < _this.searchIndex;\n var obj = {};\n if (['rate', 'slider'].includes(ele.type) && ['number-range', 'number'].includes(Object(core_dataformat__WEBPACK_IMPORTED_MODULE_4__[\"getSearchType\"])(ele))) {\n if (!ele.min || !ele.searchMin) {\n ele.searchMin = 0;\n }\n }\n Object.keys(ele).forEach(function (item) {\n var key = 'search';\n if (
|
617
|
+
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_slot__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./config */ \"./packages/element-ui/crud/config.js\");\n/* harmony import */ var core_locale__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core/locale */ \"./src/core/locale.js\");\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"crud__search\",\n inject: [\"crud\"],\n mixins: [core_locale__WEBPACK_IMPORTED_MODULE_3__[\"default\"], core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n data: function data() {\n return {\n show: false,\n searchIndex: 2,\n searchShow: true\n };\n },\n props: {\n search: Object\n },\n watch: {\n 'crud.propOption': {\n handler: function handler() {\n this.dataFormat();\n },\n deep: true\n },\n show: function show() {\n this.crud.getTableHeight();\n },\n searchShow: function searchShow() {\n this.crud.getTableHeight();\n }\n },\n created: function created() {\n this.initFun();\n this.dataFormat();\n this.handleSearchCollapse(false);\n },\n computed: {\n searchForm: {\n get: function get() {\n return this.crud.search;\n },\n set: function set(val) {\n this.crud.$emit('update:search', val);\n }\n },\n option: function option() {\n var _this = this;\n var option = this.crud.option;\n this.searchIndex = option.searchIndex || 2;\n var detailColumn = function detailColumn() {\n var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];\n list = _this.deepClone(list);\n var column = [];\n var count = 0;\n list = Object(utils_util__WEBPACK_IMPORTED_MODULE_5__[\"columnsSort\"])(list, 'searchOrder');\n list.forEach(function (ele) {\n ['click', 'change', 'focus', 'blur', 'control', 'event', '_event'].forEach(function (event) {\n delete ele[event];\n });\n if (ele.search) {\n var isCount = count < _this.searchIndex;\n var obj = {};\n if (['rate', 'slider'].includes(ele.type) && ['number-range', 'number'].includes(Object(core_dataformat__WEBPACK_IMPORTED_MODULE_4__[\"getSearchType\"])(ele))) {\n if (!ele.min || !ele.searchMin) {\n ele.searchMin = 0;\n }\n }\n Object.keys(ele).forEach(function (item) {\n var key = 'search';\n if (['searchProp', 'searchControl'].includes(item)) return;\n if (/^search/.test(item)) {\n var result = item.replace(key, '');\n if (result.length == 0) return;\n result = result.replace(result[0], result[0].toLowerCase());\n obj[result] = ele[item];\n }\n });\n ele = Object.assign(ele, obj, {\n type: Object(core_dataformat__WEBPACK_IMPORTED_MODULE_4__[\"getSearchType\"])(ele),\n detail: false,\n dicFlag: ele.cascader ? true : _this.vaildData(ele.dicFlag, false),\n span: ele.searchSpan || option.searchSpan || _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].searchSpan,\n control: ele.searchControl,\n gutter: ele.searchGutter || option.searchGutter || _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].searchGutter,\n labelWidth: ele.searchLabelWidth || option.searchLabelWidth || _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].searchLabelWidth,\n labelPosition: ele.searchLabelPosition || option.searchLabelPosition,\n size: ele.searchSize || option.searchSize,\n value: ele.searchValue,\n rules: ele.searchRules,\n row: ele.searchRow,\n bind: ele.searchBin,\n disabled: ele.searchDisabled,\n readonly: ele.searchReadonly,\n display: _this.isSearchIcon ? _this.show ? true : isCount : true\n });\n // 如果未设置搜索自定义组件并且有搜索类型的话,删除默认的component\n if (!ele.searchComponent && ele.searchType) {\n delete ele.component;\n }\n column.push(ele);\n count = count + 1;\n }\n });\n return column;\n };\n var detailOption = function detailOption(list) {\n var result = _this.deepClone(list);\n result.column = detailColumn(_this.crud.propOption);\n result = Object.assign(result, {\n rowKey: option.searchRowKey || 'null',\n tabs: false,\n group: false,\n printBtn: false,\n mockBtn: false,\n filterDic: option.searchFilterDic,\n filterNull: option.searchFilterNull,\n filterParam: option.searchFilterParam,\n enter: option.searchEnter,\n size: option.searchSize,\n submitText: option.searchBtnText || _this.t('crud.searchBtn'),\n submitBtn: _this.vaildData(option.searchBtn, _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].searchSubBtn),\n submitIcon: _this.crud.getBtnIcon('searchBtn'),\n emptyText: option.emptyBtnText || _this.t('crud.emptyBtn'),\n emptyBtn: _this.vaildData(option.emptyBtn, _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].emptyBtn),\n emptyIcon: _this.crud.getBtnIcon('emptyBtn'),\n menuSpan: option.searchMenuSpan,\n menuPosition: option.searchMenuPosition || 'center',\n dicFlag: false,\n dicData: _this.crud.DIC\n });\n return result;\n };\n return detailOption(option);\n },\n isSearchIcon: function isSearchIcon() {\n return this.vaildData(this.crud.option.searchIcon, this.$AVUE.searchIcon) && this.searchLen > this.searchIndex;\n },\n searchLen: function searchLen() {\n var count = 0;\n this.crud.propOption.forEach(function (ele) {\n if (ele.search) count++;\n });\n return count;\n },\n searchFlag: function searchFlag() {\n return !!this.crud.$scopedSlots.search || this.searchLen !== 0;\n }\n },\n methods: {\n initFun: function initFun() {\n var _this2 = this;\n ['searchReset', 'searchChange'].forEach(function (ele) {\n return _this2.crud[ele] = _this2[ele];\n });\n },\n getSlotName: function getSlotName(item) {\n return item.replace(/Search$/, '').replace(/SearchLabel$/, 'Label');\n },\n // 搜索回调\n searchChange: function searchChange(form, done) {\n form = Object(utils_util__WEBPACK_IMPORTED_MODULE_5__[\"filterParams\"])(form);\n this.crud.propOption.forEach(function (ele) {\n if (ele.searchProp) {\n form[ele.searchProp] = form[ele.prop];\n delete form[ele.prop];\n }\n });\n this.crud.$emit(\"search-change\", form, done);\n },\n // 搜索清空\n resetChange: function resetChange() {\n this.crud.$emit(\"search-reset\", this.searchForm);\n },\n // 搜索清空\n searchReset: function searchReset() {\n this.$refs.form.resetForm();\n },\n handleSearchShow: function handleSearchShow() {\n this.searchShow = !this.searchShow;\n },\n handleSearchCollapse: function handleSearchCollapse(searchShow) {\n this.show = searchShow;\n this.crud.$emit(\"search-collapse\", searchShow);\n },\n dataFormat: function dataFormat() {\n var option = this.crud.option;\n this.searchShow = this.vaildData(option.searchShow, _config__WEBPACK_IMPORTED_MODULE_2__[\"default\"].searchShow);\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.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");
|
618
618
|
|
619
619
|
/***/ }),
|
620
620
|
|
@@ -1626,9 +1626,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1626
1626
|
|
1627
1627
|
/***/ }),
|
1628
1628
|
|
1629
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=
|
1629
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=0651fb50&":
|
1630
1630
|
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1631
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/header-search.vue?vue&type=template&id=
|
1631
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/header-search.vue?vue&type=template&id=0651fb50& ***!
|
1632
1632
|
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1633
1633
|
/*! exports provided: render, staticRenderFns */
|
1634
1634
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -2272,7 +2272,7 @@ eval("(function webpackUniversalModuleDefinition(root, factory) {\n\tif(true)\n\
|
|
2272
2272
|
/*! exports provided: name, version, description, main, unpkg, jsdelivr, scripts, typings, keywords, repository, author, license, homepage, devDependencies, peerDependencies, dependencies, files, default */
|
2273
2273
|
/***/ (function(module) {
|
2274
2274
|
|
2275
|
-
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"@ttkj/avue\\\",\\\"version\\\":\\\"2.10.
|
2275
|
+
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"@ttkj/avue\\\",\\\"version\\\":\\\"2.10.19\\\",\\\"description\\\":\\\"A Magic Configurable Web Framework\\\",\\\"main\\\":\\\"lib/avue.min.js\\\",\\\"unpkg\\\":\\\"lib/avue.min.js\\\",\\\"jsdelivr\\\":\\\"lib/avue.min.js\\\",\\\"scripts\\\":{\\\"bootstrap\\\":\\\"yarn --registry https://registry.npmmirror.com || npm install --registry https://registry.npmmirror.com \\\",\\\"analyz\\\":\\\"NODE_ENV=production npm_config_report=true npm run build\\\",\\\"dev\\\":\\\"cross-env TARGET=dev UINAME=element-ui gulp watch\\\",\\\"build\\\":\\\"cross-env TARGET=prod UINAME=element-ui gulp build\\\",\\\"all\\\":\\\"yarn build && yarn dev\\\"},\\\"typings\\\":\\\"types/index.d.ts\\\",\\\"keywords\\\":[\\\"vue\\\",\\\"element-ui\\\",\\\"avue\\\"],\\\"repository\\\":{\\\"type\\\":\\\"gitee\\\",\\\"url\\\":\\\"gitee+https://gitee.com/nbhm_department/avue.git\\\"},\\\"author\\\":\\\"osxcn\\\",\\\"license\\\":\\\"MIT\\\",\\\"homepage\\\":\\\"https://gitee.com/nbhm_department/avue/blob/v2.10.x/README.md\\\",\\\"devDependencies\\\":{\\\"@babel/core\\\":\\\"^7.13.14\\\",\\\"@babel/preset-env\\\":\\\"^7.13.12\\\",\\\"@types/lodash\\\":\\\"^4.14.202\\\",\\\"axios\\\":\\\"^0.21.1\\\",\\\"babel-loader\\\":\\\"^8.2.2\\\",\\\"cross-env\\\":\\\"^3.2.4\\\",\\\"css-loader\\\":\\\"^5.2.0\\\",\\\"element-ui\\\":\\\"^2.15.10\\\",\\\"eslint\\\":\\\"4.14.0\\\",\\\"eslint-config-elemefe\\\":\\\"0.1.1\\\",\\\"eslint-loader\\\":\\\"^1.9.0\\\",\\\"eslint-plugin-html\\\":\\\"^4.0.1\\\",\\\"eslint-plugin-json\\\":\\\"^1.2.0\\\",\\\"gulp\\\":\\\"^4.0.0\\\",\\\"gulp-autoprefixer\\\":\\\"^4.0.0\\\",\\\"gulp-cssmin\\\":\\\"^0.1.7\\\",\\\"gulp-postcss\\\":\\\"^6.1.1\\\",\\\"gulp-sass\\\":\\\"^5.1.0\\\",\\\"progress-bar-webpack-plugin\\\":\\\"^1.11.0\\\",\\\"sass\\\":\\\"^1.54.5\\\",\\\"vue\\\":\\\"2.7.10\\\",\\\"vue-loader\\\":\\\"^15.9.6\\\",\\\"webpack\\\":\\\"^4.27.0\\\",\\\"webpack-bundle-analyzer\\\":\\\"^3.0.3\\\",\\\"webpack-merge\\\":\\\"^4.1.4\\\"},\\\"peerDependencies\\\":{\\\"element-ui\\\":\\\">=2.15.3\\\",\\\"vue\\\":\\\">=2.6.14\\\"},\\\"dependencies\\\":{\\\"countup.js\\\":\\\"^1.9.3\\\",\\\"dayjs\\\":\\\"^1.10.4\\\",\\\"lodash\\\":\\\"^4.17.21\\\",\\\"nprogress\\\":\\\"^0.2.0\\\",\\\"vue-cropper\\\":\\\"^0.5.8\\\",\\\"vuedraggable\\\":\\\"^2.24.3\\\"},\\\"files\\\":[\\\"lib\\\",\\\"types\\\",\\\"README.md\\\",\\\"LICENSE\\\"]}\");\n\n//# sourceURL=webpack://AVUE/./package.json?");
|
2276
2276
|
|
2277
2277
|
/***/ }),
|
2278
2278
|
|
@@ -2296,7 +2296,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
2296
2296
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2297
2297
|
|
2298
2298
|
"use strict";
|
2299
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_slot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n props: {\n defaults: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n option: {\n type: Object,\n required: true,\n \"default\": function _default() {\n return {};\n }\n }\n },\n watch: {\n defaults: {\n handler: function handler(val) {\n this.objectOption = val;\n },\n deep: true\n },\n objectOption: {\n handler: function handler(val) {\n this.$emit('update:defaults', val);\n },\n deep: true\n },\n
|
2299
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_slot__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core/slot */ \"./src/core/slot.js\");\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n props: {\n defaults: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n option: {\n type: Object,\n required: true,\n \"default\": function _default() {\n return {};\n }\n }\n },\n watch: {\n defaults: {\n handler: function handler(val) {\n this.objectOption = val;\n },\n deep: true\n },\n objectOption: {\n handler: function handler(val) {\n this.$emit('update:defaults', val);\n },\n deep: true\n },\n columnList: {\n handler: function handler(list) {\n var result = {};\n list.forEach(function (ele) {\n if (!ele.prop) return;\n result[ele.prop] = ele;\n });\n this.$set(this, 'objectOption', result);\n },\n deep: true\n },\n option: {\n handler: function handler() {\n this.init(false);\n },\n deep: true\n }\n },\n data: function data() {\n return {\n DIC: {},\n cascaderDIC: {},\n tableOption: {},\n isMobile: '',\n objectOption: {}\n };\n },\n created: function created() {\n this.init();\n },\n computed: {\n resultOption: function resultOption() {\n return Object.assign(this.deepClone(this.tableOption), {\n column: this.propOption\n });\n },\n rowKey: function rowKey() {\n return this.tableOption.rowKey || global_variable__WEBPACK_IMPORTED_MODULE_1__[\"DIC_PROPS\"].rowKey;\n },\n formRules: function formRules() {\n var result = {};\n this.propOption.forEach(function (ele) {\n if (ele.rules && ele.display !== false) result[ele.prop] = ele.rules;\n });\n return result;\n },\n isMediumSize: function isMediumSize() {\n return this.controlSize;\n },\n controlSize: function controlSize() {\n return this.tableOption.size || this.$AVUE.size;\n }\n },\n methods: {\n init: function init(type) {\n this.tableOption = this.option;\n this.getIsMobile();\n this.handleLocalDic();\n if (type !== false) this.handleLoadDic();\n },\n dicInit: function dicInit(type) {\n if (type === 'cascader') {\n this.handleLoadCascaderDic();\n } else {\n this.handleLoadDic();\n }\n },\n getIsMobile: function getIsMobile() {\n this.isMobile = document.body.clientWidth <= 768;\n },\n /** 表单表格对外方法,更新dic */updateDic: function updateDic(prop, list) {\n var _this = this;\n var column = this.findObject(this.propOption, prop);\n if (this.validatenull(list) && this.validatenull(prop)) {\n this.handleLoadDic();\n } else if (this.validatenull(list) && !this.validatenull(column.dicUrl)) {\n Object(core_dic__WEBPACK_IMPORTED_MODULE_0__[\"sendDic\"])({\n column: column\n }).then(function (list) {\n _this.$set(_this.DIC, prop, list);\n });\n } else {\n this.$set(this.DIC, prop, list);\n }\n },\n //本地字典\n handleLocalDic: function handleLocalDic() {\n Object(core_dic__WEBPACK_IMPORTED_MODULE_0__[\"loadLocalDic\"])(this.resultOption, this);\n },\n // 网络字典加载\n handleLoadDic: function handleLoadDic() {\n Object(core_dic__WEBPACK_IMPORTED_MODULE_0__[\"loadDic\"])(this.resultOption, this);\n },\n //级联字典加载\n handleLoadCascaderDic: function handleLoadCascaderDic() {\n Object(core_dic__WEBPACK_IMPORTED_MODULE_0__[\"loadCascaderDic\"])(this.propOption, this);\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/init.js?");
|
2300
2300
|
|
2301
2301
|
/***/ }),
|
2302
2302
|
|
@@ -2320,7 +2320,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var glob
|
|
2320
2320
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2321
2321
|
|
2322
2322
|
"use strict";
|
2323
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./props */ \"./packages/core/common/props.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __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 _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// 引入Mixin\n\n// 引用方法/配置\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [Object(_props__WEBPACK_IMPORTED_MODULE_0__[\"default\"])()],\n watch: {\n dic: {\n immediate: true,\n handler: function handler(dic, oldDic) {\n if (lodash__WEBPACK_IMPORTED_MODULE_1___default.a.isEqual(dic, oldDic)) return;\n this.dicChange(dic, oldDic);\n this.updateSelected();\n }\n }\n },\n methods: {\n /** 数据字典改变事件 */dicChange: function dicChange(dic, oldDic) {},\n /** 值改变事件 */textChange: function textChange(text) {\n this.updateSelected();\n this.handleChange(text);\n },\n /** 根据选中值获取DIC对象 */updateSelected: function updateSelected() {\n var _this = this;\n /** @type {Object[]} */\n var dicData = lodash__WEBPACK_IMPORTED_MODULE_1___default.a.cloneDeep(this.dic);\n dicData.forEach(function (dic) {\n if (dic[_this.groupsKey]) {\n dicData = dicData.concat(dic[_this.groupsKey]);\n delete dic[_this.groupsKey];\n }\n });\n if (this.multiple) {\n var selected = (this.text || []).reduce(function (selected, value) {\n var _ref;\n var dic = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(dicData, _this.props, value) || Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(_this.selected, _this.props, value) || (_ref = {}, _defineProperty(_ref, _this.valueKey, value), _defineProperty(_ref, _this.labelKey, value), _ref);\n selected.push(dic);\n return selected;\n }, []);\n this.selected = selected;\n } else {\n this.selected = this.text ? Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(dicData, this.props, this.text) : undefined;\n }\n return this.selected;\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/select.js?");
|
2323
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _props__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./props */ \"./packages/core/common/props.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"./node_modules/lodash/lodash.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var utils_util__WEBPACK_IMPORTED_MODULE_2__ = __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 _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// 引入Mixin\n\n// 引用方法/配置\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n mixins: [Object(_props__WEBPACK_IMPORTED_MODULE_0__[\"default\"])()],\n watch: {\n dic: {\n immediate: true,\n handler: function handler(dic, oldDic) {\n if (lodash__WEBPACK_IMPORTED_MODULE_1___default.a.isEqual(dic, oldDic)) return;\n this.dicChange(dic, oldDic);\n this.updateSelected();\n }\n }\n },\n methods: {\n /** 数据字典改变事件 */dicChange: function dicChange(dic, oldDic) {},\n /** 值改变事件 */textChange: function textChange(text) {\n this.updateSelected();\n this.handleChange(text);\n },\n /** 根据选中值获取DIC对象 */updateSelected: function updateSelected() {\n var _this = this;\n /** @type {Object[]} */\n var dicData = lodash__WEBPACK_IMPORTED_MODULE_1___default.a.cloneDeep(this.dic);\n dicData.forEach(function (dic) {\n if (dic[_this.groupsKey]) {\n dicData = dicData.concat(dic[_this.groupsKey]);\n delete dic[_this.groupsKey];\n }\n });\n if (this.multiple && this.type !== 'radio') {\n var selected = (this.text || []).reduce(function (selected, value) {\n var _ref;\n var dic = Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(dicData, _this.props, value) || Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(_this.selected, _this.props, value) || (_ref = {}, _defineProperty(_ref, _this.valueKey, value), _defineProperty(_ref, _this.labelKey, value), _ref);\n selected.push(dic);\n return selected;\n }, []);\n this.selected = selected;\n } else {\n this.selected = this.text ? Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(dicData, this.props, this.text) : undefined;\n }\n return this.selected;\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/select.js?");
|
2324
2324
|
|
2325
2325
|
/***/ }),
|
2326
2326
|
|
@@ -3940,7 +3940,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3940
3940
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3941
3941
|
|
3942
3942
|
"use strict";
|
3943
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3943
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _header_search_vue_vue_type_template_id_0651fb50___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./header-search.vue?vue&type=template&id=0651fb50& */ \"./packages/element-ui/crud/header-search.vue?vue&type=template&id=0651fb50&\");\n/* harmony import */ var _header_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./header-search.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/header-search.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 _header_search_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _header_search_vue_vue_type_template_id_0651fb50___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _header_search_vue_vue_type_template_id_0651fb50___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?");
|
3944
3944
|
|
3945
3945
|
/***/ }),
|
3946
3946
|
|
@@ -3956,15 +3956,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3956
3956
|
|
3957
3957
|
/***/ }),
|
3958
3958
|
|
3959
|
-
/***/ "./packages/element-ui/crud/header-search.vue?vue&type=template&id=
|
3959
|
+
/***/ "./packages/element-ui/crud/header-search.vue?vue&type=template&id=0651fb50&":
|
3960
3960
|
/*!***********************************************************************************!*\
|
3961
|
-
!*** ./packages/element-ui/crud/header-search.vue?vue&type=template&id=
|
3961
|
+
!*** ./packages/element-ui/crud/header-search.vue?vue&type=template&id=0651fb50& ***!
|
3962
3962
|
\***********************************************************************************/
|
3963
3963
|
/*! exports provided: render, staticRenderFns */
|
3964
3964
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3965
3965
|
|
3966
3966
|
"use strict";
|
3967
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3967
|
+
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_header_search_vue_vue_type_template_id_0651fb50___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!./header-search.vue?vue&type=template&id=0651fb50& */ \"./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_3ngm42yq4q4efcqlzctwtjfjeq/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/header-search.vue?vue&type=template&id=0651fb50&\");\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_header_search_vue_vue_type_template_id_0651fb50___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_header_search_vue_vue_type_template_id_0651fb50___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/header-search.vue?");
|
3968
3968
|
|
3969
3969
|
/***/ }),
|
3970
3970
|
|