@ditari/bsui 5.0.29 → 5.1.0
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/cjs/components/card/Card.cjs +49 -0
- package/dist/cjs/components/card/Card.cjs.map +1 -0
- package/dist/cjs/components/card/index.cjs +8 -0
- package/dist/cjs/components/card/index.cjs.map +1 -0
- package/dist/cjs/components/card/style.cjs +40 -0
- package/dist/cjs/components/card/style.cjs.map +1 -0
- package/dist/cjs/components/index.cjs +11 -0
- package/dist/cjs/components/index.cjs.map +1 -1
- package/dist/cjs/components/layout/AppContext.cjs +7 -0
- package/dist/cjs/components/layout/AppContext.cjs.map +1 -0
- package/dist/cjs/components/layout/Layout.vue2.cjs +11 -16
- package/dist/cjs/components/layout/Layout.vue2.cjs.map +1 -1
- package/dist/cjs/components/layout/Show.cjs +6 -1
- package/dist/cjs/components/layout/Show.cjs.map +1 -1
- package/dist/cjs/components/layout/components/layout/ThemeApp.vue2.cjs +0 -1
- package/dist/cjs/components/layout/components/layout/ThemeApp.vue2.cjs.map +1 -1
- package/dist/cjs/components/layout/components/menu/Menu.cjs +38 -39
- package/dist/cjs/components/layout/components/menu/Menu.cjs.map +1 -1
- package/dist/cjs/components/table-form/TableForm.cjs +109 -0
- package/dist/cjs/components/table-form/TableForm.cjs.map +1 -0
- package/dist/cjs/components/table-form/TableFormItem.cjs +112 -0
- package/dist/cjs/components/table-form/TableFormItem.cjs.map +1 -0
- package/dist/cjs/components/table-form/index.cjs +16 -0
- package/dist/cjs/components/table-form/index.cjs.map +1 -0
- package/dist/cjs/components/table-form/interface.cjs +58 -0
- package/dist/cjs/components/table-form/interface.cjs.map +1 -0
- package/dist/cjs/components/table-form/style.cjs +124 -0
- package/dist/cjs/components/table-form/style.cjs.map +1 -0
- package/dist/cjs/hooks/useDesign.cjs +31 -0
- package/dist/cjs/hooks/useDesign.cjs.map +1 -0
- package/dist/cjs/index.cjs +13 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs/utils/withInstall.cjs +18 -0
- package/dist/cjs/utils/withInstall.cjs.map +1 -0
- package/dist/esm/components/card/Card.mjs +47 -0
- package/dist/esm/components/card/Card.mjs.map +1 -0
- package/dist/esm/components/card/index.mjs +4 -0
- package/dist/esm/components/card/index.mjs.map +1 -0
- package/dist/esm/components/card/style.mjs +38 -0
- package/dist/esm/components/card/style.mjs.map +1 -0
- package/dist/esm/components/index.mjs +5 -0
- package/dist/esm/components/index.mjs.map +1 -1
- package/dist/esm/components/layout/AppContext.mjs +5 -0
- package/dist/esm/components/layout/AppContext.mjs.map +1 -0
- package/dist/esm/components/layout/Layout.vue2.mjs +12 -17
- package/dist/esm/components/layout/Layout.vue2.mjs.map +1 -1
- package/dist/esm/components/layout/Show.mjs +7 -2
- package/dist/esm/components/layout/Show.mjs.map +1 -1
- package/dist/esm/components/layout/components/layout/ThemeApp.vue2.mjs +0 -1
- package/dist/esm/components/layout/components/layout/ThemeApp.vue2.mjs.map +1 -1
- package/dist/esm/components/layout/components/menu/Menu.mjs +41 -42
- package/dist/esm/components/layout/components/menu/Menu.mjs.map +1 -1
- package/dist/esm/components/table-form/TableForm.mjs +106 -0
- package/dist/esm/components/table-form/TableForm.mjs.map +1 -0
- package/dist/esm/components/table-form/TableFormItem.mjs +110 -0
- package/dist/esm/components/table-form/TableFormItem.mjs.map +1 -0
- package/dist/esm/components/table-form/index.mjs +10 -0
- package/dist/esm/components/table-form/index.mjs.map +1 -0
- package/dist/esm/components/table-form/interface.mjs +54 -0
- package/dist/esm/components/table-form/interface.mjs.map +1 -0
- package/dist/esm/components/table-form/style.mjs +122 -0
- package/dist/esm/components/table-form/style.mjs.map +1 -0
- package/dist/esm/hooks/useDesign.mjs +28 -0
- package/dist/esm/hooks/useDesign.mjs.map +1 -0
- package/dist/esm/index.mjs +4 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/utils/withInstall.mjs +16 -0
- package/dist/esm/utils/withInstall.mjs.map +1 -0
- package/dist/types/components/card/Card.d.ts +6 -0
- package/dist/types/components/card/Card.d.ts.map +1 -0
- package/dist/types/components/card/index.d.ts +3 -0
- package/dist/types/components/card/index.d.ts.map +1 -0
- package/dist/types/components/card/style.d.ts +9 -0
- package/dist/types/components/card/style.d.ts.map +1 -0
- package/dist/types/components/index.d.ts +2 -0
- package/dist/types/components/index.d.ts.map +1 -1
- package/dist/types/components/layout/AppContext.d.ts +11 -0
- package/dist/types/components/layout/AppContext.d.ts.map +1 -0
- package/dist/types/components/layout/Layout.vue.d.ts +11 -2
- package/dist/types/components/layout/Layout.vue.d.ts.map +1 -1
- package/dist/types/components/layout/Show.d.ts.map +1 -1
- package/dist/types/components/layout/components/layout/ThemeApp.vue.d.ts.map +1 -1
- package/dist/types/components/layout/components/menu/Menu.d.ts.map +1 -1
- package/dist/types/components/table-form/TableForm.d.ts +57 -0
- package/dist/types/components/table-form/TableForm.d.ts.map +1 -0
- package/dist/types/components/table-form/TableFormItem.d.ts +23 -0
- package/dist/types/components/table-form/TableFormItem.d.ts.map +1 -0
- package/dist/types/components/table-form/index.d.ts +9 -0
- package/dist/types/components/table-form/index.d.ts.map +1 -0
- package/dist/types/components/table-form/interface.d.ts +57 -0
- package/dist/types/components/table-form/interface.d.ts.map +1 -0
- package/dist/types/components/table-form/style.d.ts +12 -0
- package/dist/types/components/table-form/style.d.ts.map +1 -0
- package/dist/types/hooks/useDesign.d.ts +8 -0
- package/dist/types/hooks/useDesign.d.ts.map +1 -0
- package/dist/types/utils/withInstall.d.ts +12 -0
- package/dist/types/utils/withInstall.d.ts.map +1 -0
- package/package.json +3 -3
|
@@ -11,6 +11,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
11
11
|
required: false;
|
|
12
12
|
default: boolean;
|
|
13
13
|
};
|
|
14
|
+
renderMenuIcon: {
|
|
15
|
+
type: FunctionConstructor;
|
|
16
|
+
required: false;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
14
19
|
}>, {
|
|
15
20
|
props: any;
|
|
16
21
|
emits: (event: "onMenuClick", ...args: any[]) => void;
|
|
@@ -27,14 +32,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
32
|
}>;
|
|
28
33
|
modeConfig: import("vue").Ref<import("@ditari/store/dist/types/modules/useAppStore").Mode, import("@ditari/store/dist/types/modules/useAppStore").Mode>;
|
|
29
34
|
sideTokenStyle: import("vue").Ref<Record<string, string>, Record<string, string>>;
|
|
30
|
-
route: import("vue-router").RouteLocationNormalizedLoadedGeneric;
|
|
31
35
|
onMenuClick: (item: never) => void;
|
|
32
36
|
layoutStyle: string;
|
|
33
37
|
siderStyle: import("vue").ComputedRef<string>;
|
|
34
38
|
rightStyle: import("vue").ComputedRef<string>;
|
|
35
39
|
rightContentStyle: import("vue").ComputedRef<string>;
|
|
36
40
|
useKeepAlive: () => void;
|
|
37
|
-
useWatermark: () => void;
|
|
38
41
|
useStyle: () => {
|
|
39
42
|
layoutStyle: string;
|
|
40
43
|
siderStyle: import("vue").ComputedRef<string>;
|
|
@@ -203,11 +206,17 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
203
206
|
required: false;
|
|
204
207
|
default: boolean;
|
|
205
208
|
};
|
|
209
|
+
renderMenuIcon: {
|
|
210
|
+
type: FunctionConstructor;
|
|
211
|
+
required: false;
|
|
212
|
+
default: undefined;
|
|
213
|
+
};
|
|
206
214
|
}>> & Readonly<{
|
|
207
215
|
onOnMenuClick?: ((...args: any[]) => any) | undefined;
|
|
208
216
|
}>, {
|
|
209
217
|
watermark: Record<string, any>;
|
|
210
218
|
isSettings: boolean;
|
|
219
|
+
renderMenuIcon: Function;
|
|
211
220
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
212
221
|
export default _default;
|
|
213
222
|
//# sourceMappingURL=Layout.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Layout.vue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Layout.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Layout.vue.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA4H6B,KAAK;;;;;;;;;;;;;4BAAL,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uBAtHhC,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYT,wBAwHE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Show.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Show.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Show.tsx"],"names":[],"mappings":"AA+BA,QAAA,MAAM,IAAI;;;;;;;;;;;;4EA+IR,CAAC;AAEH,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeApp.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layout/components/layout/ThemeApp.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAc,MAAM,KAAK,CAAC;;;;;;;;;;oBAkBjB;QAAE,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;KAAE;;;;;;;;;;AAX/C,
|
|
1
|
+
{"version":3,"file":"ThemeApp.vue.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layout/components/layout/ThemeApp.vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAc,MAAM,KAAK,CAAC;;;;;;;;;;oBAkBjB;QAAE,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;KAAE;;;;;;;;;;AAX/C,wBA0EE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layout/components/menu/Menu.tsx"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/layout/components/menu/Menu.tsx"],"names":[],"mappings":";;;AAkBA,wBA4PG"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { StylesConfig } from "./interface";
|
|
3
|
+
export declare const FormContextKey: unique symbol;
|
|
4
|
+
export interface TableFormContext {
|
|
5
|
+
isFormParent: true;
|
|
6
|
+
span: ComputedRef<number>;
|
|
7
|
+
isReadonly: ComputedRef<boolean>;
|
|
8
|
+
fieldErrors: ComputedRef<Record<string, string | undefined>>;
|
|
9
|
+
stylesConfig: ComputedRef<StylesConfig>;
|
|
10
|
+
model: ComputedRef<Record<string, unknown>>;
|
|
11
|
+
}
|
|
12
|
+
export declare const TableForm: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
13
|
+
colCount: {
|
|
14
|
+
type: NumberConstructor;
|
|
15
|
+
default: number;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
readonly: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
stylesConfig: {
|
|
23
|
+
type: import("vue").PropType<StylesConfig>;
|
|
24
|
+
default: () => {
|
|
25
|
+
rowHeight?: number;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
borderWidth?: number;
|
|
28
|
+
labelBgColor?: string;
|
|
29
|
+
focusBorderColor?: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
33
|
+
colCount: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
readonly: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
stylesConfig: {
|
|
43
|
+
type: import("vue").PropType<StylesConfig>;
|
|
44
|
+
default: () => {
|
|
45
|
+
rowHeight?: number;
|
|
46
|
+
borderColor?: string;
|
|
47
|
+
borderWidth?: number;
|
|
48
|
+
labelBgColor?: string;
|
|
49
|
+
focusBorderColor?: string;
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
}>> & Readonly<{}>, {
|
|
53
|
+
colCount: number;
|
|
54
|
+
readonly: boolean;
|
|
55
|
+
stylesConfig: StylesConfig;
|
|
56
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
57
|
+
//# sourceMappingURL=TableForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableForm.d.ts","sourceRoot":"","sources":["../../../../src/components/table-form/TableForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,WAAW,EAMZ,MAAM,KAAK,CAAC;AASb,OAAO,EAEL,YAAY,EAEb,MAAM,aAAa,CAAC;AAYrB,eAAO,MAAM,cAAc,eAE1B,CAAC;AAGF,MAAM,WAAW,gBAAgB;IAC/B,YAAY,EAAE,IAAI,CAAC;IACnB,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,UAAU,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC,WAAW,EAAE,WAAW,CACtB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CACnC,CAAC;IACF,YAAY,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;IACxC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAC7C;AA0ID,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6EAA0B,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const TableFormItem: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
dicName: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
format: {
|
|
7
|
+
type: import("vue").PropType<import("./interface").Formatter>;
|
|
8
|
+
default: (value: unknown, _name: unknown) => unknown;
|
|
9
|
+
};
|
|
10
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
dicName: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
format: {
|
|
16
|
+
type: import("vue").PropType<import("./interface").Formatter>;
|
|
17
|
+
default: (value: unknown, _name: unknown) => unknown;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
format: import("./interface").Formatter;
|
|
21
|
+
dicName: string;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
23
|
+
//# sourceMappingURL=TableFormItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableFormItem.d.ts","sourceRoot":"","sources":["../../../../src/components/table-form/TableFormItem.tsx"],"names":[],"mappings":"AA+KA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;6EAA8B,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TableForm } from "./TableForm";
|
|
2
|
+
import { TableFormItem } from "./TableFormItem";
|
|
3
|
+
type TableFormWithItem = typeof TableForm & {
|
|
4
|
+
Item: typeof TableFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare const TableFormExport: TableFormWithItem;
|
|
7
|
+
export { TableFormExport as TableForm, TableFormItem };
|
|
8
|
+
export * from "./interface";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/table-form/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,KAAK,iBAAiB,GAAG,OAAO,SAAS,GAAG;IAC1C,IAAI,EAAE,OAAO,aAAa,CAAC;CAC5B,CAAC;AAIF,QAAA,MAAM,eAAe,EAAgB,iBAAiB,CAAC;AAMvD,OAAO,EAAE,eAAe,IAAI,SAAS,EAAE,aAAa,EAAE,CAAC;AAEvD,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from "vue";
|
|
2
|
+
export interface DTableFormItemProps {
|
|
3
|
+
name: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
rules?: unknown[];
|
|
7
|
+
colon?: boolean;
|
|
8
|
+
extra?: string;
|
|
9
|
+
}
|
|
10
|
+
export type Formatter = (value: unknown, name: unknown) => unknown;
|
|
11
|
+
export declare const tableFormItemProps: {
|
|
12
|
+
dicName: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: undefined;
|
|
15
|
+
};
|
|
16
|
+
format: {
|
|
17
|
+
type: PropType<Formatter>;
|
|
18
|
+
default: (value: unknown, _name: unknown) => unknown;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export declare const DEFAULT_STYLES_CONFIG: StylesConfig;
|
|
22
|
+
export interface StylesConfig {
|
|
23
|
+
/**
|
|
24
|
+
* 表格行高度
|
|
25
|
+
*/
|
|
26
|
+
rowHeight?: number;
|
|
27
|
+
borderColor?: string;
|
|
28
|
+
borderWidth?: number;
|
|
29
|
+
labelBgColor?: string;
|
|
30
|
+
focusBorderColor?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const tableFormProps: {
|
|
33
|
+
colCount: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
readonly: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
stylesConfig: {
|
|
43
|
+
type: PropType<StylesConfig>;
|
|
44
|
+
default: () => {
|
|
45
|
+
/**
|
|
46
|
+
* 表格行高度
|
|
47
|
+
*/
|
|
48
|
+
rowHeight?: number;
|
|
49
|
+
borderColor?: string;
|
|
50
|
+
borderWidth?: number;
|
|
51
|
+
labelBgColor?: string;
|
|
52
|
+
focusBorderColor?: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
export type TableFormItemProps = Partial<ExtractPropTypes<typeof tableFormItemProps>>;
|
|
57
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../../../src/components/table-form/interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAC;AAGtD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;AAGnE,eAAO,MAAM,kBAAkB;;;;;;cAOT,QAAQ,CAAC,SAAS,CAAC;yBAEpB,OAAO,SAAS,OAAO;;CAE3C,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,YAMnC,CAAC;AAEF,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;cAWP,QAAQ,CAAC,YAAY,CAAC;;YAzBxC;;eAEG;wBACS,MAAM;0BAEJ,MAAM;0BAEN,MAAM;2BAEL,MAAM;+BAEF,MAAM;;;CAiB1B,CAAC;AAGF,MAAM,MAAM,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import { StylesConfig } from "./interface";
|
|
3
|
+
import type { GlobalToken } from "ant-design-vue/es/theme/interface";
|
|
4
|
+
/**
|
|
5
|
+
* 表单项样式
|
|
6
|
+
*/
|
|
7
|
+
export declare const useFormItemStyle: (styles: StylesConfig, _token: ComputedRef<GlobalToken>) => {
|
|
8
|
+
cellBorderStyle: string;
|
|
9
|
+
valueDisplayClass: string;
|
|
10
|
+
textWrapperClass: string;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=style.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/components/table-form/style.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,KAAK,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gBAAgB,WACnB,YAAY,UACZ,WAAW,CAAC,WAAW,CAAC;;;;CAsHjC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComputedRef } from "vue";
|
|
2
|
+
import type { GlobalToken } from "ant-design-vue/es/theme/interface";
|
|
3
|
+
export declare function useDesign(scope: string): {
|
|
4
|
+
prefixCls: ComputedRef<string>;
|
|
5
|
+
getPrefixCls: (blockSuffix?: string) => string;
|
|
6
|
+
};
|
|
7
|
+
export declare function useAntdToken(): ComputedRef<GlobalToken>;
|
|
8
|
+
//# sourceMappingURL=useDesign.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDesign.d.ts","sourceRoot":"","sources":["../../../src/hooks/useDesign.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,WAAW,EAAE,MAAM,KAAK,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAKrE,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM;;iCAQD,MAAM;EAY3C;AAED,wBAAgB,YAAY,IAAI,WAAW,CAAC,WAAW,CAAC,CAIvD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Component, Plugin } from "vue";
|
|
2
|
+
export type SFCWithInstall<T> = T & Plugin & {
|
|
3
|
+
[key: string]: T;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* 优化后的 withInstall 辅助函数
|
|
7
|
+
* * 关键修改:
|
|
8
|
+
* - 将泛型 T 的约束改为更通用的 Vue Component 类型。
|
|
9
|
+
* - 使用 'Component' 或 'ComponentOptionsBase' 来确保兼容性。
|
|
10
|
+
*/
|
|
11
|
+
export declare const withInstall: <T extends Component>(component: T) => SFCWithInstall<T>;
|
|
12
|
+
//# sourceMappingURL=withInstall.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withInstall.d.ts","sourceRoot":"","sources":["../../../src/utils/withInstall.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAO,SAAS,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAGlD,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,GAC/B,MAAM,GAAG;IACP,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAC;CAClB,CAAC;AAEJ;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,CAAC,SAAS,SAAS,aAAa,CAAC,sBAa5D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ditari/bsui",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"./theme/*": "./dist/style/*"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@ditari/store": "^5.0
|
|
33
|
-
"@ditari/core": "^5.0
|
|
32
|
+
"@ditari/store": "^5.1.0",
|
|
33
|
+
"@ditari/core": "^5.1.0"
|
|
34
34
|
}
|
|
35
35
|
}
|