wlwy-package 3.1.63 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/dist/editor/index.es.js +4 -0
  2. package/dist/editor-core-D9MSA0yc.js +21080 -0
  3. package/dist/index-D4mQXwMj.js +9479 -0
  4. package/dist/index-DbAXWdHe.js +101 -0
  5. package/dist/style.css +1 -1
  6. package/dist/types/index.d.ts +2 -0
  7. package/dist/types/packages/components/antd/index.d.ts +10 -0
  8. package/dist/types/packages/components/{common → antd}/src/button.vue.d.ts +1 -1
  9. package/dist/types/packages/components/antd/src/descriptions-item.vue.d.ts +9 -0
  10. package/dist/types/packages/components/antd/src/descriptions.vue.d.ts +6 -0
  11. package/dist/types/packages/components/{common → antd}/src/select.vue.d.ts +1 -1
  12. package/dist/types/packages/components/antd/type.d.ts +164 -0
  13. package/dist/types/packages/components/common/index.d.ts +4 -20
  14. package/dist/types/packages/components/common/src/page.vue.d.ts +38 -0
  15. package/dist/types/packages/components/common/src/pageHead.vue.d.ts +2 -2
  16. package/dist/types/packages/components/common/type.d.ts +60 -217
  17. package/dist/types/packages/components/form/default/src/dateRange.vue.d.ts +1 -1
  18. package/dist/types/packages/components/form/default/src/form.vue.d.ts +412 -0
  19. package/dist/types/packages/components/form/default/src/formItem.vue.d.ts +10 -4
  20. package/dist/types/packages/components/form/default/src/inputMatch.vue.d.ts +1 -1
  21. package/dist/types/packages/components/form/default/src/inputTags.vue.d.ts +5 -3
  22. package/dist/types/packages/components/form/default/src/page.vue.d.ts +2 -2
  23. package/dist/types/packages/components/form/default/src/select.vue.d.ts +3 -3
  24. package/dist/types/packages/components/form/default/src/selectInput.vue.d.ts +2 -2
  25. package/dist/types/packages/components/form/default/src/upload-image.vue.d.ts +1 -1
  26. package/dist/types/packages/components/form/default/src/wrap.vue.d.ts +2 -2
  27. package/dist/types/packages/components/form/default/type.d.ts +23 -4
  28. package/dist/types/packages/components/icon/src/index.vue.d.ts +0 -1
  29. package/dist/types/packages/components/icon/type.d.ts +2 -1
  30. package/dist/types/packages/components/index.d.ts +2 -0
  31. package/dist/types/packages/components/{editor/src/editor.vue.d.ts → lazy/editor/editor-core.vue.d.ts} +3 -3
  32. package/dist/types/packages/components/lazy/editor/index.d.ts +3 -0
  33. package/dist/types/packages/components/lazy/editor/index.vue.d.ts +35 -0
  34. package/dist/types/packages/components/list/input.d.ts +13 -3
  35. package/dist/types/packages/components/list/src/header.vue.d.ts +2 -2
  36. package/dist/types/packages/components/list/src/table.vue.d.ts +757 -4
  37. package/dist/types/packages/components/list/type.d.ts +5 -4
  38. package/dist/types/packages/components/table/constants.d.ts +15 -0
  39. package/dist/types/packages/components/table/index.d.ts +7 -0
  40. package/dist/types/packages/components/table/resolveInjectColumns.d.ts +17 -0
  41. package/dist/types/packages/components/table/src/action-column.vue.d.ts +11 -0
  42. package/dist/types/packages/components/{common → table}/src/column.vue.d.ts +7 -9
  43. package/dist/types/packages/components/table/src/pager.vue.d.ts +314 -0
  44. package/dist/types/packages/components/table/src/search.vue.d.ts +34 -0
  45. package/dist/types/packages/components/table/src/table.vue.d.ts +802 -0
  46. package/dist/types/packages/components/table/type.d.ts +179 -0
  47. package/dist/types/packages/components/table/useWTableConfig.d.ts +34 -0
  48. package/dist/types/packages/components/table/vxeDefaultConfig.d.ts +8 -0
  49. package/dist/types/packages/components/table/warnDeprecated.d.ts +6 -0
  50. package/dist/types/packages/hooks/private/index.d.ts +1 -1
  51. package/dist/types/packages/hooks/private/src/useRenderCell.d.ts +51 -35
  52. package/dist/types/packages/hooks/web/index.d.ts +0 -1
  53. package/dist/types/packages/hooks/web/src/usePrefixTitle.d.ts +6 -2
  54. package/dist/types/packages/index.d.ts +2 -0
  55. package/dist/types/packages/keys/index.d.ts +3 -0
  56. package/dist/types/packages/setup/vxe.d.ts +5 -1
  57. package/dist/types/packages/utils/createRefInstanceProxy.d.ts +13 -0
  58. package/dist/types/packages/utils/formatCellValue.d.ts +82 -0
  59. package/dist/types/packages/utils/getPrefixTitle.d.ts +5 -0
  60. package/dist/types/packages/utils/index.d.ts +3 -0
  61. package/dist/wlwy-package.es.js +4641 -12799
  62. package/package.json +17 -1
  63. package/dist/types/packages/components/common/src/descriptions-item.vue.d.ts +0 -6
  64. package/dist/types/packages/components/common/src/descriptions.vue.d.ts +0 -26
  65. package/dist/types/packages/components/common/src/pager.vue.d.ts +0 -32
  66. package/dist/types/packages/components/common/src/table.vue.d.ts +0 -40
  67. package/dist/types/packages/components/editor/index.d.ts +0 -2
  68. package/dist/types/packages/hooks/web/src/useExposeRef.d.ts +0 -1
  69. /package/dist/types/packages/components/{common → antd}/src/datePicker.vue.d.ts +0 -0
  70. /package/dist/types/packages/components/{common → antd}/src/modal.vue.d.ts +0 -0
  71. /package/dist/types/packages/components/{common → antd}/src/statistic.vue.d.ts +0 -0
  72. /package/dist/types/packages/components/{common → antd}/src/upload.vue.d.ts +0 -0
  73. /package/dist/types/packages/components/{editor → lazy/editor}/type.d.ts +0 -0
