@v2coding/ui 0.1.14 → 0.1.15

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.
@@ -4624,7 +4624,7 @@ var script$p = {
4624
4624
  },
4625
4625
  createAttachmentUrl: {
4626
4626
  type: String,
4627
- default: '/System/SystemSysAttachment/create'
4627
+ default: '/System/Sys/SystemSysAttachment/create'
4628
4628
  },
4629
4629
  createAttachmentParams: null,
4630
4630
  createAttachment: {
@@ -4804,8 +4804,8 @@ var __vue_staticRenderFns__$o = [];
4804
4804
 
4805
4805
  const __vue_inject_styles__$p = function (inject) {
4806
4806
  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}",
4807
+ inject("data-v-112cf62d_0", {
4808
+ source: ".ui-file-upload-field[data-v-112cf62d]{width:100%}.ui-file-upload-field .uploader[data-v-112cf62d]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-112cf62d] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-112cf62d] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-112cf62d]{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-112cf62d]:hover{background-color:#0d84ff}.ui-file-upload-field .files .file[data-v-112cf62d]{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-112cf62d]{flex:1;color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-112cf62d]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-112cf62d]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-112cf62d]{color:#409eff}.ui-file-upload-field .files .file:hover .close[data-v-112cf62d]{color:#409eff;visibility:visible}",
4809
4809
  map: undefined,
4810
4810
  media: undefined
4811
4811
  });
@@ -4813,7 +4813,7 @@ const __vue_inject_styles__$p = function (inject) {
4813
4813
  /* scoped */
4814
4814
 
4815
4815
 
4816
- const __vue_scope_id__$p = "data-v-46b6568f";
4816
+ const __vue_scope_id__$p = "data-v-112cf62d";
4817
4817
  /* module identifier */
4818
4818
 
4819
4819
  const __vue_module_identifier__$p = undefined;
@@ -6986,6 +6986,8 @@ var script$h = {
6986
6986
  * @public
6987
6987
  */
6988
6988
  resetValues(values) {
6989
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
6990
+
6989
6991
  if (!Objects.isObject(values)) {
6990
6992
  values = {};
6991
6993
  }
@@ -6994,7 +6996,7 @@ var script$h = {
6994
6996
  formItems.forEach(item => {
6995
6997
  if (Object.prototype.hasOwnProperty.call(values, item.name)) {
6996
6998
  item.resetField(values[item.name]);
6997
- } else {
6999
+ } else if (all) {
6998
7000
  item.resetField();
6999
7001
  }
7000
7002
  });
@@ -7274,8 +7276,8 @@ var __vue_staticRenderFns__$g = [];
7274
7276
 
7275
7277
  const __vue_inject_styles__$h = function (inject) {
7276
7278
  if (!inject) return;
7277
- inject("data-v-2a9aa6b4_0", {
7278
- source: ".el-form--inline[data-v-2a9aa6b4] .el-form-item{display:inline-flex}",
7279
+ inject("data-v-33599c0b_0", {
7280
+ source: ".el-form--inline[data-v-33599c0b] .el-form-item{display:inline-flex}",
7279
7281
  map: undefined,
7280
7282
  media: undefined
7281
7283
  });
@@ -7283,7 +7285,7 @@ const __vue_inject_styles__$h = function (inject) {
7283
7285
  /* scoped */
7284
7286
 
7285
7287
 
7286
- const __vue_scope_id__$h = "data-v-2a9aa6b4";
7288
+ const __vue_scope_id__$h = "data-v-33599c0b";
7287
7289
  /* module identifier */
7288
7290
 
7289
7291
  const __vue_module_identifier__$h = undefined;
@@ -7417,11 +7419,13 @@ var script$g = {
7417
7419
  },
7418
7420
 
7419
7421
  resetValues(values) {
7422
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
7423
+
7420
7424
  if (!this.$refs.form) {
7421
7425
  return;
7422
7426
  }
7423
7427
 
7424
- this.$refs.form.resetValues(values);
7428
+ this.$refs.form.resetValues(values, all);
7425
7429
  },
7426
7430
 
7427
7431
  clearValidate() {
@@ -7573,8 +7577,8 @@ var __vue_staticRenderFns__$f = [];
7573
7577
 
7574
7578
  const __vue_inject_styles__$g = function (inject) {
7575
7579
  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}",
7580
+ inject("data-v-3f84d6b9_0", {
7581
+ source: ".action-button[data-v-3f84d6b9]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
7578
7582
  map: undefined,
7579
7583
  media: undefined
7580
7584
  });
@@ -7582,7 +7586,7 @@ const __vue_inject_styles__$g = function (inject) {
7582
7586
  /* scoped */
7583
7587
 
7584
7588
 
7585
- const __vue_scope_id__$g = "data-v-02f7d8d6";
7589
+ const __vue_scope_id__$g = "data-v-3f84d6b9";
7586
7590
  /* module identifier */
7587
7591
 
7588
7592
  const __vue_module_identifier__$g = undefined;
@@ -8233,11 +8237,13 @@ var script$e = {
8233
8237
  },
8234
8238
 
8235
8239
  resetValues(values) {
8240
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
8241
+
8236
8242
  if (!this.$refs.form) {
8237
8243
  return;
8238
8244
  }
8239
8245
 
8240
- this.$refs.form.resetValues(values);
8246
+ this.$refs.form.resetValues(values, all);
8241
8247
  },
8242
8248
 
8243
8249
  getValues() {
@@ -8378,7 +8384,7 @@ var __vue_staticRenderFns__$d = [];
8378
8384
 
8379
8385
  const __vue_inject_styles__$e = function (inject) {
8380
8386
  if (!inject) return;
8381
- inject("data-v-61a29de6_0", {
8387
+ inject("data-v-93265614_0", {
8382
8388
  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
8389
  map: undefined,
8384
8390
  media: undefined
@@ -11484,6 +11490,15 @@ var script$7 = {
11484
11490
  return this.$refs.form.getValues();
11485
11491
  },
11486
11492
 
11493
+ setValues(values) {
11494
+ return this.$refs.form.setValues(values);
11495
+ },
11496
+
11497
+ resetValues(values) {
11498
+ let all = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
11499
+ return this.$refs.form.resetValues(values, all);
11500
+ },
11501
+
11487
11502
  getSearchParams() {
11488
11503
  const searchItems = this.getSearchItem();
11489
11504
  return searchItems.reduce((prev, item) => {
@@ -11600,7 +11615,7 @@ var __vue_staticRenderFns__$7 = [];
11600
11615
 
11601
11616
  const __vue_inject_styles__$7 = function (inject) {
11602
11617
  if (!inject) return;
11603
- inject("data-v-1bff1b12_0", {
11618
+ inject("data-v-357d8daf_0", {
11604
11619
  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
11620
  map: undefined,
11606
11621
  media: undefined