@cyberpunk-vue/components 1.13.5 → 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.
Files changed (31) hide show
  1. package/dist/date-picker/index.d.ts +824 -0
  2. package/dist/date-picker/src/base-picker.vue.d.ts +376 -0
  3. package/dist/date-picker/src/date-picker-select.d.ts +657 -0
  4. package/dist/date-picker/src/date-picker-select.vue.d.ts +349 -0
  5. package/dist/date-picker/src/date-picker.d.ts +154 -0
  6. package/dist/date-picker/src/date-picker.vue.d.ts +149 -0
  7. package/dist/date-picker/src/date-utils.d.ts +28 -0
  8. package/dist/date-picker/src/instance.d.ts +2 -0
  9. package/dist/date-picker/src/picker.d.ts +1 -0
  10. package/dist/date-picker/src/select-instance.d.ts +2 -0
  11. package/dist/date-time-picker/index.d.ts +586 -0
  12. package/dist/date-time-picker/src/date-time-picker.d.ts +179 -0
  13. package/dist/date-time-picker/src/date-time-picker.vue.d.ts +349 -0
  14. package/dist/date-time-picker/src/instance.d.ts +2 -0
  15. package/dist/dialog/index.d.ts +15 -0
  16. package/dist/dialog/src/dialog.d.ts +24 -0
  17. package/dist/dialog/src/dialog.vue.d.ts +9 -0
  18. package/dist/index.cjs +1 -1
  19. package/dist/index.d.ts +3 -0
  20. package/dist/index.mjs +4460 -2687
  21. package/dist/table/index.d.ts +61 -5
  22. package/dist/table/src/table.d.ts +87 -2
  23. package/dist/table/src/table.vue.d.ts +36 -3
  24. package/dist/table-column/index.d.ts +51 -6
  25. package/dist/table-column/src/table-column.d.ts +39 -1
  26. package/dist/table-column/src/table-column.vue.d.ts +30 -3
  27. package/dist/time-picker/index.d.ts +583 -0
  28. package/dist/time-picker/src/instance.d.ts +2 -0
  29. package/dist/time-picker/src/time-picker.d.ts +178 -0
  30. package/dist/time-picker/src/time-picker.vue.d.ts +346 -0
  31. package/package.json +5 -4