@@ -11,5 +11,7 @@ export * from './packages/plugins';
11
11
  export * from './packages/setup';
12
12
  export * from './packages/type';
13
13
  export { default as WCharts, type WChartsProps, type WChartsInstance } from './packages/components/lazy/charts';
14
+ export { default as WEditor, type WEditorInstance, type WEditorProps, type InsertFnType, type customUploadFnType } from './packages/components/lazy/editor';
14
15
  export { useService, type ServiceType } from './packages/axios';
16
+ export { getTitle } from './packages/utils';
15
17
  export default wlwyPackage;
@@ -0,0 +1,10 @@
1
+ export type { FooterButtonType, WButtonProps, WCardProps, WDatePickerProps, WDescriptionsProps, WDescriptionsItemProps, WModalProps, WStatisticProps, WUploadProps } from './type';
2
+ export { default as WButton } from './src/button.vue';
3
+ export { default as WCard } from './src/card.vue';
4
+ export { default as WDatePicker } from './src/datePicker.vue';
5
+ export { default as WDescriptions } from './src/descriptions.vue';
6
+ export { default as WDescriptionsItem } from './src/descriptions-item.vue';
7
+ export { default as WModal } from './src/modal.vue';
8
+ export { default as WSelect } from './src/select.vue';
9
+ export { default as WStatistic } from './src/statistic.vue';
10
+ export { default as WUpload } from './src/upload.vue';
@@ -1,4 +1,4 @@
1
- import { WButtonProps } from '../type';
1
+ import type { WButtonProps } from '../type';
2
2
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
3
3
  default?: ((props: {}) => any) | undefined;
