@pungfe/element 0.6.2 → 0.6.6

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.
Files changed (62) hide show
  1. package/package.json +28 -10
  2. package/dist/advance-D6B-C4Hp.cjs +0 -1
  3. package/dist/advance-_v6DUKbJ.js +0 -2062
  4. package/dist/advance.cjs +0 -1
  5. package/dist/advance.d.ts +0 -25
  6. package/dist/advance.js +0 -2
  7. package/dist/basic-Cr2tjyfU.cjs +0 -1
  8. package/dist/basic-DxvTjPBA.js +0 -1046
  9. package/dist/basic.cjs +0 -1
  10. package/dist/basic.d.ts +0 -33
  11. package/dist/basic.js +0 -2
  12. package/dist/components/advance/XButtonAsync.vue.d.ts +0 -17
  13. package/dist/components/advance/XButtonConfirm.vue.d.ts +0 -23
  14. package/dist/components/advance/XCascaderRequest.vue.d.ts +0 -60
  15. package/dist/components/advance/XFormFlex.vue.d.ts +0 -23
  16. package/dist/components/advance/XFormRequest.vue.d.ts +0 -58
  17. package/dist/components/advance/XRequest.vue.d.ts +0 -71
  18. package/dist/components/advance/XSelectRequest.vue.d.ts +0 -58
  19. package/dist/components/advance/XTableConfig.vue.d.ts +0 -47
  20. package/dist/components/advance/XTableFlex.vue.d.ts +0 -57
  21. package/dist/components/advance/XTableRequest.vue.d.ts +0 -96
  22. package/dist/components/advance/XTableRequestConfig.vue.d.ts +0 -84
  23. package/dist/components/advance/XUploadOss.vue.d.ts +0 -31
  24. package/dist/components/basic/Button.vue.d.ts +0 -33
  25. package/dist/components/basic/Cascader.vue.d.ts +0 -40
  26. package/dist/components/basic/Checkbox.vue.d.ts +0 -24
  27. package/dist/components/basic/ConfigProvider.vue.d.ts +0 -17
  28. package/dist/components/basic/DatePicker.vue.d.ts +0 -43
  29. package/dist/components/basic/Dialog.vue.d.ts +0 -36
  30. package/dist/components/basic/Form.vue.d.ts +0 -37
  31. package/dist/components/basic/FormItem.vue.d.ts +0 -36
  32. package/dist/components/basic/Input.vue.d.ts +0 -44
  33. package/dist/components/basic/InputNumber.vue.d.ts +0 -41
  34. package/dist/components/basic/Pagination.vue.d.ts +0 -41
  35. package/dist/components/basic/Select.vue.d.ts +0 -57
  36. package/dist/components/basic/TabPane.vue.d.ts +0 -28
  37. package/dist/components/basic/Table.vue.d.ts +0 -114
  38. package/dist/components/basic/Tabs.vue.d.ts +0 -41
  39. package/dist/components/basic/Upload.vue.d.ts +0 -34
  40. package/dist/composables/useElementConfig.d.ts +0 -8
  41. package/dist/composables/useFormValidation.d.ts +0 -1
  42. package/dist/composables/useXConfig.d.ts +0 -3
  43. package/dist/constants/index.d.ts +0 -18
  44. package/dist/index.cjs +0 -1
  45. package/dist/index.d.ts +0 -6
  46. package/dist/index.js +0 -36
  47. package/dist/install.d.ts +0 -12
  48. package/dist/locales/ar.d.ts +0 -2
  49. package/dist/locales/en.d.ts +0 -2
  50. package/dist/locales/th.d.ts +0 -2
  51. package/dist/locales/zh-cn.d.ts +0 -2
  52. package/dist/locales-BCty7For.cjs +0 -1
  53. package/dist/locales-C0-S9TeD.js +0 -865
  54. package/dist/locales.cjs +0 -1
  55. package/dist/locales.d.ts +0 -4
  56. package/dist/locales.js +0 -2
  57. package/dist/package.json.d.ts +0 -128
  58. package/dist/resolver.cjs +0 -1
  59. package/dist/resolver.d.ts +0 -5
  60. package/dist/resolver.js +0 -66
  61. package/dist/style.css +0 -3
  62. package/dist/types.d.ts +0 -32
