yw-ui-vue2 2.0.49 → 2.0.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -213,7 +213,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n// import \"animate.css\";\n/
213
213
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
214
214
 
215
215
  "use strict";
216
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n\nconst __default__ = {\n name: \"YwSearchGroup\",\n props: {\n // 表单配置\n formOption: {\n type: Array,\n default: () => []\n },\n minWidth: {\n type: Number,\n default: 1220\n }\n },\n data() {\n return {\n list: [],\n searchForm: {},\n columns: 4,\n showModal: false,\n checkedList: [],\n show: false,\n defaultValue: undefined,\n visible: false,\n initFormState: {}\n };\n },\n computed: {\n moment() {\n return value => moment__WEBPACK_IMPORTED_MODULE_0___default()(...value);\n },\n cusSearchForm() {\n return this.formOption.map(it => ({\n ...it,\n disabled: this.checkedList.length === 1 && it.value === this.checkedList[0]\n }));\n },\n defaultSearch() {\n return [{\n label: \"\",\n ...this.formOption.find(item => item.default)\n }];\n },\n containerWidth() {\n return this.minWidth ? `${this.minWidth}px` : \"1220px\";\n }\n },\n watch: {\n formOption: {\n handler(newVal) {\n if (newVal.length > 0) {\n this.list = [...newVal];\n this.checkedList = this.formOption.map(item => item.value);\n this.list.forEach(el => {\n if (el.type === \"multipleSelect\") {\n this.$set(this.searchForm, el.value, {\n type: el.config && el.config.defaultTypeValue || \"\",\n value: el.config && el.config.defaultTypeValue && el.config.defaultTypeValue === \"BETWEEN\" ? [undefined, undefined] : undefined\n });\n } else if (el.type !== \"multipleSelect\" && el.config && el.config.defaultValue) {\n this.$set(this.searchForm, el.value, el.config && el.config.defaultValue || undefined);\n }\n });\n this.$nextTick(() => {\n this.initFormState = JSON.parse(JSON.stringify(this.searchForm));\n });\n } else {\n this.list = [];\n }\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n handleclick() {\n this.resetForm();\n },\n getParams() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n onSearch() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n changeItemType(type, value) {\n if (type !== \"BETWEEN\") {\n this.$set(this.searchForm[value], \"value\", undefined);\n } else {\n this.$set(this.searchForm[value], \"value\", [undefined, undefined]);\n }\n },\n init() {\n const container = document.querySelector(\".searchGroup\");\n // 监听窗口大小变化\n if (container) {\n this.columns = document.querySelector(\".searchGroup\").offsetWidth > 1220 ? 4 : 3;\n window.addEventListener(\"resize\", () => {\n this.columns = container.offsetWidth > 1220 ? 4 : 3;\n });\n }\n this.checkedList = this.formOption.map(item => item.value);\n },\n resetForm() {\n this.list.forEach(el => {\n this.$set(this.searchForm, el.value, this.initFormState[el.value]);\n });\n this.defaultValue = this.initFormState[this.defaultSearch[0].value];\n if (!!this.$listeners.reset) {\n this.$emit(\"reset\", this.searchForm);\n } else {\n this.$emit(\"search\", this.searchForm);\n }\n },\n showModalPop() {\n this.showModal = true;\n },\n closeSearchForm() {\n this.visible = false;\n this.resetCusSearchForm();\n },\n resetCusSearchForm() {\n this.checkedList = this.list.map(item => item.value);\n this.showModal = false;\n },\n saveCusSearchForm() {\n this.list = this.formOption.filter(item => {\n if (!this.checkedList.includes(item.value)) {\n item.type !== \"multipleSelect\" ? this.$set(this.searchForm, item.value, undefined) : this.changeItemType(this.searchForm[item.value].value, item.value);\n }\n return this.checkedList.includes(item.value);\n });\n this.showModal = false;\n }\n },\n mounted() {\n this.init();\n console.log(this.$slots);\n }\n};\n\nconst __injectCSSVars__ = () => {\n (0,vue__WEBPACK_IMPORTED_MODULE_1__.useCssVars)((_vm, _setup) => ({\n \"40b39b9a-containerWidth\": _vm.containerWidth\n }));\n};\nconst __setup__ = __default__.setup;\n__default__.setup = __setup__ ? (props, ctx) => {\n __injectCSSVars__();\n return __setup__(props, ctx);\n} : __injectCSSVars__;\n/* harmony default export */ __webpack_exports__[\"default\"] = (__default__);\n\n//# sourceURL=webpack://yw-ui-vue2/./packages/components/searchGroup/src/index.vue?./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options");
216
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n\nconst __default__ = {\n name: \"YwSearchGroup\",\n props: {\n // 表单配置\n formOption: {\n type: Array,\n default: () => []\n },\n minWidth: {\n type: Number,\n default: 1220\n }\n },\n data() {\n return {\n list: [],\n searchForm: {},\n columns: 4,\n showModal: false,\n checkedList: [],\n show: false,\n defaultValue: undefined,\n visible: false\n };\n },\n computed: {\n moment() {\n return value => moment__WEBPACK_IMPORTED_MODULE_0___default()(...value);\n },\n cusSearchForm() {\n return this.formOption.map(it => ({\n ...it,\n disabled: this.checkedList.length === 1 && it.value === this.checkedList[0]\n }));\n },\n defaultSearch() {\n return [{\n label: \"\",\n ...this.formOption.find(item => item.default)\n }];\n },\n containerWidth() {\n return this.minWidth ? `${this.minWidth}px` : \"1220px\";\n }\n },\n watch: {\n formOption: {\n handler(newVal, oldVal) {\n if ((newVal === null || newVal === void 0 ? void 0 : newVal.length) !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.length)) {\n this.initFormState();\n }\n if (newVal.length > 0) {\n this.list = newVal;\n this.checkedList = this.formOption.map(item => item.value);\n } else {\n this.list = [];\n }\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n handleclick() {\n this.resetForm();\n },\n getParams() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n onSearch() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n changeItemType(type, value) {\n if (type !== \"BETWEEN\") {\n this.$set(this.searchForm[value], \"value\", undefined);\n } else {\n this.$set(this.searchForm[value], \"value\", [undefined, undefined]);\n }\n },\n init() {\n const container = document.querySelector(\".searchGroup\");\n // 监听窗口大小变化\n if (container) {\n this.columns = document.querySelector(\".searchGroup\").offsetWidth > 1220 ? 4 : 3;\n window.addEventListener(\"resize\", () => {\n this.columns = container.offsetWidth > 1220 ? 4 : 3;\n });\n }\n this.checkedList = this.formOption.map(item => item.value);\n },\n initFormState() {\n this.formOption.forEach(el => {\n if (el.type === \"multipleSelect\") {\n this.$set(this.searchForm, el.value, {\n type: el.config && el.config.defaultTypeValue || \"\",\n value: el.config && el.config.defaultTypeValue && el.config.defaultTypeValue === \"BETWEEN\" ? [undefined, undefined] : undefined\n });\n } else {\n var _el$config;\n this.$set(this.searchForm, el.value, (el === null || el === void 0 ? void 0 : el.config) && ((_el$config = el.config) === null || _el$config === void 0 ? void 0 : _el$config.defaultValue) || undefined);\n }\n });\n },\n resetForm() {\n this.initFormState();\n this.defaultValue = this.initFormState[this.defaultSearch[0].value];\n if (!!this.$listeners.reset) {\n this.$emit(\"reset\", this.searchForm);\n } else {\n this.$emit(\"search\", this.searchForm);\n }\n },\n showModalPop() {\n this.showModal = true;\n },\n closeSearchForm() {\n this.visible = false;\n this.resetCusSearchForm();\n },\n resetCusSearchForm() {\n this.checkedList = this.list.map(item => item.value);\n this.showModal = false;\n },\n saveCusSearchForm() {\n this.list = this.formOption.filter(item => {\n if (!this.checkedList.includes(item.value)) {\n item.type !== \"multipleSelect\" ? this.$set(this.searchForm, item.value, undefined) : this.changeItemType(this.searchForm[item.value].value, item.value);\n }\n return this.checkedList.includes(item.value);\n });\n this.showModal = false;\n }\n },\n mounted() {\n this.init();\n }\n};\n\nconst __injectCSSVars__ = () => {\n (0,vue__WEBPACK_IMPORTED_MODULE_1__.useCssVars)((_vm, _setup) => ({\n \"40b39b9a-containerWidth\": _vm.containerWidth\n }));\n};\nconst __setup__ = __default__.setup;\n__default__.setup = __setup__ ? (props, ctx) => {\n __injectCSSVars__();\n return __setup__(props, ctx);\n} : __injectCSSVars__;\n/* harmony default export */ __webpack_exports__[\"default\"] = (__default__);\n\n//# sourceURL=webpack://yw-ui-vue2/./packages/components/searchGroup/src/index.vue?./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options");
217
217
 
