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,17 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import type { Config } from './packages';
|
|
3
|
+
declare const wlwyPackage: {
|
|
4
|
+
install: (app: App) => void;
|
|
5
|
+
setConfig: (options: Config) => void;
|
|
6
|
+
};
|
|
7
|
+
export * from './packages/components';
|
|
8
|
+
export * from './packages/store';
|
|
9
|
+
export * from './packages/hooks';
|
|
10
|
+
export * from './packages/plugins';
|
|
11
|
+
export * from './packages/setup';
|
|
12
|
+
export * from './packages/type';
|
|
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';
|
|
15
|
+
export { useService, type ServiceType } from './packages/axios';
|
|
16
|
+
export { getTitle } from './packages/utils';
|
|
17
|
+
export default wlwyPackage;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type AxiosResponse } from 'axios';
|
|
2
|
+
import type { ServiceOptions, ApiResponse, RequestConfig } from './types';
|
|
3
|
+
export declare class service {
|
|
4
|
+
private readonly instance;
|
|
5
|
+
private readonly interceptors?;
|
|
6
|
+
private readonly showLoading?;
|
|
7
|
+
private spinning?;
|
|
8
|
+
private readonly tokenKey;
|
|
9
|
+
constructor(config: ServiceOptions);
|
|
10
|
+
request<T = any>(config: RequestConfig, spinning?: boolean): Promise<AxiosResponse<T>>;
|
|
11
|
+
options<T = any>(url: string, config: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
12
|
+
GET<T = any>(url: string, params?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
13
|
+
DELETE<T = any>(url: string, params: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
14
|
+
POST<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
15
|
+
PUT<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
16
|
+
PATCH<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
17
|
+
UPLOAD<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
18
|
+
EXPORT<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
19
|
+
}
|
|
20
|
+
export default service;
|
|
21
|
+
export type ServiceType = Omit<InstanceType<typeof service>, 'interceptors' | 'showLoading' | 'tokenKey' | 'config' | 'instance' | 'spinning'>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AxiosError, AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
|
|
2
|
+
export type TokenKeys = 'ttoken' | 'ctoken' | 'ptoken';
|
|
3
|
+
export interface ServiceOptions extends RequestConfig {
|
|
4
|
+
tokenKey?: TokenKeys;
|
|
5
|
+
interceptors?: RequestInterceptors;
|
|
6
|
+
showLoading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export type RequestInterceptors = {
|
|
9
|
+
requestInterceptor?: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
|
|
10
|
+
requestInterceptorCatch?: (error: AxiosError) => AxiosError;
|
|
11
|
+
responseInterceptor?: (res: AxiosResponse) => AxiosResponse;
|
|
12
|
+
responseInterceptorCatch?: (error: AxiosError) => AxiosError;
|
|
13
|
+
};
|
|
14
|
+
export interface RequestConfig extends Omit<AxiosRequestConfig, 'headers'> {
|
|
15
|
+
headers?: AxiosRequestConfig['headers'] & {
|
|
16
|
+
OriginalResponse?: boolean;
|
|
17
|
+
Satoken?: string;
|
|
18
|
+
Language?: string;
|
|
19
|
+
'System-Type'?: string;
|
|
20
|
+
timezone?: string;
|
|
21
|
+
warehouse_id?: string;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export type ApiResponse<T> = {
|
|
25
|
+
code: string;
|
|
26
|
+
errors: string;
|
|
27
|
+
fail: boolean;
|
|
28
|
+
message: string;
|
|
29
|
+
success: boolean;
|
|
30
|
+
result: T;
|
|
31
|
+
timestamp: number;
|
|
32
|
+
};
|
|
@@ -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';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { WButtonProps } from '../type';
|
|
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
|
+
default?: ((props: {}) => any) | undefined;
|
|
4
|
+
}>;
|
|
5
|
+
export default _default;
|
|
6
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
7
|
+
new (): {
|
|
8
|
+
$slots: S;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { WDatePickerProps } from '../type';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
type __VLS_Props = WDatePickerProps;
|
|
4
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
+
modelValue?: dayjs.Dayjs | string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: string | dayjs.Dayjs | undefined) => any;
|
|
9
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
+
"onUpdate:modelValue"?: ((value: string | dayjs.Dayjs | undefined) => any) | undefined;
|
|
11
|
+
}>, {
|
|
12
|
+
picker: "time" | "date" | "week" | "month" | "quarter" | "year";
|
|
13
|
+
allowClear: boolean;
|
|
14
|
+
futureTimeAllowed: boolean;
|
|
15
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { WModalProps } from '../type';
|
|
2
|
+
type __VLS_Props = WModalProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
'open'?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_12: string | number, __VLS_13: any, __VLS_15: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
[K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
|
|
9
|
+
} & {
|
|
10
|
+
title?: (props: typeof __VLS_15) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
cancel: (event: MouseEvent) => any;
|
|
14
|
+
ok: (event: MouseEvent) => any;
|
|
15
|
+
"update:open": (value: boolean) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
+
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
+
onOk?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
title: string;
|
|
22
|
+
destroyOnClose: boolean;
|
|
23
|
+
hideFooter: boolean | import("../type").FooterButtonType[];
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
25
|
+
export default _default;
|
|
26
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
+
new (): {
|
|
28
|
+
$slots: S;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type SelectProps } from 'ant-design-vue';
|
|
2
|
+
type PropsType = Pick<SelectProps, 'tokenSeparators' | 'mode' | 'onChange'>;
|
|
3
|
+
type __VLS_Props = PropsType;
|
|
4
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
+
'value'?: SelectProps['value'];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
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
|
+
"update:value": (value: (string | number) | (string | number)[] | import("ant-design-vue/es/select").LabeledValue | import("ant-design-vue/es/select").LabeledValue[] | undefined) => any;
|
|
10
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
+
onChange?: ((value: import("ant-design-vue/es/select").SelectValue, option: import("ant-design-vue/es/select").DefaultOptionType | import("ant-design-vue/es/select").DefaultOptionType[]) => any) | undefined;
|
|
12
|
+
"onUpdate:value"?: ((value: (string | number) | (string | number)[] | import("ant-design-vue/es/select").LabeledValue | import("ant-design-vue/es/select").LabeledValue[] | undefined) => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { WStatisticProps } from '../type';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<WStatisticProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WStatisticProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type UploadFile } from 'ant-design-vue';
|
|
2
|
+
import type { WUploadProps } from '../type';
|
|
3
|
+
type ValueType = string[] | string;
|
|
4
|
+
type __VLS_Props = WUploadProps;
|
|
5
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
6
|
+
'value'?: ValueType;
|
|
7
|
+
};
|
|
8
|
+
declare var __VLS_10: {}, __VLS_16: {}, __VLS_18: {}, __VLS_33: {}, __VLS_39: {};
|
|
9
|
+
type __VLS_Slots = {} & {
|
|
10
|
+
uploadIcon?: (props: typeof __VLS_10) => any;
|
|
11
|
+
} & {
|
|
12
|
+
uploadText?: (props: typeof __VLS_16) => any;
|
|
13
|
+
} & {
|
|
14
|
+
uploadHint?: (props: typeof __VLS_18) => any;
|
|
15
|
+
} & {
|
|
16
|
+
uploadIcon?: (props: typeof __VLS_33) => any;
|
|
17
|
+
} & {
|
|
18
|
+
uploadText?: (props: typeof __VLS_39) => any;
|
|
19
|
+
};
|
|
20
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:value": (value: ValueType | undefined) => any;
|
|
22
|
+
} & {
|
|
23
|
+
change: (value?: string | string[] | undefined) => any;
|
|
24
|
+
remove: (value: UploadFile<any>) => any;
|
|
25
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
+
onChange?: ((value?: string | string[] | undefined) => any) | undefined;
|
|
27
|
+
onRemove?: ((value: UploadFile<any>) => any) | undefined;
|
|
28
|
+
"onUpdate:value"?: ((value: ValueType | undefined) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
dragger: boolean;
|
|
31
|
+
fieldName: string;
|
|
32
|
+
fileName: string;
|
|
33
|
+
maxSize: number;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -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 {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type { ConfigProviderProp } from './type';
|
|
2
|
+
export { default as WConfigProvider } from './src/configProvider.vue';
|
|
3
|
+
export { default as WRedirect } from './src/Redirect.vue';
|
|
4
|
+
export { default as WNoData } from './src/noData.vue';
|
|
5
|
+
export type { WCropperProp, WCropperInstance } from './type';
|
|
6
|
+
export { default as WCropper } from './src/cropper.vue';
|
|
7
|
+
export type { WTableInstance, WPagerProps, WPagerInstance, ResetPagerParams, PagerState, WColumnProp, WListSearchProps, WListSearchInstance } from '../table';
|
|
8
|
+
export { WTable, WPager, WColumn, WListSearch } from '../table';
|
|
9
|
+
export { default as WEditTitle } from './src/editTitle.vue';
|
|
10
|
+
export type { WDropdownProps, WDropdownListItem } from './type';
|
|
11
|
+
export { default as WDropdown } from './src/dropdown.vue';
|
|
12
|
+
export type { WUploadModalProps } from './type';
|
|
13
|
+
export { default as WUploadModal } from './src/upload-modal.vue';
|
|
14
|
+
export { default as WSlashHeader } from './src/slashHeader.vue';
|
|
15
|
+
export type { WPageHeadProps } from './type';
|
|
16
|
+
export { default as WPageHead } from './src/pageHead.vue';
|
|
17
|
+
export type { WRangePickerProps } from './type';
|
|
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,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ConfigProviderProp } from '../type';
|
|
2
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ConfigProviderProp, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProp> & Readonly<{}>, {
|
|
3
|
+
theme: any;
|
|
4
|
+
readonly delay: number;
|
|
5
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
6
|
+
default?: ((props: {}) => any) | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export default _default;
|
|
9
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
+
new (): {
|
|
11
|
+
$slots: S;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { WCropperProp } from '../type';
|
|
2
|
+
import 'vue-cropper/dist/index.css';
|
|
3
|
+
type __VLS_Props = WCropperProp;
|
|
4
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
+
'open'?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
8
|
+
getCropperInstance: () => any;
|
|
9
|
+
getCropData: () => Promise<string> | undefined;
|
|
10
|
+
getCropBlob: () => Promise<Blob> | undefined;
|
|
11
|
+
clearCrop: () => void;
|
|
12
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
"update:open": (value: boolean | undefined) => any;
|
|
14
|
+
} & {
|
|
15
|
+
cancel: () => any;
|
|
16
|
+
ok: (file: Blob) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
18
|
+
onCancel?: (() => any) | undefined;
|
|
19
|
+
onOk?: ((file: Blob) => any) | undefined;
|
|
20
|
+
"onUpdate:open"?: ((value: boolean | undefined) => any) | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
info: boolean;
|
|
23
|
+
fixed: boolean;
|
|
24
|
+
outputType: "jpeg" | "png" | "webp";
|
|
25
|
+
autoCrop: boolean;
|
|
26
|
+
autoCropWidth: number;
|
|
27
|
+
autoCropHeight: number;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { WDropdownProps, WDropdownListItem } from '../type';
|
|
2
|
+
type __VLS_Props = WDropdownProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
'value'?: any;
|
|
5
|
+
'item'?: WDropdownListItem;
|
|
6
|
+
'open'?: any;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
change: (value: any, itemValue: any) => any;
|
|
10
|
+
"update:open": (value: any) => any;
|
|
11
|
+
"update:value": (value: any) => any;
|
|
12
|
+
"update:item": (value: WDropdownListItem | undefined) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
14
|
+
onChange?: ((value: any, itemValue: any) => any) | undefined;
|
|
15
|
+
"onUpdate:open"?: ((value: any) => any) | undefined;
|
|
16
|
+
"onUpdate:value"?: ((value: any) => any) | undefined;
|
|
17
|
+
"onUpdate:item"?: ((value: WDropdownListItem | undefined) => any) | undefined;
|
|
18
|
+
}>, {
|
|
19
|
+
params: any;
|
|
20
|
+
method: string;
|
|
21
|
+
items: WDropdownListItem[];
|
|
22
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
23
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title: string;
|
|
3
|
+
index?: string | number;
|
|
4
|
+
required?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_6: {}, __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
title?: (props: typeof __VLS_6) => any;
|
|
9
|
+
} & {
|
|
10
|
+
right?: (props: typeof __VLS_8) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
13
|
+
export default _default;
|
|
14
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
15
|
+
new (): {
|
|
16
|
+
$slots: S;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
msg?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
msg: string;
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -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
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { WPageHeadProps } from '../type';
|
|
2
|
+
declare var __VLS_1: {}, __VLS_15: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
title?: (props: typeof __VLS_1) => any;
|
|
5
|
+
} & {
|
|
6
|
+
button?: (props: typeof __VLS_15) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WPageHeadProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
cancel: (event: Event) => any;
|
|
10
|
+
ok: (event: Event) => any;
|
|
11
|
+
refresh: (event: Event) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<WPageHeadProps> & Readonly<{
|
|
13
|
+
onCancel?: ((event: Event) => any) | undefined;
|
|
14
|
+
onOk?: ((event: Event) => any) | undefined;
|
|
15
|
+
onRefresh?: ((event: Event) => any) | undefined;
|
|
16
|
+
}>, {
|
|
17
|
+
loading: boolean;
|
|
18
|
+
title: string;
|
|
19
|
+
okText: string;
|
|
20
|
+
cancelText: string;
|
|
21
|
+
questionIcon: string;
|
|
22
|
+
refreshText: string;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { WRangePickerProps } from '../type';
|
|
2
|
+
import dayjs from 'dayjs';
|
|
3
|
+
type TupleType<T> = [T, T];
|
|
4
|
+
type RangeValue = TupleType<string> | TupleType<dayjs.Dayjs>;
|
|
5
|
+
type __VLS_Props = WRangePickerProps;
|
|
6
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
7
|
+
modelValue?: RangeValue | undefined;
|
|
8
|
+
'start'?: dayjs.Dayjs | string | number | undefined;
|
|
9
|
+
'end'?: dayjs.Dayjs | string | number | undefined;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: RangeValue | undefined) => any;
|
|
13
|
+
"update:start": (value: string | number | dayjs.Dayjs | undefined) => any;
|
|
14
|
+
"update:end": (value: string | number | dayjs.Dayjs | undefined) => any;
|
|
15
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
16
|
+
"onUpdate:modelValue"?: ((value: RangeValue | undefined) => any) | undefined;
|
|
17
|
+
"onUpdate:start"?: ((value: string | number | dayjs.Dayjs | undefined) => any) | undefined;
|
|
18
|
+
"onUpdate:end"?: ((value: string | number | dayjs.Dayjs | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
picker: "time" | "date" | "week" | "month" | "quarter" | "year";
|
|
21
|
+
allowClear: boolean;
|
|
22
|
+
futureTimeAllowed: boolean;
|
|
23
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
titles?: string[];
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
5
|
+
titles: string[];
|
|
6
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|