@aplus-frontend/ui 0.0.1-beta.32 → 0.0.1-beta.34
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/es/src/ap-action/interface.d.ts +2 -1
- package/es/src/ap-action/item/index.vue2.mjs +20 -20
- package/es/src/ap-custom-column/custom-column.vue.mjs +17 -14
- package/es/src/ap-field/text/index.vue.d.ts +1 -1
- package/es/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/es/src/ap-table/components/interface.d.ts +10 -0
- package/es/src/ap-table/components/style/pagination.css +12 -0
- package/es/src/ap-table/constants.d.ts +5666 -0
- package/es/src/ap-table/hooks/use-table-paging.d.ts +57 -0
- package/es/src/ap-table/interface.d.ts +155 -0
- package/es/src/ap-table/style/ap-table.css +14 -0
- package/es/src/ap-table/utils.d.ts +8 -0
- package/es/src/base-button/index.d.ts +137 -0
- package/es/src/basic/help.vue.d.ts +4 -4
- package/es/src/basic/index.d.ts +278 -0
- package/es/src/button/index.d.ts +51 -0
- package/es/src/config-provider/config-provider-props.d.ts +1 -1
- package/es/src/config-provider/config-provider.d.ts +11 -11
- package/es/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +691 -0
- package/es/src/container/index.d.ts +178 -0
- package/es/src/count-down/index.d.ts +150 -0
- package/es/src/cropper/index.d.ts +369 -0
- package/es/src/description/description.vue.d.ts +1 -1
- package/es/src/description/index.d.ts +214 -0
- package/es/src/dropdown/index.d.ts +113 -0
- package/es/src/icon/index.d.ts +208 -0
- package/es/src/icon-picker/icon-picker.vue.d.ts +2 -2
- package/es/src/icon-picker/index.d.ts +190 -0
- package/es/src/locale/lang/en.mjs +6 -0
- package/es/src/locale/lang/zh-cn.mjs +6 -0
- package/es/src/modal/basic.vue.d.ts +1 -1
- package/es/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/es/src/modal/index.d.ts +963 -0
- package/es/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/es/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/es/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/es/src/pro-form/hooks/use-label-width.d.ts +6 -6
- package/es/src/pro-form/pro-form.vue.d.ts +1 -1
- package/es/src/pro-form/style/table-form.css +3 -0
- package/es/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/es/src/pro-table/pro-table.vue.d.ts +1 -1
- package/es/src/scroll-bar/index.d.ts +176 -0
- package/es/src/strength-meter/index.d.ts +89 -0
- package/es/src/theme/antd-global-overwrite/admin/alert.css +16 -6
- package/es/src/theme/antd-global-overwrite/admin/form.css +25 -0
- package/es/src/theme/antd-global-overwrite/admin/index.css +82 -20
- package/es/src/theme/antd-global-overwrite/admin/modal.css +2 -5
- package/es/src/theme/antd-global-overwrite/admin/steps.css +20 -9
- package/es/src/theme/antd-global-overwrite/admin/table.css +19 -0
- package/es/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
- package/es/src/theme/antd-global-overwrite/aplus/form.css +40 -0
- package/es/src/theme/antd-global-overwrite/aplus/index.css +76 -16
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +3 -6
- package/es/src/theme/antd-global-overwrite/aplus/steps.css +21 -4
- package/es/src/theme/ap-table/ap-table-pagination.css +12 -0
- package/es/src/theme/ap-table/ap-table.css +14 -0
- package/es/src/theme/pro-form/table-form-inner.css +3 -0
- package/es/src/transition/index.d.ts +369 -0
- package/es/src/utils/config-provider-preset.d.ts +12 -12
- package/lib/src/ap-action/interface.d.ts +2 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-custom-column/custom-column.vue.js +1 -1
- package/lib/src/ap-field/text/index.vue.d.ts +1 -1
- package/lib/src/ap-field/text-area/index.vue.d.ts +1 -1
- package/lib/src/ap-table/components/interface.d.ts +10 -0
- package/lib/src/ap-table/components/style/pagination.css +12 -0
- package/lib/src/ap-table/constants.d.ts +5666 -0
- package/lib/src/ap-table/hooks/use-table-paging.d.ts +57 -0
- package/lib/src/ap-table/interface.d.ts +155 -0
- package/lib/src/ap-table/style/ap-table.css +14 -0
- package/lib/src/ap-table/utils.d.ts +8 -0
- package/lib/src/base-button/index.d.ts +137 -0
- package/lib/src/basic/help.vue.d.ts +4 -4
- package/lib/src/basic/index.d.ts +278 -0
- package/lib/src/button/index.d.ts +51 -0
- package/lib/src/config-provider/config-provider-props.d.ts +1 -1
- package/lib/src/config-provider/config-provider.d.ts +11 -11
- package/lib/src/config-provider/hooks/use-global-config.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +691 -0
- package/lib/src/container/index.d.ts +178 -0
- package/lib/src/count-down/index.d.ts +150 -0
- package/lib/src/cropper/index.d.ts +369 -0
- package/lib/src/description/description.vue.d.ts +1 -1
- package/lib/src/description/index.d.ts +214 -0
- package/lib/src/dropdown/index.d.ts +113 -0
- package/lib/src/icon/index.d.ts +208 -0
- package/lib/src/icon-picker/icon-picker.vue.d.ts +2 -2
- package/lib/src/icon-picker/index.d.ts +190 -0
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/modal/basic.vue.d.ts +1 -1
- package/lib/src/modal/components/modal-footer.vue.d.ts +1 -1
- package/lib/src/modal/index.d.ts +963 -0
- package/lib/src/pro-form/components/api-cascader.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-radio-group.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-select.vue.d.ts +2 -2
- package/lib/src/pro-form/components/api-transfer.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree-select.vue.d.ts +1 -1
- package/lib/src/pro-form/components/api-tree.vue.d.ts +1 -1
- package/lib/src/pro-form/hooks/use-label-width.d.ts +6 -6
- package/lib/src/pro-form/pro-form.vue.d.ts +1 -1
- package/lib/src/pro-form/style/table-form.css +3 -0
- package/lib/src/pro-table/components/editable/editable-cell.vue.d.ts +1 -1
- package/lib/src/pro-table/pro-table.vue.d.ts +1 -1
- package/lib/src/scroll-bar/index.d.ts +176 -0
- package/lib/src/strength-meter/index.d.ts +89 -0
- package/lib/src/theme/antd-global-overwrite/admin/alert.css +16 -6
- package/lib/src/theme/antd-global-overwrite/admin/form.css +25 -0
- package/lib/src/theme/antd-global-overwrite/admin/index.css +82 -20
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +2 -5
- package/lib/src/theme/antd-global-overwrite/admin/steps.css +20 -9
- package/lib/src/theme/antd-global-overwrite/admin/table.css +19 -0
- package/lib/src/theme/antd-global-overwrite/aplus/alert.css +12 -6
- package/lib/src/theme/antd-global-overwrite/aplus/form.css +40 -0
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +76 -16
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +3 -6
- package/lib/src/theme/antd-global-overwrite/aplus/steps.css +21 -4
- package/lib/src/theme/ap-table/ap-table-pagination.css +12 -0
- package/lib/src/theme/ap-table/ap-table.css +14 -0
- package/lib/src/theme/pro-form/table-form-inner.css +3 -0
- package/lib/src/transition/index.d.ts +369 -0
- package/lib/src/utils/config-provider-preset.d.ts +12 -12
- package/package.json +1 -1
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { RequestData } from '../interface';
|
|
3
|
+
import { ApFormExpose } from '../../ap-form';
|
|
4
|
+
import { TablePaginationConfig } from 'ant-design-vue';
|
|
5
|
+
|
|
6
|
+
export type UseTablePagingParams<DataType, ParamsType> = {
|
|
7
|
+
request: (params: any) => Promise<RequestData<DataType>>;
|
|
8
|
+
/**
|
|
9
|
+
* 是否手动执行,页面初始化后不执行网络请求,需要手动触发
|
|
10
|
+
* @param params
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
manual?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* @description 默认情况下,请求第几页
|
|
16
|
+
* @default 1
|
|
17
|
+
*/
|
|
18
|
+
defaultCurrent?: number;
|
|
19
|
+
/**
|
|
20
|
+
* 默认每页请求的数据条数
|
|
21
|
+
* @default 10
|
|
22
|
+
*/
|
|
23
|
+
defaultPageSize?: number;
|
|
24
|
+
/**
|
|
25
|
+
* 额外的默认请求参数,这个参数变更不会触发网络请求
|
|
26
|
+
*/
|
|
27
|
+
defaultParams?: ParamsType;
|
|
28
|
+
/**
|
|
29
|
+
* 数据请求前格式化请求参数
|
|
30
|
+
* @param values
|
|
31
|
+
* @returns
|
|
32
|
+
*/
|
|
33
|
+
formatParams?: (values: any) => any;
|
|
34
|
+
/**
|
|
35
|
+
* 特殊类型参数类型对照表(会根据该对照表运行默认的参数格式化)
|
|
36
|
+
*/
|
|
37
|
+
paramsValueTypeMap?: Record<string, any>;
|
|
38
|
+
/**
|
|
39
|
+
* 重设表单需要忽略的字段
|
|
40
|
+
*/
|
|
41
|
+
resetFieldsIgnores?: string[];
|
|
42
|
+
};
|
|
43
|
+
export declare const useTablePaging: <DataType = any, ParamsType = Record<string, any>>({ manual, defaultCurrent, defaultPageSize, request, defaultParams, formatParams, paramsValueTypeMap, resetFieldsIgnores }: UseTablePagingParams<DataType, ParamsType>) => {
|
|
44
|
+
formRef: Ref<ApFormExpose<any> | undefined>;
|
|
45
|
+
submit: () => void;
|
|
46
|
+
reset: () => void;
|
|
47
|
+
refresh: () => void;
|
|
48
|
+
refreshByDelete: (n: number) => void;
|
|
49
|
+
data: Ref<{
|
|
50
|
+
total: number;
|
|
51
|
+
records: DataType[];
|
|
52
|
+
loading: boolean;
|
|
53
|
+
}>;
|
|
54
|
+
current: Ref<number>;
|
|
55
|
+
pageSize: Ref<number>;
|
|
56
|
+
onChange: (p: TablePaginationConfig) => void;
|
|
57
|
+
};
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import { ColumnType, TableProps } from 'ant-design-vue/es/table';
|
|
2
|
+
import { CompareFn, SortOrder } from 'ant-design-vue/es/table/interface';
|
|
3
|
+
import { ApFormSearchFormProps } from '../ap-form';
|
|
4
|
+
import { ApFormItemDateProps, ApFormItemDateRangeProps, ApFormItemNumberProps, ApFormItemRadioProps, ApFormItemSelectProps, ApFormItemSwitchProps, ApFormItemTextAreaProps, ApFormItemTextProps } from 'src/ap-form/items/interface';
|
|
5
|
+
import { CSSProperties } from 'vue';
|
|
6
|
+
|
|
7
|
+
type ValueEnmuTyType = {
|
|
8
|
+
text: string;
|
|
9
|
+
status?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* ApTable默认支持的值类型(将会用于表单生成和默认值格式化)
|
|
15
|
+
*/
|
|
16
|
+
export type ApTableFormFields = {
|
|
17
|
+
/** 日期选择器 */
|
|
18
|
+
date: ApFormItemDateProps;
|
|
19
|
+
/** 日期范围选择器 */
|
|
20
|
+
dateRange: ApFormItemDateRangeProps;
|
|
21
|
+
/** 数字输入框 */
|
|
22
|
+
number: ApFormItemNumberProps;
|
|
23
|
+
/** 单选 */
|
|
24
|
+
radio: ApFormItemRadioProps;
|
|
25
|
+
/** 下拉选择 */
|
|
26
|
+
select: ApFormItemSelectProps;
|
|
27
|
+
/** 开关 */
|
|
28
|
+
switch: ApFormItemSwitchProps;
|
|
29
|
+
/** 文本输入 */
|
|
30
|
+
text: ApFormItemTextProps;
|
|
31
|
+
/** 多行文本输入 */
|
|
32
|
+
textArea: ApFormItemTextAreaProps;
|
|
33
|
+
};
|
|
34
|
+
type ValueEnum = Record<string, ValueEnmuTyType>;
|
|
35
|
+
export type ExtraProColumnType<T> = Omit<ColumnType<T>, 'children'> & {
|
|
36
|
+
sorter?: string | boolean | CompareFn<T> | {
|
|
37
|
+
compare?: CompareFn<T>;
|
|
38
|
+
/** Config multiple sorter order priority */
|
|
39
|
+
multiple?: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type ApColumnType<ValueType extends keyof ApTableFormFields = 'text'> = ExtraProColumnType<any> & {
|
|
43
|
+
children?: ApColumnType[];
|
|
44
|
+
/**
|
|
45
|
+
* 表单项所占据的格子数(1-24格)
|
|
46
|
+
*/
|
|
47
|
+
span?: number;
|
|
48
|
+
/**
|
|
49
|
+
* 在title之后展示一个icon并触发tooltip
|
|
50
|
+
*/
|
|
51
|
+
tooltip?: string;
|
|
52
|
+
/**
|
|
53
|
+
* 是否可以复制
|
|
54
|
+
*/
|
|
55
|
+
copyable?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* 是否搜索表单中隐藏
|
|
58
|
+
*/
|
|
59
|
+
hideInSearch?: boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 是否在表格中隐藏
|
|
62
|
+
*/
|
|
63
|
+
hideInTable?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* 值的枚举,会自动转化把值当成 key 来取出要显示的内容(也会作为select的选项)
|
|
66
|
+
*/
|
|
67
|
+
valueEnum?: ValueEnum;
|
|
68
|
+
/**
|
|
69
|
+
* 自定义查询表单渲染
|
|
70
|
+
*/
|
|
71
|
+
customRenderFormItem?: () => any;
|
|
72
|
+
/**
|
|
73
|
+
* 指定值类型(将会用于默认渲染和查询表单生成)
|
|
74
|
+
*/
|
|
75
|
+
valueType?: keyof ApTableFormFields;
|
|
76
|
+
/**
|
|
77
|
+
* 值类型额外配置的参数(用于查询表单渲染)
|
|
78
|
+
*/
|
|
79
|
+
fieldProps?: ApTableFormFields[ValueType];
|
|
80
|
+
};
|
|
81
|
+
export type RequestData<T> = {
|
|
82
|
+
data: T[] | undefined;
|
|
83
|
+
total?: number;
|
|
84
|
+
} & Record<string, any>;
|
|
85
|
+
export type ApTableProps<RecordType = any, ParamsType = any, ValueType extends keyof ApTableFormFields = 'text'> = Omit<TableProps<RecordType>, 'columns' | 'pagination'> & {
|
|
86
|
+
/**
|
|
87
|
+
* 列配置
|
|
88
|
+
*/
|
|
89
|
+
columns?: ApColumnType<ValueType>[];
|
|
90
|
+
/**
|
|
91
|
+
* 是否启用卡片样式
|
|
92
|
+
*/
|
|
93
|
+
card?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* request请求参数,修改后会自动触发更新
|
|
96
|
+
*/
|
|
97
|
+
params?: ParamsType;
|
|
98
|
+
/**
|
|
99
|
+
* 自定义渲染搜索表单
|
|
100
|
+
* @param props
|
|
101
|
+
* @param defaultDom
|
|
102
|
+
* @returns
|
|
103
|
+
*/
|
|
104
|
+
searchFormRender?: (props: ApTableProps<RecordType, ParamsType, ValueType>, defaultDom: any) => any;
|
|
105
|
+
/**
|
|
106
|
+
* 请求获取dataSource
|
|
107
|
+
* @param params
|
|
108
|
+
* @param sort
|
|
109
|
+
* @param filter
|
|
110
|
+
* @returns
|
|
111
|
+
*/
|
|
112
|
+
request?: (params: ParamsType & {
|
|
113
|
+
pageSize?: number;
|
|
114
|
+
current?: number;
|
|
115
|
+
}, sort: Record<string, SortOrder>, filter: Record<string, (string | number)[] | null>) => Promise<Partial<RequestData<RecordType>>>;
|
|
116
|
+
/**
|
|
117
|
+
* 数据加载完成后触发
|
|
118
|
+
* @param data
|
|
119
|
+
* @returns
|
|
120
|
+
*/
|
|
121
|
+
onLoad?: (data: RecordType[]) => void;
|
|
122
|
+
/**
|
|
123
|
+
* 表格的默认数据源
|
|
124
|
+
*/
|
|
125
|
+
defaultData?: RecordType[];
|
|
126
|
+
/**
|
|
127
|
+
* 表格loading状态变更后触发
|
|
128
|
+
* @param loading
|
|
129
|
+
* @returns
|
|
130
|
+
*/
|
|
131
|
+
onLoadingChange?: (loading: boolean) => void;
|
|
132
|
+
/**
|
|
133
|
+
* 查询表单配置,设置为false表示不渲染查询表单
|
|
134
|
+
*/
|
|
135
|
+
searchForm?: false | ApFormSearchFormProps;
|
|
136
|
+
/**
|
|
137
|
+
* 查询表单提交之前,一般用于自定义对查询数据进行变更
|
|
138
|
+
* @param params
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
beforeSearchSubmit?: (params: Partial<ParamsType>) => any;
|
|
142
|
+
/**
|
|
143
|
+
* 是否显示分页器(特定的分页器)
|
|
144
|
+
*/
|
|
145
|
+
pagination?: boolean;
|
|
146
|
+
/**
|
|
147
|
+
* 自定义查询表单容器样式
|
|
148
|
+
*/
|
|
149
|
+
searchFormWrapperStyle?: CSSProperties;
|
|
150
|
+
/**
|
|
151
|
+
* 自定义表格样式
|
|
152
|
+
*/
|
|
153
|
+
tableWrapperStyle?: CSSProperties;
|
|
154
|
+
};
|
|
155
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
.aplus-ap-table-wrapper {
|
|
2
|
+
padding: 16px;
|
|
3
|
+
background-color: #fff;
|
|
4
|
+
}
|
|
5
|
+
.aplus-ap-table__search-wrapper {
|
|
6
|
+
padding: 16px;
|
|
7
|
+
padding-bottom: 0;
|
|
8
|
+
background-color: #fff;
|
|
9
|
+
margin-bottom: 16px;
|
|
10
|
+
}
|
|
11
|
+
.aplus-ap-table__form-wrapper {
|
|
12
|
+
padding: 16px;
|
|
13
|
+
background-color: #fff;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type FieldValueType = 'multiple' | 'multipleNumber' | 'dayjs' | 'dayjsRange' | 'dayjsDayRange' | 'number' | 'boolean' | 'object';
|
|
2
|
+
export declare const formatParamsValueType: (type: FieldValueType | Record<string, FieldValueType>, value: any, cb: (t: FieldValueType, value: any) => any) => any;
|
|
3
|
+
/**
|
|
4
|
+
* 解析数值
|
|
5
|
+
* @param t 值类型
|
|
6
|
+
* @param value 值
|
|
7
|
+
*/
|
|
8
|
+
export declare const parseFieldValue: (t: FieldValueType, value: any) => any;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { default as ModalButton } from './modal-button.vue';
|
|
2
|
+
import { default as PopConfirmButton } from './pop-confirm-button.vue';
|
|
3
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
4
|
+
export * from './interface';
|
|
5
|
+
export { ModalButton, PopConfirmButton };
|
|
6
|
+
export declare const BaseButton: {
|
|
7
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
8
|
+
text: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
};
|
|
11
|
+
color: {
|
|
12
|
+
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
13
|
+
};
|
|
14
|
+
disabled: {
|
|
15
|
+
type: PropType<boolean>;
|
|
16
|
+
};
|
|
17
|
+
onClick: {
|
|
18
|
+
type: PropType<() => void>;
|
|
19
|
+
};
|
|
20
|
+
loading: {
|
|
21
|
+
type: PropType<boolean>;
|
|
22
|
+
};
|
|
23
|
+
preIcon: {
|
|
24
|
+
type: PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
postIcon: {
|
|
27
|
+
type: PropType<string>;
|
|
28
|
+
};
|
|
29
|
+
iconSize: {
|
|
30
|
+
type: PropType<number>;
|
|
31
|
+
default: number;
|
|
32
|
+
};
|
|
33
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
34
|
+
text: {
|
|
35
|
+
type: PropType<string>;
|
|
36
|
+
};
|
|
37
|
+
color: {
|
|
38
|
+
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
39
|
+
};
|
|
40
|
+
disabled: {
|
|
41
|
+
type: PropType<boolean>;
|
|
42
|
+
};
|
|
43
|
+
onClick: {
|
|
44
|
+
type: PropType<() => void>;
|
|
45
|
+
};
|
|
46
|
+
loading: {
|
|
47
|
+
type: PropType<boolean>;
|
|
48
|
+
};
|
|
49
|
+
preIcon: {
|
|
50
|
+
type: PropType<string>;
|
|
51
|
+
};
|
|
52
|
+
postIcon: {
|
|
53
|
+
type: PropType<string>;
|
|
54
|
+
};
|
|
55
|
+
iconSize: {
|
|
56
|
+
type: PropType<number>;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
59
|
+
}>>, {
|
|
60
|
+
iconSize: number;
|
|
61
|
+
}, true, {}, {}, {
|
|
62
|
+
P: {};
|
|
63
|
+
B: {};
|
|
64
|
+
D: {};
|
|
65
|
+
C: {};
|
|
66
|
+
M: {};
|
|
67
|
+
Defaults: {};
|
|
68
|
+
}, Readonly< ExtractPropTypes<{
|
|
69
|
+
text: {
|
|
70
|
+
type: PropType<string>;
|
|
71
|
+
};
|
|
72
|
+
color: {
|
|
73
|
+
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
74
|
+
};
|
|
75
|
+
disabled: {
|
|
76
|
+
type: PropType<boolean>;
|
|
77
|
+
};
|
|
78
|
+
onClick: {
|
|
79
|
+
type: PropType<() => void>;
|
|
80
|
+
};
|
|
81
|
+
loading: {
|
|
82
|
+
type: PropType<boolean>;
|
|
83
|
+
};
|
|
84
|
+
preIcon: {
|
|
85
|
+
type: PropType<string>;
|
|
86
|
+
};
|
|
87
|
+
postIcon: {
|
|
88
|
+
type: PropType<string>;
|
|
89
|
+
};
|
|
90
|
+
iconSize: {
|
|
91
|
+
type: PropType<number>;
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
}>>, {}, {}, {}, {}, {
|
|
95
|
+
iconSize: number;
|
|
96
|
+
}>;
|
|
97
|
+
__isFragment?: undefined;
|
|
98
|
+
__isTeleport?: undefined;
|
|
99
|
+
__isSuspense?: undefined;
|
|
100
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
101
|
+
text: {
|
|
102
|
+
type: PropType<string>;
|
|
103
|
+
};
|
|
104
|
+
color: {
|
|
105
|
+
type: PropType<"primary" | "success" | "error" | "warning">;
|
|
106
|
+
};
|
|
107
|
+
disabled: {
|
|
108
|
+
type: PropType<boolean>;
|
|
109
|
+
};
|
|
110
|
+
onClick: {
|
|
111
|
+
type: PropType<() => void>;
|
|
112
|
+
};
|
|
113
|
+
loading: {
|
|
114
|
+
type: PropType<boolean>;
|
|
115
|
+
};
|
|
116
|
+
preIcon: {
|
|
117
|
+
type: PropType<string>;
|
|
118
|
+
};
|
|
119
|
+
postIcon: {
|
|
120
|
+
type: PropType<string>;
|
|
121
|
+
};
|
|
122
|
+
iconSize: {
|
|
123
|
+
type: PropType<number>;
|
|
124
|
+
default: number;
|
|
125
|
+
};
|
|
126
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
127
|
+
iconSize: number;
|
|
128
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
129
|
+
$slots: {
|
|
130
|
+
icon?(_: {}): any;
|
|
131
|
+
default?(_: any): any;
|
|
132
|
+
};
|
|
133
|
+
}) & Plugin<any[]> & (new (...args: any[]) => {
|
|
134
|
+
$props: {
|
|
135
|
+
onClick?: (() => void) | undefined;
|
|
136
|
+
};
|
|
137
|
+
});
|
|
@@ -44,9 +44,9 @@ declare const _default: DefineComponent<{
|
|
|
44
44
|
* Help text list
|
|
45
45
|
*/
|
|
46
46
|
text: {
|
|
47
|
-
type: PropType<
|
|
47
|
+
type: PropType<VNode< RendererNode, RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
|
-
}> | VNodeChild>;
|
|
49
|
+
}> | string[] | VNodeChild>;
|
|
50
50
|
};
|
|
51
51
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
52
52
|
/**
|
|
@@ -91,9 +91,9 @@ declare const _default: DefineComponent<{
|
|
|
91
91
|
* Help text list
|
|
92
92
|
*/
|
|
93
93
|
text: {
|
|
94
|
-
type: PropType<
|
|
94
|
+
type: PropType<VNode< RendererNode, RendererElement, {
|
|
95
95
|
[key: string]: any;
|
|
96
|
-
}> | VNodeChild>;
|
|
96
|
+
}> | string[] | VNodeChild>;
|
|
97
97
|
};
|
|
98
98
|
}>>, {
|
|
99
99
|
color: string;
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, VNodeChild, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
+
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
3
|
+
export * from './interface';
|
|
4
|
+
export declare const BasicHelp: {
|
|
5
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
6
|
+
maxWidth: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
showIndex: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
};
|
|
13
|
+
color: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
fontSize: {
|
|
18
|
+
type: StringConstructor;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
placement: {
|
|
22
|
+
type: PropType<TooltipPlacement>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
text: {
|
|
26
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> | string[] | VNodeChild>;
|
|
29
|
+
};
|
|
30
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
31
|
+
maxWidth: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
showIndex: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
};
|
|
38
|
+
color: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
fontSize: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
placement: {
|
|
47
|
+
type: PropType<TooltipPlacement>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
text: {
|
|
51
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}> | string[] | VNodeChild>;
|
|
54
|
+
};
|
|
55
|
+
}>>, {
|
|
56
|
+
color: string;
|
|
57
|
+
placement: TooltipPlacement;
|
|
58
|
+
fontSize: string;
|
|
59
|
+
maxWidth: string;
|
|
60
|
+
showIndex: boolean;
|
|
61
|
+
}, true, {}, {}, {
|
|
62
|
+
P: {};
|
|
63
|
+
B: {};
|
|
64
|
+
D: {};
|
|
65
|
+
C: {};
|
|
66
|
+
M: {};
|
|
67
|
+
Defaults: {};
|
|
68
|
+
}, Readonly< ExtractPropTypes<{
|
|
69
|
+
maxWidth: {
|
|
70
|
+
type: StringConstructor;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
showIndex: {
|
|
74
|
+
type: BooleanConstructor;
|
|
75
|
+
};
|
|
76
|
+
color: {
|
|
77
|
+
type: StringConstructor;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
fontSize: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
placement: {
|
|
85
|
+
type: PropType<TooltipPlacement>;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
text: {
|
|
89
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
}> | string[] | VNodeChild>;
|
|
92
|
+
};
|
|
93
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
94
|
+
color: string;
|
|
95
|
+
placement: TooltipPlacement;
|
|
96
|
+
fontSize: string;
|
|
97
|
+
maxWidth: string;
|
|
98
|
+
showIndex: boolean;
|
|
99
|
+
}>;
|
|
100
|
+
__isFragment?: undefined;
|
|
101
|
+
__isTeleport?: undefined;
|
|
102
|
+
__isSuspense?: undefined;
|
|
103
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
104
|
+
maxWidth: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
showIndex: {
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
};
|
|
111
|
+
color: {
|
|
112
|
+
type: StringConstructor;
|
|
113
|
+
default: string;
|
|
114
|
+
};
|
|
115
|
+
fontSize: {
|
|
116
|
+
type: StringConstructor;
|
|
117
|
+
default: string;
|
|
118
|
+
};
|
|
119
|
+
placement: {
|
|
120
|
+
type: PropType<TooltipPlacement>;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
text: {
|
|
124
|
+
type: PropType< VNode<RendererNode, RendererElement, {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
}> | string[] | VNodeChild>;
|
|
127
|
+
};
|
|
128
|
+
}>>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
129
|
+
color: string;
|
|
130
|
+
placement: TooltipPlacement;
|
|
131
|
+
fontSize: string;
|
|
132
|
+
maxWidth: string;
|
|
133
|
+
showIndex: boolean;
|
|
134
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
135
|
+
$props: {
|
|
136
|
+
onClick?: (() => void) | undefined;
|
|
137
|
+
};
|
|
138
|
+
});
|
|
139
|
+
export declare const BasicTitle: {
|
|
140
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
141
|
+
span: {
|
|
142
|
+
type: PropType<boolean>;
|
|
143
|
+
};
|
|
144
|
+
normal: {
|
|
145
|
+
type: PropType<boolean>;
|
|
146
|
+
};
|
|
147
|
+
helpMessage: {
|
|
148
|
+
type: PropType<string | string[]>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
152
|
+
span: {
|
|
153
|
+
type: PropType<boolean>;
|
|
154
|
+
};
|
|
155
|
+
normal: {
|
|
156
|
+
type: PropType<boolean>;
|
|
157
|
+
};
|
|
158
|
+
helpMessage: {
|
|
159
|
+
type: PropType<string | string[]>;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
}>>, {
|
|
163
|
+
helpMessage: string | string[];
|
|
164
|
+
}, true, {}, {}, {
|
|
165
|
+
P: {};
|
|
166
|
+
B: {};
|
|
167
|
+
D: {};
|
|
168
|
+
C: {};
|
|
169
|
+
M: {};
|
|
170
|
+
Defaults: {};
|
|
171
|
+
}, Readonly< ExtractPropTypes<{
|
|
172
|
+
span: {
|
|
173
|
+
type: PropType<boolean>;
|
|
174
|
+
};
|
|
175
|
+
normal: {
|
|
176
|
+
type: PropType<boolean>;
|
|
177
|
+
};
|
|
178
|
+
helpMessage: {
|
|
179
|
+
type: PropType<string | string[]>;
|
|
180
|
+
default: string;
|
|
181
|
+
};
|
|
182
|
+
}>>, {}, {}, {}, {}, {
|
|
183
|
+
helpMessage: string | string[];
|
|
184
|
+
}>;
|
|
185
|
+
__isFragment?: undefined;
|
|
186
|
+
__isTeleport?: undefined;
|
|
187
|
+
__isSuspense?: undefined;
|
|
188
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
189
|
+
span: {
|
|
190
|
+
type: PropType<boolean>;
|
|
191
|
+
};
|
|
192
|
+
normal: {
|
|
193
|
+
type: PropType<boolean>;
|
|
194
|
+
};
|
|
195
|
+
helpMessage: {
|
|
196
|
+
type: PropType<string | string[]>;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
200
|
+
helpMessage: string | string[];
|
|
201
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
202
|
+
$slots: {
|
|
203
|
+
default?(_: {}): any;
|
|
204
|
+
};
|
|
205
|
+
}) & Plugin<any[]> & (new (...args: any[]) => {
|
|
206
|
+
$props: {
|
|
207
|
+
onClick?: (() => void) | undefined;
|
|
208
|
+
};
|
|
209
|
+
});
|
|
210
|
+
export declare const BasicArrow: {
|
|
211
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
212
|
+
expand: {
|
|
213
|
+
type: PropType<boolean>;
|
|
214
|
+
};
|
|
215
|
+
up: {
|
|
216
|
+
type: PropType<boolean>;
|
|
217
|
+
};
|
|
218
|
+
down: {
|
|
219
|
+
type: PropType<boolean>;
|
|
220
|
+
};
|
|
221
|
+
inset: {
|
|
222
|
+
type: PropType<boolean>;
|
|
223
|
+
};
|
|
224
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
225
|
+
expand: {
|
|
226
|
+
type: PropType<boolean>;
|
|
227
|
+
};
|
|
228
|
+
up: {
|
|
229
|
+
type: PropType<boolean>;
|
|
230
|
+
};
|
|
231
|
+
down: {
|
|
232
|
+
type: PropType<boolean>;
|
|
233
|
+
};
|
|
234
|
+
inset: {
|
|
235
|
+
type: PropType<boolean>;
|
|
236
|
+
};
|
|
237
|
+
}>>, {}, true, {}, {}, {
|
|
238
|
+
P: {};
|
|
239
|
+
B: {};
|
|
240
|
+
D: {};
|
|
241
|
+
C: {};
|
|
242
|
+
M: {};
|
|
243
|
+
Defaults: {};
|
|
244
|
+
}, Readonly< ExtractPropTypes<{
|
|
245
|
+
expand: {
|
|
246
|
+
type: PropType<boolean>;
|
|
247
|
+
};
|
|
248
|
+
up: {
|
|
249
|
+
type: PropType<boolean>;
|
|
250
|
+
};
|
|
251
|
+
down: {
|
|
252
|
+
type: PropType<boolean>;
|
|
253
|
+
};
|
|
254
|
+
inset: {
|
|
255
|
+
type: PropType<boolean>;
|
|
256
|
+
};
|
|
257
|
+
}>>, {}, {}, {}, {}, {}>;
|
|
258
|
+
__isFragment?: undefined;
|
|
259
|
+
__isTeleport?: undefined;
|
|
260
|
+
__isSuspense?: undefined;
|
|
261
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
262
|
+
expand: {
|
|
263
|
+
type: PropType<boolean>;
|
|
264
|
+
};
|
|
265
|
+
up: {
|
|
266
|
+
type: PropType<boolean>;
|
|
267
|
+
};
|
|
268
|
+
down: {
|
|
269
|
+
type: PropType<boolean>;
|
|
270
|
+
};
|
|
271
|
+
inset: {
|
|
272
|
+
type: PropType<boolean>;
|
|
273
|
+
};
|
|
274
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
275
|
+
$props: {
|
|
276
|
+
onClick?: (() => void) | undefined;
|
|
277
|
+
};
|
|
278
|
+
});
|