218
218
  /***/ }),
219
219
 
@@ -92,7 +92,7 @@ eval("\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar
92
92
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
93
93
 
94
94
  "use strict";
95
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n\nconst __default__ = {\n name: \"YwSearchGroup\",\n props: {\n // 表单配置\n formOption: {\n type: Array,\n default: () => []\n },\n minWidth: {\n type: Number,\n default: 1220\n }\n },\n data() {\n return {\n list: [],\n searchForm: {},\n columns: 4,\n showModal: false,\n checkedList: [],\n show: false,\n defaultValue: undefined,\n visible: false,\n initFormState: {}\n };\n },\n computed: {\n moment() {\n return value => moment__WEBPACK_IMPORTED_MODULE_0___default()(...value);\n },\n cusSearchForm() {\n return this.formOption.map(it => ({\n ...it,\n disabled: this.checkedList.length === 1 && it.value === this.checkedList[0]\n }));\n },\n defaultSearch() {\n return [{\n label: \"\",\n ...this.formOption.find(item => item.default)\n }];\n },\n containerWidth() {\n return this.minWidth ? `${this.minWidth}px` : \"1220px\";\n }\n },\n watch: {\n formOption: {\n handler(newVal) {\n if (newVal.length > 0) {\n this.list = [...newVal];\n this.checkedList = this.formOption.map(item => item.value);\n this.list.forEach(el => {\n if (el.type === \"multipleSelect\") {\n this.$set(this.searchForm, el.value, {\n type: el.config && el.config.defaultTypeValue || \"\",\n value: el.config && el.config.defaultTypeValue && el.config.defaultTypeValue === \"BETWEEN\" ? [undefined, undefined] : undefined\n });\n } else if (el.type !== \"multipleSelect\" && el.config && el.config.defaultValue) {\n this.$set(this.searchForm, el.value, el.config && el.config.defaultValue || undefined);\n }\n });\n this.$nextTick(() => {\n this.initFormState = JSON.parse(JSON.stringify(this.searchForm));\n });\n } else {\n this.list = [];\n }\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n handleclick() {\n this.resetForm();\n },\n getParams() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n onSearch() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n changeItemType(type, value) {\n if (type !== \"BETWEEN\") {\n this.$set(this.searchForm[value], \"value\", undefined);\n } else {\n this.$set(this.searchForm[value], \"value\", [undefined, undefined]);\n }\n },\n init() {\n const container = document.querySelector(\".searchGroup\");\n // 监听窗口大小变化\n if (container) {\n this.columns = document.querySelector(\".searchGroup\").offsetWidth > 1220 ? 4 : 3;\n window.addEventListener(\"resize\", () => {\n this.columns = container.offsetWidth > 1220 ? 4 : 3;\n });\n }\n this.checkedList = this.formOption.map(item => item.value);\n },\n resetForm() {\n this.list.forEach(el => {\n this.$set(this.searchForm, el.value, this.initFormState[el.value]);\n });\n this.defaultValue = this.initFormState[this.defaultSearch[0].value];\n if (!!this.$listeners.reset) {\n this.$emit(\"reset\", this.searchForm);\n } else {\n this.$emit(\"search\", this.searchForm);\n }\n },\n showModalPop() {\n this.showModal = true;\n },\n closeSearchForm() {\n this.visible = false;\n this.resetCusSearchForm();\n },\n resetCusSearchForm() {\n this.checkedList = this.list.map(item => item.value);\n this.showModal = false;\n },\n saveCusSearchForm() {\n this.list = this.formOption.filter(item => {\n if (!this.checkedList.includes(item.value)) {\n item.type !== \"multipleSelect\" ? this.$set(this.searchForm, item.value, undefined) : this.changeItemType(this.searchForm[item.value].value, item.value);\n }\n return this.checkedList.includes(item.value);\n });\n this.showModal = false;\n }\n },\n mounted() {\n this.init();\n console.log(this.$slots);\n }\n};\n\nconst __injectCSSVars__ = () => {\n (0,vue__WEBPACK_IMPORTED_MODULE_1__.useCssVars)((_vm, _setup) => ({\n \"40b39b9a-containerWidth\": _vm.containerWidth\n }));\n};\nconst __setup__ = __default__.setup;\n__default__.setup = __setup__ ? (props, ctx) => {\n __injectCSSVars__();\n return __setup__(props, ctx);\n} : __injectCSSVars__;\n/* harmony default export */ __webpack_exports__[\"default\"] = (__default__);\n\n//# sourceURL=webpack://yw-ui-vue2/./packages/components/searchGroup/src/index.vue?./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options");
95
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm.js\");\n\nconst __default__ = {\n name: \"YwSearchGroup\",\n props: {\n // 表单配置\n formOption: {\n type: Array,\n default: () => []\n },\n minWidth: {\n type: Number,\n default: 1220\n }\n },\n data() {\n return {\n list: [],\n searchForm: {},\n columns: 4,\n showModal: false,\n checkedList: [],\n show: false,\n defaultValue: undefined,\n visible: false\n };\n },\n computed: {\n moment() {\n return value => moment__WEBPACK_IMPORTED_MODULE_0___default()(...value);\n },\n cusSearchForm() {\n return this.formOption.map(it => ({\n ...it,\n disabled: this.checkedList.length === 1 && it.value === this.checkedList[0]\n }));\n },\n defaultSearch() {\n return [{\n label: \"\",\n ...this.formOption.find(item => item.default)\n }];\n },\n containerWidth() {\n return this.minWidth ? `${this.minWidth}px` : \"1220px\";\n }\n },\n watch: {\n formOption: {\n handler(newVal, oldVal) {\n if ((newVal === null || newVal === void 0 ? void 0 : newVal.length) !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.length)) {\n this.initFormState();\n }\n if (newVal.length > 0) {\n this.list = newVal;\n this.checkedList = this.formOption.map(item => item.value);\n } else {\n this.list = [];\n }\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n handleclick() {\n this.resetForm();\n },\n getParams() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n onSearch() {\n this.defaultValue = this.searchForm[this.defaultSearch[0].value];\n this.$emit(\"search\", {\n ...this.searchForm\n });\n console.log(this.defaultValue);\n },\n changeItemType(type, value) {\n if (type !== \"BETWEEN\") {\n this.$set(this.searchForm[value], \"value\", undefined);\n } else {\n this.$set(this.searchForm[value], \"value\", [undefined, undefined]);\n }\n },\n init() {\n const container = document.querySelector(\".searchGroup\");\n // 监听窗口大小变化\n if (container) {\n this.columns = document.querySelector(\".searchGroup\").offsetWidth > 1220 ? 4 : 3;\n window.addEventListener(\"resize\", () => {\n this.columns = container.offsetWidth > 1220 ? 4 : 3;\n });\n }\n this.checkedList = this.formOption.map(item => item.value);\n },\n initFormState() {\n this.formOption.forEach(el => {\n if (el.type === \"multipleSelect\") {\n this.$set(this.searchForm, el.value, {\n type: el.config && el.config.defaultTypeValue || \"\",\n value: el.config && el.config.defaultTypeValue && el.config.defaultTypeValue === \"BETWEEN\" ? [undefined, undefined] : undefined\n });\n } else {\n var _el$config;\n this.$set(this.searchForm, el.value, (el === null || el === void 0 ? void 0 : el.config) && ((_el$config = el.config) === null || _el$config === void 0 ? void 0 : _el$config.defaultValue) || undefined);\n }\n });\n },\n resetForm() {\n this.initFormState();\n this.defaultValue = this.initFormState[this.defaultSearch[0].value];\n if (!!this.$listeners.reset) {\n this.$emit(\"reset\", this.searchForm);\n } else {\n this.$emit(\"search\", this.searchForm);\n }\n },\n showModalPop() {\n this.showModal = true;\n },\n closeSearchForm() {\n this.visible = false;\n this.resetCusSearchForm();\n },\n resetCusSearchForm() {\n this.checkedList = this.list.map(item => item.value);\n this.showModal = false;\n },\n saveCusSearchForm() {\n this.list = this.formOption.filter(item => {\n if (!this.checkedList.includes(item.value)) {\n item.type !== \"multipleSelect\" ? this.$set(this.searchForm, item.value, undefined) : this.changeItemType(this.searchForm[item.value].value, item.value);\n }\n return this.checkedList.includes(item.value);\n });\n this.showModal = false;\n }\n },\n mounted() {\n this.init();\n }\n};\n\nconst __injectCSSVars__ = () => {\n (0,vue__WEBPACK_IMPORTED_MODULE_1__.useCssVars)((_vm, _setup) => ({\n \"40b39b9a-containerWidth\": _vm.containerWidth\n }));\n};\nconst __setup__ = __default__.setup;\n__default__.setup = __setup__ ? (props, ctx) => {\n __injectCSSVars__();\n return __setup__(props, ctx);\n} : __injectCSSVars__;\n/* harmony default export */ __webpack_exports__[\"default\"] = (__default__);\n\n//# sourceURL=webpack://yw-ui-vue2/./packages/components/searchGroup/src/index.vue?./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use%5B0%5D!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options");
96
96
 
