@v2coding/ui 0.1.14 → 0.1.17

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.
@@ -1016,132 +1016,132 @@ var script$F = {
1016
1016
  }
1017
1017
  };
1018
1018
 
1019
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1020
- if (typeof shadowMode !== 'boolean') {
1021
- createInjectorSSR = createInjector;
1022
- createInjector = shadowMode;
1023
- shadowMode = false;
1024
- }
1025
- // Vue.extend constructor export interop.
1026
- const options = typeof script === 'function' ? script.options : script;
1027
- // render functions
1028
- if (template && template.render) {
1029
- options.render = template.render;
1030
- options.staticRenderFns = template.staticRenderFns;
1031
- options._compiled = true;
1032
- // functional template
1033
- if (isFunctionalTemplate) {
1034
- options.functional = true;
1035
- }
1036
- }
1037
- // scopedId
1038
- if (scopeId) {
1039
- options._scopeId = scopeId;
1040
- }
1041
- let hook;
1042
- if (moduleIdentifier) {
1043
- // server build
1044
- hook = function (context) {
1045
- // 2.3 injection
1046
- context =
1047
- context || // cached call
1048
- (this.$vnode && this.$vnode.ssrContext) || // stateful
1049
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
1050
- // 2.2 with runInNewContext: true
1051
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1052
- context = __VUE_SSR_CONTEXT__;
1053
- }
1054
- // inject component styles
1055
- if (style) {
1056
- style.call(this, createInjectorSSR(context));
1057
- }
1058
- // register component module identifier for async chunk inference
1059
- if (context && context._registeredComponents) {
1060
- context._registeredComponents.add(moduleIdentifier);
1061
- }
1062
- };
1063
- // used by ssr in case component is cached and beforeCreate
1064
- // never gets called
1065
- options._ssrRegister = hook;
1066
- }
1067
- else if (style) {
1068
- hook = shadowMode
1069
- ? function (context) {
1070
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
1071
- }
1072
- : function (context) {
1073
- style.call(this, createInjector(context));
1074
- };
1075
- }
1076
- if (hook) {
1077
- if (options.functional) {
1078
- // register for functional component in vue file
1079
- const originalRender = options.render;
1080
- options.render = function renderWithStyleInjection(h, context) {
1081
- hook.call(context);
1082
- return originalRender(h, context);
1083
- };
1084
- }
1085
- else {
1086
- // inject component registration as beforeCreate hook
1087
- const existing = options.beforeCreate;
1088
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1089
- }
1090
- }
1091
- return script;
1019
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1020
+ if (typeof shadowMode !== 'boolean') {
1021
+ createInjectorSSR = createInjector;
1022
+ createInjector = shadowMode;
1023
+ shadowMode = false;
1024
+ }
1025
+ // Vue.extend constructor export interop.
1026
+ const options = typeof script === 'function' ? script.options : script;
1027
+ // render functions
1028
+ if (template && template.render) {
1029
+ options.render = template.render;
1030
+ options.staticRenderFns = template.staticRenderFns;
1031
+ options._compiled = true;
1032
+ // functional template
1033
+ if (isFunctionalTemplate) {
1034
+ options.functional = true;
1035
+ }
1036
+ }
1037
+ // scopedId
1038
+ if (scopeId) {
1039
+ options._scopeId = scopeId;
1040
+ }
1041
+ let hook;
1042
+ if (moduleIdentifier) {
1043
+ // server build
1044
+ hook = function (context) {
1045
+ // 2.3 injection
1046
+ context =
1047
+ context || // cached call
1048
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
1049
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
1050
+ // 2.2 with runInNewContext: true
1051
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1052
+ context = __VUE_SSR_CONTEXT__;
1053
+ }
1054
+ // inject component styles
1055
+ if (style) {
1056
+ style.call(this, createInjectorSSR(context));
1057
+ }
1058
+ // register component module identifier for async chunk inference
1059
+ if (context && context._registeredComponents) {
1060
+ context._registeredComponents.add(moduleIdentifier);
1061
+ }
1062
+ };
1063
+ // used by ssr in case component is cached and beforeCreate
1064
+ // never gets called
1065
+ options._ssrRegister = hook;
1066
+ }
1067
+ else if (style) {
1068
+ hook = shadowMode
1069
+ ? function (context) {
1070
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
1071
+ }
1072
+ : function (context) {
1073
+ style.call(this, createInjector(context));
1074
+ };
1075
+ }
1076
+ if (hook) {
1077
+ if (options.functional) {
1078
+ // register for functional component in vue file
1079
+ const originalRender = options.render;
1080
+ options.render = function renderWithStyleInjection(h, context) {
1081
+ hook.call(context);
1082
+ return originalRender(h, context);
1083
+ };
1084
+ }
1085
+ else {
1086
+ // inject component registration as beforeCreate hook
1087
+ const existing = options.beforeCreate;
1088
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1089
+ }
1090
+ }
1091
+ return script;
1092
1092
  }