4
4
  }>;
@@ -0,0 +1,9 @@
1
+ declare const _default: __VLS_WithSlots<import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>, {
2
+ default?: ((props: {}) => any) | undefined;
3
+ }>;
4
+ export default _default;
5
+ type __VLS_WithSlots<T, S> = T & {
6
+ new (): {
7
+ $slots: S;
8
+ };
9
+ };
@@ -0,0 +1,6 @@
1
+ import type { WDescriptionsProps } from '../type';
2
+ declare const _default: import("vue").DefineComponent<WDescriptionsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WDescriptionsProps> & Readonly<{}>, {
3
+ size: "default" | "small" | "middle";
4
+ bordered: boolean;
5
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
+ export default _default;
@@ -4,7 +4,7 @@ type __VLS_Props = PropsType;
4
4
  type __VLS_PublicProps = __VLS_Props & {
5
5
  'value'?: SelectProps['value'];
6
6
  };
7
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ declare const _default: import("vue").DefineComponent<__VLS_PublicProps, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
8
  change: (value: import("ant-design-vue/es/select").SelectValue, option: import("ant-design-vue/es/select").DefaultOptionType | import("ant-design-vue/es/select").DefaultOptionType[]) => any;
9
9
  "update:value": (value: (string | number) | (string | number)[] | import("ant-design-vue/es/select").LabeledValue | import("ant-design-vue/es/select").LabeledValue[] | undefined) => any;
10
10
  }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