97
97
  /***/ }),
98
98
 
@@ -100623,8 +100623,8 @@ TreeSelect.install = function (Vue) {
100623
100623
  };
100624
100624
 
100625
100625
  /* harmony default export */ var tree_select = (TreeSelect);
100626
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/searchGroup/src/index.vue?vue&type=template&id=58898646&scoped=true
100627
- var srcvue_type_template_id_58898646_scoped_true_render = function render() {
100626
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/searchGroup/src/index.vue?vue&type=template&id=b66eb35c&scoped=true
100627
+ var srcvue_type_template_id_b66eb35c_scoped_true_render = function render() {
100628
100628
  var _vm = this,
100629
100629
  _c = _vm._self._c;
100630
100630
  return _c('div', {
@@ -101107,7 +101107,7 @@ var srcvue_type_template_id_58898646_scoped_true_render = function render() {
101107
101107
  }
101108
101108
  }, [_vm._v("\n\t\t\t\t\t\t\t确定\n\t\t\t\t\t\t")])], 1)])])], 1)], 1)]);
101109
101109
  };
101110
- var srcvue_type_template_id_58898646_scoped_true_staticRenderFns = [];
101110
+ var srcvue_type_template_id_b66eb35c_scoped_true_staticRenderFns = [];
101111
101111
 
