@ttkj/avue 2.11.10 → 2.11.11
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/avue.js +25 -25
- package/lib/avue.min.js +2 -2
- package/package.json +1 -1
- package/types/crud/option.d.ts +2 -0
- package/types/form/index.d.ts +7 -0
package/lib/avue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Avue.js v2.11.
|
2
|
+
* Avue.js v2.11.11
|
3
3
|
* (c) 2017-2024 Smallwei
|
4
4
|
* Released under the MIT License.
|
5
5
|
*
|
@@ -842,7 +842,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
|
|
842
842
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
843
843
|
|
844
844
|
"use strict";
|
845
|
-
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\");\
|
845
|
+
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\");\nvar _props;\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\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n name: \"input\",\n mixins: [Object(common_common_props_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])()],\n props: (_props = {\n maxlength: \"\",\n minlength: \"\",\n showPassword: {\n type: Boolean,\n \"default\": true\n },\n showWordLimit: {\n type: Boolean,\n \"default\": false\n },\n prefixIcon: {\n type: String\n },\n suffixIcon: {\n type: String\n },\n prependClick: {\n type: Function,\n \"default\": function _default() {}\n },\n prepend: {\n type: String\n },\n appendClick: {\n type: Function,\n \"default\": function _default() {}\n },\n append: {\n type: String\n }\n }, _defineProperty(_props, \"minlength\", {\n type: Number\n }), _defineProperty(_props, \"maxlength\", {\n type: Number\n }), _defineProperty(_props, \"rows\", Number), _defineProperty(_props, \"minRows\", {\n type: Number,\n \"default\": 5\n }), _defineProperty(_props, \"maxRows\", {\n type: Number,\n \"default\": 10\n }), _defineProperty(_props, \"autocomplete\", {\n type: String\n }), _defineProperty(_props, \"resize\", {\n type: String\n }), _defineProperty(_props, \"validateEvent\", {\n type: Boolean,\n \"default\": true\n }), _props),\n computed: {\n isSearch: function isSearch() {\n return this.type == 'search';\n },\n typeParam: function typeParam() {\n if (this.type === \"textarea\") {\n return \"textarea\";\n } else if (this.type === \"password\") {\n return \"password\";\n } else {\n return \"text\";\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/input/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_cead2f3db70772ae82e4d433e80fb8e5/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
846
846
|
|
847
847
|
/***/ }),
|
848
848
|
|
@@ -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_select_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/common/select.js */ \"./packages/core/common/select.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/.pnpm/lodash@4.17.21/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 utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n// 引用组件\n// 引入Mixin\n\n\n// 引用方法/配置\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n name: \"select\",\n mixins: [Object(common_common_select_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])()],\n
|
965
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var common_common_select_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! common/common/select.js */ \"./packages/core/common/select.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/.pnpm/lodash@4.17.21/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 utils_util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! utils/util */ \"./src/utils/util.js\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.js\");\n/* harmony import */ var core_packages__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core/packages */ \"./src/core/packages.js\");\n/* harmony import */ var core_create__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core/create */ \"./src/core/create.js\");\n/* harmony import */ var core_dic__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core/dic */ \"./src/core/dic.js\");\n// 引用组件\n// 引入Mixin\n\n\n// 引用方法/配置\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (Object(core_create__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n name: \"select\",\n mixins: [Object(common_common_select_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(), Object(common_common_event_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])()],\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 /** 搜索方法 */\n selectFilterMethod: {\n type: Function,\n required: 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 data: function data() {\n return {\n checked: false,\n indeterminate: false,\n created: false,\n netDic: [],\n loading: false\n };\n },\n computed: {\n classNameKey: function classNameKey() {\n return this.props.className || 'className';\n }\n },\n mounted: function mounted() {\n if (this.drag) {\n this.setSort();\n }\n },\n methods: {\n dicChange: function dicChange(dic) {\n this.netDic = dic;\n },\n /** 值改变时进行部分处理 */textChange: function textChange(val) {\n var _this = this;\n var done = function done() {\n _this.updateSelected();\n _this.selectedLabel = _this.selected ? Object(utils_util__WEBPACK_IMPORTED_MODULE_3__[\"anyToArray\"])(_this.selected).map(function (selected) {\n return selected[_this.labelKey];\n }).join(_this.separator || global_variable__WEBPACK_IMPORTED_MODULE_4__[\"DIC_SHOW_SPLIT\"]) : '';\n _this.handleChange(val);\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 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_4__[\"DIC_SPLIT\"]) : this.text).then(function () {\n done();\n });\n } else {\n done();\n }\n } else {\n // 如果开启搜索/远程搜索,当值清空时还原下拉选项\n if (this.filterable || this.remote) {\n this.netDic = this.dic;\n } else {\n done();\n }\n }\n },\n /** 选项排序 */setSort: function setSort() {\n var _this2 = this;\n if (!window.Sortable) {\n core_packages__WEBPACK_IMPORTED_MODULE_5__[\"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 = _this2.value.splice(evt.oldIndex, 1)[0];\n _this2.value.splice(evt.newIndex, 0, targetRow);\n }\n });\n },\n /** 搜索 */handleFilterMethod: function handleFilterMethod(query) {\n var _this3 = this;\n if (this.selectFilterMethod) {\n this.loading = true;\n var updateDic = function updateDic(dic) {\n _this3.loading = false;\n _this3.netDic = dic;\n };\n var filter = this.selectFilterMethod({\n column: this.column,\n dic: this.dic,\n value: query\n });\n if (filter.then) {\n return filter.then(updateDic);\n } else if (Array.isArray(filter)) {\n return Promise.resolve(updateDic(filter));\n }\n }\n },\n /** 远程搜索 */handleRemoteMethod: function handleRemoteMethod(query) {\n var _this4 = this;\n this.loading = true;\n var updateDic = function updateDic(dic) {\n _this4.loading = false;\n _this4.netDic = dic;\n };\n if (this.remoteMethod) {\n var remote = this.remoteMethod({\n column: this.column,\n dic: this.dic,\n value: query\n });\n if (remote.then) {\n return remote.then(updateDic);\n } else if (Array.isArray(remote)) {\n return Promise.resolve(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_7__[\"sendDic\"])(params).then(updateDic);\n }\n },\n /** 多选取值 */checkChange: function checkChange(val) {\n var _this5 = 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[_this5.valueKey];\n });\n }\n }\n }\n}));\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?./node_modules/.pnpm/babel-loader@8.3.0_cead2f3db70772ae82e4d433e80fb8e5/node_modules/babel-loader/lib!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options");
|
966
966
|
|
967
967
|
/***/ }),
|
968
968
|
|
@@ -1572,9 +1572,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1572
1572
|
|
1573
1573
|
/***/ }),
|
1574
1574
|
|
1575
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
1575
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=506e58c6&":
|
1576
1576
|
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1577
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
1577
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=506e58c6& ***!
|
1578
1578
|
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1579
1579
|
/*! exports provided: render, staticRenderFns */
|
1580
1580
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -1932,9 +1932,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
1932
1932
|
|
1933
1933
|
/***/ }),
|
1934
1934
|
|
1935
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/input/index.vue?vue&type=template&id=
|
1935
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/input/index.vue?vue&type=template&id=4b748a92&":
|
1936
1936
|
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
1937
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/input/index.vue?vue&type=template&id=
|
1937
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/input/index.vue?vue&type=template&id=4b748a92& ***!
|
1938
1938
|
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
1939
1939
|
/*! exports provided: render, staticRenderFns */
|
1940
1940
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -2052,9 +2052,9 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
|
|
2052
2052
|
|
2053
2053
|
/***/ }),
|
2054
2054
|
|
2055
|
-
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=
|
2055
|
+
/***/ "./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=6fa221d6&":
|
2056
2056
|
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
2057
|
-
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=
|
2057
|
+
!*** ./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./packages/element-ui/select/index.vue?vue&type=template&id=6fa221d6& ***!
|
2058
2058
|
\*******************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
2059
2059
|
/*! exports provided: render, staticRenderFns */
|
2060
2060
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
@@ -2272,7 +2272,7 @@ eval("module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\
|
|
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.11.
|
2275
|
+
eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"@ttkj/avue\\\",\\\"version\\\":\\\"2.11.11\\\",\\\"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.14\\\",\\\"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
|
|
@@ -2284,7 +2284,7 @@ eval("module.exports = JSON.parse(\"{\\\"name\\\":\\\"@ttkj/avue\\\",\\\"version
|
|
2284
2284
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2285
2285
|
|
2286
2286
|
"use strict";
|
2287
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"./node_modules/.pnpm/lodash@4.17.21/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\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n methods: {\n bindEvent: function bindEvent(name, params) {\n var column = this.column;\n params = Object.assign(params, {\n column: column,\n dic: this.dic,\n item: this.selected,\n selected: this.selected,\n label: this.selectedLabel\n }, this.tableData);\n var fnList = Array.isArray(this[name]) ? this[name] : [this[name]];\n fnList.forEach(function (fn) {\n if (typeof fn === 'function') {\n fn(params);\n }\n });\n this.$emit(name, params);\n },\n initVal: function initVal() {\n this.stringMode = typeof this.value == 'string';\n var text = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_0__[\"initVal\"])(this.value, this);\n if (lodash__WEBPACK_IMPORTED_MODULE_1___default.a.isEqual(text, this.text)) return;\n this.text = text;\n },\n getLabelText: function getLabelText(item) {\n if (this.validatenull(item)) return '';\n if (typeof this.typeformat === 'function') {\n return this.typeformat(item, this.labelKey, this.valueKey);\n }\n return item[this.labelKey];\n },\n handleFocus: function handleFocus(event) {\n this.bindEvent('focus', {\n value: this.value,\n event: event\n });\n },\n handleBlur: function handleBlur(event) {\n this.bindEvent('blur', {\n value: this.value,\n event: event\n });\n },\n handleClick: function handleClick(event) {\n this.bindEvent('click', {\n value: this.value,\n event: event\n });\n },\n handleChange: function handleChange(value) {\n var result = value;\n if (this.isJson) {\n result = JSON.stringify(value);\n } else {\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 }\n // if (
|
2287
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_dataformat__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core/dataformat */ \"./src/core/dataformat.js\");\n/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash */ \"./node_modules/.pnpm/lodash@4.17.21/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\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n methods: {\n bindEvent: function bindEvent(name, params) {\n var column = this.column;\n params = Object.assign(params, {\n column: column,\n dic: this.dic,\n item: this.selected,\n selected: this.selected,\n label: this.selectedLabel\n }, this.tableData);\n var fnList = Array.isArray(this[name]) ? this[name] : [this[name]];\n fnList.forEach(function (fn) {\n if (typeof fn === 'function') {\n fn(params);\n }\n });\n this.$emit(name, params);\n },\n initVal: function initVal() {\n this.stringMode = typeof this.value == 'string';\n var text = Object(core_dataformat__WEBPACK_IMPORTED_MODULE_0__[\"initVal\"])(this.value, this);\n if (lodash__WEBPACK_IMPORTED_MODULE_1___default.a.isEqual(text, this.text)) return;\n this.text = text;\n },\n getLabelText: function getLabelText(item) {\n if (this.validatenull(item)) return '';\n if (typeof this.typeformat === 'function') {\n return this.typeformat(item, this.labelKey, this.valueKey);\n }\n return item[this.labelKey];\n },\n handleFocus: function handleFocus(event) {\n this.bindEvent('focus', {\n value: this.value,\n event: event\n });\n },\n handleBlur: function handleBlur(event) {\n this.bindEvent('blur', {\n value: this.value,\n event: event\n });\n },\n handleClick: function handleClick(event) {\n this.bindEvent('click', {\n value: this.value,\n event: event\n });\n },\n handleChange: function handleChange(value) {\n var _this$formSafe$formCr, _this$formSafe;\n var result = value;\n if (this.isJson) {\n result = JSON.stringify(value);\n } else {\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 }\n // Tip: 初始化阶段不执行change事件\n var formCreate = (_this$formSafe$formCr = (_this$formSafe = this.formSafe) === null || _this$formSafe === void 0 ? void 0 : _this$formSafe.formCreate) !== null && _this$formSafe$formCr !== void 0 ? _this$formSafe$formCr : true;\n if ((this.isInit || !formCreate) && lodash__WEBPACK_IMPORTED_MODULE_1___default.a.isEqual(result, this.value)) {\n this.isInit = false;\n // 若值相同而索引不同,则触发input事件\n if (value !== this.value) this.$emit('input', result);\n } else {\n this.$emit('input', result);\n this.bindEvent('change', {\n value: result\n });\n }\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/event.js?");
|
2288
2288
|
|
2289
2289
|
/***/ }),
|
2290
2290
|
|
@@ -2308,7 +2308,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var loda
|
|
2308
2308
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
2309
2309
|
|
2310
2310
|
"use strict";
|
2311
|
-
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
|
2311
|
+
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 inject: {\n formSafe: {\n \"default\": undefined\n }\n },\n mixins: [core_slot__WEBPACK_IMPORTED_MODULE_1__[\"default\"]],\n props: {\n /** 组件类型 */\n type: {\n type: String,\n \"default\": ''\n },\n /** 组件ID */\n prop: {\n type: String,\n \"default\": ''\n },\n /** 组件name */\n component: {\n type: String,\n \"default\": ''\n },\n /**\r\n * 组件类型\r\n * 可选值: layout(布局)、basic(基础)、form(表单)\r\n * 默认值:form\r\n */\n componentType: {\n type: String\n },\n /** 表单项label */\n label: {\n type: String,\n \"default\": ''\n },\n /** 表单项列配置 */\n column: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 自定义属性 */\n params: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 外部传入的数据 */\n tableData: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 组件值 */\n value: {},\n /** 是否多选 */\n multiple: {\n type: Boolean,\n \"default\": false\n },\n /** 分隔符 */\n separator: {\n type: String,\n \"default\": global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_SPLIT\"]\n },\n /** 组件尺寸 */\n size: {\n type: String,\n \"default\": ''\n },\n /** 是否只读 */\n readonly: {\n type: Boolean,\n \"default\": false\n },\n /** 是否禁用 */\n disabled: {\n type: Boolean,\n \"default\": false\n },\n /** 是否清空 */\n clearable: {\n type: Boolean,\n \"default\": true\n },\n /** 数据值类型 */\n dataType: {\n type: String\n },\n /** placeholder */\n placeholder: {\n type: String,\n \"default\": ''\n },\n /** 校验规则 */\n rules: {\n type: Array\n },\n /** props配置 */\n props: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"];\n }\n },\n /** propsHttp配置 */\n propsHttp: {\n type: Object,\n \"default\": function _default() {\n return global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"];\n }\n },\n /** 上传组件的列表类型 */\n listType: {\n type: String\n },\n /** 组件说明 */\n tip: {\n type: String,\n \"default\": ''\n },\n /** 最小值 */\n min: {\n type: Number\n },\n /** 最大值 */\n max: {\n type: Number\n },\n /** 是否添加border,对radio/checkbox生效 */\n border: {\n type: Boolean,\n \"default\": false\n },\n /** 是否按钮样式,对radio/checkbox生效 */\n button: {\n type: Boolean,\n \"default\": false\n },\n popperClass: {\n type: String\n },\n group: {\n type: Boolean,\n \"default\": false\n },\n row: {\n type: Boolean,\n \"default\": false\n },\n // ---------- 字典相关 ----------\n /** 数据字典 */\n dic: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n /** 数据字典(兼容) */\n dicData: {\n type: Array,\n \"default\": function _default() {\n return [];\n }\n },\n /** 远程字典地址 */\n dicUrl: {\n type: String,\n \"default\": ''\n },\n /** 远程字典其他配置 */\n dicOptions: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 字典请求方式,配合dicUrl使用 */\n dicMethod: {\n type: String,\n \"default\": ''\n },\n /** 字典请求参数,配合dicUrl使用 */\n dicQuery: {\n type: Object,\n \"default\": function _default() {\n return {};\n }\n },\n /** 字典数据返回的执行函数,配合dicUrl使用 */\n dicFormatter: Function,\n // ---------- 方法 ----------\n blur: Function,\n focus: Function,\n change: Function,\n click: Function,\n typeformat: Function,\n control: Function\n },\n data: function data() {\n return {\n /**\r\n * 判断初始传入值是否为字符串类型\r\n * @description 如果初始传入值为字符串类型,则当组件的值为数组时,会被强制转为字符串\r\n */\n stringMode: false,\n /** 部分带分组性质组件生成组件用 */\n name: '',\n /**\r\n * 组件的值\r\n * @description 对value经过转化后得到,二次封装组件的内置值\r\n */\n text: undefined,\n /** 默认propsHttp配置 */\n propsHttpDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_HTTP_PROPS\"],\n /** 默认props配置 */\n propsDefault: global_variable__WEBPACK_IMPORTED_MODULE_0__[\"DIC_PROPS\"],\n /** 选中的选项 */\n selected: undefined,\n /** 选中值的label */\n selectedLabel: '',\n /** 是否初始化中 */\n isInit: true\n };\n },\n computed: {\n clearableVal: function clearableVal() {\n return this.disabled ? false : this.clearable;\n },\n componentName: function componentName() {\n var type = 'el';\n var result = \"\".concat(type, \"-\").concat(this.name).concat(this.button ? '-button' : '');\n return result;\n },\n required: function required() {\n return !this.validatenull(this.rules);\n },\n isArray: function isArray() {\n return this.dataType === 'array';\n },\n isString: function isString() {\n return this.dataType === 'string';\n },\n isNumber: function isNumber() {\n return this.dataType === 'number';\n },\n isJson: function isJson() {\n return this.dataType === 'json';\n },\n 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 fileTypeKey: function fileTypeKey() {\n return this.propsHttp.fileType || this.propsHttpDefault.fileType;\n },\n groupsKey: function groupsKey() {\n return this.props.groups || this.propsDefault.groups;\n },\n valueKey: function valueKey() {\n return this.props.value || this.propsDefault.value;\n },\n typeKey: function typeKey() {\n return this.props.type || this.propsDefault.type;\n },\n descKey: function descKey() {\n return this.props.desc || this.propsDefault.desc;\n },\n leafKey: function leafKey() {\n return this.props.leaf || this.propsDefault.leaf;\n },\n labelKey: function labelKey() {\n return this.props.label || this.propsDefault.label;\n },\n childrenKey: function childrenKey() {\n return this.props.children || this.propsDefault.children;\n },\n disabledKey: function disabledKey() {\n return this.props.disabled || this.propsDefault.disabled;\n },\n idKey: function idKey() {\n return this.props.id || this.propsDefault.id;\n }\n },\n 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 created: function created() {\n this.initVal();\n },\n methods: {\n /** 值改变事件 */textChange: function textChange(text) {\n this.selectedLabel = String(text);\n this.handleChange(text);\n }\n }\n };\n});\n\n//# sourceURL=webpack://AVUE/./packages/core/common/props.js?");
|
2312
2312
|
|
2313
2313
|
/***/ }),
|
2314
2314
|
|
@@ -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/.pnpm/lodash@4.17.21/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\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.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\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n return {\n
|
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/.pnpm/lodash@4.17.21/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\");\n/* harmony import */ var global_variable__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! global/variable */ \"./src/global/variable.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\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 var _this = this;\n this.updateSelected();\n this.selectedLabel = this.selected ? Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"anyToArray\"])(this.selected).map(function (selected) {\n return selected[_this.labelKey];\n }).join(this.separator || global_variable__WEBPACK_IMPORTED_MODULE_3__[\"DIC_SHOW_SPLIT\"]) : '';\n this.handleChange(text);\n },\n /** 根据选中值获取DIC对象 */updateSelected: function updateSelected() {\n var _this2 = 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[_this2.groupsKey]) {\n dicData = dicData.concat(dic[_this2.groupsKey]);\n delete dic[_this2.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, _this2.props, value) || Object(utils_util__WEBPACK_IMPORTED_MODULE_2__[\"findNode\"])(_this2.selected, _this2.props, value) || (_ref = {}, _defineProperty(_ref, _this2.valueKey, value), _defineProperty(_ref, _this2.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 if (this.formSafe) {\n // 如果存在表单,则将选中值保存到表单中\n this.$set(this.formSafe.cachedSelected, this.prop, this.selected);\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
|
|
@@ -3532,7 +3532,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3532
3532
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3533
3533
|
|
3534
3534
|
"use strict";
|
3535
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3535
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _column_cell_item_vue_vue_type_template_id_506e58c6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./column-cell-item.vue?vue&type=template&id=506e58c6& */ \"./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=506e58c6&\");\n/* harmony import */ var _column_cell_item_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./column-cell-item.vue?vue&type=script&lang=js& */ \"./packages/element-ui/crud/column-cell-item.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _column_cell_item_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _column_cell_item_vue_vue_type_template_id_506e58c6___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _column_cell_item_vue_vue_type_template_id_506e58c6___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n false,\n null,\n null,\n null\n \n)\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-cell-item.vue?");
|
3536
3536
|
|
3537
3537
|
/***/ }),
|
3538
3538
|
|
@@ -3548,15 +3548,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
3548
3548
|
|
3549
3549
|
/***/ }),
|
3550
3550
|
|
3551
|
-
/***/ "./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
3551
|
+
/***/ "./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=506e58c6&":
|
3552
3552
|
/*!**************************************************************************************!*\
|
3553
|
-
!*** ./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=
|
3553
|
+
!*** ./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=506e58c6& ***!
|
3554
3554
|
\**************************************************************************************/
|
3555
3555
|
/*! exports provided: render, staticRenderFns */
|
3556
3556
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
3557
3557
|
|
3558
3558
|
"use strict";
|
3559
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
3559
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_cell_item_vue_vue_type_template_id_506e58c6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./column-cell-item.vue?vue&type=template&id=506e58c6& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/crud/column-cell-item.vue?vue&type=template&id=506e58c6&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_cell_item_vue_vue_type_template_id_506e58c6___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_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_column_cell_item_vue_vue_type_template_id_506e58c6___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/crud/column-cell-item.vue?");
|
3560
3560
|
|
3561
3561
|
/***/ }),
|
3562
3562
|
|
@@ -4636,7 +4636,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4636
4636
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4637
4637
|
|
4638
4638
|
"use strict";
|
4639
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4639
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_4b748a92___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=4b748a92& */ \"./packages/element-ui/input/index.vue?vue&type=template&id=4b748a92&\");\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/input/index.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_4b748a92___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_4b748a92___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/input/index.vue?");
|
4640
4640
|
|
4641
4641
|
/***/ }),
|
4642
4642
|
|
@@ -4652,15 +4652,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4652
4652
|
|
4653
4653
|
/***/ }),
|
4654
4654
|
|
4655
|
-
/***/ "./packages/element-ui/input/index.vue?vue&type=template&id=
|
4655
|
+
/***/ "./packages/element-ui/input/index.vue?vue&type=template&id=4b748a92&":
|
4656
4656
|
/*!****************************************************************************!*\
|
4657
|
-
!*** ./packages/element-ui/input/index.vue?vue&type=template&id=
|
4657
|
+
!*** ./packages/element-ui/input/index.vue?vue&type=template&id=4b748a92& ***!
|
4658
4658
|
\****************************************************************************/
|
4659
4659
|
/*! exports provided: render, staticRenderFns */
|
4660
4660
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4661
4661
|
|
4662
4662
|
"use strict";
|
4663
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4663
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_4b748a92___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=4b748a92& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/input/index.vue?vue&type=template&id=4b748a92&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_4b748a92___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_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_4b748a92___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/input/index.vue?");
|
4664
4664
|
|
4665
4665
|
/***/ }),
|
4666
4666
|
|
@@ -4996,7 +4996,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
4996
4996
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
4997
4997
|
|
4998
4998
|
"use strict";
|
4999
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
4999
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _index_vue_vue_type_template_id_6fa221d6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index.vue?vue&type=template&id=6fa221d6& */ \"./packages/element-ui/select/index.vue?vue&type=template&id=6fa221d6&\");\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_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n _index_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _index_vue_vue_type_template_id_6fa221d6___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _index_vue_vue_type_template_id_6fa221d6___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?");
|
5000
5000
|
|
5001
5001
|
/***/ }),
|
5002
5002
|
|
@@ -5012,15 +5012,15 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
|
|
5012
5012
|
|
5013
5013
|
/***/ }),
|
5014
5014
|
|
5015
|
-
/***/ "./packages/element-ui/select/index.vue?vue&type=template&id=
|
5015
|
+
/***/ "./packages/element-ui/select/index.vue?vue&type=template&id=6fa221d6&":
|
5016
5016
|
/*!*****************************************************************************!*\
|
5017
|
-
!*** ./packages/element-ui/select/index.vue?vue&type=template&id=
|
5017
|
+
!*** ./packages/element-ui/select/index.vue?vue&type=template&id=6fa221d6& ***!
|
5018
5018
|
\*****************************************************************************/
|
5019
5019
|
/*! exports provided: render, staticRenderFns */
|
5020
5020
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
5021
5021
|
|
5022
5022
|
"use strict";
|
5023
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var
|
5023
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_6fa221d6___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!../../../node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib??vue-loader-options!./index.vue?vue&type=template&id=6fa221d6& */ \"./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/.pnpm/vue-loader@15.10.1_css-loader@5.2.7+webpack@4.46.0/node_modules/vue-loader/lib/index.js?!./packages/element-ui/select/index.vue?vue&type=template&id=6fa221d6&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_6fa221d6___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_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_loaders_templateLoader_js_ref_5_node_modules_pnpm_vue_loader_15_10_1_css_loader_5_2_7_webpack_4_46_0_node_modules_vue_loader_lib_index_js_vue_loader_options_index_vue_vue_type_template_id_6fa221d6___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack://AVUE/./packages/element-ui/select/index.vue?");
|
5024
5024
|
|
5025
5025
|
/***/ }),
|
5026
5026
|
|