@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.esm.js
CHANGED
|
@@ -7715,28 +7715,44 @@ var script$f = {
|
|
|
7715
7715
|
this.$refs.form.resetValues(values, all);
|
|
7716
7716
|
},
|
|
7717
7717
|
|
|
7718
|
-
|
|
7718
|
+
getValues() {
|
|
7719
7719
|
if (!this.$refs.form) {
|
|
7720
7720
|
return;
|
|
7721
7721
|
}
|
|
7722
7722
|
|
|
7723
|
-
this.$refs.form.
|
|
7723
|
+
return this.$refs.form.getValues();
|
|
7724
7724
|
},
|
|
7725
7725
|
|
|
7726
|
-
|
|
7726
|
+
setValues(values) {
|
|
7727
7727
|
if (!this.$refs.form) {
|
|
7728
7728
|
return;
|
|
7729
7729
|
}
|
|
7730
7730
|
|
|
7731
|
-
|
|
7731
|
+
this.$refs.form.setValues(values);
|
|
7732
7732
|
},
|
|
7733
7733
|
|
|
7734
|
-
|
|
7734
|
+
validate() {
|
|
7735
7735
|
if (!this.$refs.form) {
|
|
7736
7736
|
return;
|
|
7737
7737
|
}
|
|
7738
7738
|
|
|
7739
|
-
this.$refs.form.
|
|
7739
|
+
return this.$refs.form.validate(...arguments);
|
|
7740
|
+
},
|
|
7741
|
+
|
|
7742
|
+
validateField() {
|
|
7743
|
+
if (!this.$refs.form) {
|
|
7744
|
+
return;
|
|
7745
|
+
}
|
|
7746
|
+
|
|
7747
|
+
return this.$refs.form.validateField(...arguments);
|
|
7748
|
+
},
|
|
7749
|
+
|
|
7750
|
+
clearValidate() {
|
|
7751
|
+
if (!this.$refs.form) {
|
|
7752
|
+
return;
|
|
7753
|
+
}
|
|
7754
|
+
|
|
7755
|
+
this.$refs.form.clearValidate();
|
|
7740
7756
|
},
|
|
7741
7757
|
|
|
7742
7758
|
onSubmit(formData) {
|
|
@@ -7864,8 +7880,8 @@ var __vue_staticRenderFns__$e = [];
|
|
|
7864
7880
|
|
|
7865
7881
|
const __vue_inject_styles__$f = function (inject) {
|
|
7866
7882
|
if (!inject) return;
|
|
7867
|
-
inject("data-v-
|
|
7868
|
-
source: ".action-button[data-v-
|
|
7883
|
+
inject("data-v-fd63290a_0", {
|
|
7884
|
+
source: ".action-button[data-v-fd63290a]{text-align:right;margin:0 -20px -20px;padding:10px 20px;border-top:1px solid #e8e8e8}",
|
|
7869
7885
|
map: undefined,
|
|
7870
7886
|
media: undefined
|
|
7871
7887
|
});
|
|
@@ -7873,7 +7889,7 @@ const __vue_inject_styles__$f = function (inject) {
|
|
|
7873
7889
|
/* scoped */
|
|
7874
7890
|
|
|
7875
7891
|
|
|
7876
|
-
const __vue_scope_id__$f = "data-v-
|
|
7892
|
+
const __vue_scope_id__$f = "data-v-fd63290a";
|
|
7877
7893
|
/* module identifier */
|
|
7878
7894
|
|
|
7879
7895
|
const __vue_module_identifier__$f = undefined;
|
|
@@ -8158,6 +8174,22 @@ var script$d = {
|
|
|
8158
8174
|
this.$refs.form.setValues(values);
|
|
8159
8175
|
},
|
|
8160
8176
|
|
|
8177
|
+
validate() {
|
|
8178
|
+
if (!this.$refs.form) {
|
|
8179
|
+
return;
|
|
8180
|
+
}
|
|
8181
|
+
|
|
8182
|
+
return this.$refs.form.validate(...arguments);
|
|
8183
|
+
},
|
|
8184
|
+
|
|
8185
|
+
validateField() {
|
|
8186
|
+
if (!this.$refs.form) {
|
|
8187
|
+
return;
|
|
8188
|
+
}
|
|
8189
|
+
|
|
8190
|
+
return this.$refs.form.validateField(...arguments);
|
|
8191
|
+
},
|
|
8192
|
+
|
|
8161
8193
|
clearValidate() {
|
|
8162
8194
|
if (!this.$refs.form) {
|
|
8163
8195
|
return;
|
|
@@ -8176,10 +8208,14 @@ var script$d = {
|
|
|
8176
8208
|
});
|
|
8177
8209
|
const allow = this.beforeSubmit(formData);
|
|
8178
8210
|
|
|
8179
|
-
if (allow === false) {
|
|
8211
|
+
if (typeof allow === 'boolean' && allow === false) {
|
|
8180
8212
|
return;
|
|
8181
8213
|
}
|
|
8182
8214
|
|
|
8215
|
+
if (typeof allow === 'object') {
|
|
8216
|
+
formData = allow;
|
|
8217
|
+
}
|
|
8218
|
+
|
|
8183
8219
|
if (!this.url) {
|
|
8184
8220
|
return;
|
|
8185
8221
|
}
|
|
@@ -8280,7 +8316,7 @@ var __vue_staticRenderFns__$c = [];
|
|
|
8280
8316
|
|
|
8281
8317
|
const __vue_inject_styles__$d = function (inject) {
|
|
8282
8318
|
if (!inject) return;
|
|
8283
|
-
inject("data-v-
|
|
8319
|
+
inject("data-v-35f09272_0", {
|
|
8284
8320
|
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}",
|
|
8285
8321
|
map: undefined,
|
|
8286
8322
|
media: undefined
|