@a2simcode/dui 0.0.60 → 0.0.62
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/components-dui/formDesign/src/utils.d.ts +6 -0
- package/dist/components-dui/index.d.ts +2 -2
- package/dist/dui.es.js +6 -5
- package/dist/dui.umd.js +7 -7
- package/package.json +10 -10
- package/LICENSE +0 -53
|
@@ -20,3 +20,9 @@ export declare const toFormSaveSchema: (formConfig: Record<string, any>, compone
|
|
|
20
20
|
components: FormDeisgnSaveComponent[];
|
|
21
21
|
db: Record<string, any>;
|
|
22
22
|
};
|
|
23
|
+
/**
|
|
24
|
+
* 转化方法,转化成具体运行的表单json数据
|
|
25
|
+
* @param list
|
|
26
|
+
* @returns
|
|
27
|
+
*/
|
|
28
|
+
export declare const formToRuntimeFrom: (list: FormDeisgnSaveComponent[]) => FormSchemaConfig[];
|
|
@@ -7,9 +7,9 @@ import { default as DDraggable } from './draggable';
|
|
|
7
7
|
import { default as DFormDesign } from './formDesign';
|
|
8
8
|
import { default as DIndexDesign } from './indexDesign';
|
|
9
9
|
import { default as DBiDesign } from './biDesign';
|
|
10
|
-
import { toFormSchema, toFormDesignSchema, toFormSaveSchema } from './formDesign/src/utils';
|
|
10
|
+
import { toFormSchema, toFormDesignSchema, toFormSaveSchema, formToRuntimeFrom } from './formDesign/src/utils';
|
|
11
11
|
export { DDrag, dragTool, dragContainer, dragFormList, dragIndexList, DFlowDesign, DInputFlow, DLayout, DDraggable, DFormDesign, DIndexDesign, DBiDesign, };
|
|
12
|
-
export { toFormSchema, toFormDesignSchema, toFormSaveSchema };
|
|
12
|
+
export { toFormSchema, toFormDesignSchema, toFormSaveSchema, formToRuntimeFrom };
|
|
13
13
|
declare const _default: {
|
|
14
14
|
install: (app: App, ...options: any[]) => any;
|
|
15
15
|
};
|
package/dist/dui.es.js
CHANGED
|
@@ -11359,7 +11359,7 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
11359
11359
|
}
|
|
11360
11360
|
},
|
|
11361
11361
|
setup(e) {
|
|
11362
|
-
const A = e, { t } = tr(), n = yA(() => A.componentData.config?.
|
|
11362
|
+
const A = e, { t } = tr(), n = yA(() => A.componentData.config?.notLabel ? "" : A.componentData.config?.label || ""), r = yA(() => n.value === "" ? 0 : A.componentData.config?.labelWidth === void 0 && A.globalConfig.labelWidth !== void 0 ? `${A.globalConfig.labelWidth}px` : A.componentData.config?.labelWidth ? `${A.componentData.config?.labelWidth}px` : void 0), s = yA(() => {
|
|
11363
11363
|
const u = { ...A.componentData?.config };
|
|
11364
11364
|
return u.size === void 0 && (u.size = A.globalConfig.size), u.display = !0, u;
|
|
11365
11365
|
});
|
|
@@ -11493,10 +11493,10 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
11493
11493
|
id: "label",
|
|
11494
11494
|
type: "j-input",
|
|
11495
11495
|
config: { label: j || "标题" },
|
|
11496
|
-
getCompConfig: ({ formData: _ }) => ({ display: NA !== !1 && !_.
|
|
11496
|
+
getCompConfig: ({ formData: _ }) => ({ display: NA !== !1 && !_.notLabel })
|
|
11497
11497
|
},
|
|
11498
11498
|
{
|
|
11499
|
-
id: "
|
|
11499
|
+
id: "notLabel",
|
|
11500
11500
|
type: "j-switch",
|
|
11501
11501
|
config: {
|
|
11502
11502
|
label: "不显示" + (j || "标题"),
|
|
@@ -11509,7 +11509,7 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
11509
11509
|
id: "labelWidth",
|
|
11510
11510
|
type: "j-number",
|
|
11511
11511
|
config: { label: "标题宽度" },
|
|
11512
|
-
getCompConfig: ({ formData: _ }) => ({ display: J && !_.
|
|
11512
|
+
getCompConfig: ({ formData: _ }) => ({ display: J && !_.notLabel && !_.isSubTable })
|
|
11513
11513
|
},
|
|
11514
11514
|
{
|
|
11515
11515
|
id: "labelPosition",
|
|
@@ -11531,7 +11531,7 @@ var Q0 = { class: "d-layout" }, U0 = [
|
|
|
11531
11531
|
}
|
|
11532
11532
|
]
|
|
11533
11533
|
},
|
|
11534
|
-
getCompConfig: ({ formData: _ }) => ({ display: J && !_.
|
|
11534
|
+
getCompConfig: ({ formData: _ }) => ({ display: J && !_.notLabel && !_.isSubTable })
|
|
11535
11535
|
},
|
|
11536
11536
|
{
|
|
11537
11537
|
id: "placeholder",
|
|
@@ -17994,6 +17994,7 @@ export {
|
|
|
17994
17994
|
Ru as dragFormList,
|
|
17995
17995
|
ku as dragIndexList,
|
|
17996
17996
|
Ou as dragTool,
|
|
17997
|
+
M0 as formToRuntimeFrom,
|
|
17997
17998
|
N0 as toFormDesignSchema,
|
|
17998
17999
|
gs as toFormSaveSchema,
|
|
17999
18000
|
T0 as toFormSchema
|