@pungfe/element 0.0.1-alpha.18 → 0.0.1-alpha.21
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/LICENSE +21 -21
- package/README.md +20 -1
- package/dist/cjs/Button-Dkqk8lXH.cjs +2 -0
- package/dist/cjs/Button-Dkqk8lXH.cjs.map +1 -0
- package/dist/cjs/Button.cjs +1 -0
- package/dist/cjs/ButtonPopconfirm.cjs +1 -0
- package/dist/cjs/ConfigProvider-lII820wO.cjs +2 -0
- package/dist/cjs/ConfigProvider-lII820wO.cjs.map +1 -0
- package/dist/cjs/ConfigProvider.cjs +1 -0
- package/dist/cjs/DatePicker-DvW11A5y.cjs +2 -0
- package/dist/cjs/DatePicker-DvW11A5y.cjs.map +1 -0
- package/dist/cjs/DatePicker.cjs +1 -0
- package/dist/cjs/Dialog-C3uo50Lk.cjs +2 -0
- package/dist/cjs/Dialog-C3uo50Lk.cjs.map +1 -0
- package/dist/cjs/Dialog.cjs +1 -0
- package/dist/cjs/Form-269B6UNo.cjs +2 -0
- package/dist/cjs/Form-269B6UNo.cjs.map +1 -0
- package/dist/cjs/Form.cjs +1 -0
- package/dist/cjs/FormItem-Dr0G-5Q4.cjs +2 -0
- package/dist/cjs/FormItem-Dr0G-5Q4.cjs.map +1 -0
- package/dist/cjs/FormItem.cjs +1 -0
- package/dist/cjs/Input-DuZALrON.cjs +2 -0
- package/dist/cjs/Input-DuZALrON.cjs.map +1 -0
- package/dist/cjs/Input.cjs +1 -0
- package/dist/cjs/InputNumber-DPd4h9mJ.cjs +2 -0
- package/dist/cjs/InputNumber-DPd4h9mJ.cjs.map +1 -0
- package/dist/cjs/InputNumber.cjs +1 -0
- package/dist/cjs/Pagination-C6JSioze.cjs +2 -0
- package/dist/cjs/Pagination-C6JSioze.cjs.map +1 -0
- package/dist/cjs/Pagination.cjs +1 -0
- package/dist/cjs/Select-C-b-Biw3.cjs +2 -0
- package/dist/cjs/Select-C-b-Biw3.cjs.map +1 -0
- package/dist/cjs/Select.cjs +1 -0
- package/dist/cjs/TabPane-6xH7oG0B.cjs +2 -0
- package/dist/cjs/TabPane-6xH7oG0B.cjs.map +1 -0
- package/dist/cjs/TabPane.cjs +1 -0
- package/dist/cjs/Table-DpQglHP2.cjs +2 -0
- package/dist/cjs/Table-DpQglHP2.cjs.map +1 -0
- package/dist/cjs/Table.cjs +1 -0
- package/dist/cjs/Tabs-BjfrK6HM.cjs +2 -0
- package/dist/cjs/Tabs-BjfrK6HM.cjs.map +1 -0
- package/dist/cjs/Tabs.cjs +1 -0
- package/dist/cjs/Upload-CXRSAOCS.cjs +2 -0
- package/dist/cjs/Upload-CXRSAOCS.cjs.map +1 -0
- package/dist/cjs/Upload.cjs +1 -0
- package/dist/cjs/components-Xete52W-.cjs +2 -0
- package/dist/cjs/components-Xete52W-.cjs.map +1 -0
- package/dist/cjs/constants-C1UtNKNR.cjs +2 -0
- package/dist/cjs/constants-C1UtNKNR.cjs.map +1 -0
- package/dist/cjs/dist-jkU1Ff2x.cjs +2 -0
- package/dist/cjs/dist-jkU1Ff2x.cjs.map +1 -0
- package/dist/cjs/en-B0d-nlXX.cjs +2 -0
- package/dist/cjs/en-B0d-nlXX.cjs.map +1 -0
- package/dist/cjs/en.cjs +1 -0
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/cjs/index2.cjs +1 -0
- package/dist/cjs/resolver.cjs +2 -0
- package/dist/cjs/resolver.cjs.map +1 -0
- package/dist/cjs/zh-cn-DsaoBOfv.cjs +2 -0
- package/dist/cjs/zh-cn-DsaoBOfv.cjs.map +1 -0
- package/dist/cjs/zh-cn.cjs +1 -0
- package/dist/es/Button-BgxatYKq.js +37 -0
- package/dist/es/Button-BgxatYKq.js.map +1 -0
- package/dist/es/Button.js +2 -0
- package/dist/es/ButtonPopconfirm.js +18 -0
- package/dist/es/ConfigProvider-BlRc251T.js +16 -0
- package/dist/es/ConfigProvider-BlRc251T.js.map +1 -0
- package/dist/es/ConfigProvider.js +4 -0
- package/dist/es/DatePicker-BDjnMA3B.js +69 -0
- package/dist/es/DatePicker-BDjnMA3B.js.map +1 -0
- package/dist/es/DatePicker.js +2 -0
- package/dist/es/Dialog-BahbAebJ.js +54 -0
- package/dist/es/Dialog-BahbAebJ.js.map +1 -0
- package/dist/es/Dialog.js +2 -0
- package/dist/es/Form-wBMmnwZj.js +44 -0
- package/dist/es/Form-wBMmnwZj.js.map +1 -0
- package/dist/es/Form.js +2 -0
- package/dist/es/FormItem--C1bP0wY.js +37 -0
- package/dist/es/FormItem--C1bP0wY.js.map +1 -0
- package/dist/es/FormItem.js +2 -0
- package/dist/es/Input-JT0g3gkf.js +86 -0
- package/dist/es/Input-JT0g3gkf.js.map +1 -0
- package/dist/es/Input.js +2 -0
- package/dist/es/InputNumber-CFTLdulD.js +70 -0
- package/dist/es/InputNumber-CFTLdulD.js.map +1 -0
- package/dist/es/InputNumber.js +2 -0
- package/dist/es/Pagination-CGeelxQR.js +44 -0
- package/dist/es/Pagination-CGeelxQR.js.map +1 -0
- package/dist/es/Pagination.js +2 -0
- package/dist/es/Select-BKdDBeJC.js +110 -0
- package/dist/es/Select-BKdDBeJC.js.map +1 -0
- package/dist/es/Select.js +2 -0
- package/dist/es/TabPane-CzInYf67.js +34 -0
- package/dist/es/TabPane-CzInYf67.js.map +1 -0
- package/dist/es/TabPane.js +2 -0
- package/dist/es/Table-Cm_Dki-c.js +104 -0
- package/dist/es/Table-Cm_Dki-c.js.map +1 -0
- package/dist/es/Table.js +2 -0
- package/dist/es/Tabs-CKIkuQ81.js +40 -0
- package/dist/es/Tabs-CKIkuQ81.js.map +1 -0
- package/dist/es/Tabs.js +2 -0
- package/dist/es/Upload-DCnEcRkL.js +52 -0
- package/dist/es/Upload-DCnEcRkL.js.map +1 -0
- package/dist/es/Upload.js +2 -0
- package/dist/es/components-DKoUIsFy.js +91 -0
- package/dist/es/components-DKoUIsFy.js.map +1 -0
- package/dist/es/constants-TVJ7auaC.js +6 -0
- package/dist/es/constants-TVJ7auaC.js.map +1 -0
- package/dist/es/dist-BPi3_vgC.js +30 -0
- package/dist/es/dist-BPi3_vgC.js.map +1 -0
- package/dist/es/en-BAY1fB2Q.js +197 -0
- package/dist/es/en-BAY1fB2Q.js.map +1 -0
- package/dist/es/en.js +2 -0
- package/dist/es/index.js +28 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/index2.js +3 -0
- package/dist/es/resolver.js +39 -0
- package/dist/es/resolver.js.map +1 -0
- package/dist/es/zh-cn-UaM4b5St.js +197 -0
- package/dist/es/zh-cn-UaM4b5St.js.map +1 -0
- package/dist/es/zh-cn.js +2 -0
- package/dist/{basic/XButton.vue.d.ts → types/components/Button.vue.d.ts} +10 -5
- package/dist/{basic/XReconfirm.vue.d.ts → types/components/ButtonPopconfirm.vue.d.ts} +4 -3
- package/dist/types/components/ConfigProvider.vue.d.ts +21 -0
- package/dist/{basic/XDatePicker.vue.d.ts → types/components/DatePicker.vue.d.ts} +13 -5
- package/dist/{basic/XDialog.vue.d.ts → types/components/Dialog.vue.d.ts} +17 -9
- package/dist/types/components/Form.vue.d.ts +29 -0
- package/dist/types/components/FormItem.vue.d.ts +33 -0
- package/dist/types/components/Input.vue.d.ts +44 -0
- package/dist/types/components/InputNumber.vue.d.ts +48 -0
- package/dist/types/components/Pagination.vue.d.ts +40 -0
- package/dist/types/components/Select.vue.d.ts +45 -0
- package/dist/types/components/TabPane.vue.d.ts +32 -0
- package/dist/types/components/Table.vue.d.ts +89 -0
- package/dist/{basic/XTabs.vue.d.ts → types/components/Tabs.vue.d.ts} +4 -12
- package/dist/types/components/Upload.vue.d.ts +40 -0
- package/dist/types/components/index.d.ts +50 -0
- package/dist/types/constants/index.d.ts +15 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/install.d.ts +2 -0
- package/dist/types/locales/en.d.ts +2 -0
- package/dist/types/locales/index.d.ts +2 -0
- package/dist/types/locales/zh-cn.d.ts +2 -0
- package/dist/{resolver.d.ts → types/resolver.d.ts} +1 -1
- package/dist/types/src/components/Button.vue.d.ts +31 -0
- package/dist/types/src/components/ButtonPopconfirm.vue.d.ts +27 -0
- package/dist/types/src/components/ConfigProvider.vue.d.ts +21 -0
- package/dist/types/src/components/DatePicker.vue.d.ts +34 -0
- package/dist/types/src/components/Dialog.vue.d.ts +44 -0
- package/dist/{basic/XForm.vue.d.ts → types/src/components/Form.vue.d.ts} +9 -27
- package/dist/types/src/components/FormItem.vue.d.ts +33 -0
- package/dist/types/src/components/Input.vue.d.ts +44 -0
- package/dist/types/src/components/InputNumber.vue.d.ts +48 -0
- package/dist/types/src/components/Pagination.vue.d.ts +40 -0
- package/dist/{basic/XSelect.vue.d.ts → types/src/components/Select.vue.d.ts} +19 -5
- package/dist/types/src/components/TabPane.vue.d.ts +32 -0
- package/dist/types/src/components/Table.vue.d.ts +89 -0
- package/dist/types/src/components/Tabs.vue.d.ts +26 -0
- package/dist/types/src/components/Upload.vue.d.ts +27 -0
- package/dist/types/src/components/index.d.ts +15 -0
- package/dist/types/src/constants/index.d.ts +15 -0
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/locales/en.d.ts +2 -0
- package/dist/types/src/locales/index.d.ts +2 -0
- package/dist/types/src/locales/zh-cn.d.ts +2 -0
- package/dist/types/src/resolver.d.ts +3 -0
- package/dist/types/test/table.test.d.ts +1 -0
- package/package.json +32 -26
- package/dist/basic/XCascader.vue.d.ts +0 -26
- package/dist/basic/XCheckbox.vue.d.ts +0 -28
- package/dist/basic/XColorPicker.vue.d.ts +0 -21
- package/dist/basic/XDivider.vue.d.ts +0 -20
- package/dist/basic/XImage.vue.d.ts +0 -5
- package/dist/basic/XInput.vue.d.ts +0 -30
- package/dist/basic/XInputNumber.vue.d.ts +0 -38
- package/dist/basic/XPagination.vue.d.ts +0 -21
- package/dist/basic/XRate.vue.d.ts +0 -20
- package/dist/basic/XScrollbar.vue.d.ts +0 -553
- package/dist/basic/XSpace.vue.d.ts +0 -20
- package/dist/basic/XTable.vue.d.ts +0 -57
- package/dist/basic/XTag.vue.d.ts +0 -28
- package/dist/basic/XText.vue.d.ts +0 -23
- package/dist/basic/XUpload.vue.d.ts +0 -41
- package/dist/components.d.ts +0 -43
- package/dist/constants.d.ts +0 -12
- package/dist/index.d.ts +0 -7
- package/dist/index.mjs +0 -1297
- package/dist/resolver.mjs +0 -42
- package/dist/vendor-pRyQDb6F.js +0 -102
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PaginationProps } from 'element-plus';
|
|
2
|
+
export interface XPaginationProps {
|
|
3
|
+
pageSizes?: PaginationProps['pageSizes'];
|
|
4
|
+
background?: PaginationProps['background'];
|
|
5
|
+
size?: PaginationProps['size'];
|
|
6
|
+
layout?: PaginationProps['layout'];
|
|
7
|
+
total?: PaginationProps['total'];
|
|
8
|
+
}
|
|
9
|
+
type __VLS_Props = XPaginationProps;
|
|
10
|
+
type __VLS_PublicProps = {
|
|
11
|
+
'currentPage'?: number;
|
|
12
|
+
'pageSize'?: number;
|
|
13
|
+
} & __VLS_Props;
|
|
14
|
+
declare function __VLS_template(): {
|
|
15
|
+
attrs: Partial<{}>;
|
|
16
|
+
slots: {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
};
|
|
19
|
+
refs: {};
|
|
20
|
+
rootEl: any;
|
|
21
|
+
};
|
|
22
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
sizeChange: (size: number) => any;
|
|
25
|
+
currentChange: (current: number) => any;
|
|
26
|
+
"update:currentPage": (value: number) => any;
|
|
27
|
+
"update:pageSize": (value: number) => any;
|
|
28
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
29
|
+
onSizeChange?: ((size: number) => any) | undefined;
|
|
30
|
+
onCurrentChange?: ((current: number) => any) | undefined;
|
|
31
|
+
"onUpdate:currentPage"?: ((value: number) => any) | undefined;
|
|
32
|
+
"onUpdate:pageSize"?: ((value: number) => any) | undefined;
|
|
33
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
34
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { SelectProps } from 'element-plus';
|
|
2
|
+
export interface XSelectOptionProps<V> {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: number | string;
|
|
5
|
+
value: V;
|
|
6
|
+
}
|
|
7
|
+
export interface XSelectProps<D, V> {
|
|
8
|
+
collapseTagsTooltip?: SelectProps['collapseTagsTooltip'];
|
|
9
|
+
clearable?: SelectProps['clearable'];
|
|
10
|
+
allowCreate?: SelectProps['allowCreate'];
|
|
11
|
+
collapseTags?: SelectProps['collapseTags'];
|
|
12
|
+
data?: D[];
|
|
13
|
+
disabled?: SelectProps['disabled'];
|
|
14
|
+
factory: (option: D) => XSelectOptionProps<V>;
|
|
15
|
+
filterable?: SelectProps['filterable'];
|
|
16
|
+
identify?: (value: V) => number | string;
|
|
17
|
+
loading?: SelectProps['loading'];
|
|
18
|
+
multiple?: SelectProps['multiple'];
|
|
19
|
+
remote?: SelectProps['remote'];
|
|
20
|
+
remoteMethod?: (query: string) => void;
|
|
21
|
+
size?: SelectProps['size'];
|
|
22
|
+
supplement?: (lacks: V[]) => D[] | PromiseLike<D[]>;
|
|
23
|
+
placeholder?: SelectProps['placeholder'];
|
|
24
|
+
noDataText?: SelectProps['noDataText'];
|
|
25
|
+
}
|
|
26
|
+
declare const _default: <D, V, MV extends V | V[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
27
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
28
|
+
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
29
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
30
|
+
readonly onFocus?: (() => any) | undefined;
|
|
31
|
+
readonly onChange?: ((value: V) => any) | undefined;
|
|
32
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onChange" | "onUpdate:modelValue"> & ({
|
|
33
|
+
modelValue?: MV;
|
|
34
|
+
} & XSelectProps<D, V>) & Partial<{}>> & import('vue').PublicProps;
|
|
35
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
36
|
+
attrs: any;
|
|
37
|
+
slots: {};
|
|
38
|
+
emit: (((evt: "blur", e: FocusEvent) => void) & ((evt: "focus") => void) & ((evt: "change", value: V) => void)) & ((evt: "update:modelValue", value: MV) => void);
|
|
39
|
+
}>) => import('vue').VNode & {
|
|
40
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
|
+
};
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_PrettifyLocal<T> = {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} & {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TabPaneProps } from 'element-plus';
|
|
2
|
+
export interface XTabPaneConfig {
|
|
3
|
+
label?: string;
|
|
4
|
+
name?: number | string;
|
|
5
|
+
}
|
|
6
|
+
export interface XTabPaneProps {
|
|
7
|
+
closable?: TabPaneProps['closable'];
|
|
8
|
+
disabled?: TabPaneProps['disabled'];
|
|
9
|
+
label?: TabPaneProps['label'];
|
|
10
|
+
lazy?: TabPaneProps['lazy'];
|
|
11
|
+
name?: TabPaneProps['name'];
|
|
12
|
+
}
|
|
13
|
+
declare function __VLS_template(): {
|
|
14
|
+
attrs: Partial<{}>;
|
|
15
|
+
slots: {
|
|
16
|
+
default?(_: {}): any;
|
|
17
|
+
};
|
|
18
|
+
refs: {};
|
|
19
|
+
rootEl: any;
|
|
20
|
+
};
|
|
21
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
22
|
+
declare const __VLS_component: import('vue').DefineComponent<XTabPaneProps, {
|
|
23
|
+
label: string | undefined;
|
|
24
|
+
name: string | number | undefined;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XTabPaneProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
27
|
+
export default _default;
|
|
28
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
29
|
+
new (): {
|
|
30
|
+
$slots: S;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { TableColumnCtx, TableProps } from 'element-plus';
|
|
2
|
+
import { CSSProperties, VNode, VNodeChild } from 'vue';
|
|
3
|
+
export interface XTableColumnProps<D> {
|
|
4
|
+
content?: (scope: {
|
|
5
|
+
index: number;
|
|
6
|
+
row: D;
|
|
7
|
+
}) => VNodeChild;
|
|
8
|
+
fixed?: 'left' | 'right';
|
|
9
|
+
header?: (scope: {
|
|
10
|
+
column: XTableColumnProps<D>;
|
|
11
|
+
}) => VNodeChild;
|
|
12
|
+
label?: string;
|
|
13
|
+
prop?: string;
|
|
14
|
+
selectable?: (row: D, index: number) => boolean;
|
|
15
|
+
type?: 'index' | 'selection';
|
|
16
|
+
width?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface XTableProps<D> {
|
|
19
|
+
border?: TableProps<any>['border'];
|
|
20
|
+
cellClassName?: ((scope: {
|
|
21
|
+
column: TableColumnCtx;
|
|
22
|
+
columnIndex: number;
|
|
23
|
+
row: D;
|
|
24
|
+
rowIndex: number;
|
|
25
|
+
}) => string) | string;
|
|
26
|
+
cellStyle?: ((scope: {
|
|
27
|
+
column: TableColumnCtx;
|
|
28
|
+
columnIndex: number;
|
|
29
|
+
row: D;
|
|
30
|
+
rowIndex: number;
|
|
31
|
+
}) => CSSProperties) | CSSProperties;
|
|
32
|
+
columns?: XTableColumnProps<D>[];
|
|
33
|
+
data?: D[];
|
|
34
|
+
height?: TableProps<any>['height'];
|
|
35
|
+
emptyText?: TableProps<any>['emptyText'];
|
|
36
|
+
rowClassName?: ((scope: {
|
|
37
|
+
row: D;
|
|
38
|
+
rowIndex: number;
|
|
39
|
+
}) => string) | string;
|
|
40
|
+
rowKey?: (scope: {
|
|
41
|
+
row: D;
|
|
42
|
+
}) => string;
|
|
43
|
+
rowStyle?: ((scope: {
|
|
44
|
+
row: D;
|
|
45
|
+
rowIndex: number;
|
|
46
|
+
}) => CSSProperties) | CSSProperties;
|
|
47
|
+
showOverflowTooltip?: TableProps<any>['showOverflowTooltip'];
|
|
48
|
+
showSummary?: TableProps<any>['showSummary'];
|
|
49
|
+
size?: TableProps<any>['size'];
|
|
50
|
+
spanMethod?: (scope: {
|
|
51
|
+
column: TableColumnCtx;
|
|
52
|
+
columnIndex: number;
|
|
53
|
+
row: D;
|
|
54
|
+
rowIndex: number;
|
|
55
|
+
}) => number[] | undefined | {
|
|
56
|
+
colspan: number;
|
|
57
|
+
rowspan: number;
|
|
58
|
+
};
|
|
59
|
+
summaryMethod?: (scope: {
|
|
60
|
+
columns: TableColumnCtx[];
|
|
61
|
+
data: D[];
|
|
62
|
+
}) => (string | VNode)[];
|
|
63
|
+
}
|
|
64
|
+
declare const _default: <D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
65
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
66
|
+
readonly onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
|
|
67
|
+
readonly onRowClick?: ((row: D) => any) | undefined;
|
|
68
|
+
readonly onRowDbClick?: ((row: D) => any) | undefined;
|
|
69
|
+
readonly onSelectionChange?: ((rows: D[]) => any) | undefined;
|
|
70
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onHeaderDragend" | "onRowClick" | "onRowDbClick" | "onSelectionChange"> & XTableProps<D> & Partial<{}>> & import('vue').PublicProps;
|
|
71
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
72
|
+
clearSelection: () => void | undefined;
|
|
73
|
+
getSelectionRows: () => any[] | undefined;
|
|
74
|
+
scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
|
|
75
|
+
setCurrentRow: (row: D) => void | undefined;
|
|
76
|
+
setScrollLeft: (left: number) => void | undefined;
|
|
77
|
+
setScrollTop: (top: number) => void | undefined;
|
|
78
|
+
toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
|
|
79
|
+
}>): void;
|
|
80
|
+
attrs: any;
|
|
81
|
+
slots: {};
|
|
82
|
+
emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDbClick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void);
|
|
83
|
+
}>) => import('vue').VNode & {
|
|
84
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
85
|
+
};
|
|
86
|
+
export default _default;
|
|
87
|
+
type __VLS_PrettifyLocal<T> = {
|
|
88
|
+
[K in keyof T]: T[K];
|
|
89
|
+
} & {};
|
|
@@ -1,22 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TabsProps } from 'element-plus';
|
|
2
2
|
export interface XTabsProps {
|
|
3
|
-
type?: TabsProps['type'];
|
|
4
|
-
defaultValue?: TabsProps['defaultValue'];
|
|
5
3
|
addable?: TabsProps['addable'];
|
|
6
4
|
editable?: TabsProps['editable'];
|
|
7
5
|
tabPosition?: TabsProps['tabPosition'];
|
|
6
|
+
type?: TabsProps['type'];
|
|
8
7
|
}
|
|
9
|
-
export interface XTabPaneProps extends Partial<TabPaneProps> {
|
|
10
|
-
}
|
|
11
|
-
export interface XTabPaneInstance extends Pick<XTabPaneProps, 'label' | 'name'> {
|
|
12
|
-
}
|
|
13
|
-
export declare const XTabPane: import('vue').DefineSetupFnComponent<XTabPaneProps, {}, {}, XTabPaneProps & {}, import('vue').PublicProps>;
|
|
14
8
|
declare const _default: <V extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
15
9
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
16
10
|
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
17
|
-
|
|
18
|
-
readonly onTabRemove?: ((name: V) => any) | undefined;
|
|
19
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onTabChange" | "onTabRemove"> & ({
|
|
11
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
20
12
|
modelValue?: V;
|
|
21
13
|
} & XTabsProps) & Partial<{}>> & import('vue').PublicProps;
|
|
22
14
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
@@ -24,7 +16,7 @@ declare const _default: <V extends string | number>(__VLS_props: NonNullable<Awa
|
|
|
24
16
|
slots: {
|
|
25
17
|
default?(_: {}): any;
|
|
26
18
|
};
|
|
27
|
-
emit: (
|
|
19
|
+
emit: (evt: "update:modelValue", value: V) => void;
|
|
28
20
|
}>) => import('vue').VNode & {
|
|
29
21
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
22
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { UploadFile, UploadProps } from 'element-plus';
|
|
2
|
+
import { VNodeChild } from 'vue';
|
|
3
|
+
export interface XUploadProps {
|
|
4
|
+
accept?: UploadProps['accept'];
|
|
5
|
+
data?: UploadProps['data'];
|
|
6
|
+
disabled?: UploadProps['disabled'];
|
|
7
|
+
limit?: UploadProps['limit'];
|
|
8
|
+
showFileList?: UploadProps['showFileList'];
|
|
9
|
+
}
|
|
10
|
+
declare const _default: <MV extends string | string[]>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
11
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
12
|
+
readonly "onUpdate:modelValue"?: ((value: MV) => any) | undefined;
|
|
13
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ({
|
|
14
|
+
modelValue?: MV;
|
|
15
|
+
} & XUploadProps) & Partial<{}>> & import('vue').PublicProps;
|
|
16
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
17
|
+
attrs: any;
|
|
18
|
+
slots: Readonly<{
|
|
19
|
+
default: () => VNodeChild;
|
|
20
|
+
file: (scope: {
|
|
21
|
+
file: UploadFile;
|
|
22
|
+
index: number;
|
|
23
|
+
}) => VNodeChild;
|
|
24
|
+
tips: () => VNodeChild;
|
|
25
|
+
}> & {
|
|
26
|
+
default: () => VNodeChild;
|
|
27
|
+
file: (scope: {
|
|
28
|
+
file: UploadFile;
|
|
29
|
+
index: number;
|
|
30
|
+
}) => VNodeChild;
|
|
31
|
+
tips: () => VNodeChild;
|
|
32
|
+
};
|
|
33
|
+
emit: (evt: "update:modelValue", value: MV) => void;
|
|
34
|
+
}>) => import('vue').VNode & {
|
|
35
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
|
+
};
|
|
37
|
+
export default _default;
|
|
38
|
+
type __VLS_PrettifyLocal<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { default as XButton } from './Button.vue';
|
|
2
|
+
import { default as XButtonPopconfirm } from './ButtonPopconfirm.vue';
|
|
3
|
+
import { default as XConfigProvider } from './ConfigProvider.vue';
|
|
4
|
+
import { default as XDatePicker } from './DatePicker.vue';
|
|
5
|
+
import { default as XDialog } from './Dialog.vue';
|
|
6
|
+
import { default as XForm } from './Form.vue';
|
|
7
|
+
import { default as XFormItem } from './FormItem.vue';
|
|
8
|
+
import { default as XInput } from './Input.vue';
|
|
9
|
+
import { default as XInputNumber } from './InputNumber.vue';
|
|
10
|
+
import { default as XPagination } from './Pagination.vue';
|
|
11
|
+
import { default as XSelect } from './Select.vue';
|
|
12
|
+
import { default as XTable } from './Table.vue';
|
|
13
|
+
import { default as XTabPane } from './TabPane.vue';
|
|
14
|
+
import { default as XTabs } from './Tabs.vue';
|
|
15
|
+
import { default as XUpload } from './Upload.vue';
|
|
16
|
+
export { XButton, XButtonPopconfirm, XConfigProvider, XDatePicker, XDialog, XForm, XFormItem, XInput, XInputNumber, XPagination, XSelect, XTable, XTabPane, XTabs, XUpload };
|
|
17
|
+
export * from './Button.vue';
|
|
18
|
+
export * from './ButtonPopconfirm.vue';
|
|
19
|
+
export * from './ConfigProvider.vue';
|
|
20
|
+
export * from './DatePicker.vue';
|
|
21
|
+
export * from './Dialog.vue';
|
|
22
|
+
export * from './Form.vue';
|
|
23
|
+
export * from './FormItem.vue';
|
|
24
|
+
export * from './Input.vue';
|
|
25
|
+
export * from './InputNumber.vue';
|
|
26
|
+
export * from './Pagination.vue';
|
|
27
|
+
export * from './Select.vue';
|
|
28
|
+
export * from './Table.vue';
|
|
29
|
+
export * from './TabPane.vue';
|
|
30
|
+
export * from './Tabs.vue';
|
|
31
|
+
export * from './Upload.vue';
|
|
32
|
+
declare module 'vue' {
|
|
33
|
+
interface GlobalComponents {
|
|
34
|
+
XButton: typeof XButton;
|
|
35
|
+
XButtonPopconfirm: typeof XButtonPopconfirm;
|
|
36
|
+
XConfigProvider: typeof XConfigProvider;
|
|
37
|
+
XDatePicker: typeof XDatePicker;
|
|
38
|
+
XDialog: typeof XDialog;
|
|
39
|
+
XForm: typeof XForm;
|
|
40
|
+
XFormItem: typeof XFormItem;
|
|
41
|
+
XInput: typeof XInput;
|
|
42
|
+
XInputNumber: typeof XInputNumber;
|
|
43
|
+
XPagination: typeof XPagination;
|
|
44
|
+
XSelect: typeof XSelect;
|
|
45
|
+
XTable: typeof XTable;
|
|
46
|
+
XTabPane: typeof XTabPane;
|
|
47
|
+
XTabs: typeof XTabs;
|
|
48
|
+
XUpload: typeof XUpload;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventHook } from '@vueuse/core';
|
|
2
|
+
import { Language } from 'element-plus/es/locale';
|
|
3
|
+
import { InjectionKey, Ref } from 'vue';
|
|
4
|
+
import { XFormItemValidation } from '../components/FormItem.vue';
|
|
5
|
+
export declare const X_LOCALE_CONFIG: InjectionKey<Ref<Language>>;
|
|
6
|
+
export declare const X_ELEMENT_IN_TABLE: InjectionKey<boolean>;
|
|
7
|
+
export declare const X_ELEMENT_IN_TABLE_COLUMN: InjectionKey<boolean>;
|
|
8
|
+
export declare const X_ELEMENT_IN_FORM: InjectionKey<boolean>;
|
|
9
|
+
export declare const X_ELEMENT_IN_FORM_ITEM: InjectionKey<boolean>;
|
|
10
|
+
export declare const X_ELEMENT_IN_TABS: InjectionKey<boolean>;
|
|
11
|
+
export declare const X_ELEMENT_IN_TAB_PANE: InjectionKey<boolean>;
|
|
12
|
+
export declare const X_FORM_VALIDATIONS: InjectionKey<XFormItemValidation[]>;
|
|
13
|
+
export declare const X_FORM_ITEM_VALIDATION: InjectionKey<XFormItemValidation>;
|
|
14
|
+
export declare const X_TAB_PANE_NAME: InjectionKey<string | number | undefined>;
|
|
15
|
+
export declare const X_TABS_MODEL_UPDATE_HOOK: InjectionKey<EventHook>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ButtonProps, ButtonType } from 'element-plus';
|
|
2
|
+
export interface XButtonProps {
|
|
3
|
+
disabled?: ButtonProps['disabled'];
|
|
4
|
+
link?: ButtonProps['link'];
|
|
5
|
+
size?: ButtonProps['size'];
|
|
6
|
+
text?: ButtonProps['text'];
|
|
7
|
+
type?: ButtonProps['type'];
|
|
8
|
+
icon?: ButtonProps['icon'];
|
|
9
|
+
}
|
|
10
|
+
export type XButtonType = ButtonType;
|
|
11
|
+
declare function __VLS_template(): {
|
|
12
|
+
attrs: Partial<{}>;
|
|
13
|
+
slots: {
|
|
14
|
+
default?(_: {}): any;
|
|
15
|
+
};
|
|
16
|
+
refs: {};
|
|
17
|
+
rootEl: any;
|
|
18
|
+
};
|
|
19
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
20
|
+
declare const __VLS_component: import('vue').DefineComponent<XButtonProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
21
|
+
click: (e: MouseEvent) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<XButtonProps> & Readonly<{
|
|
23
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
24
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { XButtonProps } from './Button.vue';
|
|
2
|
+
export interface XButtonPopconfirmProps extends XButtonProps {
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<XButtonPopconfirmProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
|
+
cancel: () => any;
|
|
16
|
+
confirm: () => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<XButtonPopconfirmProps> & Readonly<{
|
|
18
|
+
onCancel?: (() => any) | undefined;
|
|
19
|
+
onConfirm?: (() => any) | undefined;
|
|
20
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
21
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
22
|
+
export default _default;
|
|
23
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
24
|
+
new (): {
|
|
25
|
+
$slots: S;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ConfigProviderProps } from 'element-plus';
|
|
2
|
+
export interface XConfigProviderProps {
|
|
3
|
+
locale?: ConfigProviderProps['locale'];
|
|
4
|
+
}
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: {
|
|
8
|
+
default?(_: {}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<XConfigProviderProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XConfigProviderProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { DatePickerProps } from 'element-plus';
|
|
2
|
+
export interface XDatePickerProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
disabledDate?: DatePickerProps['disabledDate'];
|
|
5
|
+
endPlaceholder?: DatePickerProps['endPlaceholder'];
|
|
6
|
+
placeholder?: DatePickerProps['placeholder'];
|
|
7
|
+
shortcuts?: DatePickerProps['shortcuts'];
|
|
8
|
+
startPlaceholder?: DatePickerProps['startPlaceholder'];
|
|
9
|
+
type?: DatePickerProps['type'];
|
|
10
|
+
valueFormat?: DatePickerProps['valueFormat'];
|
|
11
|
+
}
|
|
12
|
+
declare const _default: <V extends string>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
13
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
14
|
+
readonly "onUpdate:modelValue"?: ((value: V) => any) | undefined;
|
|
15
|
+
readonly "onUpdate:start"?: ((value: V) => any) | undefined;
|
|
16
|
+
readonly "onUpdate:end"?: ((value: V) => any) | undefined;
|
|
17
|
+
readonly onBlur?: ((e: FocusEvent) => any) | undefined;
|
|
18
|
+
readonly onFocus?: ((e: FocusEvent) => any) | undefined;
|
|
19
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onUpdate:modelValue" | "onUpdate:start" | "onUpdate:end"> & ({
|
|
20
|
+
modelValue?: V;
|
|
21
|
+
start?: V;
|
|
22
|
+
end?: V;
|
|
23
|
+
} & XDatePickerProps) & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
25
|
+
attrs: any;
|
|
26
|
+
slots: {};
|
|
27
|
+
emit: (((evt: "blur", e: FocusEvent) => void) & ((evt: "focus", e: FocusEvent) => void)) & (((evt: "update:modelValue", value: V) => void) & ((evt: "update:start", value: V) => void) & ((evt: "update:end", value: V) => void));
|
|
28
|
+
}>) => import('vue').VNode & {
|
|
29
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_PrettifyLocal<T> = {
|
|
33
|
+
[K in keyof T]: T[K];
|
|
34
|
+
} & {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { DialogProps } from 'element-plus';
|
|
2
|
+
import { VNodeChild } from 'vue';
|
|
3
|
+
export interface XDialogProps {
|
|
4
|
+
bodyClass?: DialogProps['bodyClass'];
|
|
5
|
+
width?: DialogProps['width'];
|
|
6
|
+
showClose?: DialogProps['showClose'];
|
|
7
|
+
title?: DialogProps['title'];
|
|
8
|
+
center?: DialogProps['center'];
|
|
9
|
+
alignCenter?: DialogProps['alignCenter'];
|
|
10
|
+
draggable?: DialogProps['draggable'];
|
|
11
|
+
closeOnClickModal?: DialogProps['closeOnClickModal'];
|
|
12
|
+
closeOnPressEscape?: DialogProps['closeOnPressEscape'];
|
|
13
|
+
}
|
|
14
|
+
type __VLS_Props = XDialogProps;
|
|
15
|
+
type __VLS_PublicProps = {
|
|
16
|
+
modelValue?: boolean;
|
|
17
|
+
} & __VLS_Props;
|
|
18
|
+
declare function __VLS_template(): {
|
|
19
|
+
attrs: Partial<{}>;
|
|
20
|
+
slots: Readonly<{
|
|
21
|
+
default?: () => VNodeChild;
|
|
22
|
+
header?: () => VNodeChild;
|
|
23
|
+
footer?: () => VNodeChild;
|
|
24
|
+
}> & {
|
|
25
|
+
default?: () => VNodeChild;
|
|
26
|
+
header?: () => VNodeChild;
|
|
27
|
+
footer?: () => VNodeChild;
|
|
28
|
+
};
|
|
29
|
+
refs: {};
|
|
30
|
+
rootEl: any;
|
|
31
|
+
};
|
|
32
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
33
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
34
|
+
"update:modelValue": (value: boolean) => any;
|
|
35
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
36
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
37
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { VNodeChild } from 'vue';
|
|
2
|
-
export interface
|
|
3
|
-
content?: (
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
export interface XFormItemProps {
|
|
3
|
+
content?: () => VNodeChild;
|
|
4
|
+
label?: string;
|
|
5
|
+
labelPosition?: '' | 'left' | 'right' | 'top';
|
|
6
|
+
labelWidth?: number | string;
|
|
7
|
+
required?: boolean;
|
|
7
8
|
}
|
|
8
9
|
export interface XFormProps<D> {
|
|
9
10
|
content?: (scope: {
|
|
@@ -12,35 +13,16 @@ export interface XFormProps<D> {
|
|
|
12
13
|
data?: D;
|
|
13
14
|
disabled?: boolean;
|
|
14
15
|
inline?: boolean;
|
|
15
|
-
labelWidth?: number | string;
|
|
16
16
|
labelPosition?: 'left' | 'right' | 'top';
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
export interface XFormItemProps {
|
|
20
|
-
content?: () => VNodeChild;
|
|
21
|
-
label?: string;
|
|
22
|
-
labelPosition?: '' | 'left' | 'right' | 'top';
|
|
17
|
+
labelSuffix?: string;
|
|
23
18
|
labelWidth?: number | string;
|
|
24
|
-
required?: boolean;
|
|
25
|
-
tooltip?: {
|
|
26
|
-
type?: 'success' | 'warning';
|
|
27
|
-
content?: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface XFormItemValidation {
|
|
31
|
-
label: string;
|
|
32
|
-
required: boolean;
|
|
33
|
-
clearValidate: () => void;
|
|
34
|
-
validate: () => boolean;
|
|
35
|
-
validator?: () => string | void;
|
|
36
19
|
}
|
|
37
|
-
export declare const XFormItem: import('vue').DefineSetupFnComponent<XFormItemProps, {}, {}, XFormItemProps & {}, import('vue').PublicProps>;
|
|
38
20
|
declare const _default: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
39
21
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormProps<D> & Partial<{}>> & import('vue').PublicProps;
|
|
40
22
|
expose(exposed: import('vue').ShallowUnwrapRef<{
|
|
41
|
-
|
|
23
|
+
clearValidate: () => void;
|
|
24
|
+
data: D | undefined;
|
|
42
25
|
validate: () => boolean;
|
|
43
|
-
resetFields: () => void;
|
|
44
26
|
}>): void;
|
|
45
27
|
attrs: any;
|
|
46
28
|
slots: {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { VNodeChild } from 'vue';
|
|
2
|
+
export interface XFormItemProps {
|
|
3
|
+
content?: () => VNodeChild;
|
|
4
|
+
label?: string;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
validator?: () => string | void;
|
|
7
|
+
}
|
|
8
|
+
export interface XFormItemValidation {
|
|
9
|
+
clearValidate: () => void;
|
|
10
|
+
label?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
validate: () => boolean;
|
|
13
|
+
validator?: () => string | void;
|
|
14
|
+
}
|
|
15
|
+
declare const _default: <D extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
16
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, never> & XFormItemProps & Partial<{}>> & import('vue').PublicProps;
|
|
17
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
18
|
+
attrs: any;
|
|
19
|
+
slots: Readonly<{
|
|
20
|
+
default: () => VNodeChild;
|
|
21
|
+
label: () => VNodeChild;
|
|
22
|
+
}> & {
|
|
23
|
+
default: () => VNodeChild;
|
|
24
|
+
label: () => VNodeChild;
|
|
25
|
+
};
|
|
26
|
+
emit: {};
|
|
27
|
+
}>) => import('vue').VNode & {
|
|
28
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|