@@ -0,0 +1,164 @@
1
+ import type { CardProps, DatePickerProps, DescriptionsProps, ModalProps, UploadProps } from 'ant-design-vue';
2
+ import type { UseWindowSizeType } from '../../type';
3
+ import type { RenderCellProps } from '../../hooks/private';
4
+ import type { WIconProp } from '../icon';
5
+ import type { Component } from 'vue';
6
+ export type FooterButtonType = 'ok' | 'cancel' | 'refresh';
7
+ type WidthType = [UseWindowSizeType['NumType']] | [UseWindowSizeType['NumType'], UseWindowSizeType['NumType']] | [UseWindowSizeType['NumType'], UseWindowSizeType['NumType'], UseWindowSizeType['ComparedType']];
8
+ export type WDescriptionsProps = {
9
+ /**
10
+ * 描述列表数据,同 w-form 的 model;未传时透传上层 provide 的数据
11
+ */
12
+ model?: Record<string, any>;
13
+ /**
14
+ * 是否展示边框
15
+ * @default true
16
+ */
17
+ bordered?: boolean;
18
+ /**
19
+ * 设置列表的大小
20
+ * @default 'middle'
21
+ */
22
+ size?: DescriptionsProps['size'];
23
+ };
24
+ export type WDescriptionsItemProps = RenderCellProps & {
25
+ /**
26
+ * label
27
+ */
28
+ label?: string;
29
+ /**
30
+ * 默认值
31
+ * @default '-'
32
+ */
33
+ defaultValue?: string;
34
+ /**
35
+ * 所占列数,同 a-descriptions-item
36
+ * @default 1
37
+ */
38
+ span?: number;
39
+ };
40
+ export interface WButtonProps extends Pick<WIconProp, 'authCode'> {
41
+ /**
42
+ * 图标
43
+ */
44
+ icon?: WIconProp['type'];
45
+ /**
46
+ * 文本
47
+ */
48
+ text?: string;
49
+ }
50
+ /**
51
+ * w-modal组件属性
52
+ */
53
+ export interface WModalProps extends Pick<ModalProps, 'destroyOnClose' | 'okButtonProps' | 'cancelButtonProps' | 'confirmLoading'> {
54
+ /**
55
+ * 弹窗标题
56
+ */
57
+ title?: string;
58
+ /**
59
+ * 弹窗width
60
+ */
61
+ width?: string | number | WidthType;
62
+ /**
63
+ * 弹窗底部是否隐藏,可隐藏单独按钮
64
+ */
65
+ hideFooter?: boolean | Array<FooterButtonType>;
66
+ }
67
+ export interface WUploadProps extends Pick<UploadProps, 'multiple' | 'beforeUpload'> {
68
+ /**
69
+ * 是否为拖拽上传
70
+ * @default true
71
+ */
72
+ dragger?: boolean;
73
+ /**
74
+ * 上传的地址
75
+ */
76
+ url?: string;
77
+ /**
78
+ * 上传的参数
79
+ */
80
+ data?: any;
81
+ /**
82
+ * 上传的字段名,默认file
83
+ */
84
+ fieldName?: string;
85
+ /**f
86
+ * 上传的文件名称,默认images
87
+ */
88
+ fileName?: string;
89
+ /**
90
+ * 上传的自定义方法,优先级高于url
91
+ */
92
+ request: (formData: FormData) => Promise<any>;
93
+ /**
94
+ * 接受上传的文件类型,input[type=file] 的 accept 属性
95
+ */
96
+ accept?: string;
97
+ /**
98
+ * 上传文件大小限制
99
+ * @default 1024 * 1024 * 10 单位:b
100
+ */
101
+ maxSize?: number;
102
+ /**
103
+ * 上传图标
104
+ */
105
+ uploadIcon?: string;
106
+ /**
107
+ * 上传文本
108
+ */
109
+ uploadText?: string;
110
+ /**
111
+ * 上传提示文本
112
+ */
113
+ uploadHint?: string;
114
+ }
115
+ /**
116
+ * w-card 组件属性
117
+ */
118
+ type TabListType = NonNullable<CardProps['tabList']>[number];
119
+ interface WCardTabListType extends Omit<TabListType, 'key'> {
120
+ key: TabListType['key'] | number;
121
+ value?: string | number;
122
+ label?: string | Component;
123
+ }
124
+ export interface WCardProps extends Omit<CardProps, 'tabList' | 'activeTabKey' | 'defaultActiveTabKey' | 'onTabChange'> {
125
+ /**
126
+ * 卡片标题
127
+ */
128
+ title?: string;
129
+ /**
130
+ * 卡片右上角的操作区域
131
+ */
132
+ extra?: string;
133
+ /**
134
+ * 是否必填
135
+ */
136
+ required?: boolean;
137
+ /**
138
+ * 页签标题列表, 可以通过 customTab(antdv v3.0) 插槽自定义 tab
139
+ */
140
+ tabList?: Array<WCardTabListType>;
141
+ /**
142
+ * 初始化选中页签的 key,如果没有设置 activeTabKey
143
+ */
144
+ defaultActiveTabKey?: CardProps['defaultActiveTabKey'] | number;
145
+ }
146
+ export interface WStatisticProps {
147
+ title?: string;
148
+ }
149
+ /**
150
+ * w-date-picker 组件属性
151
+ */
152
+ export interface WDatePickerProps extends Pick<DatePickerProps, 'picker' | 'format' | 'allowClear' | 'valueFormat'> {
153
+ /**
154
+ * 是否允许选择未来时间
155
+ * @default true
156
+ */
157
+ futureTimeAllowed?: boolean;
158
+ /**
159
+ * value是否是string类型
160
+ * @default false
161
+ */
162
+ valueString?: boolean;
163
+ }
164
+ export {};
@@ -4,33 +4,17 @@ export { default as WRedirect } from './src/Redirect.vue';
4
4
  export { default as WNoData } from './src/noData.vue';
5
5
  export type { WCropperProp, WCropperInstance } from './type';
6
6
  export { default as WCropper } from './src/cropper.vue';