package/dist/basic.cjs DELETED
@@ -1 +0,0 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./basic-Cr2tjyfU.cjs");exports.XButton=e.x,exports.XCascader=e.g,exports.XCheckbox=e.h,exports.XConfigProvider=e.m,exports.XDatePicker=e.p,exports.XDialog=e.f,exports.XForm=e.d,exports.XFormItem=e.u,exports.XInput=e.l,exports.XInputNumber=e.c,exports.XPagination=e.s,exports.XSelect=e.o,exports.XTabPane=e.i,exports.XTable=e.a,exports.XTabs=e.r,exports.XUpload=e.n;
package/dist/basic.d.ts DELETED
@@ -1,33 +0,0 @@
1
- import { default as XButton } from './components/basic/Button.vue';
2
- import { default as XCascader } from './components/basic/Cascader.vue';
3
- import { default as XCheckbox } from './components/basic/Checkbox.vue';
4
- import { default as XConfigProvider } from './components/basic/ConfigProvider.vue';
5
- import { default as XDatePicker } from './components/basic/DatePicker.vue';
6
- import { default as XDialog } from './components/basic/Dialog.vue';
7
- import { default as XForm } from './components/basic/Form.vue';
8
- import { default as XFormItem } from './components/basic/FormItem.vue';
9
- import { default as XInput } from './components/basic/Input.vue';
10
- import { default as XInputNumber } from './components/basic/InputNumber.vue';
11
- import { default as XPagination } from './components/basic/Pagination.vue';
12
- import { default as XSelect } from './components/basic/Select.vue';
13
- import { default as XTable } from './components/basic/Table.vue';
14
- import { default as XTabPane } from './components/basic/TabPane.vue';
15
- import { default as XTabs } from './components/basic/Tabs.vue';
16
- import { default as XUpload } from './components/basic/Upload.vue';
17
- export { XButton, XCascader, XCheckbox, XConfigProvider, XDatePicker, XDialog, XForm, XFormItem, XInput, XInputNumber, XPagination, XSelect, XTable, XTabPane, XTabs, XUpload, };
18
- export * from './components/basic/Button.vue';
19
- export * from './components/basic/Cascader.vue';
20
- export * from './components/basic/Checkbox.vue';
21
- export * from './components/basic/ConfigProvider.vue';
22
- export * from './components/basic/DatePicker.vue';
23
- export * from './components/basic/Dialog.vue';
24
- export * from './components/basic/Form.vue';
25
- export * from './components/basic/FormItem.vue';
26
- export * from './components/basic/Input.vue';
27
- export * from './components/basic/InputNumber.vue';
28
- export * from './components/basic/Pagination.vue';
29
- export * from './components/basic/Select.vue';
30
- export * from './components/basic/Table.vue';
31
- export * from './components/basic/TabPane.vue';
32
- export * from './components/basic/Tabs.vue';
33
- export * from './components/basic/Upload.vue';
package/dist/basic.js DELETED
@@ -1,2 +0,0 @@
1
- import { a as e, c as t, d as n, f as r, g as i, h as a, i as o, l as s, m as c, n as l, o as u, p as d, r as f, s as p, u as m, x as h } from "./basic-DxvTjPBA.js";
2
- export { h as XButton, i as XCascader, a as XCheckbox, c as XConfigProvider, d as XDatePicker, r as XDialog, n as XForm, m as XFormItem, s as XInput, t as XInputNumber, p as XPagination, u as XSelect, o as XTabPane, e as XTable, f as XTabs, l as XUpload };
@@ -1,17 +0,0 @@
1
- import { XButtonProps } from '../../basic';
2
- export interface XButtonAsyncProps extends XButtonProps {
3
- action?: () => PromiseLike<unknown> | unknown;
4
- }
5
- declare var __VLS_10: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_10) => any;
8
- };
9
- declare const __VLS_base: import('vue').DefineComponent<XButtonAsyncProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<XButtonAsyncProps> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
10
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
- declare const _default: typeof __VLS_export;
12
- export default _default;
13
- type __VLS_WithSlots<T, S> = T & {
14
- new (): {
15
- $slots: S;
16
- };
17
- };
@@ -1,23 +0,0 @@
1
- import { XButtonProps } from '../../basic';
2
- export interface XButtonConfirmProps extends XButtonProps {
3
- title?: string;
4
- }
5
- declare var __VLS_18: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_18) => any;
8
- };
9
- declare const __VLS_base: import('vue').DefineComponent<XButtonConfirmProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
- confirm: () => any;
11
- cancel: () => any;
12
- }, string, import('vue').PublicProps, Readonly<XButtonConfirmProps> & Readonly<{
13
- onConfirm?: (() => any) | undefined;
14
- onCancel?: (() => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
16
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
17
- declare const _default: typeof __VLS_export;
18
- export default _default;
19
- type __VLS_WithSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -1,60 +0,0 @@
1
- import { CascaderComponentProps } from 'element-plus';
2
- import { Ref } from 'vue';
3
- import { XCascaderProps } from '../../basic';
4
- export interface XCascaderRequestEvents<PT, QR, V> {
5
- change: [value: V];
6
- prepare: [parameters: {
7
- path: PT;
8
- query: QR;
9
- }];
10
- }
11
- export interface XCascaderRequestProps<U, PT, QR, D, V> extends Omit<XCascaderProps<D, V>, 'data' | 'factory'> {
12
- clearable?: CascaderComponentProps['clearable'];
13
- disabled?: CascaderComponentProps['disabled'];
14
- filterable?: CascaderComponentProps['filterable'];
15
- request: () => {
16
- data: Ref<D[]>;
17
- execute: () => PromiseLike<unknown>;
18
- isFetching: Ref<boolean>;
19
- path: Ref<PT>;
20
- query: Ref<QR>;
21
- url: U;
22
- };
23
- }
24
- declare const __VLS_export: <U, PT, QR, 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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
25
- props: import('vue').PublicProps & __VLS_PrettifyLocal<(XCascaderRequestProps<U, PT, QR, D, V> & {
26
- modelValue?: MV;
27
- }) & {
28
- "onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
29
- onChange?: ((value: V) => any) | undefined;
30
- onPrepare?: ((parameters: {
31
- path: PT;
32
- query: QR;
33
- }) => any) | undefined;
34
- }> & (typeof globalThis extends {
35
- __VLS_PROPS_FALLBACK: infer P;
36
- } ? P : {});
37
- expose: (exposed: import('vue').ShallowUnwrapRef<{
38
- data: Ref<D[], D[]>;
39
- execute: () => PromiseLike<unknown>;
40
- path: Ref<PT, PT>;
41
- query: Ref<QR, QR>;
42
- search: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
43
- url: U;
44
- }>) => void;
45
- attrs: any;
46
- slots: {};
47
- emit: (((evt: "change", value: V) => void) & ((evt: "prepare", parameters: {
48
- path: PT;
49
- query: QR;
50
- }) => void)) & ((event: "update:modelValue", value: MV | undefined) => void);
51
- }>) => import('vue').VNode & {
52
- __ctx?: Awaited<typeof __VLS_setup>;
53
- };
54
- declare const _default: typeof __VLS_export;
55
- export default _default;
56
- type __VLS_PrettifyLocal<T> = (T extends any ? {
57
- [K in keyof T]: T[K];
58
- } : {
59
- [K in keyof T as K]: T[K];
60
- }) & {};
@@ -1,23 +0,0 @@
1
- import { XFormProps } from '../../basic';
2
- export type XFormFlexProps<D> = XFormProps<D>;
3
- declare const __VLS_export: <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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
4
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XFormFlexProps<D>> & (typeof globalThis extends {
5
- __VLS_PROPS_FALLBACK: infer P;
6
- } ? P : {});
7
- expose: (exposed: import('vue').ShallowUnwrapRef<{
8
- clearValidate: () => void | undefined;
9
- validate: () => boolean | undefined;
10
- }>) => void;
11
- attrs: any;
12
- slots: {};
13
- emit: {};
14
- }>) => import('vue').VNode & {
15
- __ctx?: Awaited<typeof __VLS_setup>;
16
- };
17
- declare const _default: typeof __VLS_export;
18
- export default _default;
19
- type __VLS_PrettifyLocal<T> = (T extends any ? {
20
- [K in keyof T]: T[K];
21
- } : {
22
- [K in keyof T as K]: T[K];
23
- }) & {};
@@ -1,58 +0,0 @@
1
- import { Ref, VNodeChild } from 'vue';
2
- import { XFormProps } from '../../basic';
3
- export interface XFormRequestEvents<PT, QR> {
4
- prepare: [parameters: {
5
- path: PT;
6
- query: QR;
7
- }];
8
- }
9
- export interface XFormRequestProps<U, PT, QR, D> extends Omit<XFormProps<D>, 'data' | 'disabled'> {
10
- content?: (scope: {
11
- data: D;
12
- }) => VNodeChild;
13
- disabled?: ((scope: {
14
- data: D;
15
- }) => boolean) | boolean;
16
- request: () => {
17
- data: Ref<D>;
18
- execute: () => PromiseLike<unknown>;
19
- isFetching: Ref<boolean>;
20
- path: Ref<PT>;
21
- query: Ref<QR>;
22
- url: U;
23
- };
24
- }
25
- declare const __VLS_export: <U, PT, QR, 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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
26
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XFormRequestProps<U, PT, QR, D> & {
27
- onPrepare?: ((parameters: {
28
- path: PT;
29
- query: QR;
30
- }) => any) | undefined;
31
- }> & (typeof globalThis extends {
32
- __VLS_PROPS_FALLBACK: infer P;
33
- } ? P : {});
34
- expose: (exposed: import('vue').ShallowUnwrapRef<{
35
- clearValidate: () => void | undefined;
36
- data: Ref<D, D>;
37
- reset: () => D;
38
- resetFields: () => void;
39
- search: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
40
- url: U;
41
- validate: () => boolean | undefined;
42
- }>) => void;
43
- attrs: any;
44
- slots: {};
45
- emit: (evt: "prepare", parameters: {
46
- path: PT;
47
- query: QR;
48
- }) => void;
49
- }>) => import('vue').VNode & {
50
- __ctx?: Awaited<typeof __VLS_setup>;
51
- };
52
- declare const _default: typeof __VLS_export;
53
- export default _default;
54
- type __VLS_PrettifyLocal<T> = (T extends any ? {
55
- [K in keyof T]: T[K];
56
- } : {
57
- [K in keyof T as K]: T[K];
58
- }) & {};
@@ -1,71 +0,0 @@
1
- import { Ref, VNodeChild } from 'vue';
2
- import { Paging } from '../../types';
3
- export interface XRequestEvents<PT, QR> {
4
- prepare: [parameters: {
5
- path: PT;
6
- query: QR;
7
- }];
8
- }
9
- export interface XRequestProps<U, PT, QR, D> {
10
- content?: (scope: {
11
- data: D;
12
- isFetching: boolean;
13
- paging: Paging;
14
- path: PT;
15
- query: QR;
16
- search: () => PromiseLike<unknown>;
17
- }) => VNodeChild;
18
- request: () => {
19
- data: Ref<D>;
20
- execute: () => PromiseLike<unknown>;
21
- isFetching: Ref<boolean>;
22
- paging: Ref<Paging>;
23
- path: Ref<PT>;
24
- query: Ref<QR>;
25
- url: U;
26
- };
27
- }
28
- declare const __VLS_export: <U, PT, QR, D>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
29
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XRequestProps<U, PT, QR, D> & {
30
- onPrepare?: ((parameters: {
31
- path: PT;
32
- query: QR;
33
- }) => any) | undefined;
34
- }> & (typeof globalThis extends {
35
- __VLS_PROPS_FALLBACK: infer P;
36
- } ? P : {});
37
- expose: (exposed: import('vue').ShallowUnwrapRef<{
38
- data: Ref<D, D>;
39
- execute: () => PromiseLike<unknown>;
40
- isFetching: Ref<boolean, boolean>;
41
- paging: Ref<Paging, Paging>;
42
- path: Ref<PT, PT>;
43
- query: Ref<QR, QR>;
44
- search: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
45
- url: U;
46
- }>) => void;
47
- attrs: any;
48
- slots: {
49
- default: (scope: {
50
- data: D;
51
- isFetching: boolean;
52
- paging: Paging;
53
- path: PT;
54
- query: QR;
55
- search: () => PromiseLike<unknown>;
56
- }) => VNodeChild;
57
- };
58
- emit: (evt: "prepare", parameters: {
59
- path: PT;
60
- query: QR;
61
- }) => void;
62
- }>) => import('vue').VNode & {
63
- __ctx?: Awaited<typeof __VLS_setup>;
64
- };
65
- declare const _default: typeof __VLS_export;
66
- export default _default;
67
- type __VLS_PrettifyLocal<T> = (T extends any ? {
68
- [K in keyof T]: T[K];
69
- } : {
70
- [K in keyof T as K]: T[K];
71
- }) & {};
@@ -1,58 +0,0 @@
1
- import { Ref } from 'vue';
2
- import { XSelectEvents, XSelectProps } from '../../basic';
3
- export interface XSelectRequestEvents<PT, QR, V> extends XSelectEvents<V> {
4
- prepare: [parameters: {
5
- path: PT;
6
- query: QR;
7
- }, input?: string];
8
- }
9
- export interface XSelectRequestProps<U, PT, QR, D, V> extends Omit<XSelectProps<D, V>, 'supplement'> {
10
- request: () => {
11
- data: Ref<D[]>;
12
- execute: () => PromiseLike<unknown>;
13
- isFetching: Ref<boolean>;
14
- path: Ref<PT>;
15
- query: Ref<QR>;
16
- url: U;
17
- };
18
- supplement?: (lacks: V[], url: U) => D[] | PromiseLike<D[]>;
19
- }
20
- declare const __VLS_export: <U, PT, QR, 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_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
21
- props: import('vue').PublicProps & __VLS_PrettifyLocal<(XSelectRequestProps<U, PT, QR, D, V> & {
22
- modelValue?: MV;
23
- }) & {
24
- "onUpdate:modelValue"?: ((value: MV | undefined) => any) | undefined;
25
- onFocus?: ((e: FocusEvent) => any) | undefined;
26
- onBlur?: ((e: FocusEvent) => any) | undefined;
27
- onChange?: ((value: V) => any) | undefined;
28
- onPrepare?: ((parameters: {
29
- path: PT;
30
- query: QR;
31
- }, input?: string | undefined) => any) | undefined;
32
- }> & (typeof globalThis extends {
33
- __VLS_PROPS_FALLBACK: infer P;
34
- } ? P : {});
35
- expose: (exposed: import('vue').ShallowUnwrapRef<{
36
- data: Ref<D[], D[]>;
37
- execute: () => PromiseLike<unknown>;
38
- path: Ref<PT, PT>;
39
- query: Ref<QR, QR>;
40
- search: import('@vueuse/core').UseDebounceFnReturn<(input?: string) => Promise<void>>;
41
- url: U;
42
- }>) => void;
43
- attrs: any;
44
- slots: {};
45
- emit: (((evt: "focus", e: FocusEvent) => void) & ((evt: "blur", e: FocusEvent) => void) & ((evt: "change", value: V) => void) & ((evt: "prepare", parameters: {
46
- path: PT;
47
- query: QR;
48
- }, input?: string | undefined) => void)) & ((event: "update:modelValue", value: MV | undefined) => void);
49
- }>) => import('vue').VNode & {
50
- __ctx?: Awaited<typeof __VLS_setup>;
51
- };
52
- declare const _default: typeof __VLS_export;
53
- export default _default;
54
- type __VLS_PrettifyLocal<T> = (T extends any ? {
55
- [K in keyof T]: T[K];
56
- } : {
57
- [K in keyof T as K]: T[K];
58
- }) & {};
@@ -1,47 +0,0 @@
1
- import { Ref, VNodeChild } from 'vue';
2
- import { TableColumnField } from '../../types';
3
- import { XTableFlexEvents, XTableFlexProps } from '../../advance';
4
- import { DefaultRow, XTableColumnProps } from '../../basic';
5
- export interface XTableConfigColumnsProps<D> extends Omit<XTableColumnProps<D>, 'content'> {
6
- content?: (scope: {
7
- index: number;
8
- row: D;
9
- }) => VNodeChild;
10
- }
11
- export interface XTableConfigEvents<D> extends XTableFlexEvents<D> {
12
- rowClick: [row: D];
13
- }
14
- export interface XTableConfigProps<D extends DefaultRow> extends Omit<XTableFlexProps<D>, 'columns' | 'data' | 'showOverflowTooltip'> {
15
- config: Record<string, XTableConfigColumnsProps<D>>;
16
- data?: D[];
17
- fields: () => {
18
- data: Ref<TableColumnField[]>;
19
- loading: Ref<boolean>;
20
- update: (fields: TableColumnField[]) => PromiseLike<unknown>;
21
- };
22
- }
23
- declare const __VLS_export: <D extends DefaultRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
24
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableConfigProps<D> & {
25
- onHeaderDragend?: ((newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => any) | undefined;
26
- onRowClick?: ((row: D) => any) | undefined;
27
- onRowDblclick?: ((row: D) => any) | undefined;
28
- onSelectionChange?: ((rows: D[]) => any) | undefined;
29
- }> & (typeof globalThis extends {
30
- __VLS_PROPS_FALLBACK: infer P;
31
- } ? P : {});
32
- expose: (exposed: import('vue').ShallowUnwrapRef<{
33
- data: D[] | undefined;
34
- }>) => void;
35
- attrs: any;
36
- slots: {};
37
- emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void);
38
- }>) => import('vue').VNode & {
39
- __ctx?: Awaited<typeof __VLS_setup>;
40
- };
41
- declare const _default: typeof __VLS_export;
42
- export default _default;
43
- type __VLS_PrettifyLocal<T> = (T extends any ? {
44
- [K in keyof T]: T[K];
45
- } : {
46
- [K in keyof T as K]: T[K];
47
- }) & {};
@@ -1,57 +0,0 @@
1
- import { TableColumnCtx } from 'element-plus';
2
- import { CSSProperties } from 'vue';
3
- import { DefaultRow, XTableEvents, XTableProps } from '../../basic';
4
- export type XTableFlexEvents<D> = XTableEvents<D>;
5
- export interface XTableFlexProps<D extends DefaultRow> extends XTableProps<D> {
6
- cellClassName?: ((scope: {
7
- column: TableColumnCtx;
8
- columnIndex: number;
9
- row: D;
10
- rowIndex: number;
11
- }) => string) | string;
12
- cellStyle?: ((scope: {
13
- column: TableColumnCtx;
14
- columnIndex: number;
15
- row: D;
16
- rowIndex: number;
17
- }) => CSSProperties) | CSSProperties;
18
- rowClassName?: ((scope: {
19
- row: D;
20
- rowIndex: number;
21
- }) => string) | string;
22
- rowStyle?: ((scope: {
23
- row: D;
24
- rowIndex: number;
25
- }) => CSSProperties) | CSSProperties;
26
- }
27
- declare const __VLS_export: <D extends DefaultRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
28
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableFlexProps<D> & {
29
- onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
30
- onRowClick?: ((row: D) => any) | undefined;
31
- onRowDblclick?: ((row: D) => any) | undefined;
32
- onSelectionChange?: ((rows: D[]) => any) | undefined;
33
- }> & (typeof globalThis extends {
34
- __VLS_PROPS_FALLBACK: infer P;
35
- } ? P : {});
36
- expose: (exposed: import('vue').ShallowUnwrapRef<{
37
- clearSelection: () => void | undefined;
38
- getSelectionRows: () => D[] | undefined;
39
- scrollTo: (options: number | ScrollToOptions, yCoord?: number) => void | undefined;
40
- setCurrentRow: (row: D) => void | undefined;
41
- setScrollLeft: (left: number) => void | undefined;
42
- setScrollTop: (top: number) => void | undefined;
43
- toggleRowSelection: (row: D, selected?: boolean, ignoreSelectable?: boolean) => void | undefined;
44
- }>) => void;
45
- attrs: any;
46
- slots: {};
47
- emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void);
48
- }>) => import('vue').VNode & {
49
- __ctx?: Awaited<typeof __VLS_setup>;
50
- };
51
- declare const _default: typeof __VLS_export;
52
- export default _default;
53
- type __VLS_PrettifyLocal<T> = (T extends any ? {
54
- [K in keyof T]: T[K];
55
- } : {
56
- [K in keyof T as K]: T[K];
57
- }) & {};
@@ -1,96 +0,0 @@
1
- import { TableColumnCtx } from 'element-plus';
2
- import { CSSProperties, Ref, VNodeChild } from 'vue';
3
- import { Paging } from '../../types';
4
- import { XTableFlexEvents, XTableFlexProps } from '../../advance';
5
- import { DefaultRow, XTableColumnProps } from '../../basic';
6
- export interface XTableRequestColumnsProps<D> extends XTableColumnProps<D> {
7
- content?: (scope: {
8
- index: number;
9
- row: D;
10
- }) => VNodeChild;
11
- }
12
- export interface XTableRequestEvents<PT, QR, D> extends XTableFlexEvents<D> {
13
- prepare: [parameters: {
14
- path: PT;
15
- query: QR;
16
- }];
17
- }
18
- export interface XTableRequestProps<U, PT, QR, D extends DefaultRow> extends Omit<XTableFlexProps<D>, 'columns' | 'data'> {
19
- cellClassName?: ((scope: {
20
- column: TableColumnCtx;
21
- columnIndex: number;
22
- row: D;
23
- rowIndex: number;
24
- }) => string) | string;
25
- cellStyle?: ((scope: {
26
- column: TableColumnCtx;
27
- columnIndex: number;
28
- row: D;
29
- rowIndex: number;
30
- }) => CSSProperties) | CSSProperties;
31
- columns: XTableRequestColumnsProps<D>[];
32
- footer?: (scope: {
33
- query: QR;
34
- }) => VNodeChild;
35
- header?: (scope: {
36
- query: QR;
37
- }) => VNodeChild;
38
- pagination?: boolean;
39
- paginationLayout?: string;
40
- request: () => {
41
- data: Ref<D[]>;
42
- execute: () => PromiseLike<unknown>;
43
- isFetching: Ref<boolean>;
44
- paging: Ref<Paging>;
45
- path: Ref<PT>;
46
- query: Ref<QR>;
47
- url: U;
48
- };
49
- rowClassName?: ((scope: {
50
- row: D;
51
- rowIndex: number;
52
- }) => string) | string;
53
- rowStyle?: ((scope: {
54
- row: D;
55
- rowIndex: number;
56
- }) => CSSProperties) | CSSProperties;
57
- }
58
- declare const __VLS_export: <U, PT, QR, D extends DefaultRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
59
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestProps<U, PT, QR, D> & {
60
- onHeaderDragend?: ((newWidth: number, oldWidth: number, column: TableColumnCtx) => any) | undefined;
61
- onRowClick?: ((row: D) => any) | undefined;
62
- onRowDblclick?: ((row: D) => any) | undefined;
63
- onSelectionChange?: ((rows: D[]) => any) | undefined;
64
- onPrepare?: ((parameters: {
65
- path: PT;
66
- query: QR;
67
- }) => any) | undefined;
68
- }> & (typeof globalThis extends {
69
- __VLS_PROPS_FALLBACK: infer P;
70
- } ? P : {});
71
- expose: (exposed: import('vue').ShallowUnwrapRef<{
72
- data: Ref<D[], D[]>;
73
- isFetching: Ref<boolean, boolean>;
74
- paging: Ref<Paging, Paging>;
75
- path: Ref<PT, PT>;
76
- query: Ref<QR, QR>;
77
- reset: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
78
- search: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
79
- url: U;
80
- }>) => void;
81
- attrs: any;
82
- slots: {};
83
- emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void) & ((evt: "prepare", parameters: {
84
- path: PT;
85
- query: QR;
86
- }) => void);
87
- }>) => import('vue').VNode & {
88
- __ctx?: Awaited<typeof __VLS_setup>;
89
- };
90
- declare const _default: typeof __VLS_export;
91
- export default _default;
92
- type __VLS_PrettifyLocal<T> = (T extends any ? {
93
- [K in keyof T]: T[K];
94
- } : {
95
- [K in keyof T as K]: T[K];
96
- }) & {};
@@ -1,84 +0,0 @@
1
- import { Ref, VNodeChild } from 'vue';
2
- import { Paging, TableColumnField } from '../../types';
3
- import { XTableFlexEvents, XTableFlexProps, XTableRequestColumnsProps } from '../../advance';
4
- import { DefaultRow } from '../../basic';
5
- export interface XTableRequestConfigColumnsProps<QR, D> extends Omit<XTableRequestColumnsProps<D>, 'content'> {
6
- content?: (scope: {
7
- index: number;
8
- row: D;
9
- }) => VNodeChild;
10
- search?: (scope: {
11
- query: QR;
12
- }) => VNodeChild;
13
- }
14
- export interface XTableRequestConfigEvents<PT, QR, D> extends XTableFlexEvents<D> {
15
- prepare: [parameters: {
16
- path: PT;
17
- query: QR;
18
- }];
19
- }
20
- export interface XTableRequestConfigProps<U, PT, QR, D extends DefaultRow> extends Omit<XTableFlexProps<D>, 'columns' | 'showOverflowTooltip'> {
21
- config: Record<string, XTableRequestConfigColumnsProps<QR, D>>;
22
- fields: () => {
23
- data: Ref<TableColumnField[]>;
24
- loading: Ref<boolean>;
25
- update: (fields: TableColumnField[]) => PromiseLike<unknown>;
26
- };
27
- header?: (scope: {
28
- data: D[];
29
- isFetching: boolean;
30
- paging: Paging;
31
- path: PT;
32
- query: QR;
33
- }) => VNodeChild;
34
- pagination?: boolean;
35
- paginationLayout?: string;
36
- request: () => {
37
- data: Ref<D[]>;
38
- execute: () => PromiseLike<unknown>;
39
- isFetching: Ref<boolean>;
40
- paging: Ref<Paging>;
41
- path: Ref<PT>;
42
- query: Ref<QR>;
43
- url: U;
44
- };
45
- }
46
- declare const __VLS_export: <U, PT, QR, D extends DefaultRow>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
47
- props: import('vue').PublicProps & __VLS_PrettifyLocal<XTableRequestConfigProps<U, PT, QR, D> & {
48
- onHeaderDragend?: ((newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => any) | undefined;
49
- onRowClick?: ((row: D) => any) | undefined;
50
- onRowDblclick?: ((row: D) => any) | undefined;
51
- onSelectionChange?: ((rows: D[]) => any) | undefined;
52
- onPrepare?: ((parameters: {
53
- path: PT;
54
- query: QR;
55
- }) => any) | undefined;
56
- }> & (typeof globalThis extends {
57
- __VLS_PROPS_FALLBACK: infer P;
58
- } ? P : {});
59
- expose: (exposed: import('vue').ShallowUnwrapRef<{
60
- data: Ref<D[], D[]>;
61
- isFetching: Ref<boolean, boolean>;
62
- paging: Ref<Paging, Paging>;
63
- path: Ref<PT, PT>;
64
- query: Ref<QR, QR>;
65
- reset: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
66
- search: import('@vueuse/core').UseDebounceFnReturn<() => Promise<void>>;
67
- url: U;
68
- }>) => void;
69
- attrs: any;
70
- slots: {};
71
- emit: ((evt: "headerDragend", newWidth: number, oldWidth: number, column: import('element-plus').TableColumnCtx) => void) & ((evt: "rowClick", row: D) => void) & ((evt: "rowDblclick", row: D) => void) & ((evt: "selectionChange", rows: D[]) => void) & ((evt: "prepare", parameters: {
72
- path: PT;
73
- query: QR;
74
- }) => void);
75
- }>) => import('vue').VNode & {
76
- __ctx?: Awaited<typeof __VLS_setup>;
77
- };
78
- declare const _default: typeof __VLS_export;
79
- export default _default;
80
- type __VLS_PrettifyLocal<T> = (T extends any ? {
81
- [K in keyof T]: T[K];
82
- } : {
83
- [K in keyof T as K]: T[K];
84
- }) & {};