wlwy-package 3.2.1 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +17 -0
- package/dist/types/packages/axios/index.d.ts +6 -0
- package/dist/types/packages/axios/service.d.ts +21 -0
- package/dist/types/packages/axios/types/index.d.ts +32 -0
- package/dist/types/packages/components/antd/index.d.ts +10 -0
- package/dist/types/packages/components/antd/src/button.vue.d.ts +10 -0
- package/dist/types/packages/components/antd/src/datePicker.vue.d.ts +16 -0
- package/dist/types/packages/components/antd/src/descriptions-item.vue.d.ts +9 -0
- package/dist/types/packages/components/antd/src/descriptions.vue.d.ts +6 -0
- package/dist/types/packages/components/antd/src/modal.vue.d.ts +30 -0
- package/dist/types/packages/components/antd/src/select.vue.d.ts +14 -0
- package/dist/types/packages/components/antd/src/statistic.vue.d.ts +3 -0
- package/dist/types/packages/components/antd/src/upload.vue.d.ts +40 -0
- package/dist/types/packages/components/antd/type.d.ts +164 -0
- package/dist/types/packages/components/common/index.d.ts +20 -0
- package/dist/types/packages/components/common/src/Redirect.vue.d.ts +2 -0
- package/dist/types/packages/components/common/src/configProvider.vue.d.ts +13 -0
- package/dist/types/packages/components/common/src/cropper.vue.d.ts +29 -0
- package/dist/types/packages/components/common/src/dropdown.vue.d.ts +23 -0
- package/dist/types/packages/components/common/src/editTitle.vue.d.ts +18 -0
- package/dist/types/packages/components/common/src/noData.vue.d.ts +7 -0
- package/dist/types/packages/components/common/src/page.vue.d.ts +38 -0
- package/dist/types/packages/components/common/src/pageHead.vue.d.ts +29 -0
- package/dist/types/packages/components/common/src/rangePicker.vue.d.ts +24 -0
- package/dist/types/packages/components/common/src/slashHeader.vue.d.ts +7 -0
- package/dist/types/packages/components/common/src/upload-modal.vue.d.ts +43 -0
- package/dist/types/packages/components/common/type.d.ts +296 -0
- package/dist/types/packages/components/form/business/index.d.ts +8 -0
- package/dist/types/packages/components/form/business/src/channel.vue.d.ts +5 -0
- package/dist/types/packages/components/form/business/src/country.vue.d.ts +3 -0
- package/dist/types/packages/components/form/business/src/customer.vue.d.ts +6 -0
- package/dist/types/packages/components/form/business/src/sku.vue.d.ts +5 -0
- package/dist/types/packages/components/form/business/type.d.ts +36 -0
- package/dist/types/packages/components/form/default/index.d.ts +44 -0
- package/dist/types/packages/components/form/default/src/checkbox.vue.d.ts +18 -0
- package/dist/types/packages/components/form/default/src/custom.vue.d.ts +14 -0
- package/dist/types/packages/components/form/default/src/datePicker.vue.d.ts +6 -0
- package/dist/types/packages/components/form/default/src/dateRange.vue.d.ts +10 -0
- package/dist/types/packages/components/form/default/src/form.vue.d.ts +429 -0
- package/dist/types/packages/components/form/default/src/formCol.vue.d.ts +16 -0
- package/dist/types/packages/components/form/default/src/formItem.vue.d.ts +20 -0
- package/dist/types/packages/components/form/default/src/formItemRest.vue.d.ts +2 -0
- package/dist/types/packages/components/form/default/src/input.vue.d.ts +26 -0
- package/dist/types/packages/components/form/default/src/inputI18n.vue.d.ts +14 -0
- package/dist/types/packages/components/form/default/src/inputMatch.vue.d.ts +18 -0
- package/dist/types/packages/components/form/default/src/inputNumber.vue.d.ts +16 -0
- package/dist/types/packages/components/form/default/src/inputPassword.vue.d.ts +16 -0
- package/dist/types/packages/components/form/default/src/inputTags.vue.d.ts +21 -0
- package/dist/types/packages/components/form/default/src/modal.vue.d.ts +46 -0
- package/dist/types/packages/components/form/default/src/numberRange.vue.d.ts +9 -0
- package/dist/types/packages/components/form/default/src/page.vue.d.ts +48 -0
- package/dist/types/packages/components/form/default/src/radio.vue.d.ts +18 -0
- package/dist/types/packages/components/form/default/src/select.vue.d.ts +21 -0
- package/dist/types/packages/components/form/default/src/selectInput.vue.d.ts +13 -0
- package/dist/types/packages/components/form/default/src/textarea.vue.d.ts +14 -0
- package/dist/types/packages/components/form/default/src/timePicker.vue.d.ts +6 -0
- package/dist/types/packages/components/form/default/src/upload-image.vue.d.ts +23 -0
- package/dist/types/packages/components/form/default/src/upload.vue.d.ts +12 -0
- package/dist/types/packages/components/form/default/src/wrap.vue.d.ts +56 -0
- package/dist/types/packages/components/form/default/type.d.ts +680 -0
- package/dist/types/packages/components/form/index.d.ts +2 -0
- package/dist/types/packages/components/form/type.d.ts +2 -0
- package/dist/types/packages/components/icon/index.d.ts +4 -0
- package/dist/types/packages/components/icon/src/icon.vue.d.ts +12 -0
- package/dist/types/packages/components/icon/src/index.vue.d.ts +9 -0
- package/dist/types/packages/components/icon/src/switch.vue.d.ts +18 -0
- package/dist/types/packages/components/icon/type.d.ts +41 -0
- package/dist/types/packages/components/index.d.ts +7 -0
- package/dist/types/packages/components/layout/blank.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/index.d.ts +7 -0
- package/dist/types/packages/components/layout/index.vue.d.ts +9 -0
- package/dist/types/packages/components/layout/skeleton/list.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/skeleton/switch.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/footer.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/header/index.vue.d.ts +10 -0
- package/dist/types/packages/components/layout/src/header/modules/download.vue.d.ts +6 -0
- package/dist/types/packages/components/layout/src/header/modules/language.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/header/modules/password-modal.vue.d.ts +9 -0
- package/dist/types/packages/components/layout/src/header/modules/topMenu.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/header/modules/warehouse.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/logo.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/siderMenu.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/src/subMenuItem.vue.d.ts +6 -0
- package/dist/types/packages/components/layout/src/tabsNav.vue.d.ts +2 -0
- package/dist/types/packages/components/layout/type.d.ts +17 -0
- package/dist/types/packages/components/lazy/charts/index.d.ts +21 -0
- package/dist/types/packages/components/lazy/charts/index.vue.d.ts +7 -0
- package/dist/types/packages/components/lazy/editor/editor-core.vue.d.ts +36 -0
- package/dist/types/packages/components/lazy/editor/index.d.ts +3 -0
- package/dist/types/packages/components/lazy/editor/index.vue.d.ts +35 -0
- package/dist/types/packages/components/lazy/editor/type.d.ts +62 -0
- package/dist/types/packages/components/list/index.d.ts +7 -0
- package/dist/types/packages/components/list/input.d.ts +432 -0
- package/dist/types/packages/components/list/src/header.vue.d.ts +44 -0
- package/dist/types/packages/components/list/src/index.vue.d.ts +68 -0
- package/dist/types/packages/components/list/src/pager.vue.d.ts +10 -0
- package/dist/types/packages/components/list/src/table.vue.d.ts +774 -0
- package/dist/types/packages/components/list/type.d.ts +346 -0
- package/dist/types/packages/components/table/constants.d.ts +15 -0
- package/dist/types/packages/components/table/index.d.ts +7 -0
- package/dist/types/packages/components/table/resolveInjectColumns.d.ts +17 -0
- package/dist/types/packages/components/table/src/action-column.vue.d.ts +11 -0
- package/dist/types/packages/components/table/src/column.vue.d.ts +82 -0
- package/dist/types/packages/components/table/src/pager.vue.d.ts +314 -0
- package/dist/types/packages/components/table/src/search.vue.d.ts +34 -0
- package/dist/types/packages/components/table/src/table.vue.d.ts +802 -0
- package/dist/types/packages/components/table/type.d.ts +179 -0
- package/dist/types/packages/components/table/useWTableConfig.d.ts +34 -0
- package/dist/types/packages/components/table/vxeDefaultConfig.d.ts +8 -0
- package/dist/types/packages/components/table/warnDeprecated.d.ts +6 -0
- package/dist/types/packages/config.d.ts +27 -0
- package/dist/types/packages/directive/auth.d.ts +4 -0
- package/dist/types/packages/directive/auths.d.ts +4 -0
- package/dist/types/packages/directive/index.d.ts +6 -0
- package/dist/types/packages/hooks/business/index.d.ts +4 -0
- package/dist/types/packages/hooks/business/src/index.d.ts +4 -0
- package/dist/types/packages/hooks/business/src/useCountryDict.d.ts +22 -0
- package/dist/types/packages/hooks/business/src/useCurrencyDict.d.ts +22 -0
- package/dist/types/packages/hooks/business/src/useCustomerDict.d.ts +22 -0
- package/dist/types/packages/hooks/business/src/useWarehouseZoneDict.d.ts +22 -0
- package/dist/types/packages/hooks/business/useBusinessDict.d.ts +2 -0
- package/dist/types/packages/hooks/business/useDict.d.ts +25 -0
- package/dist/types/packages/hooks/index.d.ts +2 -0
- package/dist/types/packages/hooks/private/index.d.ts +2 -0
- package/dist/types/packages/hooks/private/src/useKey.d.ts +1 -0
- package/dist/types/packages/hooks/private/src/useRenderCell.d.ts +71 -0
- package/dist/types/packages/hooks/web/index.d.ts +17 -0
- package/dist/types/packages/hooks/web/src/useAffix.d.ts +19 -0
- package/dist/types/packages/hooks/web/src/useCatchPreloadError.d.ts +6 -0
- package/dist/types/packages/hooks/web/src/useCookie.d.ts +11 -0
- package/dist/types/packages/hooks/web/src/useEmitBack.d.ts +3 -0
- package/dist/types/packages/hooks/web/src/useEnum.d.ts +24 -0
- package/dist/types/packages/hooks/web/src/useExport.d.ts +4 -0
- package/dist/types/packages/hooks/web/src/useFormItemProps.d.ts +22 -0
- package/dist/types/packages/hooks/web/src/useFormStorage.d.ts +18 -0
- package/dist/types/packages/hooks/web/src/useI18n.d.ts +26 -0
- package/dist/types/packages/hooks/web/src/useListConfig.d.ts +16 -0
- package/dist/types/packages/hooks/web/src/useLocale.d.ts +6 -0
- package/dist/types/packages/hooks/web/src/useNProgress.d.ts +5 -0
- package/dist/types/packages/hooks/web/src/usePageForm.d.ts +9 -0
- package/dist/types/packages/hooks/web/src/usePrefixTitle.d.ts +7 -0
- package/dist/types/packages/hooks/web/src/useTabsNav.d.ts +13 -0
- package/dist/types/packages/hooks/web/src/useUpload.d.ts +1 -0
- package/dist/types/packages/hooks/web/src/useWatchForm.d.ts +10 -0
- package/dist/types/packages/hooks/web/src/useWindowSize.d.ts +8 -0
- package/dist/types/packages/index.d.ts +21 -0
- package/dist/types/packages/keys/index.d.ts +6 -0
- package/dist/types/packages/keys/public.d.ts +0 -0
- package/dist/types/packages/plugins/index.d.ts +1 -0
- package/dist/types/packages/plugins/vueI18n/helper.d.ts +1 -0
- package/dist/types/packages/plugins/vueI18n/index.d.ts +14 -0
- package/dist/types/packages/setup/index.d.ts +1 -0
- package/dist/types/packages/setup/vxe.d.ts +10 -0
- package/dist/types/packages/store/index.d.ts +9 -0
- package/dist/types/packages/store/modules/common.d.ts +50 -0
- package/dist/types/packages/store/modules/dict.d.ts +436 -0
- package/dist/types/packages/store/modules/language.d.ts +182 -0
- package/dist/types/packages/store/modules/tagsNav.d.ts +156 -0
- package/dist/types/packages/store/modules/userPermission.d.ts +60 -0
- package/dist/types/packages/type.d.ts +44 -0
- package/dist/types/packages/utils/config.d.ts +1 -0
- package/dist/types/packages/utils/createRefInstanceProxy.d.ts +13 -0
- package/dist/types/packages/utils/formatCellValue.d.ts +82 -0
- package/dist/types/packages/utils/getPrefixTitle.d.ts +5 -0
- package/dist/types/packages/utils/index.d.ts +48 -0
- package/dist/types/packages/utils/type.d.ts +6 -0
- package/dist/types/packages/utils/warehouse.d.ts +30 -0
- package/dist/wlwy-package.es.js +19 -21
- package/package.json +1 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { WUploadModalProps } from '../type';
|
|
2
|
+
import { AxiosProgressEvent } from 'axios';
|
|
3
|
+
type __VLS_Props = WUploadModalProps;
|
|
4
|
+
declare const __VLS_defaults: {
|
|
5
|
+
open: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
+
'open'?: typeof __VLS_defaults['open'];
|
|
9
|
+
};
|
|
10
|
+
declare var __VLS_6: {}, __VLS_20: {}, __VLS_26: {}, __VLS_28: {};
|
|
11
|
+
type __VLS_Slots = {} & {
|
|
12
|
+
header?: (props: typeof __VLS_6) => any;
|
|
13
|
+
} & {
|
|
14
|
+
uploadTip?: (props: typeof __VLS_20) => any;
|
|
15
|
+
} & {
|
|
16
|
+
notes?: (props: typeof __VLS_26) => any;
|
|
17
|
+
} & {
|
|
18
|
+
footer?: (props: typeof __VLS_28) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {
|
|
21
|
+
setUploading: (uploading: boolean) => void;
|
|
22
|
+
onUploadProgress: (progressEvent: AxiosProgressEvent) => void;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
+
"update:open": (value: boolean) => any;
|
|
25
|
+
uploadCompleted: (result: any) => any;
|
|
26
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
27
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
onUploadCompleted?: ((result: any) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
title: string;
|
|
31
|
+
method: "POST" | "UPLOAD";
|
|
32
|
+
accept: string;
|
|
33
|
+
fileName: string;
|
|
34
|
+
maxSize: number;
|
|
35
|
+
noteTitle: string;
|
|
36
|
+
notes: string[];
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
38
|
+
export default _default;
|
|
39
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
import type { ConfigProviderProps as Config, DatePickerProps, UploadProps } from 'ant-design-vue';
|
|
2
|
+
import type { KeyType, HandlerMode } from '../../type';
|
|
3
|
+
import type { AxiosProgressEvent } from 'axios';
|
|
4
|
+
import type { FooterButtonType } from '../antd';
|
|
5
|
+
export type { WPagerInstance, WTableInstance, WColumnProp, WPagerProps, WListSearchProps, WListSearchInstance } from '../table';
|
|
6
|
+
/**
|
|
7
|
+
* w-config-provider组件属性
|
|
8
|
+
*/
|
|
9
|
+
export interface ConfigProviderProp extends Omit<Config, 'locale'> {
|
|
10
|
+
/**
|
|
11
|
+
* 是否初始化
|
|
12
|
+
*/
|
|
13
|
+
readonly initialization?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 全局页面loading状态
|
|
16
|
+
*/
|
|
17
|
+
readonly loading?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* a-spin延时属性,同ant-design-vue框架的Spin组件的delay属性一致
|
|
20
|
+
*/
|
|
21
|
+
readonly delay?: number;
|
|
22
|
+
/**
|
|
23
|
+
* 主题配置
|
|
24
|
+
*/
|
|
25
|
+
theme?: any;
|
|
26
|
+
/**
|
|
27
|
+
* 当前语言
|
|
28
|
+
*/
|
|
29
|
+
locale?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* w-cropper组件属性
|
|
33
|
+
*/
|
|
34
|
+
export type WCropperProp = {
|
|
35
|
+
/**
|
|
36
|
+
* 标题
|
|
37
|
+
*/
|
|
38
|
+
title?: string;
|
|
39
|
+
/**
|
|
40
|
+
* 裁剪生成图片的格式jpg (jpg 需要传入jpeg)
|
|
41
|
+
*/
|
|
42
|
+
outputType?: 'jpeg' | 'png' | 'webp';
|
|
43
|
+
/**
|
|
44
|
+
* 裁剪框的大小信息
|
|
45
|
+
*/
|
|
46
|
+
info?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* 接受上传的文件类型,input[type=file] 的 accept 属性
|
|
49
|
+
*/
|
|
50
|
+
/**
|
|
51
|
+
* 是否默认生成截图框
|
|
52
|
+
*/
|
|
53
|
+
autoCrop?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 默认生成截图框宽度
|
|
56
|
+
*/
|
|
57
|
+
autoCropWidth?: number;
|
|
58
|
+
/**
|
|
59
|
+
* 默认生成截图框高度
|
|
60
|
+
*/
|
|
61
|
+
autoCropHeight?: number;
|
|
62
|
+
/**
|
|
63
|
+
* 是否开启截图框宽高固定比例
|
|
64
|
+
*/
|
|
65
|
+
fixed?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* 是否输出原图比例的截图
|
|
68
|
+
*/
|
|
69
|
+
full?: boolean;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* w-cropper组件示例
|
|
73
|
+
*/
|
|
74
|
+
export type WCropperInstance = {
|
|
75
|
+
/**
|
|
76
|
+
* 获取cropper实例
|
|
77
|
+
*/
|
|
78
|
+
getCropperInstance: () => any;
|
|
79
|
+
/**
|
|
80
|
+
* 获取截图的 base64 数据
|
|
81
|
+
*/
|
|
82
|
+
getCropData: () => Promise<string> | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* 获取截图的 blob 数据
|
|
85
|
+
*/
|
|
86
|
+
getCropBlob: () => Promise<Blob> | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* 清空截图框
|
|
89
|
+
*/
|
|
90
|
+
clearCrop: () => void;
|
|
91
|
+
};
|
|
92
|
+
export type WDropdownListItem = {
|
|
93
|
+
key: KeyType;
|
|
94
|
+
label: string;
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* w-dropdown 组件属性
|
|
98
|
+
*/
|
|
99
|
+
export interface WDropdownProps {
|
|
100
|
+
/**
|
|
101
|
+
* 下拉选项列表
|
|
102
|
+
*/
|
|
103
|
+
items?: WDropdownListItem[];
|
|
104
|
+
/**
|
|
105
|
+
* 加载下拉选项列表接口url
|
|
106
|
+
*/
|
|
107
|
+
url?: string;
|
|
108
|
+
/**
|
|
109
|
+
* 加载下拉选项列表接口类型(默认POST)
|
|
110
|
+
*/
|
|
111
|
+
method?: string;
|
|
112
|
+
/**
|
|
113
|
+
* 加载下拉选项列表接口请求参数
|
|
114
|
+
*/
|
|
115
|
+
params?: any;
|
|
116
|
+
}
|
|
117
|
+
export interface WUploadModalProps extends Pick<UploadProps, 'beforeUpload' | 'customRequest'> {
|
|
118
|
+
/**
|
|
119
|
+
* 对话框标题,可填资源代码
|
|
120
|
+
* @default 'com_btn_2443' 上传文件
|
|
121
|
+
*/
|
|
122
|
+
title?: string;
|
|
123
|
+
/**
|
|
124
|
+
* 上传接口url
|
|
125
|
+
*/
|
|
126
|
+
url?: string;
|
|
127
|
+
/**
|
|
128
|
+
* 上传接口类型
|
|
129
|
+
* @default 'POST'
|
|
130
|
+
*/
|
|
131
|
+
method?: 'POST' | 'UPLOAD';
|
|
132
|
+
/**
|
|
133
|
+
* 上传接口请求参数
|
|
134
|
+
*/
|
|
135
|
+
params?: any;
|
|
136
|
+
/**
|
|
137
|
+
* 是否禁用
|
|
138
|
+
*/
|
|
139
|
+
disabled?: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* 上传文件大小限制
|
|
142
|
+
* @default 1024 * 1024 * 10 单位:b
|
|
143
|
+
*/
|
|
144
|
+
maxSize?: number;
|
|
145
|
+
/**
|
|
146
|
+
* 上传文件类型
|
|
147
|
+
*/
|
|
148
|
+
accept?: string;
|
|
149
|
+
/**
|
|
150
|
+
* 上传文件名称
|
|
151
|
+
* @default 'file'
|
|
152
|
+
*/
|
|
153
|
+
fileName?: string;
|
|
154
|
+
/**
|
|
155
|
+
* 是否支持多选文件
|
|
156
|
+
*/
|
|
157
|
+
multiple?: boolean;
|
|
158
|
+
/**
|
|
159
|
+
* 上传文件提示
|
|
160
|
+
*/
|
|
161
|
+
uploadTip?: string;
|
|
162
|
+
/**
|
|
163
|
+
* 底部提示
|
|
164
|
+
* @default 'com_lab_2448' 温馨提示
|
|
165
|
+
*/
|
|
166
|
+
noteTitle?: string;
|
|
167
|
+
/**
|
|
168
|
+
* 底部提示内容
|
|
169
|
+
*/
|
|
170
|
+
notes?: string[];
|
|
171
|
+
}
|
|
172
|
+
export interface WUploadModalInstance {
|
|
173
|
+
setUploading: (uploading: boolean) => void;
|
|
174
|
+
onUploadProgress: (progressEvent: AxiosProgressEvent) => void;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* w-page-head组件属性
|
|
178
|
+
*/
|
|
179
|
+
export interface WPageHeadProps {
|
|
180
|
+
/**
|
|
181
|
+
* 页面表单标题,会自动添加表单模式前缀
|
|
182
|
+
*/
|
|
183
|
+
title?: string;
|
|
184
|
+
/**
|
|
185
|
+
* 页面表单提示语
|
|
186
|
+
*/
|
|
187
|
+
question?: string;
|
|
188
|
+
/**
|
|
189
|
+
* 页面表单提示语图标
|
|
190
|
+
*/
|
|
191
|
+
questionIcon?: string;
|
|
192
|
+
/**
|
|
193
|
+
* 页面表单loading状态
|
|
194
|
+
*/
|
|
195
|
+
loading?: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* 页面表单顶部是否隐藏,可隐藏单独按钮
|
|
198
|
+
*/
|
|
199
|
+
hideButton?: boolean | Array<FooterButtonType>;
|
|
200
|
+
/**
|
|
201
|
+
* 页面表单顶部确定按钮文本
|
|
202
|
+
*/
|
|
203
|
+
okText?: string;
|
|
204
|
+
/**
|
|
205
|
+
* 页面表单顶部取消按钮文本
|
|
206
|
+
*/
|
|
207
|
+
cancelText?: string;
|
|
208
|
+
/**
|
|
209
|
+
* 页面表单顶部刷新按钮文本
|
|
210
|
+
*/
|
|
211
|
+
refreshText?: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* w-range-picker 组件属性
|
|
215
|
+
*/
|
|
216
|
+
type PresetsDate = NonNullable<DatePickerProps['presets']>[number];
|
|
217
|
+
export interface WRangePickerProps extends Pick<DatePickerProps, 'picker' | 'format' | 'allowClear' | 'valueFormat'> {
|
|
218
|
+
presets: Array<{
|
|
219
|
+
label: PresetsDate['label'];
|
|
220
|
+
value: [PresetsDate['value'], PresetsDate['value']];
|
|
221
|
+
}>;
|
|
222
|
+
/**
|
|
223
|
+
* 时长范围的最大值
|
|
224
|
+
*/
|
|
225
|
+
limit?: number;
|
|
226
|
+
/**
|
|
227
|
+
* 时间格式
|
|
228
|
+
*/
|
|
229
|
+
format?: FormatType;
|
|
230
|
+
/**
|
|
231
|
+
* 是否允许选择未来时间
|
|
232
|
+
* @default true
|
|
233
|
+
*/
|
|
234
|
+
futureTimeAllowed?: boolean;
|
|
235
|
+
/**
|
|
236
|
+
* value是否是string类型
|
|
237
|
+
* @default false
|
|
238
|
+
*/
|
|
239
|
+
valueString?: boolean;
|
|
240
|
+
}
|
|
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';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type { WFormChannelProps } from './type';
|
|
2
|
+
export { default as WFormChannel } from './src/channel.vue';
|
|
3
|
+
export type { WFormCustomerProps } from './type';
|
|
4
|
+
export { default as WFormCustomer } from './src/customer.vue';
|
|
5
|
+
export type { WFormCountryProps } from './type';
|
|
6
|
+
export { default as WFormCountry } from './src/country.vue';
|
|
7
|
+
export type { WFormSkuProps } from './type';
|
|
8
|
+
export { default as WFormSku } from './src/sku.vue';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WFormChannelProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WFormChannelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormChannelProps> & Readonly<{}>, {
|
|
3
|
+
keyword: string;
|
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { WFormCountryProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WFormCountryProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormCountryProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CustomeUrlType, WFormCustomerProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WFormCustomerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormCustomerProps> & Readonly<{}>, {
|
|
3
|
+
keyword: string;
|
|
4
|
+
urlType: CustomeUrlType;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { WFormSkuProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WFormSkuProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormSkuProps> & Readonly<{}>, {
|
|
3
|
+
keyword: string;
|
|
4
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { WFormSelectProps } from '../default';
|
|
2
|
+
export type CustomeUrlType = 'default' | 'withoutWarehouse';
|
|
3
|
+
type KeywordType = {
|
|
4
|
+
keyword?: string;
|
|
5
|
+
};
|
|
6
|
+
/**
|
|
7
|
+
* 客户下拉框
|
|
8
|
+
*/
|
|
9
|
+
export interface WFormCustomerProps extends KeywordType, Pick<WFormSelectProps, 'request' | 'form' | 'model' | 'option'> {
|
|
10
|
+
/**
|
|
11
|
+
* url类型 'default' | 'withoutWarehouse'
|
|
12
|
+
* @type default: /cms/customer/page
|
|
13
|
+
* @type withoutWarehouse: /cms/customer/pageWithoutWarehouse
|
|
14
|
+
*/
|
|
15
|
+
urlType: CustomeUrlType;
|
|
16
|
+
/**
|
|
17
|
+
* 请求参数字段
|
|
18
|
+
*/
|
|
19
|
+
properties: any;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 国家下拉框
|
|
23
|
+
*/
|
|
24
|
+
export interface WFormCountryProps extends Pick<WFormSelectProps, 'request' | 'form' | 'model' | 'option'> {
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* 渠道下拉框
|
|
28
|
+
*/
|
|
29
|
+
export interface WFormChannelProps extends KeywordType, Pick<WFormSelectProps, 'url' | 'request' | 'form' | 'model' | 'option'> {
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* sku下拉框
|
|
33
|
+
*/
|
|
34
|
+
export interface WFormSkuProps extends KeywordType, Pick<WFormSelectProps, 'url' | 'request' | 'form' | 'model' | 'option'> {
|
|
35
|
+
}
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type { FormItemXxProps, WFormInstance } from './type';
|
|
2
|
+
export { default as WForm } from './src/form.vue';
|
|
3
|
+
export { default as WFormItem } from './src/formItem.vue';
|
|
4
|
+
export { default as WFormCol } from './src/formCol.vue';
|
|
5
|
+
export { default as WFormItemRest } from './src/formItemRest.vue';
|
|
6
|
+
export type { WFormInputProps } from './type';
|
|
7
|
+
export { default as WFormInput } from './src/input.vue';
|
|
8
|
+
export { default as WFormPassword } from './src/inputPassword.vue';
|
|
9
|
+
export type { WFormNumberProps } from './type';
|
|
10
|
+
export { default as WFormNumber } from './src/inputNumber.vue';
|
|
11
|
+
export type { WFormTagsProps } from './type';
|
|
12
|
+
export { default as WFormTags } from './src/inputTags.vue';
|
|
13
|
+
export type { WFormTextareaProps } from './type';
|
|
14
|
+
export { default as WFormTextarea } from './src/textarea.vue';
|
|
15
|
+
export type { WFormCheckboxProps } from './type';
|
|
16
|
+
export { default as WFormCheckbox } from './src/checkbox.vue';
|
|
17
|
+
export type { WFormRadioProps } from './type';
|
|
18
|
+
export { default as WFormRadio } from './src/radio.vue';
|
|
19
|
+
export type { WFormSelectProps } from './type';
|
|
20
|
+
export { default as WFormSelect } from './src/select.vue';
|
|
21
|
+
export type { WFormSelectInputProps } from './type';
|
|
22
|
+
export { default as WFormSelectInput } from './src/selectInput.vue';
|
|
23
|
+
export type { WFormDateRangeProps } from './type';
|
|
24
|
+
export { default as WFormDateRange } from './src/dateRange.vue';
|
|
25
|
+
export type { WFormTimePickerProps } from './type';
|
|
26
|
+
export { default as WFormTimePicker } from './src/timePicker.vue';
|
|
27
|
+
export type { WFormDatePickerProps } from './type';
|
|
28
|
+
export { default as WFormDatePicker } from './src/datePicker.vue';
|
|
29
|
+
export type { WFormNumberRangeProps } from './type';
|
|
30
|
+
export { default as WFormNumberRange } from './src/numberRange.vue';
|
|
31
|
+
export type { WFormCustomProps } from './type';
|
|
32
|
+
export { default as WFormCustom } from './src/custom.vue';
|
|
33
|
+
export { default as WFormInputMatch } from './src/inputMatch.vue';
|
|
34
|
+
export { default as WFormInputI18n } from './src/inputI18n.vue';
|
|
35
|
+
export type { WFormUploadProps } from './type';
|
|
36
|
+
export { default as WFormUpload } from './src/upload.vue';
|
|
37
|
+
export type { WFormUploadImageProps } from './type';
|
|
38
|
+
export { default as WFormUploadImage } from './src/upload-image.vue';
|
|
39
|
+
export type { WFormModalProps, WFormModalInstance, WFormModalOkHandleType } from './type';
|
|
40
|
+
export { default as WFormModal } from './src/modal.vue';
|
|
41
|
+
export type { WFormPageProps, WFormPageInstance, WFormPageOkHandleType } from './type';
|
|
42
|
+
export { default as WFormPage } from './src/page.vue';
|
|
43
|
+
export type { WFormWrapProps, WFormWrapInstance, WFormWrapOkHandleType } from './type';
|
|
44
|
+
export { default as WFormWrap } from './src/wrap.vue';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { WFormCheckboxProps } from '../type';
|
|
2
|
+
import type { OptionType } from '../../../../type';
|
|
3
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WFormCheckboxProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormCheckboxProps> & Readonly<{}>, {
|
|
4
|
+
params: any;
|
|
5
|
+
method: string;
|
|
6
|
+
option: OptionType[];
|
|
7
|
+
allowClear: boolean;
|
|
8
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
9
|
+
label?: ((props: any) => any) | undefined;
|
|
10
|
+
extra?: ((props: any) => any) | undefined;
|
|
11
|
+
help?: ((props: any) => any) | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { WFormCustomProps } from '../type';
|
|
2
|
+
declare var __VLS_7: string, __VLS_8: any, __VLS_11: string | undefined, __VLS_12: any;
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
[K in NonNullable<typeof __VLS_7>]?: (props: typeof __VLS_8) => any;
|
|
5
|
+
} & {
|
|
6
|
+
[K in NonNullable<typeof __VLS_11>]?: (props: typeof __VLS_12) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WFormCustomProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormCustomProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
11
|
+
new (): {
|
|
12
|
+
$slots: S;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { WFormDatePickerProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WFormDatePickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormDatePickerProps> & Readonly<{}>, {
|
|
3
|
+
format: string;
|
|
4
|
+
allowClear: boolean;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WFormDateRangeProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WFormDateRangeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WFormDateRangeProps> & Readonly<{}>, {
|
|
3
|
+
option: import("../../../common").WDropdownListItem[];
|
|
4
|
+
format: FormatType;
|
|
5
|
+
allowClear: boolean;
|
|
6
|
+
futureTimeAllowed: boolean;
|
|
7
|
+
offsetDays: number;
|
|
8
|
+
limit: number;
|
|
9
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
export default _default;
|