7
- export type { WTableInstance } from './type';
8
- export { default as WTable } from './src/table.vue';
9
- export type { WPagerProps } from './type';
10
- export { default as WPager } from './src/pager.vue';
11
- export { default as WColumn } from './src/column.vue';
12
- export type { WModalProps } from './type';
13
- export { default as WModal } from './src/modal.vue';
7
+ export type { WTableInstance, WPagerProps, WPagerInstance, ResetPagerParams, PagerState, WColumnProp, WListSearchProps, WListSearchInstance } from '../table';
8
+ export { WTable, WPager, WColumn, WListSearch } from '../table';
14
9
  export { default as WEditTitle } from './src/editTitle.vue';
15
10
  export type { WDropdownProps, WDropdownListItem } from './type';
16
11
  export { default as WDropdown } from './src/dropdown.vue';
17
- export { default as WDescriptions } from './src/descriptions.vue';
18
- export type { WDescriptionsItemProps } from './type';
19
- export { default as WDescriptionsItem } from './src/descriptions-item.vue';
20
- export type { WUploadProps } from './type';
21
- export { default as WUpload } from './src/upload.vue';
22
12
  export type { WUploadModalProps } from './type';
23
13
  export { default as WUploadModal } from './src/upload-modal.vue';
24
- export type { WCardProps } from './type';
25
- export { default as WCard } from './src/card.vue';
26
- export type { WButtonProps } from './type';
27
- export { default as WButton } from './src/button.vue';
28
14
  export { default as WSlashHeader } from './src/slashHeader.vue';
29
15
  export type { WPageHeadProps } from './type';
30
16
  export { default as WPageHead } from './src/pageHead.vue';
31
- export type { WStatisticProps } from './type';
32
- export { default as WStatistic } from './src/statistic.vue';
33
- export type { WDatePickerProps } from './type';
34
- export { default as WDatePicker } from './src/datePicker.vue';
35
17
  export type { WRangePickerProps } from './type';
36
18
  export { default as WRangePicker } from './src/rangePicker.vue';
