@ditari/bsui 5.1.16 → 5.1.18
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.map +1 -1
- package/dist/cjs/components/card/Card.d.ts +6 -0
- package/dist/cjs/components/card/index.d.ts +3 -0
- package/dist/cjs/components/card/style.d.ts +9 -0
- package/dist/cjs/components/date/RangePicker.vue.d.ts +64 -0
- package/dist/cjs/components/date/index.d.ts +3 -0
- package/dist/cjs/components/dic/DicReplace.d.ts +24 -0
- package/dist/cjs/components/dic/index.d.ts +3 -0
- package/dist/cjs/components/form/FormLayout.d.ts +49 -0
- package/dist/cjs/components/form/index.d.ts +3 -0
- package/dist/cjs/components/icon/index.d.ts +4 -0
- package/dist/cjs/components/index.d.ts +11 -0
- package/dist/cjs/components/layout/AppContext.d.ts +16 -0
- package/dist/cjs/components/layout/AppLayout.d.ts +3 -0
- package/dist/cjs/components/layout/Layout.vue.d.ts +269 -0
- package/dist/cjs/components/layout/List.d.ts +5 -0
- package/dist/cjs/components/layout/Show.d.ts +33 -0
- package/dist/cjs/components/layout/components/index.d.ts +5 -0
- package/dist/cjs/components/layout/components/layout/HeaderLayout.vue.d.ts +106 -0
- package/dist/cjs/components/layout/components/layout/RouterContent.vue.d.ts +11 -0
- package/dist/cjs/components/layout/components/layout/RouterContentName.vue.d.ts +19 -0
- package/dist/cjs/components/layout/components/layout/ThemeApp.vue.d.ts +24 -0
- package/dist/cjs/components/layout/components/menu/Menu.d.ts +5 -0
- package/dist/cjs/components/layout/components/mobile/MobileList.d.ts +3 -0
- package/dist/cjs/components/layout/components/settings/BlockCheckbox.vue.d.ts +47 -0
- package/dist/cjs/components/layout/components/settings/SettingDrawer.d.ts +50 -0
- package/dist/cjs/components/layout/index.d.ts +8 -0
- package/dist/cjs/components/layout/style.d.ts +5 -0
- package/dist/cjs/components/select/Select.vue.d.ts +98 -0
- package/dist/cjs/components/select/index.d.ts +3 -0
- package/dist/cjs/components/tab/Search.d.ts +3 -0
- package/dist/cjs/components/tab/Tab.vue.d.ts +78 -0
- package/dist/cjs/components/tab/index.d.ts +3 -0
- package/dist/cjs/components/table/Table.d.ts +137 -0
- package/dist/cjs/components/table/index.d.ts +4 -0
- package/dist/cjs/components/table/interface.d.ts +46 -0
- package/dist/cjs/components/table-form/TableForm.d.ts +46 -0
- package/dist/cjs/components/table-form/TableFormItem.d.ts +32 -0
- package/dist/cjs/components/table-form/index.d.ts +9 -0
- package/dist/cjs/components/table-form/interface.d.ts +56 -0
- package/dist/cjs/components/table-form/style.d.ts +12 -0
- package/dist/cjs/hooks/useDesign.d.ts +8 -0
- package/dist/cjs/index.d.ts +8 -0
- package/dist/cjs/utils/useMenuCore.d.ts +9 -0
- package/dist/cjs/utils/useTheme.d.ts +9 -0
- package/dist/cjs/utils/withInstall.d.ts +12 -0
- package/dist/esm/components/card/Card.d.ts +6 -0
- package/dist/esm/components/card/Card.mjs.map +1 -1
- package/dist/esm/components/card/index.d.ts +3 -0
- package/dist/esm/components/card/style.d.ts +9 -0
- package/dist/esm/components/date/RangePicker.vue.d.ts +64 -0
- package/dist/esm/components/date/index.d.ts +3 -0
- package/dist/esm/components/dic/DicReplace.d.ts +24 -0
- package/dist/esm/components/dic/index.d.ts +3 -0
- package/dist/esm/components/form/FormLayout.d.ts +49 -0
- package/dist/esm/components/form/index.d.ts +3 -0
- package/dist/esm/components/icon/index.d.ts +4 -0
- package/dist/esm/components/index.d.ts +11 -0
- package/dist/esm/components/layout/AppContext.d.ts +16 -0
- package/dist/esm/components/layout/AppLayout.d.ts +3 -0
- package/dist/esm/components/layout/Layout.vue.d.ts +269 -0
- package/dist/esm/components/layout/List.d.ts +5 -0
- package/dist/esm/components/layout/Show.d.ts +33 -0
- package/dist/esm/components/layout/components/index.d.ts +5 -0
- package/dist/esm/components/layout/components/layout/HeaderLayout.vue.d.ts +106 -0
- package/dist/esm/components/layout/components/layout/RouterContent.vue.d.ts +11 -0
- package/dist/esm/components/layout/components/layout/RouterContentName.vue.d.ts +19 -0
- package/dist/esm/components/layout/components/layout/ThemeApp.vue.d.ts +24 -0
- package/dist/esm/components/layout/components/menu/Menu.d.ts +5 -0
- package/dist/esm/components/layout/components/mobile/MobileList.d.ts +3 -0
- package/dist/esm/components/layout/components/settings/BlockCheckbox.vue.d.ts +47 -0
- package/dist/esm/components/layout/components/settings/SettingDrawer.d.ts +50 -0
- package/dist/esm/components/layout/index.d.ts +8 -0
- package/dist/esm/components/layout/style.d.ts +5 -0
- package/dist/esm/components/select/Select.vue.d.ts +98 -0
- package/dist/esm/components/select/index.d.ts +3 -0
- package/dist/esm/components/tab/Search.d.ts +3 -0
- package/dist/esm/components/tab/Tab.vue.d.ts +78 -0
- package/dist/esm/components/tab/index.d.ts +3 -0
- package/dist/esm/components/table/Table.d.ts +137 -0
- package/dist/esm/components/table/index.d.ts +4 -0
- package/dist/esm/components/table/interface.d.ts +46 -0
- package/dist/esm/components/table-form/TableForm.d.ts +46 -0
- package/dist/esm/components/table-form/TableFormItem.d.ts +32 -0
- package/dist/esm/components/table-form/index.d.ts +9 -0
- package/dist/esm/components/table-form/interface.d.ts +56 -0
- package/dist/esm/components/table-form/style.d.ts +12 -0
- package/dist/esm/hooks/useDesign.d.ts +8 -0
- package/dist/esm/index.d.ts +8 -0
- package/dist/esm/utils/useMenuCore.d.ts +9 -0
- package/dist/esm/utils/useTheme.d.ts +9 -0
- package/dist/esm/utils/withInstall.d.ts +12 -0
- package/dist/types/components/card/Card.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export interface PaginationProps {
|
|
2
|
+
/** 默认的每页条数 */
|
|
3
|
+
defaultPageSize?: number;
|
|
4
|
+
/** 禁用分页 */
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
/** 只有一页时是否隐藏分页器 */
|
|
7
|
+
hideOnSinglePage?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 用于自定义页码的结构,可用于优化 SEO
|
|
10
|
+
* @param page 当前页码
|
|
11
|
+
* @param type 页码类型 ('page' | 'prev' | 'next')
|
|
12
|
+
* @param originalElement 默认的节点
|
|
13
|
+
* @returns 自定义的 VNode
|
|
14
|
+
*/
|
|
15
|
+
itemRender?: (opt: {
|
|
16
|
+
page: number;
|
|
17
|
+
type: "page" | "prev" | "next" | "jump-prev" | "jump-next";
|
|
18
|
+
originalElement: unknown;
|
|
19
|
+
}) => unknown;
|
|
20
|
+
/** 每页条数(支持 v-model) */
|
|
21
|
+
pageSize?: number;
|
|
22
|
+
/** 指定每页可以显示的条数 */
|
|
23
|
+
pageSizeOptions?: (string | number)[];
|
|
24
|
+
/** 当 size 未指定时,根据屏幕宽度自动调整尺寸 */
|
|
25
|
+
responsive?: boolean;
|
|
26
|
+
/** 是否显示较少页面内容 */
|
|
27
|
+
showLessItems?: boolean;
|
|
28
|
+
/** 是否可以快速跳转至某页 */
|
|
29
|
+
showQuickJumper?: boolean;
|
|
30
|
+
/** 是否展示 pageSize 切换器,当 total 大于 50 时默认为 true */
|
|
31
|
+
showSizeChanger?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* 用于显示数据总量和当前数据顺序
|
|
34
|
+
* @param total 数据总数
|
|
35
|
+
* @param range 当前数据范围
|
|
36
|
+
* @returns 显示的文本内容
|
|
37
|
+
*/
|
|
38
|
+
showTotal?: (total: number, range: [number, number]) => string;
|
|
39
|
+
/** 当添加该属性时,显示为简单分页 */
|
|
40
|
+
simple?: boolean;
|
|
41
|
+
/** 当为「small」时,是小尺寸分页 */
|
|
42
|
+
size?: "default" | "small";
|
|
43
|
+
/** 数据总数 */
|
|
44
|
+
total?: number;
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
readonly: {
|
|
14
|
+
type: BooleanConstructor;
|
|
15
|
+
default: boolean;
|
|
16
|
+
};
|
|
17
|
+
stylesConfig: {
|
|
18
|
+
type: import("vue").PropType<StylesConfig>;
|
|
19
|
+
default: () => {
|
|
20
|
+
rowHeight?: number;
|
|
21
|
+
borderColor?: string;
|
|
22
|
+
borderWidth?: number;
|
|
23
|
+
labelBgColor?: string;
|
|
24
|
+
focusBorderColor?: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
readonly: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
stylesConfig: {
|
|
33
|
+
type: import("vue").PropType<StylesConfig>;
|
|
34
|
+
default: () => {
|
|
35
|
+
rowHeight?: number;
|
|
36
|
+
borderColor?: string;
|
|
37
|
+
borderWidth?: number;
|
|
38
|
+
labelBgColor?: string;
|
|
39
|
+
focusBorderColor?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{}>, {
|
|
43
|
+
readonly: boolean;
|
|
44
|
+
stylesConfig: StylesConfig;
|
|
45
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
46
|
+
//# sourceMappingURL=TableForm.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
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> | undefined;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
span: {
|
|
11
|
+
type: NumberConstructor;
|
|
12
|
+
default: number;
|
|
13
|
+
};
|
|
14
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
dicName: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
format: {
|
|
20
|
+
type: import("vue").PropType<import("./interface").Formatter> | undefined;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
span: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
format: import("./interface").Formatter;
|
|
29
|
+
dicName: string;
|
|
30
|
+
span: number;
|
|
31
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
32
|
+
//# sourceMappingURL=TableFormItem.d.ts.map
|
|
@@ -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,56 @@
|
|
|
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> | undefined;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
span: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare const DEFAULT_STYLES_CONFIG: StylesConfig;
|
|
26
|
+
export interface StylesConfig {
|
|
27
|
+
/**
|
|
28
|
+
* 表格行高度
|
|
29
|
+
*/
|
|
30
|
+
rowHeight?: number;
|
|
31
|
+
borderColor?: string;
|
|
32
|
+
borderWidth?: number;
|
|
33
|
+
labelBgColor?: string;
|
|
34
|
+
focusBorderColor?: string;
|
|
35
|
+
}
|
|
36
|
+
export declare const tableFormProps: {
|
|
37
|
+
readonly: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
stylesConfig: {
|
|
42
|
+
type: PropType<StylesConfig>;
|
|
43
|
+
default: () => {
|
|
44
|
+
/**
|
|
45
|
+
* 表格行高度
|
|
46
|
+
*/
|
|
47
|
+
rowHeight?: number;
|
|
48
|
+
borderColor?: string;
|
|
49
|
+
borderWidth?: number;
|
|
50
|
+
labelBgColor?: string;
|
|
51
|
+
focusBorderColor?: string;
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export type TableFormItemProps = Partial<ExtractPropTypes<typeof tableFormItemProps>>;
|
|
56
|
+
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -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,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,9 @@
|
|
|
1
|
+
declare const _default: () => {
|
|
2
|
+
findMatchedMenuById: (id: string, menuItems: any[]) => {
|
|
3
|
+
parentItem: any;
|
|
4
|
+
matchItem: any;
|
|
5
|
+
};
|
|
6
|
+
findMenuItemByUrl: (url: string, menuItems: any[]) => any;
|
|
7
|
+
};
|
|
8
|
+
export default _default;
|
|
9
|
+
//# sourceMappingURL=useMenuCore.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { GlobalToken } from "ant-design-vue/es/theme";
|
|
3
|
+
type UseAntdTokenReturn = {
|
|
4
|
+
token: Ref<GlobalToken>;
|
|
5
|
+
setToken: (globalToken: GlobalToken) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const useAntdToken: () => UseAntdTokenReturn;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=useTheme.d.ts.map
|
|
@@ -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,6 @@
|
|
|
1
|
+
export declare const Card: import("../../utils/withInstall").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
title: StringConstructor;
|
|
3
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
title: StringConstructor;
|
|
5
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
6
|
+
//# sourceMappingURL=Card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.mjs","sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["// components/card/index.tsx\r\nimport { defineComponent } from \"vue\";\r\n\r\nimport { cx } from \"@emotion/css\"; // 引入 cx\r\n\r\nimport { useDesign } from \"../../hooks/useDesign\"; // 引入我们刚才写的 hook\r\nimport { withInstall } from \"../../utils/withInstall\";\r\n\r\nimport { useStyle } from \"./style\";\r\n\r\nconst _Card = defineComponent({\r\n name: \"DCard\",\r\n props: {\r\n title: String\r\n },\r\n setup(props, { slots }) {\r\n // 初始化 Design Hook,传入组件名 'card'\r\n const { getPrefixCls } = useDesign(\"card\");\r\n\r\n // 初始化 Emotion 样式\r\n const styles = useStyle();\r\n\r\n return () => {\r\n // 生成语义化类名\r\n const rootCls = getPrefixCls();\r\n const headerCls = getPrefixCls(\"head\");\r\n const iconCls = getPrefixCls(\"icon\");\r\n const titleCls = getPrefixCls(\"title\");\r\n const actionCls = getPrefixCls(\"action\");\r\n const bodyCls = getPrefixCls(\"body\");\r\n\r\n return (\r\n <div class={cx(rootCls, styles.container)}>\r\n {/* Header 区域 */}\r\n <div class={cx(headerCls, styles.header)}>\r\n {slots.icon && <div class={cx(iconCls, styles.icon)}
|
|
1
|
+
{"version":3,"file":"Card.mjs","sources":["../../../../src/components/card/Card.tsx"],"sourcesContent":["// components/card/index.tsx\r\nimport { defineComponent } from \"vue\";\r\n\r\nimport { cx } from \"@emotion/css\"; // 引入 cx\r\n\r\nimport { useDesign } from \"../../hooks/useDesign\"; // 引入我们刚才写的 hook\r\nimport { withInstall } from \"../../utils/withInstall\";\r\n\r\nimport { useStyle } from \"./style\";\r\n\r\nconst _Card = defineComponent({\r\n name: \"DCard\",\r\n props: {\r\n title: String\r\n },\r\n setup(props, { slots }) {\r\n // 初始化 Design Hook,传入组件名 'card'\r\n const { getPrefixCls } = useDesign(\"card\");\r\n\r\n // 初始化 Emotion 样式\r\n const styles = useStyle();\r\n\r\n return () => {\r\n // 生成语义化类名\r\n const rootCls = getPrefixCls();\r\n const headerCls = getPrefixCls(\"head\");\r\n const iconCls = getPrefixCls(\"icon\");\r\n const titleCls = getPrefixCls(\"title\");\r\n const actionCls = getPrefixCls(\"action\");\r\n const bodyCls = getPrefixCls(\"body\");\r\n\r\n return (\r\n <div class={cx(rootCls, styles.container)}>\r\n {/* Header 区域 */}\r\n <div class={cx(headerCls, styles.header)}>\r\n {slots.icon && (\r\n <div class={cx(iconCls, styles.icon)}>\r\n {slots.icon()}\r\n </div>\r\n )}\r\n <div class={cx(titleCls, styles.header_title)}>\r\n {props.title}\r\n </div>\r\n </div>\r\n {/*action*/}\r\n {slots.action && (\r\n <div class={cx(actionCls, styles.action)}>\r\n {slots.action()}\r\n </div>\r\n )}\r\n\r\n {/* Body 区域 */}\r\n <div class={cx(bodyCls, styles.body)}>\r\n {slots.default?.()}\r\n </div>\r\n </div>\r\n );\r\n };\r\n }\r\n});\r\n\r\nexport const Card = withInstall(_Card);\r\n"],"names":["_Card","defineComponent","name","props","title","String","setup","slots","getPrefixCls","useDesign","styles","useStyle","rootCls","headerCls","iconCls","titleCls","actionCls","bodyCls","_createVNode","cx","container","header","icon","header_title","action","body","default","Card","withInstall"],"mappings":";;;;;;;AAUA,MAAMA,wBAAQC,eAAAA,CAAgB;AAAA,EAC5BC,IAAAA,EAAM,OAAA;AAAA,EACNC,KAAAA,EAAO;AAAA,IACLC,KAAAA,EAAOC;AAAAA,GACT;AAAA,EACAC,MAAMH,KAAAA,EAAO;AAAA,IAAEI;AAAAA,GAAM,EAAG;AAEtB,IAAA,MAAM;AAAA,MAAEC;AAAAA,KAAa,GAAIC,UAAU,MAAM,CAAA;AAGzC,IAAA,MAAMC,SAASC,QAAAA,EAAS;AAExB,IAAA,OAAO,MAAM;AAtBjB,MAAA,IAAA,EAAA;AAwBM,MAAA,MAAMC,UAAUJ,YAAAA,EAAa;AAC7B,MAAA,MAAMK,SAAAA,GAAYL,aAAa,MAAM,CAAA;AACrC,MAAA,MAAMM,OAAAA,GAAUN,aAAa,MAAM,CAAA;AACnC,MAAA,MAAMO,QAAAA,GAAWP,aAAa,OAAO,CAAA;AACrC,MAAA,MAAMQ,SAAAA,GAAYR,aAAa,QAAQ,CAAA;AACvC,MAAA,MAAMS,OAAAA,GAAUT,aAAa,MAAM,CAAA;AAEnC,MAAA,OAAAU,YAAA,KAAA,EAAA;AAAA,QAAA,OAAA,EACcC,EAAAA,CAAGP,OAAAA,EAASF,MAAAA,CAAOU,SAAS;AAAA,OAAC,EAAA,CAAAF,WAAAA,CAAA,KAAA,EAAA;AAAA,QAAA,OAAA,EAE3BC,EAAAA,CAAGN,SAAAA,EAAWH,MAAAA,CAAOW,MAAM;AAAA,OAAC,EAAA,CACrCd,KAAAA,CAAMe,IAAAA,IAAIJ,YAAA,KAAA,EAAA;AAAA,QAAA,OAAA,EACGC,EAAAA,CAAGL,OAAAA,EAASJ,MAAAA,CAAOY,IAAI;AAAA,OAAC,EAAA,CACjCf,KAAAA,CAAMe,IAAAA,EAAM,CAAA,CAAA,EAEhBJ,YAAA,KAAA,EAAA;AAAA,QAAA,OAAA,EACWC,EAAAA,CAAGJ,QAAAA,EAAUL,MAAAA,CAAOa,YAAY;AAAA,OAAC,EAAA,CAC1CpB,KAAAA,CAAMC,KAAK,CAAA,CAAA,CAAA,CAAA,EAIfG,KAAAA,CAAMiB,MAAAA,IAAMN,WAAAA,CAAA,KAAA,EAAA;AAAA,QAAA,OAAA,EACCC,EAAAA,CAAGH,SAAAA,EAAWN,MAAAA,CAAOc,MAAM;AAAA,OAAC,EAAA,CACrCjB,KAAAA,CAAMiB,MAAAA,EAAQ,CAAA,CAAA,EAElBN,YAAA,KAAA,EAAA;AAAA,QAAA,OAAA,EAGWC,EAAAA,CAAGF,OAAAA,EAASP,MAAAA,CAAOe,IAAI;AAAA,SAAC,CAAA,CACjClB,EAAAA,GAAAA,KAAAA,CAAMmB,YAANnB,IAAAA,GAAAA,KAAAA,CAAAA,GAAAA,EAAAA,CAAAA,IAAAA,CAAAA,KAAAA,CAAiB,CAAA,CAAA,CAAA,CAAA;AAAA,IAI1B,CAAA;AAAA,EACF;AACF,CAAC,CAAA;AAEM,MAAMoB,IAAAA,GAAOC,YAAY5B,KAAK;;;;"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
value: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
startField: {
|
|
8
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
9
|
+
required: false;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
endField: {
|
|
13
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
14
|
+
required: false;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
format: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
required: false;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
}>, {
|
|
23
|
+
normalizePath: (field: string | string[]) => string[];
|
|
24
|
+
getNestedValue: <T extends Record<string, unknown>>(obj: T, field: string | string[]) => string | null | undefined;
|
|
25
|
+
setNestedValue: <T extends Record<string, unknown>>(obj: T, field: string | string[], value: string | null) => T;
|
|
26
|
+
props: any;
|
|
27
|
+
emits: (event: "update:value" | "change", ...args: any[]) => void;
|
|
28
|
+
attrs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
innerValue: import("vue").Ref<any, any>;
|
|
32
|
+
handleChange: (dates: [any, any]) => void;
|
|
33
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "change")[], "update:value" | "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
value: {
|
|
35
|
+
type: ObjectConstructor;
|
|
36
|
+
required: true;
|
|
37
|
+
default: () => {};
|
|
38
|
+
};
|
|
39
|
+
startField: {
|
|
40
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
41
|
+
required: false;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
endField: {
|
|
45
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
46
|
+
required: false;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
format: {
|
|
50
|
+
type: StringConstructor;
|
|
51
|
+
required: false;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{
|
|
55
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
value: Record<string, any>;
|
|
59
|
+
startField: string | unknown[];
|
|
60
|
+
endField: string | unknown[];
|
|
61
|
+
format: string;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
63
|
+
export default _default;
|
|
64
|
+
//# sourceMappingURL=RangePicker.vue.d.ts.map
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
name: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
value: {
|
|
7
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
name: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
value: {
|
|
16
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
name: string;
|
|
21
|
+
value: string | number;
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=DicReplace.d.ts.map
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 查询表单渲染
|
|
3
|
+
* 展开,隐藏功能
|
|
4
|
+
*/
|
|
5
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
scheme: {
|
|
7
|
+
type: () => any[] | Record<string, any>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
model: {
|
|
11
|
+
type: () => Record<string, unknown>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
labelWidth: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
loading: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("query" | "reset")[], "query" | "reset", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
scheme: {
|
|
24
|
+
type: () => any[] | Record<string, any>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
model: {
|
|
28
|
+
type: () => Record<string, unknown>;
|
|
29
|
+
default: () => {};
|
|
30
|
+
};
|
|
31
|
+
labelWidth: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
loading: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{
|
|
40
|
+
onQuery?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onReset?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}>, {
|
|
43
|
+
loading: boolean;
|
|
44
|
+
scheme: any[] | Record<string, any>;
|
|
45
|
+
model: Record<string, unknown>;
|
|
46
|
+
labelWidth: string;
|
|
47
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
48
|
+
export default _default;
|
|
49
|
+
//# sourceMappingURL=FormLayout.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "./card";
|
|
2
|
+
export * from "./date";
|
|
3
|
+
export { default as DicRep } from "./dic";
|
|
4
|
+
export * from "./form";
|
|
5
|
+
export * from "./icon";
|
|
6
|
+
export * from "./layout";
|
|
7
|
+
export { default as Select } from "./select";
|
|
8
|
+
export { default as Tab } from "./tab";
|
|
9
|
+
export { default as Table } from "./table";
|
|
10
|
+
export * from "./table-form";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComputedRef, VNode } from "vue";
|
|
2
|
+
export declare const AppContextKey: unique symbol;
|
|
3
|
+
export interface AppContext {
|
|
4
|
+
watermarkContent?: ComputedRef<{
|
|
5
|
+
content: string;
|
|
6
|
+
}>;
|
|
7
|
+
renderMenuIcon?: (item: {
|
|
8
|
+
icon: string;
|
|
9
|
+
}) => VNode | VNode[];
|
|
10
|
+
keepAliveMode: "Name" | "Path";
|
|
11
|
+
onReloadPage?: (item: {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
}) => void;
|
|
14
|
+
enableTabContextMenu?: boolean;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=AppContext.d.ts.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const DAppLayout: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default DAppLayout;
|
|
3
|
+
//# sourceMappingURL=AppLayout.d.ts.map
|