@v2coding/ui 0.1.51 → 0.1.53
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.
- package/dist/v2coding-ui.esm.js +47 -11
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +55 -15
- package/package.json +1 -1
package/dist/v2coding-ui.ssr.js
CHANGED
|
@@ -8139,26 +8139,44 @@ var script$f = {
|
|
|
8139
8139
|
|
|
8140
8140
|
this.$refs.form.resetValues(values, all);
|
|
8141
8141
|
},
|
|
8142
|
-
|
|
8142
|
+
getValues: function getValues() {
|
|
8143
8143
|
if (!this.$refs.form) {
|
|
8144
8144
|
return;
|
|
8145
8145
|
}
|
|
8146
8146
|
|
|
8147
|
-
this.$refs.form.
|
|
8147
|
+
return this.$refs.form.getValues();
|
|
8148
8148
|
},
|
|
8149
|
-
|
|
8149
|
+
setValues: function setValues(values) {
|
|
8150
8150
|
if (!this.$refs.form) {
|
|
8151
8151
|
return;
|
|
8152
8152
|
}
|
|
8153
8153
|
|
|
8154
|
-
|
|
8154
|
+
this.$refs.form.setValues(values);
|
|
8155
8155
|
},
|
|
8156
|
-
|
|
8156
|
+
validate: function validate() {
|
|
8157
|
+
var _this$$refs$form;
|
|
8158
|
+
|
|
8157
8159
|
if (!this.$refs.form) {
|
|
8158
8160
|
return;
|
|
8159
8161
|
}
|
|
8160
8162
|
|
|
8161
|
-
this.$refs.form.
|
|
8163
|
+
return (_this$$refs$form = this.$refs.form).validate.apply(_this$$refs$form, arguments);
|
|
8164
|
+
},
|
|
8165
|
+
validateField: function validateField() {
|
|
8166
|
+
var _this$$refs$form2;
|
|
8167
|
+
|
|
8168
|
+
if (!this.$refs.form) {
|
|
8169
|
+
return;
|
|
8170
|
+
}
|
|
8171
|
+
|
|
8172
|
+
return (_this$$refs$form2 = this.$refs.form).validateField.apply(_this$$refs$form2, arguments);
|
|
8173
|
+
},
|
|
8174
|
+
clearValidate: function clearValidate() {
|
|
8175
|
+
if (!this.$refs.form) {
|
|
8176
|
+
return;
|
|
8177
|
+
}
|
|
8178
|
+
|
|
8179
|
+
this.$refs.form.clearValidate();
|
|
8162
8180
|
},
|
|
8163
8181
|
onSubmit: function onSubmit(formData) {
|
|
8164
8182
|
var _this2 = this;
|
|
@@ -8278,8 +8296,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
8278
8296
|
|
|
8279
8297
|
var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
8280
8298
|
if (!inject) return;
|
|
8281
|
-
inject("data-v-
|
|
8282
|
-
source: ".action-button[data-v-
|
|
8299
|
+
inject("data-v-fd63290a_0", {
|
|
8300
|
+
source: ".action-button[data-v-fd63290a]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
|
|
8283
8301
|
map: undefined,
|
|
8284
8302
|
media: undefined
|
|
8285
8303
|
});
|
|
@@ -8287,10 +8305,10 @@ var __vue_inject_styles__$f = function __vue_inject_styles__(inject) {
|
|
|
8287
8305
|
/* scoped */
|
|
8288
8306
|
|
|
8289
8307
|
|
|
8290
|
-
var __vue_scope_id__$f = "data-v-
|
|
8308
|
+
var __vue_scope_id__$f = "data-v-fd63290a";
|
|
8291
8309
|
/* module identifier */
|
|
8292
8310
|
|
|
8293
|
-
var __vue_module_identifier__$f = "data-v-
|
|
8311
|
+
var __vue_module_identifier__$f = "data-v-fd63290a";
|
|
8294
8312
|
/* functional template */
|
|
8295
8313
|
|
|
8296
8314
|
var __vue_is_functional_template__$f = false;
|
|
@@ -8575,14 +8593,32 @@ var script$d = {
|
|
|
8575
8593
|
|
|
8576
8594
|
this.$refs.form.setValues(values);
|
|
8577
8595
|
},
|
|
8578
|
-
|
|
8596
|
+
validate: function validate() {
|
|
8579
8597
|
var _this$$refs$form;
|
|
8580
8598
|
|
|
8581
8599
|
if (!this.$refs.form) {
|
|
8582
8600
|
return;
|
|
8583
8601
|
}
|
|
8584
8602
|
|
|
8585
|
-
(_this$$refs$form = this.$refs.form).
|
|
8603
|
+
return (_this$$refs$form = this.$refs.form).validate.apply(_this$$refs$form, arguments);
|
|
8604
|
+
},
|
|
8605
|
+
validateField: function validateField() {
|
|
8606
|
+
var _this$$refs$form2;
|
|
8607
|
+
|
|
8608
|
+
if (!this.$refs.form) {
|
|
8609
|
+
return;
|
|
8610
|
+
}
|
|
8611
|
+
|
|
8612
|
+
return (_this$$refs$form2 = this.$refs.form).validateField.apply(_this$$refs$form2, arguments);
|
|
8613
|
+
},
|
|
8614
|
+
clearValidate: function clearValidate() {
|
|
8615
|
+
var _this$$refs$form3;
|
|
8616
|
+
|
|
8617
|
+
if (!this.$refs.form) {
|
|
8618
|
+
return;
|
|
8619
|
+
}
|
|
8620
|
+
|
|
8621
|
+
(_this$$refs$form3 = this.$refs.form).clearValidate.apply(_this$$refs$form3, arguments);
|
|
8586
8622
|
},
|
|
8587
8623
|
onSubmit: function onSubmit(formData) {
|
|
8588
8624
|
var _this2 = this;
|
|
@@ -8593,10 +8629,14 @@ var script$d = {
|
|
|
8593
8629
|
this.$emit('submit', _objectSpread2({}, formData));
|
|
8594
8630
|
var allow = this.beforeSubmit(formData);
|
|
8595
8631
|
|
|
8596
|
-
if (allow === false) {
|
|
8632
|
+
if (typeof allow === 'boolean' && allow === false) {
|
|
8597
8633
|
return;
|
|
8598
8634
|
}
|
|
8599
8635
|
|
|
8636
|
+
if (_typeof(allow) === 'object') {
|
|
8637
|
+
formData = allow;
|
|
8638
|
+
}
|
|
8639
|
+
|
|
8600
8640
|
if (!this.url) {
|
|
8601
8641
|
return;
|
|
8602
8642
|
}
|
|
@@ -8694,7 +8734,7 @@ var __vue_staticRenderFns__$c = [];
|
|
|
8694
8734
|
|
|
8695
8735
|
var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
8696
8736
|
if (!inject) return;
|
|
8697
|
-
inject("data-v-
|
|
8737
|
+
inject("data-v-35f09272_0", {
|
|
8698
8738
|
source: ".ui-form-drawer{display:flex;flex-direction:column;padding:0;outline:0}.ui-form-drawer .el-drawer-body{flex:1;padding:0;overflow:hidden;display:flex;flex-direction:column}.ui-form-drawer .el-drawer-body>.el-form{flex:1;overflow:auto}.ui-form-drawer .el-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}",
|
|
8699
8739
|
map: undefined,
|
|
8700
8740
|
media: undefined
|
|
@@ -8706,7 +8746,7 @@ var __vue_inject_styles__$d = function __vue_inject_styles__(inject) {
|
|
|
8706
8746
|
var __vue_scope_id__$d = undefined;
|
|
8707
8747
|
/* module identifier */
|
|
8708
8748
|
|
|
8709
|
-
var __vue_module_identifier__$d = "data-v-
|
|
8749
|
+
var __vue_module_identifier__$d = "data-v-35f09272";
|
|
8710
8750
|
/* functional template */
|
|
8711
8751
|
|
|
8712
8752
|
var __vue_is_functional_template__$d = false;
|