19
+ export type { WPageProps } from './type';
20
+ export { default as WPage } from './src/page.vue';
@@ -0,0 +1,38 @@
1
+ import type { FooterButtonType, WPageProps } from '../type';
2
+ type __VLS_Props = WPageProps;
3
+ declare var __VLS_5: {}, __VLS_15: {}, __VLS_53: {}, __VLS_67: {}, __VLS_109: {};
4
+ type __VLS_Slots = {} & {
5
+ title?: (props: typeof __VLS_5) => any;
6
+ } & {
7
+ button?: (props: typeof __VLS_15) => any;
8
+ } & {
9
+ title?: (props: typeof __VLS_53) => any;
10
+ } & {
11
+ button?: (props: typeof __VLS_67) => any;
12
+ } & {
13
+ default?: (props: typeof __VLS_109) => any;
14
+ };
15
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
+ cancel: (event: Event) => any;
17
+ ok: (event: Event) => any;
18
+ refresh: (event: Event) => any;
19
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
20
+ onCancel?: ((event: Event) => any) | undefined;
21
+ onOk?: ((event: Event) => any) | undefined;
22
+ onRefresh?: ((event: Event) => any) | undefined;
23
+ }>, {
24
+ loading: boolean;
25
+ title: string;
26
+ okText: string;
27
+ cancelText: string;
28
+ hideFooter: boolean | FooterButtonType[];
29
+ questionIcon: string;
30
+ refreshText: string;
31
+ hideButton: boolean | FooterButtonType[];
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
33
+ export default _default;
34
+ type __VLS_WithSlots<T, S> = T & {
35
+ new (): {
36
+ $slots: S;
37
+ };
38
+ };
@@ -7,12 +7,12 @@ type __VLS_Slots = {} & {
7
7
  };
8
8
  declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WPageHeadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
9
  cancel: (event: Event) => any;
10
- refresh: (event: Event) => any;
11
10
  ok: (event: Event) => any;
11
+ refresh: (event: Event) => any;
12
12
  }, string, import("vue").PublicProps, Readonly<WPageHeadProps> & Readonly<{
13
13
  onCancel?: ((event: Event) => any) | undefined;
14
- onRefresh?: ((event: Event) => any) | undefined;
15
14
  onOk?: ((event: Event) => any) | undefined;
15
+ onRefresh?: ((event: Event) => any) | undefined;
16
16
  }>, {
17
17
  loading: boolean;
18
18
  title: string;
@@ -1,10 +1,8 @@
1
- import type { CardProps, ConfigProviderProps as Config, DatePickerProps, ModalProps, UploadProps } from 'ant-design-vue';
2
- import type { VxeColumnProps, VxePagerInstance, VxePagerProps, VxeTableInstance, VxeToolbarInstance } from 'vxe-table';
3
- import type { UseWindowSizeType, KeyType } from '../../type';
1
+ import type { ConfigProviderProps as Config, DatePickerProps, UploadProps } from 'ant-design-vue';
2
+ import type { KeyType, HandlerMode } from '../../type';
4
3
  import type { AxiosProgressEvent } from 'axios';
5
- import type { RenderCellProps } from '../../hooks/private';
6
- import type { WIconProp } from '../icon';
7
- import type { Component, Slot } from 'vue';
4
+ import type { FooterButtonType } from '../antd';
5
+ export type { WPagerInstance, WTableInstance, WColumnProp, WPagerProps, WListSearchProps, WListSearchInstance } from '../table';
8
6
  /**
9
7
  * w-config-provider组件属性
10
8
  */
@@ -91,88 +89,6 @@ export type WCropperInstance = {
91
89
  */
92
90
  clearCrop: () => void;
93
91
  };
94
- /**
95
- * w-pager组件示例
96
- */
97
- export interface WPagerInstance extends VxePagerInstance {
98
- /**
99
- * 获取分页实例
100
- */
101
- getPagerInstance: () => VxePagerInstance | undefined;
102
- }
103
- /**
104
- * w-table组件示例
105
- */
106
- export interface WTableInstance extends VxeTableInstance {
107
- /**
108
- * 获取表格实例
109
- */
110
- getTableInstance: () => VxeTableInstance | undefined;
111
- /**
112
- * 获取表格工具栏实例
113
- */
114
- getToolbarInstance: () => VxeToolbarInstance | undefined;
115
- /**
116
- * 获取表格分页实例
117
- */
118
- getPagerInstance: () => WPagerInstance | undefined;
119
- }
120
- /**
121
- * w-column组件属性
122
- */
123
- export interface WColumnProp extends Omit<RenderCellProps, 'type' | 'field'>, Pick<VxeColumnProps, 'field' | 'title' | 'fixed' | 'width' | 'minWidth' | 'editRender' | 'headerClassName' | 'formatter'> {
124
- /**
125
- * 渲染类型
126
- */
127
- type?: VxeColumnProps['type'] | RenderCellProps['type'] | 'action';
128
- /**
129
- * 列是否可排序
130
- */
131
- sortable?: boolean;
132
- /**
133
- * 列头提示图标
134
- * @default 'QuestionCircleOutlined'
135
- */
136
- suffixIcon?: 'QuestionCircleOutlined' | 'InfoCircleOutlined' | 'ExclamationCircleOutlined' | Slot;
137
- /**
138
- * 列头提示图标
139
- * @default 'QuestionCircleOutlined'
140
- */
141
- prefixIcon?: 'QuestionCircleOutlined' | 'InfoCircleOutlined' | 'ExclamationCircleOutlined' | Slot;
142
- /**
143
- * 列头提示内容
144
- */
145
- tipsContent?: string | Slot;
146
- /**
147
- * 默认值
148
- */
149
- defaultValue?: string;
150
- }
151
- /**
152
- * 弹窗width类型
153
- */
154
- type WidthType = [UseWindowSizeType['NumType']] | [UseWindowSizeType['NumType'], UseWindowSizeType['NumType']] | [UseWindowSizeType['NumType'], UseWindowSizeType['NumType'], UseWindowSizeType['ComparedType']];
155
- /**
156
- * 底部按钮类型
157
- */
158
- export type FooterButtonType = 'ok' | 'cancel' | 'refresh';
159
- /**
160
- * w-modal组件属性
161
- */
162
- export interface WModalProps extends Pick<ModalProps, 'destroyOnClose' | 'okButtonProps' | 'cancelButtonProps' | 'confirmLoading'> {
163
- /**
164
- * 弹窗标题
165
- */
166
- title?: string;
167
- /**
168
- * 弹窗width
169
- */
170
- width?: string | number | WidthType;
171
- /**
172
- * 弹窗底部是否隐藏,可隐藏单独按钮
173
- */
174
- hideFooter?: boolean | Array<FooterButtonType>;
175
- }
176
92
  export type WDropdownListItem = {
177
93
  key: KeyType;
178
94
  label: string;
@@ -198,66 +114,6 @@ export interface WDropdownProps {
198
114
  */
199
115
  params?: any;
200
116
  }
201
- export interface WDescriptionsItemProps extends RenderCellProps {
202
- data?: Record<string, any>;
203
- /**
204
- * label
205
- */
206
- label?: string;
207
- /**
208
- * 默认值
209
- * @default '-'
210
- */
211
- defaultValue?: string;
212
- }
213
- export interface WUploadProps extends Pick<UploadProps, 'multiple' | 'beforeUpload'> {
214
- /**
215
- * 是否为拖拽上传
216
- * @default true
217
- */
218
- dragger?: boolean;
219
- /**
220
- * 上传的地址
221
- */
222
- url?: string;
223
- /**
224
- * 上传的参数
225
- */
226
- data?: any;
227
- /**
228
- * 上传的字段名,默认file
229
- */
230
- fieldName?: string;
231
- /**f
232
- * 上传的文件名称,默认images
233
- */
234
- fileName?: string;
235
- /**
236
- * 上传的自定义方法,优先级高于url
237
- */
238
- request: (formData: FormData) => Promise<any>;
239
- /**
240
- * 接受上传的文件类型,input[type=file] 的 accept 属性
241
- */
242
- accept?: string;
243
- /**
244
- * 上传文件大小限制
245
- * @default 1024 * 1024 * 10 单位:b
246
- */
247
- maxSize?: number;
248
- /**
249
- * 上传图标
250
- */
251
- uploadIcon?: string;
252
- /**
253
- * 上传文本
254
- */
255
- uploadText?: string;
256
- /**
257
- * 上传提示文本
258
- */
259
- uploadHint?: string;
260
- }
261
117
  export interface WUploadModalProps extends Pick<UploadProps, 'beforeUpload' | 'customRequest'> {
262
118
  /**
263
119
  * 对话框标题,可填资源代码
@@ -317,56 +173,6 @@ export interface WUploadModalInstance {
317
173
  setUploading: (uploading: boolean) => void;
318
174
  onUploadProgress: (progressEvent: AxiosProgressEvent) => void;
319
175
  }
320
- /**
321
- * w-pager 组件属性
322
- */
323
- export interface WPagerProps<T = any[]> extends VxePagerProps {
324
- /**
325
- * 数据源
326
- */
327
- dataSource?: T;
328
- }
329
- /**
330
- * w-card 组件属性
331
- */
332
- type TabListType = NonNullable<CardProps['tabList']>[number];
333
- interface WCardTabListType extends Omit<TabListType, 'key'> {
334
- key: TabListType['key'] | number;
335
- value?: string | number;
336
- label?: string | Component;
337
- }
338
- export interface WCardProps extends Omit<CardProps, 'tabList' | 'activeTabKey' | 'defaultActiveTabKey' | 'onTabChange'> {
339
- /**
340
- * 卡片标题
341
- */
342
- title?: string;
343
- /**
344
- * 卡片右上角的操作区域
345
- */
346
- extra?: string;
347
- /**
348
- * 是否必填
349
- */
350
- required?: boolean;
351
- /**
352
- * 页签标题列表, 可以通过 customTab(antdv v3.0) 插槽自定义 tab
353
- */
354
- tabList?: Array<WCardTabListType>;
355
- /**
356
- * 初始化选中页签的 key,如果没有设置 activeTabKey
357
- */
358
- defaultActiveTabKey?: CardProps['defaultActiveTabKey'] | number;
359
- }
360
- export interface WButtonProps extends Pick<WIconProp, 'authCode'> {
361
- /**
362
- * 图标
363
- */
364
- icon?: WIconProp['type'];
365
- /**
366
- * 文本
367
- */
368
- text?: string;
369
- }
370
176
  /**
371
177
  * w-page-head组件属性
372
178
  */
@@ -404,24 +210,6 @@ export interface WPageHeadProps {
404
210
  */
405
211
  refreshText?: string;
406
212
  }
407
- export interface WStatisticProps {
408
- title?: string;
409
- }
410
- /**
411
- * w-date-picker 组件属性
412
- */
413
- export interface WDatePickerProps extends Pick<DatePickerProps, 'picker' | 'format' | 'allowClear' | 'valueFormat'> {
414
- /**
415
- * 是否允许选择未来时间
416
- * @default true
417
- */
418
- futureTimeAllowed?: boolean;
419
- /**
420
- * value是否是string类型
421
- * @default false
422
- */
423
- valueString?: boolean;
424
- }
425
213
  /**
426
214
  * w-range-picker 组件属性
427
215
  */
@@ -450,4 +238,59 @@ export interface WRangePickerProps extends Pick<DatePickerProps, 'picker' | 'for
450
238
  */
451
239
  valueString?: boolean;
452
240
  }
453
- export {};
241
+ export type WPageProps<T extends string = HandlerMode> = {
242
+ /**
243
+ * 表单模式,如add | edit
244
+ */
245
+ mode?: T;
246
+ /**
247
+ * 页面表单标题,会自动添加表单模式前缀
248
+ */
249
+ title?: string;
250
+ /**
251
+ * 页面表单提示语
252
+ */
253
+ question?: string;
254
+ /**
255
+ * 页面表单提示语图标
256
+ */
257
+ questionIcon?: string;
258
+ /**
259
+ * 页面表单loading状态
260
+ */
261
+ loading?: boolean;
262
+ /**
263
+ * @deprecated 已废弃,请使用loading代替
264
+ */
265
+ detailsLoading?: boolean;
266
+ /**
267
+ * @deprecated 已废弃,请使用hideButton代替
268
+ */
269
+ hideFooter?: boolean | Array<FooterButtonType>;
270
+ /**
271
+ * 页面表单顶部是否隐藏,可隐藏单独按钮
272
+ */
273
+ hideButton?: boolean | Array<FooterButtonType>;
274
+ /**
275
+ * 页面表单顶部确定按钮文本
276
+ */
277
+ okText?: string;
278
+ /**
279
+ * 页面表单顶部取消按钮文本
280
+ */
281
+ cancelText?: string;
282
+ /**
283
+ * 页面表单顶部刷新按钮文本
284
+ */
285
+ refreshText?: string;
286
+ /**
287
+ * class
288
+ */
289
+ className?: string;
290
+ /**
291
+ * 是否卡片类型布局
292
+ * @default false
293
+ */
294
+ card?: boolean;
295
+ };
296
+ export type { FooterButtonType, WButtonProps, WCardProps, WDatePickerProps, WDescriptionsProps, WDescriptionsItemProps, WModalProps, WStatisticProps, WUploadProps } from '../antd';
@@ -4,7 +4,7 @@ declare const _default: import("vue").DefineComponent<WFormDateRangeProps, {}, {
4
4
  format: FormatType;
5
5
  allowClear: boolean;
6
6
  futureTimeAllowed: boolean;
7
- limit: number;
8
7
  offsetDays: number;
8
+ limit: number;
9
9
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
10
  export default _default;