@@ -0,0 +1,179 @@
1
+ import { ExtractPropTypes } from 'vue';
2
+ /**
3
+ * CpDateTimePicker 组件 Props 定义
4
+ *
5
+ * @description 赛博朋克风格日期时间选择器,支持日期与时间组合选择以及日期时间范围选择。
6
+ *
7
+ * @example
8
+ * ```vue
9
+ * <CpDateTimePicker v-model="value" value-format="YYYY-MM-DD HH:mm:ss" />
10
+ * <CpDateTimePicker v-model="range" type="datetimerange" />
11
+ * ```
12
+ *
13
+ * @slots
14
+ * - `prefix` - 触发器前缀内容
15
+ * - `suffix` - 触发器后缀内容
16
+ * - `cell` - 自定义日期单元格内容
17
+ * - `footer` - 自定义面板底部操作区
18
+ *
19
+ * @exposes
20
+ * - `open` - 打开选择器浮层
21
+ * - `close` - 关闭选择器浮层
22
+ * - `toggle` - 切换选择器浮层
23
+ * - `focus` - 聚焦触发器
24
+ * - `blur` - 失焦触发器
25
+ * @category 表单组件
26
+ * @displayName CpDateTimePicker 日期时间选择器
27
+ */
28
+ export declare const dateTimePickerProps: {
29
+ /**
30
+ * 日期时间选择器类型
31
+ * @default 'datetime'
32
+ */
33
+ readonly type: {
34
+ readonly default: "datetime";
35
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerType>;
36
+ };
37
+ readonly modelValue: {
38
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerModelValue>;
39
+ readonly default: null;
40
+ };
41
+ readonly format: {
42
+ readonly type: StringConstructor;
43
+ readonly default: "";
44
+ };
45
+ readonly valueFormat: {
46
+ readonly type: StringConstructor;
47
+ readonly default: "";
48
+ };
49
+ readonly placeholder: {
50
+ readonly type: StringConstructor;
51
+ readonly default: "";
52
+ };
53
+ readonly startPlaceholder: {
54
+ readonly type: StringConstructor;
55
+ readonly default: "开始";
56
+ };
57
+ readonly endPlaceholder: {
58
+ readonly type: StringConstructor;
59
+ readonly default: "结束";
60
+ };
61
+ readonly rangeSeparator: {
62
+ readonly type: StringConstructor;
63
+ readonly default: " - ";
64
+ };
65
+ readonly disabled: {
66
+ readonly type: BooleanConstructor;
67
+ readonly default: false;
68
+ };
69
+ readonly readonly: {
70
+ readonly type: BooleanConstructor;
71
+ readonly default: false;
72
+ };
73
+ readonly editable: {
74
+ readonly type: BooleanConstructor;
75
+ readonly default: false;
76
+ };
77
+ readonly clearable: {
78
+ readonly type: BooleanConstructor;
79
+ readonly default: true;
80
+ };
81
+ readonly confirm: {
82
+ readonly type: import('vue').PropType<boolean | undefined>;
83
+ readonly default: undefined;
84
+ };
85
+ readonly size: {
86
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerSize>;
87
+ readonly default: "md";
88
+ };
89
+ readonly shape: {
90
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerShape>;
91
+ readonly default: "clip";
92
+ };
93
+ readonly variant: {
94
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerVariant>;
95
+ readonly default: "outline";
96
+ };
97
+ readonly color: {
98
+ readonly type: StringConstructor;
99
+ readonly default: "";
100
+ };
101
+ readonly inactiveColor: {
102
+ readonly type: StringConstructor;
103
+ readonly default: "";
104
+ };
105
+ readonly placeholderColor: {
106
+ readonly type: StringConstructor;
107
+ readonly default: "";
108
+ };
109
+ readonly width: {
110
+ readonly type: import('vue').PropType<string | number>;
111
+ readonly default: "";
112
+ };
113
+ readonly placement: {
114
+ readonly type: import('vue').PropType<import('@floating-ui/dom').Placement>;
115
+ readonly default: "bottom-start";
116
+ };
117
+ readonly teleportTo: {
118
+ readonly type: import('vue').PropType<string | HTMLElement>;
119
+ readonly default: "body";
120
+ };
121
+ readonly disabledDate: {
122
+ readonly type: import('vue').PropType<(date: Date) => boolean>;
123
+ readonly default: undefined;
124
+ };
125
+ readonly disabledHours: {
126
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').DisabledTimeResolver>;
127
+ readonly default: undefined;
128
+ };
129
+ readonly disabledMinutes: {
130
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').DisabledTimeResolver>;
131
+ readonly default: undefined;
132
+ };
133
+ readonly disabledSeconds: {
134
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').DisabledTimeResolver>;
135
+ readonly default: undefined;
136
+ };
137
+ readonly hourStep: {
138
+ readonly type: NumberConstructor;
139
+ readonly default: 1;
140
+ };
141
+ readonly minuteStep: {
142
+ readonly type: NumberConstructor;
143
+ readonly default: 1;
144
+ };
145
+ readonly secondStep: {
146
+ readonly type: NumberConstructor;
147
+ readonly default: 1;
148
+ };
149
+ readonly showSeconds: {
150
+ readonly type: BooleanConstructor;
151
+ readonly default: true;
152
+ };
153
+ readonly shortcuts: {
154
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerShortcut[]>;
155
+ readonly default: () => never[];
156
+ };
157
+ readonly defaultValue: {
158
+ readonly type: import('vue').PropType<import('../../date-picker/src/picker').PickerValueItem>;
159
+ readonly default: undefined;
160
+ };
161
+ readonly defaultTime: {
162
+ readonly type: import('vue').PropType<string | [string, string]>;
163
+ readonly default: undefined;
164
+ };
165
+ readonly unlinkPanels: {
166
+ readonly type: BooleanConstructor;
167
+ readonly default: false;
168
+ };
169
+ };
170
+ export type DateTimePickerProps = ExtractPropTypes<typeof dateTimePickerProps>;
171
+ export declare const dateTimePickerEmits: {
172
+ 'update:modelValue': (_value: import('../../date-picker/src/picker').PickerModelValue) => boolean;
173
+ change: (_value: import('../../date-picker/src/picker').PickerModelValue) => boolean;
174
+ clear: () => boolean;
175
+ focus: (event?: FocusEvent) => boolean;
176
+ blur: (event?: FocusEvent) => boolean;
177
+ visibleChange: (visible: boolean) => boolean;
178
+ };
179
+ export type DateTimePickerEmits = typeof dateTimePickerEmits;
@@ -0,0 +1,349 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ prefix?(_: {}): any;
5
+ suffix?(_: {}): any;
6
+ cell?(_: {
7
+ cell: import('..').PickerCell;
8
+ }): any;
9
+ footer?(_: {
10
+ confirm: (false & (() => void)) | (true & (() => void));
11
+ cancel: () => void;
12
+ clear: (event?: MouseEvent) => void;
13
+ }): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
20
+ readonly type: {
21
+ readonly default: "datetime";
22
+ readonly type: import('vue').PropType<import('..').PickerType>;
23
+ };
24
+ readonly modelValue: {
25
+ readonly type: import('vue').PropType<import('..').PickerModelValue>;
26
+ readonly default: null;
27
+ };
28
+ readonly format: {
29
+ readonly type: StringConstructor;
30
+ readonly default: "";
31
+ };
32
+ readonly valueFormat: {
33
+ readonly type: StringConstructor;
34
+ readonly default: "";
35
+ };
36
+ readonly placeholder: {
37
+ readonly type: StringConstructor;
38
+ readonly default: "";
39
+ };
40
+ readonly startPlaceholder: {
41
+ 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;
59
+ };
60
+ readonly editable: {
61
+ readonly type: BooleanConstructor;
62
+ readonly default: false;
63
+ };
64
+ readonly clearable: {
65
+ readonly type: BooleanConstructor;
66
+ readonly default: true;
67
+ };
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('..').PickerSize>;
74
+ readonly default: "md";
75
+ };
76
+ readonly shape: {
77
+ readonly type: import('vue').PropType<import('..').PickerShape>;
78
+ readonly default: "clip";
79
+ };
80
+ readonly variant: {
81
+ readonly type: import('vue').PropType<import('..').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: "";
99
+ };
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('..').DisabledTimeResolver>;
114
+ readonly default: undefined;
115
+ };
116
+ readonly disabledMinutes: {
117
+ readonly type: import('vue').PropType<import('..').DisabledTimeResolver>;
118
+ readonly default: undefined;
119
+ };
120
+ readonly disabledSeconds: {
121
+ readonly type: import('vue').PropType<import('..').DisabledTimeResolver>;
122
+ readonly default: undefined;
123
+ };
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('..').PickerShortcut[]>;
142
+ readonly default: () => never[];
143
+ };
144
+ readonly defaultValue: {
145
+ readonly type: import('vue').PropType<import('..').PickerValueItem>;
146
+ readonly default: undefined;
147
+ };
148
+ readonly defaultTime: {
149
+ readonly type: import('vue').PropType<string | [string, string]>;
150
+ readonly default: undefined;
151
+ };
152
+ readonly unlinkPanels: {
153
+ readonly type: BooleanConstructor;
154
+ readonly default: false;
155
+ };
156
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
157
+ clear: () => void;
158
+ blur: (event?: FocusEvent | undefined) => void;
159
+ change: (_value: import('..').PickerModelValue) => void;
160
+ "update:modelValue": (_value: import('..').PickerModelValue) => void;
161
+ focus: (event?: FocusEvent | undefined) => void;
162
+ visibleChange: (visible: boolean) => void;
163
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
164
+ readonly type: {
165
+ readonly default: "datetime";
166
+ readonly type: import('vue').PropType<import('..').PickerType>;
167
+ };
168
+ readonly modelValue: {
169
+ readonly type: import('vue').PropType<import('..').PickerModelValue>;
170
+ readonly default: null;
171
+ };
172
+ readonly format: {
173
+ readonly type: StringConstructor;
174
+ readonly default: "";
175
+ };
176
+ readonly valueFormat: {
177
+ readonly type: StringConstructor;
178
+ readonly default: "";
179
+ };
180
+ readonly placeholder: {
181
+ readonly type: StringConstructor;
182
+ readonly default: "";
183
+ };
184
+ readonly startPlaceholder: {
185
+ 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;
203
+ };
204
+ readonly editable: {
205
+ readonly type: BooleanConstructor;
206
+ readonly default: false;
207
+ };
208
+ readonly clearable: {
209
+ readonly type: BooleanConstructor;
210
+ readonly default: true;
211
+ };
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('..').PickerSize>;
218
+ readonly default: "md";
219
+ };
220
+ readonly shape: {
221
+ readonly type: import('vue').PropType<import('..').PickerShape>;
222
+ readonly default: "clip";
223
+ };
224
+ readonly variant: {
225
+ readonly type: import('vue').PropType<import('..').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: "";
243
+ };
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('..').DisabledTimeResolver>;
258
+ readonly default: undefined;
259
+ };
260
+ readonly disabledMinutes: {
261
+ readonly type: import('vue').PropType<import('..').DisabledTimeResolver>;
262
+ readonly default: undefined;
263
+ };
264
+ readonly disabledSeconds: {
265
+ readonly type: import('vue').PropType<import('..').DisabledTimeResolver>;
266
+ readonly default: undefined;
267
+ };
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('..').PickerShortcut[]>;
286
+ readonly default: () => never[];
287
+ };
288
+ readonly defaultValue: {
289
+ readonly type: import('vue').PropType<import('..').PickerValueItem>;
290
+ readonly default: undefined;
291
+ };
292
+ readonly defaultTime: {
293
+ readonly type: import('vue').PropType<string | [string, string]>;
294
+ readonly default: undefined;
295
+ };
296
+ readonly unlinkPanels: {
297
+ readonly type: BooleanConstructor;
298
+ readonly default: false;
299
+ };
300
+ }>> & Readonly<{
301
+ onClear?: (() => any) | undefined;
302
+ onBlur?: ((event?: FocusEvent | undefined) => any) | undefined;
303
+ onChange?: ((_value: import('..').PickerModelValue) => any) | undefined;
304
+ "onUpdate:modelValue"?: ((_value: import('..').PickerModelValue) => any) | undefined;
305
+ onFocus?: ((event?: FocusEvent | undefined) => any) | undefined;
306
+ onVisibleChange?: ((visible: boolean) => any) | undefined;
307
+ }>, {
308
+ readonly size: import('@cyberpunk-vue/hooks').Size;
309
+ readonly width: string | number;
310
+ readonly format: string;
311
+ readonly type: import('..').PickerType;
312
+ readonly color: string;
313
+ readonly variant: import('..').PickerVariant;
314
+ readonly disabled: boolean;
315
+ readonly shape: import('..').PickerShape;
316
+ readonly placeholder: string;
317
+ readonly modelValue: import('..').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;
325
+ readonly valueFormat: string;
326
+ readonly defaultValue: import('..').PickerValueItem;
327
+ readonly disabledDate: (date: Date) => boolean;
328
+ readonly startPlaceholder: string;
329
+ readonly endPlaceholder: string;
330
+ readonly rangeSeparator: string;
331
+ readonly editable: boolean;
332
+ readonly disabledHours: import('..').DisabledTimeResolver;
333
+ readonly disabledMinutes: import('..').DisabledTimeResolver;
334
+ readonly disabledSeconds: import('..').DisabledTimeResolver;
335
+ readonly hourStep: number;
336
+ readonly minuteStep: number;
337
+ readonly secondStep: number;
338
+ readonly showSeconds: boolean;
339
+ readonly shortcuts: import('..').PickerShortcut[];
340
+ readonly defaultTime: string | [string, string];
341
+ readonly unlinkPanels: boolean;
342
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
343
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
344
+ export default _default;
345
+ type __VLS_WithTemplateSlots<T, S> = T & {
346
+ new (): {
347
+ $slots: S;
348
+ };
349
+ };
@@ -0,0 +1,2 @@
1
+ import { default as DateTimePicker } from './date-time-picker.vue';
2
+ export type DateTimePickerInstance = InstanceType<typeof DateTimePicker> & unknown;
@@ -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;