element-less 0.0.36 → 0.0.38
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/element-less.cjs +1 -1
- package/element-less.iife.js +1 -1
- package/element-less.js +1 -1
- package/element-less.umd.cjs +1 -1
- package/elementui/form/index.d.ts +3 -0
- package/elementui/form/src/form.vue.d.ts +2 -0
- package/{index-CVdPovF2.js → index-BUnMAUGI.js} +22 -12
- package/index-B_2DpDzg.cjs +1 -0
- package/{inner-f0HRo0dv.cjs → inner-B2WCNbgc.cjs} +1 -1
- package/{inner-BDnobVSc.js → inner-CDAbZqtI.js} +1 -1
- package/{innerItem-DNfx6E_k.js → innerItem-BhDRJl1T.js} +1 -1
- package/{innerItem-Di-Aax84.cjs → innerItem-zzdH06Mo.cjs} +1 -1
- package/{mode-csharp-BhwiD8Pe.cjs → mode-csharp-CUIiuYMJ.cjs} +1 -1
- package/{mode-csharp-vMzHNnHT.js → mode-csharp-KubfvzAu.js} +1 -1
- package/{mode-css-DTpwoQYm.cjs → mode-css-BTo0G1B0.cjs} +1 -1
- package/{mode-css-DKPqDVd1.js → mode-css-DMiL-zyI.js} +1 -1
- package/{mode-javascript-CZUeei18.js → mode-javascript-Bmr95Wl-.js} +1 -1
- package/{mode-javascript-CmHxnV6j.cjs → mode-javascript-D_n8lDqx.cjs} +1 -1
- package/{mode-json-B0STKklb.js → mode-json-Bfk4cMla.js} +1 -1
- package/{mode-json-DuySIHpG.cjs → mode-json-DBWbGBPa.cjs} +1 -1
- package/{mode-mysql-BQ2ngrgo.cjs → mode-mysql-BZujH6mQ.cjs} +1 -1
- package/{mode-mysql-B3BgfxrU.js → mode-mysql-gDIwIu5c.js} +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/index-CrgpCILe.cjs +0 -1
|
@@ -43,6 +43,7 @@ export declare const ElsForm: import('element-plus/es/utils/index').SFCWithInsta
|
|
|
43
43
|
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
44
44
|
"onUpdate:isValidate"?: ((...args: any[]) => any) | undefined;
|
|
45
45
|
}, {
|
|
46
|
+
save: (url?: string) => Promise<unknown>;
|
|
46
47
|
clearValidate: () => void;
|
|
47
48
|
validateField: (fields: any) => any;
|
|
48
49
|
validate: () => Promise<unknown>;
|
|
@@ -157,6 +158,7 @@ export declare const ElsForm: import('element-plus/es/utils/index').SFCWithInsta
|
|
|
157
158
|
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
158
159
|
"onUpdate:isValidate"?: ((...args: any[]) => any) | undefined;
|
|
159
160
|
}, {
|
|
161
|
+
save: (url?: string) => Promise<unknown>;
|
|
160
162
|
clearValidate: () => void;
|
|
161
163
|
validateField: (fields: any) => any;
|
|
162
164
|
validate: () => Promise<unknown>;
|
|
@@ -222,6 +224,7 @@ export declare const ElsForm: import('element-plus/es/utils/index').SFCWithInsta
|
|
|
222
224
|
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
223
225
|
"onUpdate:isValidate"?: ((...args: any[]) => any) | undefined;
|
|
224
226
|
}, {
|
|
227
|
+
save: (url?: string) => Promise<unknown>;
|
|
225
228
|
clearValidate: () => void;
|
|
226
229
|
validateField: (fields: any) => any;
|
|
227
230
|
validate: () => Promise<unknown>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare function saveData(url?: string): Promise<unknown>;
|
|
1
2
|
declare function clearValidate(): void;
|
|
2
3
|
declare function validate(): Promise<unknown>;
|
|
3
4
|
declare function validateField(fields: any): any;
|
|
@@ -47,6 +48,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
47
48
|
type: import('vue').PropType<any>;
|
|
48
49
|
};
|
|
49
50
|
}, {
|
|
51
|
+
save: typeof saveData;
|
|
50
52
|
clearValidate: typeof clearValidate;
|
|
51
53
|
validateField: typeof validateField;
|
|
52
54
|
validate: typeof validate;
|
|
@@ -7620,7 +7620,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
7620
7620
|
utils.removeArrayItem(elsPageStore.value.validates, validateStore);
|
|
7621
7621
|
}
|
|
7622
7622
|
});
|
|
7623
|
-
function saveData(url) {
|
|
7623
|
+
function saveData(url = "") {
|
|
7624
7624
|
return new Promise((resolve, reject) => {
|
|
7625
7625
|
let currSaveUrl = props.saveUrl ?? "";
|
|
7626
7626
|
if (!currSaveUrl) {
|
|
@@ -7740,6 +7740,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
7740
7740
|
"formData": modelValue
|
|
7741
7741
|
});
|
|
7742
7742
|
__expose({
|
|
7743
|
+
save: saveData,
|
|
7743
7744
|
clearValidate,
|
|
7744
7745
|
validateField,
|
|
7745
7746
|
validate,
|
|
@@ -7773,7 +7774,7 @@ const _sfc_main$1W = /* @__PURE__ */ defineComponent({
|
|
|
7773
7774
|
};
|
|
7774
7775
|
}
|
|
7775
7776
|
});
|
|
7776
|
-
const Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$1W, [["__scopeId", "data-v-
|
|
7777
|
+
const Form = /* @__PURE__ */ _export_sfc$1(_sfc_main$1W, [["__scopeId", "data-v-fe97d4ab"]]);
|
|
7777
7778
|
const formProps = formProps$1;
|
|
7778
7779
|
const ElsForm = withInstall(Form);
|
|
7779
7780
|
const formQueryProps = buildProps({
|
|
@@ -37623,6 +37624,15 @@ const _sfc_main$19 = /* @__PURE__ */ defineComponent({
|
|
|
37623
37624
|
}
|
|
37624
37625
|
function elsMenuCommand(menu) {
|
|
37625
37626
|
return new Promise((resolve2, reject) => {
|
|
37627
|
+
const action = menu[$actionTypeField];
|
|
37628
|
+
if (typeof action === "function") {
|
|
37629
|
+
action(menu).then((res) => {
|
|
37630
|
+
resolve2({ menu, res });
|
|
37631
|
+
}).catch((err) => {
|
|
37632
|
+
reject(err);
|
|
37633
|
+
});
|
|
37634
|
+
return;
|
|
37635
|
+
}
|
|
37626
37636
|
switch (menu[$actionTypeField]) {
|
|
37627
37637
|
case "Save":
|
|
37628
37638
|
menu.IsLoading = true;
|
|
@@ -38427,7 +38437,7 @@ const _sfc_main$17 = /* @__PURE__ */ defineComponent({
|
|
|
38427
38437
|
emits: /* @__PURE__ */ mergeModels(["removeItem"], ["update:children"]),
|
|
38428
38438
|
setup(__props, { emit: __emit }) {
|
|
38429
38439
|
const DynamicDesignerInnerItem = defineAsyncComponent(() => {
|
|
38430
|
-
return import("./innerItem-
|
|
38440
|
+
return import("./innerItem-BhDRJl1T.js");
|
|
38431
38441
|
});
|
|
38432
38442
|
const { getValue: getValue2 } = useProps();
|
|
38433
38443
|
const tagID = getValue2("tagID");
|
|
@@ -39277,10 +39287,10 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
39277
39287
|
emits: ["update:modelValue"],
|
|
39278
39288
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39279
39289
|
const DynamicRenderInner = defineAsyncComponent(() => {
|
|
39280
|
-
return import("./inner-
|
|
39290
|
+
return import("./inner-CDAbZqtI.js").then((n) => n.i);
|
|
39281
39291
|
});
|
|
39282
39292
|
const DynamicRenderForm = defineAsyncComponent(() => {
|
|
39283
|
-
return import("./inner-
|
|
39293
|
+
return import("./inner-CDAbZqtI.js").then((n) => n.f);
|
|
39284
39294
|
});
|
|
39285
39295
|
const props = __props;
|
|
39286
39296
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
|
|
@@ -39510,10 +39520,10 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
39510
39520
|
emits: ["update:modelValue"],
|
|
39511
39521
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39512
39522
|
const DynamicRenderInnerAsync = defineAsyncComponent(() => {
|
|
39513
|
-
return import("./inner-
|
|
39523
|
+
return import("./inner-CDAbZqtI.js").then((n) => n.i);
|
|
39514
39524
|
});
|
|
39515
39525
|
const DynamicRenderFormAsync = defineAsyncComponent(() => {
|
|
39516
|
-
return import("./inner-
|
|
39526
|
+
return import("./inner-CDAbZqtI.js").then((n) => n.f);
|
|
39517
39527
|
});
|
|
39518
39528
|
const props = __props;
|
|
39519
39529
|
const { getValue: getValue2, setValue, formNodeProps } = useProps(props);
|
|
@@ -44322,31 +44332,31 @@ let AceEditor$1 = class AceEditor extends TBaseFormItem {
|
|
|
44322
44332
|
__publicField(this, "editor", ref());
|
|
44323
44333
|
onMounted(() => {
|
|
44324
44334
|
if (props.language === "json") {
|
|
44325
|
-
const currModule = import("./mode-json-
|
|
44335
|
+
const currModule = import("./mode-json-Bfk4cMla.js").then((n) => n.m);
|
|
44326
44336
|
currModule.then((res) => {
|
|
44327
44337
|
ace.config.setModuleUrl("ace/mode/json", res);
|
|
44328
44338
|
this.init();
|
|
44329
44339
|
});
|
|
44330
44340
|
} else if (props.language === "javascript") {
|
|
44331
|
-
const currModule = import("./mode-javascript-
|
|
44341
|
+
const currModule = import("./mode-javascript-Bmr95Wl-.js").then((n) => n.m);
|
|
44332
44342
|
currModule.then((res) => {
|
|
44333
44343
|
ace.config.setModuleUrl("ace/mode/javascript", res);
|
|
44334
44344
|
this.init();
|
|
44335
44345
|
});
|
|
44336
44346
|
} else if (props.language === "csharp") {
|
|
44337
|
-
const currModule = import("./mode-csharp-
|
|
44347
|
+
const currModule = import("./mode-csharp-KubfvzAu.js").then((n) => n.m);
|
|
44338
44348
|
currModule.then((res) => {
|
|
44339
44349
|
ace.config.setModuleUrl("ace/mode/csharp", res);
|
|
44340
44350
|
this.init();
|
|
44341
44351
|
});
|
|
44342
44352
|
} else if (props.language === "mysql") {
|
|
44343
|
-
const currModule = import("./mode-mysql-
|
|
44353
|
+
const currModule = import("./mode-mysql-gDIwIu5c.js").then((n) => n.m);
|
|
44344
44354
|
currModule.then((res) => {
|
|
44345
44355
|
ace.config.setModuleUrl("ace/mode/mysql", res);
|
|
44346
44356
|
this.init();
|
|
44347
44357
|
});
|
|
44348
44358
|
} else if (props.language === "css") {
|
|
44349
|
-
const currModule = import("./mode-css-
|
|
44359
|
+
const currModule = import("./mode-css-DMiL-zyI.js").then((n) => n.m);
|
|
44350
44360
|
currModule.then((res) => {
|
|
44351
44361
|
ace.config.setModuleUrl("ace/mode/css", res);
|
|
44352
44362
|
this.init();
|