wlwy-package 3.1.63 → 3.1.64

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.
@@ -34,3 +34,5 @@ export type { WDatePickerProps } from './type';
34
34
  export { default as WDatePicker } from './src/datePicker.vue';
35
35
  export type { WRangePickerProps } from './type';
36
36
  export { default as WRangePicker } from './src/rangePicker.vue';
37
+ export type { WPageProps } from './type';
38
+ export { default as WPage } from './src/page.vue';
@@ -0,0 +1,33 @@
1
+ import type { FooterButtonType, WPageProps } from '../type';
2
+ type __VLS_Props = WPageProps;
3
+ declare var __VLS_1: {}, __VLS_15: {}, __VLS_57: {};
4
+ type __VLS_Slots = {} & {
5
+ title?: (props: typeof __VLS_1) => any;
6
+ } & {
7
+ button?: (props: typeof __VLS_15) => any;
8
+ } & {
9
+ default?: (props: typeof __VLS_57) => any;
10
+ };
11
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
12
+ cancel: (event: Event) => any;
13
+ refresh: (event: Event) => any;
14
+ ok: (event: Event) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onCancel?: ((event: Event) => any) | undefined;
17
+ onRefresh?: ((event: Event) => any) | undefined;
18
+ onOk?: ((event: Event) => any) | undefined;
19
+ }>, {
20
+ loading: boolean;
21
+ title: string;
22
+ okText: string;
23
+ cancelText: string;
24
+ hideFooter: boolean | FooterButtonType[];
25
+ questionIcon: string;
26
+ refreshText: string;
27
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
28
+ export default _default;
29
+ type __VLS_WithSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -1,6 +1,6 @@
1
1
  import type { CardProps, ConfigProviderProps as Config, DatePickerProps, ModalProps, UploadProps } from 'ant-design-vue';
2
2
  import type { VxeColumnProps, VxePagerInstance, VxePagerProps, VxeTableInstance, VxeToolbarInstance } from 'vxe-table';
3
- import type { UseWindowSizeType, KeyType } from '../../type';
3
+ import type { UseWindowSizeType, KeyType, HandlerMode } from '../../type';
4
4
  import type { AxiosProgressEvent } from 'axios';
5
5
  import type { RenderCellProps } from '../../hooks/private';
6
6
  import type { WIconProp } from '../icon';
@@ -450,4 +450,50 @@ export interface WRangePickerProps extends Pick<DatePickerProps, 'picker' | 'for
450
450
  */
451
451
  valueString?: boolean;
452
452
  }
453
+ export type WPageProps<T extends string = HandlerMode> = {
454
+ /**
455
+ * 表单模式,如add | edit
456
+ */
457
+ mode?: T;
458
+ /**
459
+ * 页面表单标题,会自动添加表单模式前缀
460
+ */
461
+ title?: string;
462
+ /**
463
+ * 页面表单提示语
464
+ */
465
+ question?: string;
466
+ /**
467
+ * 页面表单提示语图标
468
+ */
469
+ questionIcon?: string;
470
+ /**
471
+ * 页面表单loading状态
472
+ */
473
+ loading?: boolean;
474
+ /**
475
+ * 页面表单loading状态
476
+ */
477
+ detailsLoading?: boolean;
478
+ /**
479
+ * 页面表单顶部是否隐藏,可隐藏单独按钮
480
+ */
481
+ hideFooter?: boolean | Array<FooterButtonType>;
482
+ /**
483
+ * 页面表单顶部确定按钮文本
484
+ */
485
+ okText?: string;
486
+ /**
487
+ * 页面表单顶部取消按钮文本
488
+ */
489
+ cancelText?: string;
490
+ /**
491
+ * 页面表单顶部刷新按钮文本
492
+ */
493
+ refreshText?: string;
494
+ /**
495
+ * class
496
+ */
497
+ className?: string;
498
+ };
453
499
  export {};
@@ -1,8 +1,10 @@
1
1
  import type { WFormTagsProps } from '../type';
2
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WFormTagsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2
+ declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WFormTagsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  change: (value: import("ant-design-vue/es/select/index").SelectValue, option: import("ant-design-vue/es/vc-select/Select").DefaultOptionType | import("ant-design-vue/es/vc-select/Select").DefaultOptionType[]) => any;
4
+ search: (value: string) => any;
4
5
  }, string, import("vue").PublicProps, Readonly<WFormTagsProps> & Readonly<{
5
6
  onChange?: ((value: import("ant-design-vue/es/select/index").SelectValue, option: import("ant-design-vue/es/vc-select/Select").DefaultOptionType | import("ant-design-vue/es/vc-select/Select").DefaultOptionType[]) => any) | undefined;
7
+ onSearch?: ((value: string) => any) | undefined;
6
8
  }>, {
7
9
  allowClear: boolean;
8
10
  tokenSeparators: string[];
@@ -101,6 +101,11 @@ export interface WFormInputProps extends Partial<FormItemXxProps> {
101
101
  */
102
102
  export interface WFormNumberProps extends FormItemXxProps {
103
103
  }
104
+ /**
105
+ * w-form-i18n 组件属性
106
+ */
107
+ export interface WFormI18nProps extends FormItemXxProps {
108
+ }
104
109
  /**
105
110
  * w-form-tags 组件属性
106
111
  */
@@ -106,8 +106,10 @@ export declare const Inputs: {
106
106
  inputTags: {
107
107
  new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<Components.WFormTagsProps> & Readonly<{
108
108
  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;
109
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
109
+ onSearch?: ((value: string) => any) | undefined;
110
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
110
111
  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;
112
+ search: (value: string) => any;
111
113
  }, import("vue").PublicProps, {
112
114
  allowClear: boolean;
113
115
  tokenSeparators: string[];
@@ -120,6 +122,7 @@ export declare const Inputs: {
120
122
  Defaults: {};
121
123
  }, Readonly<Components.WFormTagsProps> & Readonly<{
122
124
  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;
125
+ onSearch?: ((value: string) => any) | undefined;
123
126
  }>, {}, {}, {}, {}, {
124
127
  allowClear: boolean;
125
128
  tokenSeparators: string[];
@@ -129,8 +132,10 @@ export declare const Inputs: {
129
132
  __isSuspense?: undefined;
130
133
  } & import("vue").ComponentOptionsBase<Readonly<Components.WFormTagsProps> & Readonly<{
131
134
  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;
132
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
135
+ onSearch?: ((value: string) => any) | undefined;
136
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
133
137
  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;
138
+ search: (value: string) => any;
134
139
  }, string, {
135
140
  allowClear: boolean;
136
141
  tokenSeparators: string[];
@@ -355,6 +360,11 @@ export type InputsType = ({
355
360
  */
356
361
  type: 'inputNumber';
357
362
  } & Partial<Types.WFormNumberProps>) | ({
363
+ /**
364
+ * 数字输入框
365
+ */
366
+ type: 'inputI18n';
367
+ } & Partial<Types.WFormI18nProps>) | ({
358
368
  /**
359
369
  * Tags输入框
360
370
  */