@cyberpunk-vue/components 1.13.6 → 1.13.7

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.
@@ -1,345 +1,145 @@
1
+ import { DatePickerDayCell, DatePickerViewMode, DatePickerValue } from './date-picker';
2
+ import { Dayjs } from './date-utils';
3
+ declare function setViewDate(date: Dayjs): void;
4
+ declare function goToday(): void;
1
5
  declare function __VLS_template(): {
2
6
  attrs: Partial<{}>;
3
7
  slots: {
4
- prefix?(_: {}): any;
5
- suffix?(_: {}): any;
6
- cell?(_: {
7
- cell: import('./date-picker').PickerCell;
8
+ header?(_: {
9
+ selected: Date | undefined;
10
+ viewDate: Date;
8
11
  }): any;
9
- footer?(_: {
10
- confirm: (false & (() => void)) | (true & (() => void));
11
- cancel: () => void;
12
- clear: (event?: MouseEvent) => void;
12
+ day?(_: {
13
+ cell: DatePickerDayCell;
14
+ }): any;
15
+ actions?(_: {
16
+ today: typeof goToday;
13
17
  }): any;
14
18
  };
15
19
  refs: {};
16
- rootEl: HTMLDivElement;
20
+ rootEl: HTMLElement;
17
21
  };
18
22
  type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
23
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
20
24
  readonly modelValue: {
21
- readonly type: import('vue').PropType<import('./date-picker').PickerModelValue>;
25
+ readonly type: import('vue').PropType<DatePickerValue>;
22
26
  readonly default: null;
23
27
  };
24
- readonly type: {
25
- readonly type: import('vue').PropType<import('./date-picker').PickerType>;
26
- readonly default: "date";
27
- };
28
- readonly format: {
29
- readonly type: StringConstructor;
30
- readonly default: "";
31
- };
32
28
  readonly valueFormat: {
33
29
  readonly type: StringConstructor;
34
30
  readonly default: "";
35
31
  };
36
- readonly placeholder: {
37
- readonly type: StringConstructor;
38
- readonly default: "";
39
- };
40
- readonly startPlaceholder: {
32
+ readonly title: {
41
33
  readonly type: StringConstructor;
42
- readonly default: "开始";
43
- };
44
- readonly endPlaceholder: {
45
- readonly type: StringConstructor;
46
- readonly default: "结束";
47
- };
48
- readonly rangeSeparator: {
49
- readonly type: StringConstructor;
50
- readonly default: " - ";
51
- };
52
- readonly disabled: {
53
- readonly type: BooleanConstructor;
54
- readonly default: false;
55
- };
56
- readonly readonly: {
57
- readonly type: BooleanConstructor;
58
- readonly default: false;
34
+ readonly default: "选择日期";
59
35
  };
60
- readonly editable: {
61
- readonly type: BooleanConstructor;
62
- readonly default: false;
63
- };
64
- readonly clearable: {
36
+ readonly showAdjacentMonths: {
65
37
  readonly type: BooleanConstructor;
66
38
  readonly default: true;
67
39
  };
68
- readonly confirm: {
69
- readonly type: import('vue').PropType<boolean | undefined>;
70
- readonly default: undefined;
71
- };
72
- readonly size: {
73
- readonly type: import('vue').PropType<import('./date-picker').PickerSize>;
74
- readonly default: "md";
75
- };
76
- readonly shape: {
77
- readonly type: import('vue').PropType<import('./date-picker').PickerShape>;
78
- readonly default: "clip";
79
- };
80
- readonly variant: {
81
- readonly type: import('vue').PropType<import('./date-picker').PickerVariant>;
82
- readonly default: "outline";
83
- };
84
- readonly color: {
85
- readonly type: StringConstructor;
86
- readonly default: "";
87
- };
88
- readonly inactiveColor: {
89
- readonly type: StringConstructor;
90
- readonly default: "";
91
- };
92
- readonly placeholderColor: {
93
- readonly type: StringConstructor;
94
- readonly default: "";
95
- };
96
- readonly width: {
97
- readonly type: import('vue').PropType<string | number>;
98
- readonly default: "";
40
+ readonly viewMode: {
41
+ readonly type: import('vue').PropType<DatePickerViewMode>;
42
+ readonly default: "day";
99
43
  };
100
- readonly placement: {
101
- readonly type: import('vue').PropType<import('@floating-ui/dom').Placement>;
102
- readonly default: "bottom-start";
103
- };
104
- readonly teleportTo: {
105
- readonly type: import('vue').PropType<string | HTMLElement>;
106
- readonly default: "body";
107
- };
108
- readonly disabledDate: {
109
- readonly type: import('vue').PropType<(date: Date) => boolean>;
110
- readonly default: undefined;
111
- };
112
- readonly disabledHours: {
113
- readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
44
+ readonly defaultValue: {
45
+ readonly type: import('vue').PropType<Exclude<DatePickerValue, null | undefined>>;
114
46
  readonly default: undefined;
115
47
  };
116
- readonly disabledMinutes: {
117
- readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
48
+ readonly min: {
49
+ readonly type: import('vue').PropType<Exclude<DatePickerValue, null | undefined>>;
118
50
  readonly default: undefined;
119
51
  };
120
- readonly disabledSeconds: {
121
- readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
52
+ readonly max: {
53
+ readonly type: import('vue').PropType<Exclude<DatePickerValue, null | undefined>>;
122
54
  readonly default: undefined;
123
55
  };
124
- readonly hourStep: {
125
- readonly type: NumberConstructor;
126
- readonly default: 1;
127
- };
128
- readonly minuteStep: {
129
- readonly type: NumberConstructor;
130
- readonly default: 1;
131
- };
132
- readonly secondStep: {
133
- readonly type: NumberConstructor;
134
- readonly default: 1;
135
- };
136
- readonly showSeconds: {
137
- readonly type: BooleanConstructor;
138
- readonly default: true;
139
- };
140
- readonly shortcuts: {
141
- readonly type: import('vue').PropType<import('./date-picker').PickerShortcut[]>;
142
- readonly default: () => never[];
143
- };
144
- readonly defaultValue: {
145
- readonly type: import('vue').PropType<import('./date-picker').PickerValueItem>;
56
+ readonly disabledDate: {
57
+ readonly type: import('vue').PropType<(date: Date) => boolean>;
146
58
  readonly default: undefined;
147
59
  };
148
- readonly defaultTime: {
149
- readonly type: import('vue').PropType<string | [string, string]>;
150
- readonly default: undefined;
60
+ readonly color: {
61
+ readonly type: StringConstructor;
62
+ readonly default: "";
151
63
  };
152
- readonly unlinkPanels: {
64
+ readonly disabled: {
153
65
  readonly type: BooleanConstructor;
154
66
  readonly default: false;
155
67
  };
156
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
157
- clear: () => void;
158
- blur: (event?: FocusEvent | undefined) => void;
159
- change: (_value: import('./date-picker').PickerModelValue) => void;
160
- "update:modelValue": (_value: import('./date-picker').PickerModelValue) => void;
161
- focus: (event?: FocusEvent | undefined) => void;
162
- visibleChange: (visible: boolean) => void;
68
+ }>, {
69
+ /** @description 跳转并选中今天 */
70
+ goToday: typeof goToday;
71
+ /** @description 设置当前展示年月 */
72
+ setViewDate: typeof setViewDate;
73
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
74
+ change: (_value: DatePickerValue) => void;
75
+ "update:modelValue": (_value: DatePickerValue) => void;
76
+ "update:month": (month: number) => void;
77
+ "update:year": (year: number) => void;
78
+ "update:viewMode": (mode: DatePickerViewMode) => void;
163
79
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
164
80
  readonly modelValue: {
165
- readonly type: import('vue').PropType<import('./date-picker').PickerModelValue>;
81
+ readonly type: import('vue').PropType<DatePickerValue>;
166
82
  readonly default: null;
167
83
  };
168
- readonly type: {
169
- readonly type: import('vue').PropType<import('./date-picker').PickerType>;
170
- readonly default: "date";
171
- };
172
- readonly format: {
173
- readonly type: StringConstructor;
174
- readonly default: "";
175
- };
176
84
  readonly valueFormat: {
177
85
  readonly type: StringConstructor;
178
86
  readonly default: "";
179
87
  };
180
- readonly placeholder: {
181
- readonly type: StringConstructor;
182
- readonly default: "";
183
- };
184
- readonly startPlaceholder: {
88
+ readonly title: {
185
89
  readonly type: StringConstructor;
186
- readonly default: "开始";
187
- };
188
- readonly endPlaceholder: {
189
- readonly type: StringConstructor;
190
- readonly default: "结束";
191
- };
192
- readonly rangeSeparator: {
193
- readonly type: StringConstructor;
194
- readonly default: " - ";
195
- };
196
- readonly disabled: {
197
- readonly type: BooleanConstructor;
198
- readonly default: false;
199
- };
200
- readonly readonly: {
201
- readonly type: BooleanConstructor;
202
- readonly default: false;
90
+ readonly default: "选择日期";
203
91
  };
204
- readonly editable: {
205
- readonly type: BooleanConstructor;
206
- readonly default: false;
207
- };
208
- readonly clearable: {
92
+ readonly showAdjacentMonths: {
209
93
  readonly type: BooleanConstructor;
210
94
  readonly default: true;
211
95
  };
212
- readonly confirm: {
213
- readonly type: import('vue').PropType<boolean | undefined>;
214
- readonly default: undefined;
215
- };
216
- readonly size: {
217
- readonly type: import('vue').PropType<import('./date-picker').PickerSize>;
218
- readonly default: "md";
219
- };
220
- readonly shape: {
221
- readonly type: import('vue').PropType<import('./date-picker').PickerShape>;
222
- readonly default: "clip";
223
- };
224
- readonly variant: {
225
- readonly type: import('vue').PropType<import('./date-picker').PickerVariant>;
226
- readonly default: "outline";
227
- };
228
- readonly color: {
229
- readonly type: StringConstructor;
230
- readonly default: "";
231
- };
232
- readonly inactiveColor: {
233
- readonly type: StringConstructor;
234
- readonly default: "";
235
- };
236
- readonly placeholderColor: {
237
- readonly type: StringConstructor;
238
- readonly default: "";
239
- };
240
- readonly width: {
241
- readonly type: import('vue').PropType<string | number>;
242
- readonly default: "";
96
+ readonly viewMode: {
97
+ readonly type: import('vue').PropType<DatePickerViewMode>;
98
+ readonly default: "day";
243
99
  };
244
- readonly placement: {
245
- readonly type: import('vue').PropType<import('@floating-ui/dom').Placement>;
246
- readonly default: "bottom-start";
247
- };
248
- readonly teleportTo: {
249
- readonly type: import('vue').PropType<string | HTMLElement>;
250
- readonly default: "body";
251
- };
252
- readonly disabledDate: {
253
- readonly type: import('vue').PropType<(date: Date) => boolean>;
254
- readonly default: undefined;
255
- };
256
- readonly disabledHours: {
257
- readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
100
+ readonly defaultValue: {
101
+ readonly type: import('vue').PropType<Exclude<DatePickerValue, null | undefined>>;
258
102
  readonly default: undefined;
259
103
  };
260
- readonly disabledMinutes: {
261
- readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
104
+ readonly min: {
105
+ readonly type: import('vue').PropType<Exclude<DatePickerValue, null | undefined>>;
262
106
  readonly default: undefined;
263
107
  };
264
- readonly disabledSeconds: {
265
- readonly type: import('vue').PropType<import('./date-picker').DisabledTimeResolver>;
108
+ readonly max: {
109
+ readonly type: import('vue').PropType<Exclude<DatePickerValue, null | undefined>>;
266
110
  readonly default: undefined;
267
111
  };
268
- readonly hourStep: {
269
- readonly type: NumberConstructor;
270
- readonly default: 1;
271
- };
272
- readonly minuteStep: {
273
- readonly type: NumberConstructor;
274
- readonly default: 1;
275
- };
276
- readonly secondStep: {
277
- readonly type: NumberConstructor;
278
- readonly default: 1;
279
- };
280
- readonly showSeconds: {
281
- readonly type: BooleanConstructor;
282
- readonly default: true;
283
- };
284
- readonly shortcuts: {
285
- readonly type: import('vue').PropType<import('./date-picker').PickerShortcut[]>;
286
- readonly default: () => never[];
287
- };
288
- readonly defaultValue: {
289
- readonly type: import('vue').PropType<import('./date-picker').PickerValueItem>;
112
+ readonly disabledDate: {
113
+ readonly type: import('vue').PropType<(date: Date) => boolean>;
290
114
  readonly default: undefined;
291
115
  };
292
- readonly defaultTime: {
293
- readonly type: import('vue').PropType<string | [string, string]>;
294
- readonly default: undefined;
116
+ readonly color: {
117
+ readonly type: StringConstructor;
118
+ readonly default: "";
295
119
  };
296
- readonly unlinkPanels: {
120
+ readonly disabled: {
297
121
  readonly type: BooleanConstructor;
298
122
  readonly default: false;
299
123
  };
300
124
  }>> & Readonly<{
301
- onClear?: (() => any) | undefined;
302
- onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
303
- onChange?: ((_value: import('./date-picker').PickerModelValue) => any) | undefined;
304
- "onUpdate:modelValue"?: ((_value: import('./date-picker').PickerModelValue) => any) | undefined;
305
- onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
306
- onVisibleChange?: ((visible: boolean) => any) | undefined;
125
+ onChange?: ((_value: DatePickerValue) => any) | undefined;
126
+ "onUpdate:modelValue"?: ((_value: DatePickerValue) => any) | undefined;
127
+ "onUpdate:month"?: ((month: number) => any) | undefined;
128
+ "onUpdate:year"?: ((year: number) => any) | undefined;
129
+ "onUpdate:viewMode"?: ((mode: DatePickerViewMode) => any) | undefined;
307
130
  }>, {
308
- readonly size: import('@cyberpunk-vue/hooks').Size;
309
- readonly width: string | number;
310
- readonly format: string;
311
- readonly type: import('./date-picker').PickerType;
312
131
  readonly color: string;
313
- readonly variant: import('./date-picker').PickerVariant;
314
132
  readonly disabled: boolean;
315
- readonly shape: import('./date-picker').PickerShape;
316
- readonly placeholder: string;
317
- readonly modelValue: import('./date-picker').PickerModelValue;
318
- readonly readonly: boolean;
319
- readonly clearable: boolean;
320
- readonly placeholderColor: string;
321
- readonly inactiveColor: string;
322
- readonly teleportTo: string | HTMLElement;
323
- readonly placement: import('@floating-ui/dom').Placement;
324
- readonly confirm: boolean | undefined;
133
+ readonly title: string;
134
+ readonly modelValue: DatePickerValue;
135
+ readonly min: string | number | Date;
136
+ readonly max: string | number | Date;
325
137
  readonly valueFormat: string;
326
- readonly startPlaceholder: string;
327
- readonly endPlaceholder: string;
328
- readonly rangeSeparator: string;
329
- readonly editable: boolean;
138
+ readonly showAdjacentMonths: boolean;
139
+ readonly viewMode: DatePickerViewMode;
140
+ readonly defaultValue: string | number | Date;
330
141
  readonly disabledDate: (date: Date) => boolean;
331
- readonly disabledHours: import('./date-picker').DisabledTimeResolver;
332
- readonly disabledMinutes: import('./date-picker').DisabledTimeResolver;
333
- readonly disabledSeconds: import('./date-picker').DisabledTimeResolver;
334
- readonly hourStep: number;
335
- readonly minuteStep: number;
336
- readonly secondStep: number;
337
- readonly showSeconds: boolean;
338
- readonly shortcuts: import('./date-picker').PickerShortcut[];
339
- readonly defaultValue: import('./date-picker').PickerValueItem;
340
- readonly defaultTime: string | [string, string];
341
- readonly unlinkPanels: boolean;
342
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
142
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLElement>;
343
143
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
344
144
  export default _default;
345
145
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -1 +1 @@
1
- export * from './date-picker';
1
+ export * from './date-picker-select';
@@ -0,0 +1,2 @@
1
+ import { default as DatePickerSelect } from './date-picker-select.vue';
2
+ export type DatePickerSelectInstance = InstanceType<typeof DatePickerSelect> & unknown;
@@ -174,11 +174,12 @@ export declare const CpDateTimePicker: import('../utils').SFCWithInstall<{
174
174
  readonly placement: import('@floating-ui/dom').Placement;
175
175
  readonly confirm: boolean | undefined;
176
176
  readonly valueFormat: string;
177
+ readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
178
+ readonly disabledDate: (date: Date) => boolean;
177
179
  readonly startPlaceholder: string;
178
180
  readonly endPlaceholder: string;
179
181
  readonly rangeSeparator: string;
180
182
  readonly editable: boolean;
181
- readonly disabledDate: (date: Date) => boolean;
182
183
  readonly disabledHours: import('../date-picker/src/picker').DisabledTimeResolver;
183
184
  readonly disabledMinutes: import('../date-picker/src/picker').DisabledTimeResolver;
184
185
  readonly disabledSeconds: import('../date-picker/src/picker').DisabledTimeResolver;
@@ -187,7 +188,6 @@ export declare const CpDateTimePicker: import('../utils').SFCWithInstall<{
187
188
  readonly secondStep: number;
188
189
  readonly showSeconds: boolean;
189
190
  readonly shortcuts: import('../date-picker/src/picker').PickerShortcut[];
190
- readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
191
191
  readonly defaultTime: string | [string, string];
192
192
  readonly unlinkPanels: boolean;
193
193
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
@@ -360,11 +360,12 @@ export declare const CpDateTimePicker: import('../utils').SFCWithInstall<{
360
360
  readonly placement: import('@floating-ui/dom').Placement;
361
361
  readonly confirm: boolean | undefined;
362
362
  readonly valueFormat: string;
363
+ readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
364
+ readonly disabledDate: (date: Date) => boolean;
363
365
  readonly startPlaceholder: string;
364
366
  readonly endPlaceholder: string;
365
367
  readonly rangeSeparator: string;
366
368
  readonly editable: boolean;
367
- readonly disabledDate: (date: Date) => boolean;
368
369
  readonly disabledHours: import('../date-picker/src/picker').DisabledTimeResolver;
369
370
  readonly disabledMinutes: import('../date-picker/src/picker').DisabledTimeResolver;
370
371
  readonly disabledSeconds: import('../date-picker/src/picker').DisabledTimeResolver;
@@ -373,7 +374,6 @@ export declare const CpDateTimePicker: import('../utils').SFCWithInstall<{
373
374
  readonly secondStep: number;
374
375
  readonly showSeconds: boolean;
375
376
  readonly shortcuts: import('../date-picker/src/picker').PickerShortcut[];
376
- readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
377
377
  readonly defaultTime: string | [string, string];
378
378
  readonly unlinkPanels: boolean;
379
379
  }>;
@@ -550,11 +550,12 @@ export declare const CpDateTimePicker: import('../utils').SFCWithInstall<{
550
550
  readonly placement: import('@floating-ui/dom').Placement;
551
551
  readonly confirm: boolean | undefined;
552
552
  readonly valueFormat: string;
553
+ readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
554
+ readonly disabledDate: (date: Date) => boolean;
553
555
  readonly startPlaceholder: string;
554
556
  readonly endPlaceholder: string;
555
557
  readonly rangeSeparator: string;
556
558
  readonly editable: boolean;
557
- readonly disabledDate: (date: Date) => boolean;
558
559
  readonly disabledHours: import('../date-picker/src/picker').DisabledTimeResolver;
559
560
  readonly disabledMinutes: import('../date-picker/src/picker').DisabledTimeResolver;
560
561
  readonly disabledSeconds: import('../date-picker/src/picker').DisabledTimeResolver;
@@ -563,7 +564,6 @@ export declare const CpDateTimePicker: import('../utils').SFCWithInstall<{
563
564
  readonly secondStep: number;
564
565
  readonly showSeconds: boolean;
565
566
  readonly shortcuts: import('../date-picker/src/picker').PickerShortcut[];
566
- readonly defaultValue: import('../date-picker/src/picker').PickerValueItem;
567
567
  readonly defaultTime: string | [string, string];
568
568
  readonly unlinkPanels: boolean;
569
569
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
@@ -323,11 +323,12 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
323
323
  readonly placement: import('@floating-ui/dom').Placement;
324
324
  readonly confirm: boolean | undefined;
325
325
  readonly valueFormat: string;
326
+ readonly defaultValue: import('..').PickerValueItem;
327
+ readonly disabledDate: (date: Date) => boolean;
326
328
  readonly startPlaceholder: string;
327
329
  readonly endPlaceholder: string;
328
330
  readonly rangeSeparator: string;
329
331
  readonly editable: boolean;
330
- readonly disabledDate: (date: Date) => boolean;
331
332
  readonly disabledHours: import('..').DisabledTimeResolver;
332
333
  readonly disabledMinutes: import('..').DisabledTimeResolver;
333
334
  readonly disabledSeconds: import('..').DisabledTimeResolver;
@@ -336,7 +337,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
336
337
  readonly secondStep: number;
337
338
  readonly showSeconds: boolean;
338
339
  readonly shortcuts: import('..').PickerShortcut[];
339
- readonly defaultValue: import('..').PickerValueItem;
340
340
  readonly defaultTime: string | [string, string];
341
341
  readonly unlinkPanels: boolean;
342
342
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -43,6 +43,10 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
43
43
  type: BooleanConstructor;
44
44
  default: boolean;
45
45
  };
46
+ fullscreenInset: {
47
+ type: import('vue').PropType<import('.').DialogFullscreenInset>;
48
+ default: undefined;
49
+ };
46
50
  modal: {
47
51
  type: BooleanConstructor;
48
52
  default: boolean;
@@ -279,6 +283,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
279
283
  draggable: boolean;
280
284
  closeOnEscape: boolean;
281
285
  fullscreen: boolean;
286
+ fullscreenInset: import('.').DialogFullscreenInset;
282
287
  modal: boolean;
283
288
  appendToBody: boolean;
284
289
  closeOnClickModal: boolean;
@@ -330,6 +335,10 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
330
335
  type: BooleanConstructor;
331
336
  default: boolean;
332
337
  };
338
+ fullscreenInset: {
339
+ type: import('vue').PropType<import('.').DialogFullscreenInset>;
340
+ default: undefined;
341
+ };
333
342
  modal: {
334
343
  type: BooleanConstructor;
335
344
  default: boolean;
@@ -558,6 +567,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
558
567
  draggable: boolean;
559
568
  closeOnEscape: boolean;
560
569
  fullscreen: boolean;
570
+ fullscreenInset: import('.').DialogFullscreenInset;
561
571
  modal: boolean;
562
572
  appendToBody: boolean;
563
573
  closeOnClickModal: boolean;
@@ -603,6 +613,10 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
603
613
  type: BooleanConstructor;
604
614
  default: boolean;
605
615
  };
616
+ fullscreenInset: {
617
+ type: import('vue').PropType<import('.').DialogFullscreenInset>;
618
+ default: undefined;
619
+ };
606
620
  modal: {
607
621
  type: BooleanConstructor;
608
622
  default: boolean;
@@ -839,6 +853,7 @@ export declare const CpDialog: import('../utils').SFCWithInstall<{
839
853
  draggable: boolean;
840
854
  closeOnEscape: boolean;
841
855
  fullscreen: boolean;
856
+ fullscreenInset: import('.').DialogFullscreenInset;
842
857
  modal: boolean;
843
858
  appendToBody: boolean;
844
859
  closeOnClickModal: boolean;
@@ -25,6 +25,11 @@ export type DialogShape = 'clip' | 'no-clip' | 'round';
25
25
  */
26
26
  export type DialogType = 'default' | 'primary' | 'success' | 'warning' | 'error' | 'info';
27
27
  export type DialogCustomClass = string | Record<string, boolean> | Array<string | Record<string, boolean>>;
28
+ export type DialogFullscreenInsetValue = string | number;
29
+ /**
30
+ * 全屏模式下对话框相对视口的安全边距
31
+ */
32
+ export type DialogFullscreenInset = DialogFullscreenInsetValue | Partial<Record<'top' | 'right' | 'bottom' | 'left', DialogFullscreenInsetValue>>;
28
33
  /**
29
34
  * CpDialog Props 定义
30
35
  *
@@ -39,6 +44,16 @@ export type DialogCustomClass = string | Record<string, boolean> | Array<string
39
44
  * <CpButton type="primary" @click="visible = false">确认</CpButton>
40
45
  * </template>
41
46
  * </CpDialog>
47
+ *
48
+ * <CpDialog
49
+ * v-model="visible"
50
+ * title="全屏安全边距"
51
+ * fullscreen
52
+ * :fullscreen-inset="{ top: '64px', right: '24px', bottom: '32px', left: '24px' }"
53
+ * :body-style="{ padding: '24px 32px' }"
54
+ * >
55
+ * <p>为固定顶栏、底栏或设备安全区预留空间。</p>
56
+ * </CpDialog>
42
57
  * ```
43
58
  *
44
59
  * @slots
@@ -93,6 +108,15 @@ export declare const dialogProps: {
93
108
  type: BooleanConstructor;
94
109
  default: boolean;
95
110
  };
111
+ /**
112
+ * 全屏模式下对话框相对视口的安全边距
113
+ * 数字则为 px,字符串可以是任意 CSS 长度;对象可分别控制 top/right/bottom/left
114
+ * @default undefined
115
+ */
116
+ fullscreenInset: {
117
+ type: PropType<DialogFullscreenInset>;
118
+ default: undefined;
119
+ };
96
120
  /**
97
121
  * 是否显示遮罩
98
122
  * @default true
@@ -41,6 +41,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
41
41
  type: BooleanConstructor;
42
42
  default: boolean;
43
43
  };
44
+ fullscreenInset: {
45
+ type: import('vue').PropType<import('./dialog').DialogFullscreenInset>;
46
+ default: undefined;
47
+ };
44
48
  modal: {
45
49
  type: BooleanConstructor;
46
50
  default: boolean;
@@ -261,6 +265,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
261
265
  type: BooleanConstructor;
262
266
  default: boolean;
263
267
  };
268
+ fullscreenInset: {
269
+ type: import('vue').PropType<import('./dialog').DialogFullscreenInset>;
270
+ default: undefined;
271
+ };
264
272
  modal: {
265
273
  type: BooleanConstructor;
266
274
  default: boolean;
@@ -485,6 +493,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
485
493
  draggable: boolean;
486
494
  closeOnEscape: boolean;
487
495
  fullscreen: boolean;
496
+ fullscreenInset: import('./dialog').DialogFullscreenInset;
488
497
  modal: boolean;
489
498
  appendToBody: boolean;
490
499
  closeOnClickModal: boolean;