101112
101112
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-41.use!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/searchGroup/src/index.vue?vue&type=script&lang=js
101113
101113
 
@@ -101133,8 +101133,7 @@ const srcvue_type_script_lang_js_default_ = {
101133
101133
  checkedList: [],
101134
101134
  show: false,
101135
101135
  defaultValue: undefined,
101136
- visible: false,
101137
- initFormState: {}
101136
+ visible: false
101138
101137
  };
101139
101138
  },
101140
101139
  computed: {
@@ -101159,23 +101158,13 @@ const srcvue_type_script_lang_js_default_ = {
101159
101158
  },
101160
101159
  watch: {
101161
101160
  formOption: {
101162
- handler(newVal) {
101161
+ handler(newVal, oldVal) {
101162
+ if ((newVal === null || newVal === void 0 ? void 0 : newVal.length) !== (oldVal === null || oldVal === void 0 ? void 0 : oldVal.length)) {
101163
+ this.initFormState();
101164
+ }
101163
101165
  if (newVal.length > 0) {
101164
- this.list = [...newVal];
101166
+ this.list = newVal;
101165
101167
  this.checkedList = this.formOption.map(item => item.value);
101166
- this.list.forEach(el => {
101167
- if (el.type === "multipleSelect") {
101168
- this.$set(this.searchForm, el.value, {
101169
- type: el.config && el.config.defaultTypeValue || "",
101170
- value: el.config && el.config.defaultTypeValue && el.config.defaultTypeValue === "BETWEEN" ? [undefined, undefined] : undefined
101171
- });
101172
- } else if (el.type !== "multipleSelect" && el.config && el.config.defaultValue) {
101173
- this.$set(this.searchForm, el.value, el.config && el.config.defaultValue || undefined);
101174
- }
101175
- });
101176
- this.$nextTick(() => {
101177
- this.initFormState = JSON.parse(JSON.stringify(this.searchForm));
101178
- });
101179
101168
  } else {
101180
101169
  this.list = [];
101181
101170
  }
@@ -101218,10 +101207,21 @@ const srcvue_type_script_lang_js_default_ = {
101218
101207
  }
101219
101208
  this.checkedList = this.formOption.map(item => item.value);
101220
101209
  },
101221
- resetForm() {
101222
- this.list.forEach(el => {
101223
- this.$set(this.searchForm, el.value, this.initFormState[el.value]);
101210
+ initFormState() {
101211
+ this.formOption.forEach(el => {
101212
+ if (el.type === "multipleSelect") {
101213
+ this.$set(this.searchForm, el.value, {
101214
+ type: el.config && el.config.defaultTypeValue || "",
101215
+ value: el.config && el.config.defaultTypeValue && el.config.defaultTypeValue === "BETWEEN" ? [undefined, undefined] : undefined
101216
+ });
101217
+ } else {
101218
+ var _el$config;
101219
+ this.$set(this.searchForm, el.value, (el === null || el === void 0 ? void 0 : el.config) && ((_el$config = el.config) === null || _el$config === void 0 ? void 0 : _el$config.defaultValue) || undefined);
101220
+ }
101224
101221
  });
101222
+ },
101223
+ resetForm() {
101224
+ this.initFormState();
101225
101225
  this.defaultValue = this.initFormState[this.defaultSearch[0].value];
101226
101226
  if (!!this.$listeners.reset) {
101227
101227
  this.$emit("reset", this.searchForm);
@@ -101257,7 +101257,7 @@ const srcvue_type_script_lang_js_default_ = {
101257
101257
 
101258
101258
  const srcvue_type_script_lang_js_injectCSSVars_ = () => {
101259
101259
  (0,external_commonjs_vue_commonjs2_vue_root_Vue_.useCssVars)((_vm, _setup) => ({
101260
- "22b3ef1f": _vm.containerWidth
101260
+ "341dfcdd": _vm.containerWidth
101261
101261
  }));
101262
101262
  };
101263
101263
  const srcvue_type_script_lang_js_setup_ = srcvue_type_script_lang_js_default_.setup;
@@ -101268,10 +101268,10 @@ srcvue_type_script_lang_js_default_.setup = srcvue_type_script_lang_js_setup_ ?
101268
101268
  /* harmony default export */ var searchGroup_srcvue_type_script_lang_js = (srcvue_type_script_lang_js_default_);
101269
101269
  ;// CONCATENATED MODULE: ./packages/components/searchGroup/src/index.vue?vue&type=script&lang=js
101270
101270
  /* harmony default export */ var components_searchGroup_srcvue_type_script_lang_js = (searchGroup_srcvue_type_script_lang_js);
101271
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/searchGroup/src/index.vue?vue&type=style&index=0&id=58898646&prod&lang=less&scoped=true
101271
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/searchGroup/src/index.vue?vue&type=style&index=0&id=b66eb35c&prod&lang=less&scoped=true
101272
101272
  // extracted by mini-css-extract-plugin
101273
101273
 
101274
- ;// CONCATENATED MODULE: ./packages/components/searchGroup/src/index.vue?vue&type=style&index=0&id=58898646&prod&lang=less&scoped=true
101274
+ ;// CONCATENATED MODULE: ./packages/components/searchGroup/src/index.vue?vue&type=style&index=0&id=b66eb35c&prod&lang=less&scoped=true
101275
101275
 
101276
101276
  ;// CONCATENATED MODULE: ./packages/components/searchGroup/src/index.vue
101277
101277
 
@@ -101284,11 +101284,11 @@ srcvue_type_script_lang_js_default_.setup = srcvue_type_script_lang_js_setup_ ?
101284
101284
 
101285
101285
  var searchGroup_src_component = normalizeComponent(
101286
101286
  components_searchGroup_srcvue_type_script_lang_js,
101287
- srcvue_type_template_id_58898646_scoped_true_render,
101288
- srcvue_type_template_id_58898646_scoped_true_staticRenderFns,
101287
+ srcvue_type_template_id_b66eb35c_scoped_true_render,
101288
+ srcvue_type_template_id_b66eb35c_scoped_true_staticRenderFns,
101289
101289
  false,
101290
101290
  null,
101291
- "58898646",
101291
+ "b66eb35c",
101292
101292
  null
101293
101293
 
101294
101294
  )