1093
1093
 
1094
- const isOldIE = typeof navigator !== 'undefined' &&
1095
- /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
1096
- function createInjector(context) {
1097
- return (id, style) => addStyle(id, style);
1098
- }
1099
- let HEAD;
1100
- const styles = {};
1101
- function addStyle(id, css) {
1102
- const group = isOldIE ? css.media || 'default' : id;
1103
- const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
1104
- if (!style.ids.has(id)) {
1105
- style.ids.add(id);
1106
- let code = css.source;
1107
- if (css.map) {
1108
- // https://developer.chrome.com/devtools/docs/javascript-debugging
1109
- // this makes source maps inside style tags work properly in Chrome
1110
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
1111
- // http://stackoverflow.com/a/26603875
1112
- code +=
1113
- '\n/*# sourceMappingURL=data:application/json;base64,' +
1114
- btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
1115
- ' */';
1116
- }
1117
- if (!style.element) {
1118
- style.element = document.createElement('style');
1119
- style.element.type = 'text/css';
1120
- if (css.media)
1121
- style.element.setAttribute('media', css.media);
1122
- if (HEAD === undefined) {
1123
- HEAD = document.head || document.getElementsByTagName('head')[0];
1124
- }
1125
- HEAD.appendChild(style.element);
1126
- }
1127
- if ('styleSheet' in style.element) {
1128
- style.styles.push(code);
1129
- style.element.styleSheet.cssText = style.styles
1130
- .filter(Boolean)
1131
- .join('\n');
1132
- }
1133
- else {
1134
- const index = style.ids.size - 1;
1135
- const textNode = document.createTextNode(code);
1136
- const nodes = style.element.childNodes;
1137
- if (nodes[index])
1138
- style.element.removeChild(nodes[index]);
1139
- if (nodes.length)
1140
- style.element.insertBefore(textNode, nodes[index]);
1141
- else
1142
- style.element.appendChild(textNode);
1143
- }
1144
- }
1094
+ const isOldIE = typeof navigator !== 'undefined' &&
1095
+ /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
1096
+ function createInjector(context) {
1097
+ return (id, style) => addStyle(id, style);
1098
+ }
1099
+ let HEAD;
1100
+ const styles = {};
1101
+ function addStyle(id, css) {
1102
+ const group = isOldIE ? css.media || 'default' : id;
1103
+ const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
1104
+ if (!style.ids.has(id)) {
1105
+ style.ids.add(id);
1106
+ let code = css.source;
1107
+ if (css.map) {
1108
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
1109
+ // this makes source maps inside style tags work properly in Chrome
1110
+ code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
1111
+ // http://stackoverflow.com/a/26603875
1112
+ code +=
1113
+ '\n/*# sourceMappingURL=data:application/json;base64,' +
1114
+ btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
1115
+ ' */';
1116
+ }
1117
+ if (!style.element) {
1118
+ style.element = document.createElement('style');
1119
+ style.element.type = 'text/css';
1120
+ if (css.media)
1121
+ style.element.setAttribute('media', css.media);
1122
+ if (HEAD === undefined) {
1123
+ HEAD = document.head || document.getElementsByTagName('head')[0];
1124
+ }
1125
+ HEAD.appendChild(style.element);
1126
+ }
1127
+ if ('styleSheet' in style.element) {
1128
+ style.styles.push(code);
1129
+ style.element.styleSheet.cssText = style.styles
1130
+ .filter(Boolean)
1131
+ .join('\n');
1132
+ }
1133
+ else {
1134
+ const index = style.ids.size - 1;
1135
+ const textNode = document.createTextNode(code);
1136
+ const nodes = style.element.childNodes;
1137
+ if (nodes[index])
1138
+ style.element.removeChild(nodes[index]);
1139
+ if (nodes.length)
1140
+ style.element.insertBefore(textNode, nodes[index]);
1141
+ else
1142
+ style.element.appendChild(textNode);
1143
+ }
1144
+ }
1145
1145
  }
1146
1146
 
1147
1147
  /* script */
@@ -2768,8 +2768,16 @@ var script$A = {
2768
2768
  this.query = query;
2769
2769
  },
2770
2770
 
2771
- onBlur() {
2772
- this.query = '';
2771
+ async delay() {
2772
+ let ms = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
2773
+ return new Promise(resolve => setTimeout(resolve, ms));
2774
+ },
2775
+
2776
+ async onVisibleChange(visible) {
2777
+ if (!visible) {
2778
+ await this.delay(300);
2779
+ this.query = '';
2780
+ }
2773
2781
  }
2774
2782
 
2775
2783
  }
@@ -2806,7 +2814,7 @@ var __vue_render__$A = function () {
2806
2814
  },
2807
2815
  on: {
2808
2816
  "input": _vm.onChange,
2809
- "blur": _vm.onBlur
2817
+ "visible-change": _vm.onVisibleChange
2810
2818
  }
2811
2819
  }, 'el-select', _vm.$attrs, false), _vm._listeners), [_vm._l(_vm.displayOptions, function (item) {
2812
2820
  return _c('el-option', _vm._b({
@@ -2859,7 +2867,7 @@ var __vue_render__$A = function () {
2859
2867
  },
2860
2868
  on: {
2861
2869
  "input": _vm.onChange,
2862
- "blur": _vm.onBlur
2870
+ "visible-change": _vm.onVisibleChange
2863
2871
  }
2864
2872
  }, 'el-select', _vm.$attrs, false), _vm._listeners), [_vm._l(_vm.displayOptions, function (item) {
2865
2873
  return _c('el-option', _vm._b({
@@ -2909,7 +2917,7 @@ var __vue_staticRenderFns__$A = [];
2909
2917
 
2910
2918
  const __vue_inject_styles__$B = function (inject) {
2911
2919
  if (!inject) return;
2912
- inject("data-v-525e6b24_0", {
2920
+ inject("data-v-5ed62eec_0", {
2913
2921
  source: ".ui-field-select .el-select{width:100%}.ui-field-select .el-input-group--append .el-select .el-input.is-focus .el-input__inner{border-color:var(--color-primary)}.ui-field-select .empty{font-size:12px;color:#909399;display:flex;align-items:center}.ui-field-select .el-loading-mask .el-loading-spinner{margin-top:-14px}",
2914
2922
  map: undefined,
2915
2923
  media: undefined
@@ -4316,6 +4324,37 @@ var Upload = {
4316
4324
  };
4317
4325
  });
4318
4326
  });
4327
+ },
4328
+ aws: (url, params, file) => {
4329
+ const getSignature = params => {
4330
+ console.log('aws getSignature', params)
4331
+ return Axios.getInstance().get(url, {
4332
+ params
4333
+ });
4334
+ };
4335
+
4336
+ return getSignature(params).then(result => {
4337
+ if (!result.success) {
4338
+ return result;
4339
+ }
4340
+
4341
+ const {
4342
+ url,
4343
+ putUrl
4344
+ } = result.data;
4345
+ return Axios.getInstance().put(putUrl, file.file, {
4346
+ headers: {
4347
+ 'Content-Type': 'multipart/form-data'
4348
+ }
4349
+ }).then(() => {
4350
+ return {
4351
+ success: true,
4352
+ data: {
4353
+ url: url
4354
+ }
4355
+ };
4356
+ });
4357
+ });
4319
4358
  }
4320
4359
  };
4321
4360
 
@@ -4618,13 +4657,14 @@ var script$p = {
4618
4657
  type: Boolean,
4619
4658
  default: false
4620
4659
  },
4660
+ customUpload: Function,
4621
4661
  needCreateAttachment: {
4622
4662
  type: Boolean,
4623
4663
  default: false
4624
4664
  },
4625
4665
  createAttachmentUrl: {
4626
4666
  type: String,
4627
- default: '/System/SystemSysAttachment/create'
4667
+ default: '/System/Sys/SystemSysAttachment/create'
4628
4668
  },
4629
4669
  createAttachmentParams: null,
4630
4670
  createAttachment: {
@@ -4681,37 +4721,54 @@ var script$p = {
4681
4721
  }
4682
4722
 
4683
4723
  this.uploading = true;
4684
- const uploadServer = Upload[this.uploadType] || Upload.default;
4685
- uploadServer(this.url, {
4686
- filename: file.name
4687
- }, {
4688
- file,
4689
- filename: this.filename
4690
- }).then(result => {
4691
- var _result$data;
4692
4724
 
4693
- this.uploading = false;
4725
+ if (typeof this.customUpload === 'function') {
4726
+ const done = url => {
4727
+ this.onChange([...this.pickerValue, url].join(','));
4728
+ this.handleAttachment(file, url);
4729
+ };
4694
4730
 
4695
- if (!(result !== null && result !== void 0 && result.success)) {
4696
- this.$message.error(result.message || '上传失败');
4697
- return;
4698
- }
4731
+ this.customUpload({
4732
+ file: file,
4733
+ filename: this.filename,
4734
+ done: done
4735
+ });
4736
+ } else {
4737
+ const uploadServer = Upload[this.uploadType] || Upload.default;
4738
+ uploadServer(this.url, {
4739
+ filename: file.name
4740
+ }, {
4741
+ file,
4742
+ filename: this.filename
4743
+ }).then(result => {
4744
+ var _result$data;
4699
4745
 
4700
- this.$message.success('上传成功');
4701
- const url = result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.url;
4702
- this.onChange([...this.pickerValue, url].join(','));
4703
- this.$emit('afterUpload', result);
4746
+ this.uploading = false;
4704
4747
 
4705
- if (this.needCreateAttachment && typeof this.createAttachment === 'function') {
4706
- this.createAttachment(file, url).then(result => {
4707
- this.$emit('create-attachment', result);
4708
- }).catch(error => {
4709
- this.$emit('create-attachment', error);
4710
- });
4711
- }
4712
- }).catch(() => {
4713
- this.uploading = false;
4714
- });
4748
+ if (!(result !== null && result !== void 0 && result.success)) {
4749
+ this.$message.error(result.message || '上传失败');
4750
+ return;
4751
+ }
4752
+
4753
+ this.$message.success('上传成功');
4754
+ const url = result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : _result$data.url;
4755
+ this.onChange([...this.pickerValue, url].join(','));
4756
+ this.$emit('afterUpload', result);
4757
+ this.handleAttachment(file, url);
4758
+ }).catch(() => {
4759
+ this.uploading = false;
4760
+ });
4761
+ }
4762
+ },
4763
+
4764
+ handleAttachment(file, url) {
4765
+ if (this.needCreateAttachment && typeof this.createAttachment === 'function') {
4766
+ this.createAttachment(file, url).then(result => {
4767
+ this.$emit('create-attachment', result);
4768
+ }).catch(error => {
4769
+ this.$emit('create-attachment', error);
4770
+ });
4771
+ }
4715
4772
  },
4716
4773
 
4717
4774
  remove(url) {
@@ -4804,8 +4861,8 @@ var __vue_staticRenderFns__$o = [];
4804
4861
 
4805
4862
  const __vue_inject_styles__$p = function (inject) {
4806
4863
  if (!inject) return;
4807
- inject("data-v-46b6568f_0", {
4808
- source: ".ui-file-upload-field[data-v-46b6568f]{width:100%}.ui-file-upload-field .uploader[data-v-46b6568f]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-46b6568f] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-46b6568f] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-46b6568f]{padding:5px 10px;line-height:1;background-color:#409eff;color:#fff;font-size:12px;transition:background-color .3s}.ui-file-upload-field .upload-btn[data-v-46b6568f]:hover{background-color:#0d84ff}.ui-file-upload-field .files .file[data-v-46b6568f]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;line-height:28px;display:flex;align-items:center}.ui-file-upload-field .files .file a[data-v-46b6568f]{flex:1;color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-46b6568f]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-46b6568f]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-46b6568f]{color:#409eff}.ui-file-upload-field .files .file:hover .close[data-v-46b6568f]{color:#409eff;visibility:visible}",
4864
+ inject("data-v-3f613baa_0", {
4865
+ source: ".ui-file-upload-field[data-v-3f613baa]{width:100%}.ui-file-upload-field .uploader[data-v-3f613baa]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-3f613baa] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-3f613baa] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-3f613baa]{padding:5px 10px;line-height:1;background-color:#409eff;color:#fff;font-size:12px;transition:background-color .3s}.ui-file-upload-field .upload-btn[data-v-3f613baa]:hover{background-color:#0d84ff}.ui-file-upload-field .files .file[data-v-3f613baa]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;line-height:28px;display:flex;align-items:center}.ui-file-upload-field .files .file a[data-v-3f613baa]{flex:1;color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-3f613baa]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-3f613baa]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-3f613baa]{color:#409eff}.ui-file-upload-field .files .file:hover .close[data-v-3f613baa]{color:#409eff;visibility:visible}",
4809
4866
  map: undefined,
4810
4867
  media: undefined
4811
4868
  });
@@ -4813,7 +4870,7 @@ const __vue_inject_styles__$p = function (inject) {
4813
4870
  /* scoped */
4814
4871
 
4815
4872
 
4816
- const __vue_scope_id__$p = "data-v-46b6568f";
4873
+ const __vue_scope_id__$p = "data-v-3f613baa";
4817
4874
  /* module identifier */
4818
4875
 
4819
4876
  const __vue_module_identifier__$p = undefined;
@@ -6986,6 +7043,8 @@ var script$h = {
6986
7043
  * @public
6987
7044
  */
6988
7045
  resetValues(values) {
7046
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
7047
+
6989
7048
  if (!Objects.isObject(values)) {
6990
7049
  values = {};
6991
7050
  }
@@ -6994,7 +7053,7 @@ var script$h = {
6994
7053
  formItems.forEach(item => {
6995
7054
  if (Object.prototype.hasOwnProperty.call(values, item.name)) {
6996
7055
  item.resetField(values[item.name]);
6997
- } else {
7056
+ } else if (all) {
6998
7057
  item.resetField();
6999
7058
  }
7000
7059
  });
@@ -7274,8 +7333,8 @@ var __vue_staticRenderFns__$g = [];
7274
7333
 
7275
7334
  const __vue_inject_styles__$h = function (inject) {
7276
7335
  if (!inject) return;
7277
- inject("data-v-2a9aa6b4_0", {
7278
- source: ".el-form--inline[data-v-2a9aa6b4] .el-form-item{display:inline-flex}",
7336
+ inject("data-v-33599c0b_0", {
7337
+ source: ".el-form--inline[data-v-33599c0b] .el-form-item{display:inline-flex}",
7279
7338
  map: undefined,
7280
7339
  media: undefined
7281
7340
  });
@@ -7283,7 +7342,7 @@ const __vue_inject_styles__$h = function (inject) {
7283
7342
  /* scoped */
7284
7343
 
7285
7344
 
7286
- const __vue_scope_id__$h = "data-v-2a9aa6b4";
7345
+ const __vue_scope_id__$h = "data-v-33599c0b";
7287
7346
  /* module identifier */
7288
7347
 
7289
7348
  const __vue_module_identifier__$h = undefined;
@@ -7417,11 +7476,13 @@ var script$g = {
7417
7476
  },
7418
7477
 
7419
7478
  resetValues(values) {
7479
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
7480
+
7420
7481
  if (!this.$refs.form) {
7421
7482
  return;
7422
7483
  }
7423
7484
 
7424
- this.$refs.form.resetValues(values);
7485
+ this.$refs.form.resetValues(values, all);
7425
7486
  },
7426
7487
 
7427
7488
  clearValidate() {
@@ -7573,8 +7634,8 @@ var __vue_staticRenderFns__$f = [];
7573
7634
 
7574
7635
  const __vue_inject_styles__$g = function (inject) {
7575
7636
  if (!inject) return;
7576
- inject("data-v-02f7d8d6_0", {
7577
- source: ".action-button[data-v-02f7d8d6]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
7637
+ inject("data-v-3f84d6b9_0", {
7638
+ source: ".action-button[data-v-3f84d6b9]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
7578
7639
  map: undefined,
7579
7640
  media: undefined
7580
7641
  });
@@ -7582,7 +7643,7 @@ const __vue_inject_styles__$g = function (inject) {
7582
7643
  /* scoped */
7583
7644
 
7584
7645
 
7585
- const __vue_scope_id__$g = "data-v-02f7d8d6";
7646
+ const __vue_scope_id__$g = "data-v-3f84d6b9";
7586
7647
  /* module identifier */
7587
7648
 
7588
7649
  const __vue_module_identifier__$g = undefined;
@@ -8233,11 +8294,13 @@ var script$e = {
8233
8294
  },
8234
8295
 
8235
8296
  resetValues(values) {
8297
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
8298
+
8236
8299
  if (!this.$refs.form) {
8237
8300
  return;
8238
8301
  }
8239
8302
 
8240
- this.$refs.form.resetValues(values);
8303
+ this.$refs.form.resetValues(values, all);
8241
8304
  },
8242
8305
 
8243
8306
  getValues() {
@@ -8378,7 +8441,7 @@ var __vue_staticRenderFns__$d = [];
8378
8441
 
8379
8442
  const __vue_inject_styles__$e = function (inject) {
8380
8443
  if (!inject) return;
8381
- inject("data-v-61a29de6_0", {
8444
+ inject("data-v-93265614_0", {
8382
8445
  source: ".ui-form-drawer{display:flex;flex-direction:column;padding:0;outline:0}.ui-form-drawer .ui-drawer-body{flex:1;padding:0;overflow:hidden;display:flex;flex-direction:column}.ui-form-drawer .ui-drawer-body>.el-form{flex:1;overflow:auto}.ui-form-drawer .ui-drawer-body>.action-button{flex:none}.ui-form-drawer .ui-form-drawer-wrapper{flex:1;overflow:hidden}.ui-form-drawer .ui-form-drawer-wrapper .el-form{width:100%;height:100%;overflow:auto;padding:16px;box-sizing:border-box}.ui-form-drawer .action-button{flex:none;padding:16px;border-top:1px solid #e8eaec;display:flex;flex-direction:row-reverse}.ui-form-drawer .action-button button+button{margin-right:16px}.ui-form-drawer .action-button::after{content:'';clear:both}",
8383
8446
  map: undefined,
8384
8447
  media: undefined
@@ -11484,6 +11547,15 @@ var script$7 = {
11484
11547
  return this.$refs.form.getValues();
11485
11548
  },
11486
11549
 
11550
+ setValues(values) {
11551
+ return this.$refs.form.setValues(values);
11552
+ },
11553
+
11554
+ resetValues(values) {
11555
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
11556
+ return this.$refs.form.resetValues(values, all);
11557
+ },
11558
+
11487
11559
  getSearchParams() {
11488
11560
  const searchItems = this.getSearchItem();
11489
11561
  return searchItems.reduce((prev, item) => {
@@ -11600,7 +11672,7 @@ var __vue_staticRenderFns__$7 = [];
11600
11672
 
11601
11673
  const __vue_inject_styles__$7 = function (inject) {
11602
11674
  if (!inject) return;
11603
- inject("data-v-1bff1b12_0", {
11675
+ inject("data-v-357d8daf_0", {
11604
11676
  source: ".ui-table-select{display:flex;align-items:center;flex-wrap:wrap}.ui-table-select .el-row{width:100%}.ui-table-select .fill{flex:1}.ui-table-select .el-form-item{margin-bottom:10px}.ui-table-select .el-form-item:last-child{margin-right:0}.ui-table-select .el-form-item,.ui-table-select .el-form-item.el-form-item--mini{margin-bottom:10px}",
11605
11677
  map: undefined,
11606
11678
  media: undefined