@sdata/web-vue 3.18.0 → 3.20.0
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/sd.css +489 -0
- package/dist/sd.min.css +2 -2
- package/es/_components/icon-hover.vue.d.ts +1 -1
- package/es/_components/input-label/input-label.d.ts +13 -1
- package/es/_components/input-label/input-label.js +35 -5
- package/es/_components/input-label/style/index.css +6 -0
- package/es/_components/input-label/style/input-label.scss +8 -0
- package/es/_components/picker/input-range.vue.d.ts +24 -1
- package/es/_components/picker/input-range.vue_vue_type_script_setup_true_lang.js +42 -6
- package/es/_components/picker/input.vue.d.ts +24 -1
- package/es/_components/picker/input.vue_vue_type_script_setup_true_lang.js +31 -4
- package/es/_components/picker/style/index.scss +8 -0
- package/es/_components/select-view/select-view.d.ts +15 -3
- package/es/_components/select-view/select-view.js +10 -1
- package/es/_components/select-view/style/index.css +12 -0
- package/es/_components/virtual-list/virtual-list.vue.d.ts +6 -6
- package/es/_hooks/use-fit-width.d.ts +22 -0
- package/es/_hooks/use-fit-width.js +76 -0
- package/es/_hooks/use-form-item.d.ts +1 -1
- package/es/_hooks/use-size.d.ts +1 -1
- package/es/anchor/anchor.vue.d.ts +1 -1
- package/es/anchor/index.d.ts +3 -3
- package/es/auto-complete/auto-complete.d.ts +20 -2
- package/es/auto-complete/auto-complete.js +18 -0
- package/es/auto-complete/index.d.ts +36 -6
- package/es/basic-crud-table/basic-crud-table.vue.d.ts +2 -2
- package/es/basic-crud-table/basic-crud-table.vue_vue_type_script_setup_true_lang.js +6 -4
- package/es/basic-crud-table/index.d.ts +5 -5
- package/es/basic-crud-table/types.d.ts +2 -0
- package/es/button/button.vue.d.ts +2 -2
- package/es/button/index.d.ts +6 -6
- package/es/card/card.d.ts +25 -3
- package/es/card/card.js +11 -2
- package/es/card/index.d.ts +45 -6
- package/es/carousel/carousel-indicator.vue.d.ts +1 -1
- package/es/cascader/base-cascader-panel.d.ts +4 -1
- package/es/cascader/base-cascader-panel.js +2 -1
- package/es/cascader/cascader-option.d.ts +1 -1
- package/es/cascader/cascader-panel.vue.d.ts +1 -1
- package/es/cascader/cascader-search-panel.d.ts +4 -1
- package/es/cascader/cascader-search-panel.js +2 -1
- package/es/cascader/cascader.vue.d.ts +7 -5
- package/es/cascader/cascader.vue_vue_type_script_setup_true_lang.js +22 -2
- package/es/cascader/types.d.ts +4 -1
- package/es/checkbox/checkbox.d.ts +3 -3
- package/es/checkbox/index.d.ts +6 -6
- package/es/collapse/collapse-item.d.ts +3 -3
- package/es/collapse/index.d.ts +3 -3
- package/es/color-picker/color-picker.d.ts +2 -2
- package/es/color-picker/index.d.ts +6 -6
- package/es/components.d.ts +4 -0
- package/es/config-provider/config-provider.vue.d.ts +68 -1
- package/es/config-provider/config-provider.vue_vue_type_script_setup_true_lang.js +67 -1
- package/es/config-provider/context.d.ts +12 -0
- package/es/config-provider/index.d.ts +102 -3
- package/es/date-picker/index.d.ts +87 -23
- package/es/date-picker/interface.d.ts +2 -1
- package/es/date-picker/picker-panel.vue.d.ts +1 -1
- package/es/date-picker/picker.vue.d.ts +39 -17
- package/es/date-picker/picker.vue_vue_type_script_setup_true_lang.js +30 -1
- package/es/date-picker/pickers/date-picker.d.ts +18 -0
- package/es/date-picker/pickers/date-picker.js +16 -0
- package/es/date-picker/range-picker-panel.vue.d.ts +1 -1
- package/es/date-picker/range-picker.vue.d.ts +39 -17
- package/es/date-picker/range-picker.vue_vue_type_script_setup_true_lang.js +27 -1
- package/es/date-picker/style/index.css +6 -0
- package/es/descriptions/descriptions.d.ts +3 -3
- package/es/descriptions/index.d.ts +9 -9
- package/es/divider/divider.d.ts +1 -1
- package/es/divider/index.d.ts +3 -3
- package/es/drawer/drawer.vue.d.ts +4 -4
- package/es/drawer/drawer.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/drawer/index.d.ts +11 -11
- package/es/dropdown/dropdown-button.vue.d.ts +2 -2
- package/es/dropdown/dropdown-option.vue.d.ts +1 -1
- package/es/dropdown/dropdown-submenu.vue.d.ts +2 -2
- package/es/dropdown/dropdown.vue.d.ts +1 -1
- package/es/dropdown/index.d.ts +21 -21
- package/es/ellipsis/ellipsis.vue.d.ts +1 -1
- package/es/ellipsis/index.d.ts +6 -6
- package/es/ellipsis/performant-ellipsis.vue.d.ts +1 -1
- package/es/form/form-item.vue.d.ts +1 -1
- package/es/form/form.vue.d.ts +1 -1
- package/es/form/index.d.ts +9 -9
- package/es/grid/grid-row.vue.d.ts +3 -3
- package/es/grid/index.d.ts +9 -9
- package/es/icon/icon-arrow-up/icon-arrow-up.js +5 -0
- package/es/icon/icon-arrow-up/icon-arrow-up.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-arrow-up/index.js +9 -0
- package/es/icon/icon-mute/icon-mute.js +5 -0
- package/es/icon/icon-mute/icon-mute.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-mute/index.js +9 -0
- package/es/icon/icon-voice/icon-voice.js +5 -0
- package/es/icon/icon-voice/icon-voice.vue_vue_type_script_setup_true_lang.js +52 -0
- package/es/icon/icon-voice/index.js +9 -0
- package/es/image/preview-action.d.ts +6 -6
- package/es/image/preview-group.vue.d.ts +1 -1
- package/es/index.css +489 -0
- package/es/index.d.ts +6 -1
- package/es/index.js +5 -1
- package/es/index.scss +2 -0
- package/es/input/index.d.ts +99 -6
- package/es/input/input-password.vue.d.ts +18 -0
- package/es/input/input-password.vue_vue_type_script_setup_true_lang.js +24 -2
- package/es/input/input-search.d.ts +18 -0
- package/es/input/input-search.js +20 -2
- package/es/input/input.d.ts +29 -2
- package/es/input/input.js +45 -3
- package/es/input/style/index.css +16 -0
- package/es/input/style/index.scss +21 -0
- package/es/input-number/index.d.ts +36 -6
- package/es/input-number/input-number.d.ts +20 -2
- package/es/input-number/input-number.js +19 -0
- package/es/input-tag/index.d.ts +36 -6
- package/es/input-tag/input-tag.d.ts +20 -2
- package/es/input-tag/input-tag.js +35 -4
- package/es/input-tag/style/index.css +6 -0
- package/es/input-tag/style/input-tag.scss +8 -0
- package/es/kv-list/index.d.ts +72 -32
- package/es/link/index.d.ts +6 -6
- package/es/link/link.vue.d.ts +2 -2
- package/es/list/index.d.ts +9 -0
- package/es/list/list.d.ts +7 -0
- package/es/list/list.js +8 -2
- package/es/locale/interface.d.ts +22 -0
- package/es/locale/lang/ar-eg.js +21 -1
- package/es/locale/lang/de-de.js +21 -1
- package/es/locale/lang/en-us.js +21 -1
- package/es/locale/lang/es-es.js +21 -1
- package/es/locale/lang/fr-fr.js +21 -1
- package/es/locale/lang/id-id.js +21 -1
- package/es/locale/lang/it-it.js +21 -1
- package/es/locale/lang/ja-jp.js +21 -1
- package/es/locale/lang/km-kh.js +21 -1
- package/es/locale/lang/ko-kr.js +21 -1
- package/es/locale/lang/ms-my.js +21 -1
- package/es/locale/lang/nl-nl.js +21 -1
- package/es/locale/lang/pt-pt.js +21 -1
- package/es/locale/lang/ru-ru.js +21 -1
- package/es/locale/lang/th-th.js +21 -1
- package/es/locale/lang/vi-vn.js +21 -1
- package/es/locale/lang/zh-cn.js +21 -1
- package/es/locale/lang/zh-tw.js +21 -1
- package/es/mention/index.d.ts +39 -9
- package/es/mention/mention.d.ts +21 -3
- package/es/mention/mention.js +24 -1
- package/es/mention/style/index.css +6 -0
- package/es/mention/style/index.scss +8 -0
- package/es/menu/item.d.ts +1 -1
- package/es/message/message-list.d.ts +1 -1
- package/es/modal/index.d.ts +9 -9
- package/es/modal/modal.vue.d.ts +3 -3
- package/es/modal/modal.vue_vue_type_script_setup_true_lang.js +1 -1
- package/es/popconfirm/index.d.ts +3 -3
- package/es/popconfirm/popconfirm.vue.d.ts +1 -1
- package/es/popover/index.d.ts +6 -6
- package/es/popover/popover.vue.d.ts +2 -2
- package/es/progress/circle.vue.d.ts +1 -1
- package/es/progress/line.vue.d.ts +1 -1
- package/es/qr-code/index.d.ts +27 -21
- package/es/qr-code/qr-code.vue.d.ts +8 -6
- package/es/qr-code/qr-code.vue_vue_type_script_setup_true_lang.js +5 -2
- package/es/radio/index.d.ts +6 -6
- package/es/radio/radio.d.ts +3 -3
- package/es/rate/index.d.ts +3 -3
- package/es/rate/rate.d.ts +1 -1
- package/es/resize-box/index.d.ts +5 -5
- package/es/resize-box/resize-box.vue.d.ts +3 -3
- package/es/rich-text-editor/built-in-components.d.ts +5 -0
- package/es/rich-text-editor/built-in-components.js +6 -0
- package/es/rich-text-editor/index.d.ts +195 -0
- package/es/rich-text-editor/index.js +12 -0
- package/es/rich-text-editor/nodes/inline-component-node.d.ts +30 -0
- package/es/rich-text-editor/nodes/inline-component-node.js +86 -0
- package/es/rich-text-editor/rich-text-editor.js +5 -0
- package/es/rich-text-editor/rich-text-editor.vue.d.ts +76 -0
- package/es/rich-text-editor/rich-text-editor.vue_vue_type_script_setup_true_lang.js +630 -0
- package/es/rich-text-editor/rich-text-node-renderer.js +5 -0
- package/es/rich-text-editor/rich-text-node-renderer.vue.d.ts +28 -0
- package/es/rich-text-editor/rich-text-node-renderer.vue_vue_type_script_setup_true_lang.js +133 -0
- package/es/rich-text-editor/style/css.js +2 -0
- package/es/rich-text-editor/style/index.css +164 -0
- package/es/rich-text-editor/style/index.d.ts +2 -0
- package/es/rich-text-editor/style/index.js +2 -0
- package/es/rich-text-editor/style/index.scss +193 -0
- package/es/rich-text-editor/style/token.scss +36 -0
- package/es/rich-text-editor/types.d.ts +148 -0
- package/es/sd-vue.js +6 -0
- package/es/select/index.d.ts +117 -54
- package/es/select/interface.d.ts +2 -1
- package/es/select/select-dropdown.vue.d.ts +3 -0
- package/es/select/select-dropdown.vue_vue_type_script_setup_true_lang.js +2 -4
- package/es/select/select.d.ts +62 -25
- package/es/select/select.js +28 -1
- package/es/sender/context.d.ts +8 -0
- package/es/sender/context.js +4 -0
- package/es/sender/index.d.ts +119 -0
- package/es/sender/index.js +20 -0
- package/es/sender/sender-header.js +5 -0
- package/es/sender/sender-header.vue.d.ts +28 -0
- package/es/sender/sender-header.vue_vue_type_script_setup_true_lang.js +127 -0
- package/es/sender/sender-switch.js +5 -0
- package/es/sender/sender-switch.vue.d.ts +32 -0
- package/es/sender/sender-switch.vue_vue_type_script_setup_true_lang.js +95 -0
- package/es/sender/sender.js +5 -0
- package/es/sender/sender.vue_vue_type_script_setup_true_lang.js +895 -0
- package/es/sender/style/css.js +3 -0
- package/es/sender/style/index.css +301 -0
- package/es/sender/style/index.d.ts +3 -0
- package/es/sender/style/index.js +3 -0
- package/es/sender/style/index.scss +359 -0
- package/es/sender/style/token.scss +43 -0
- package/es/sender/types.d.ts +228 -0
- package/es/sender/use-speech.d.ts +19 -0
- package/es/sender/use-speech.js +338 -0
- package/es/slider/index.d.ts +3 -3
- package/es/slider/slider-input.vue.d.ts +1 -1
- package/es/slider/slider.vue.d.ts +1 -1
- package/es/space/index.d.ts +9 -9
- package/es/space/space.d.ts +2 -2
- package/es/spin/index.d.ts +18 -3
- package/es/spin/spin.d.ts +10 -1
- package/es/spin/spin.js +72 -10
- package/es/statistic/index.d.ts +3 -3
- package/es/statistic/statistic.vue.d.ts +1 -1
- package/es/steps/index.d.ts +5 -5
- package/es/steps/step.vue.d.ts +2 -2
- package/es/steps/steps.vue.d.ts +1 -1
- package/es/table/index.d.ts +68 -23
- package/es/table/interface.d.ts +3 -0
- package/es/table/table-column.d.ts +1 -1
- package/es/table/table-operation-td.d.ts +12 -12
- package/es/table/table-td.d.ts +2 -2
- package/es/table/table.d.ts +27 -8
- package/es/table/table.js +7 -2
- package/es/tabs/index.d.ts +12 -12
- package/es/tabs/tabs-nav.d.ts +1 -1
- package/es/tabs/tabs.d.ts +4 -4
- package/es/tag/index.d.ts +6 -6
- package/es/tag/tag.vue.d.ts +2 -2
- package/es/textarea/index.d.ts +38 -8
- package/es/textarea/style/index.css +6 -0
- package/es/textarea/style/index.scss +8 -0
- package/es/textarea/textarea.vue.d.ts +21 -3
- package/es/textarea/textarea.vue_vue_type_script_setup_true_lang.js +36 -3
- package/es/time-picker/index.d.ts +36 -6
- package/es/time-picker/interface.d.ts +2 -1
- package/es/time-picker/range-panel.js +58 -0
- package/es/time-picker/time-picker.vue.d.ts +20 -2
- package/es/time-picker/time-picker.vue_vue_type_script_setup_true_lang.js +30 -1
- package/es/timeline/index.d.ts +45 -6
- package/es/timeline/timeline.d.ts +25 -3
- package/es/timeline/timeline.js +11 -2
- package/es/toolbar/toolbar.vue_vue_type_script_setup_true_lang.js +9 -5
- package/es/toolbar/types.d.ts +2 -0
- package/es/tooltip/index.d.ts +6 -6
- package/es/tooltip/tooltip.vue.d.ts +2 -2
- package/es/tour/index.d.ts +3 -3
- package/es/tour/tour.vue.d.ts +1 -1
- package/es/transfer/index.d.ts +3 -3
- package/es/transfer/transfer.vue.d.ts +1 -1
- package/es/tree/tree.vue.d.ts +4 -4
- package/es/tree-select/interface.d.ts +2 -1
- package/es/tree-select/tree-select.vue.d.ts +32 -7
- package/es/tree-select/tree-select.vue_vue_type_script_setup_true_lang.js +27 -1
- package/es/trigger/index.d.ts +12 -12
- package/es/trigger/trigger.d.ts +4 -4
- package/es/typography/base.d.ts +4 -4
- package/es/typography/edit-content.vue.d.ts +2 -2
- package/es/upload/index.d.ts +6 -6
- package/es/upload/upload-button.d.ts +1 -1
- package/es/upload/upload.d.ts +2 -2
- package/es/verification-code/index.d.ts +3 -3
- package/es/verification-code/verification-code.d.ts +1 -1
- package/es/watermark/index.d.ts +3 -3
- package/es/watermark/watermark.d.ts +1 -1
- package/json/vetur-attributes.json +295 -2
- package/json/vetur-tags.json +103 -3
- package/json/web-types.json +746 -53
- package/package.json +10 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Slot, VNode } from 'vue';
|
|
2
2
|
import { Dayjs } from 'dayjs';
|
|
3
|
+
import type { FitWidthProps } from '../_hooks/use-fit-width';
|
|
3
4
|
import { TimePickerProps } from '../time-picker/interface';
|
|
4
5
|
export type CalendarValue = Date | string | number;
|
|
5
6
|
export type ValueFormat = 'timestamp' | 'Date' | string;
|
|
@@ -53,7 +54,7 @@ export interface QuarterPickerProps {
|
|
|
53
54
|
modelValue?: CalendarValue;
|
|
54
55
|
defaultValue?: CalendarValue;
|
|
55
56
|
}
|
|
56
|
-
export interface BasePickerProps {
|
|
57
|
+
export interface BasePickerProps extends FitWidthProps {
|
|
57
58
|
locale?: Record<string, any>;
|
|
58
59
|
hideTrigger: boolean;
|
|
59
60
|
allowClear: boolean;
|
|
@@ -224,7 +224,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
224
224
|
abbreviation: boolean;
|
|
225
225
|
shortcuts: ShortcutType[];
|
|
226
226
|
showNowBtn: boolean;
|
|
227
|
-
shortcutsPosition: "
|
|
227
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
228
228
|
hideTrigger: boolean;
|
|
229
229
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
230
230
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -132,7 +132,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
132
132
|
abbreviation: boolean;
|
|
133
133
|
shortcuts: ShortcutType[];
|
|
134
134
|
showNowBtn: boolean;
|
|
135
|
-
shortcutsPosition: "
|
|
135
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
136
136
|
hideTrigger: boolean;
|
|
137
137
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
138
138
|
P: {};
|
|
@@ -245,7 +245,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
245
245
|
abbreviation: boolean;
|
|
246
246
|
shortcuts: ShortcutType[];
|
|
247
247
|
showNowBtn: boolean;
|
|
248
|
-
shortcutsPosition: "
|
|
248
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
249
249
|
hideTrigger: boolean;
|
|
250
250
|
}>;
|
|
251
251
|
__isFragment?: never;
|
|
@@ -366,7 +366,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
366
366
|
abbreviation: boolean;
|
|
367
367
|
shortcuts: ShortcutType[];
|
|
368
368
|
showNowBtn: boolean;
|
|
369
|
-
shortcutsPosition: "
|
|
369
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
370
370
|
hideTrigger: boolean;
|
|
371
371
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
372
372
|
$slots: {
|
|
@@ -405,17 +405,19 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
405
405
|
timePickerProps: {
|
|
406
406
|
visible: boolean;
|
|
407
407
|
type?: "time" | "time-range" | undefined;
|
|
408
|
+
size?: "small" | "medium" | "large" | "mini" | undefined;
|
|
409
|
+
position?: "bottom" | "top" | "tl" | "tr" | "bl" | "br" | undefined;
|
|
410
|
+
disabled?: boolean | undefined;
|
|
408
411
|
error?: boolean | undefined;
|
|
409
412
|
readonly?: boolean | undefined;
|
|
410
|
-
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
411
413
|
popupVisible?: boolean | undefined;
|
|
412
414
|
defaultPopupVisible?: boolean | undefined;
|
|
413
|
-
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
414
|
-
disabled?: boolean | undefined;
|
|
415
415
|
unmountOnClose?: boolean | undefined;
|
|
416
416
|
modelValue?: (import("../index.ts").TimeValue | import("../index.ts").TimeValue[]) | undefined;
|
|
417
417
|
placeholder?: string | string[] | undefined;
|
|
418
418
|
allowClear?: boolean | undefined;
|
|
419
|
+
fitWidth?: boolean | undefined;
|
|
420
|
+
maxWFull?: boolean | undefined;
|
|
419
421
|
triggerProps?: Record<string, unknown> | undefined;
|
|
420
422
|
format: string;
|
|
421
423
|
disabledHours?: (() => number[]) | undefined;
|
|
@@ -460,7 +462,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
460
462
|
dayStartOfWeek: WeekStart;
|
|
461
463
|
abbreviation: boolean;
|
|
462
464
|
shortcuts: ShortcutType[];
|
|
463
|
-
shortcutsPosition: "
|
|
465
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
464
466
|
hideTrigger: boolean;
|
|
465
467
|
};
|
|
466
468
|
}, __VLS_46: {}, __VLS_49: {
|
|
@@ -582,7 +584,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
582
584
|
abbreviation: boolean;
|
|
583
585
|
shortcuts: ShortcutType[];
|
|
584
586
|
showNowBtn: boolean;
|
|
585
|
-
shortcutsPosition: "
|
|
587
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
586
588
|
hideTrigger: boolean;
|
|
587
589
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
588
590
|
P: {};
|
|
@@ -695,7 +697,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
695
697
|
abbreviation: boolean;
|
|
696
698
|
shortcuts: ShortcutType[];
|
|
697
699
|
showNowBtn: boolean;
|
|
698
|
-
shortcutsPosition: "
|
|
700
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
699
701
|
hideTrigger: boolean;
|
|
700
702
|
}>;
|
|
701
703
|
__isFragment?: never;
|
|
@@ -816,7 +818,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
816
818
|
abbreviation: boolean;
|
|
817
819
|
shortcuts: ShortcutType[];
|
|
818
820
|
showNowBtn: boolean;
|
|
819
|
-
shortcutsPosition: "
|
|
821
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
820
822
|
hideTrigger: boolean;
|
|
821
823
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
822
824
|
$slots: {
|
|
@@ -855,17 +857,19 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
855
857
|
timePickerProps: {
|
|
856
858
|
visible: boolean;
|
|
857
859
|
type?: "time" | "time-range" | undefined;
|
|
860
|
+
size?: "small" | "medium" | "large" | "mini" | undefined;
|
|
861
|
+
position?: "bottom" | "top" | "tl" | "tr" | "bl" | "br" | undefined;
|
|
862
|
+
disabled?: boolean | undefined;
|
|
858
863
|
error?: boolean | undefined;
|
|
859
864
|
readonly?: boolean | undefined;
|
|
860
|
-
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
861
865
|
popupVisible?: boolean | undefined;
|
|
862
866
|
defaultPopupVisible?: boolean | undefined;
|
|
863
|
-
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
864
|
-
disabled?: boolean | undefined;
|
|
865
867
|
unmountOnClose?: boolean | undefined;
|
|
866
868
|
modelValue?: (import("../index.ts").TimeValue | import("../index.ts").TimeValue[]) | undefined;
|
|
867
869
|
placeholder?: string | string[] | undefined;
|
|
868
870
|
allowClear?: boolean | undefined;
|
|
871
|
+
fitWidth?: boolean | undefined;
|
|
872
|
+
maxWFull?: boolean | undefined;
|
|
869
873
|
triggerProps?: Record<string, unknown> | undefined;
|
|
870
874
|
format: string;
|
|
871
875
|
disabledHours?: (() => number[]) | undefined;
|
|
@@ -910,7 +914,7 @@ declare var __VLS_10: {}, __VLS_26: {}, __VLS_29: {}, __VLS_37: {
|
|
|
910
914
|
dayStartOfWeek: WeekStart;
|
|
911
915
|
abbreviation: boolean;
|
|
912
916
|
shortcuts: ShortcutType[];
|
|
913
|
-
shortcutsPosition: "
|
|
917
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
914
918
|
hideTrigger: boolean;
|
|
915
919
|
};
|
|
916
920
|
}, __VLS_60: {}, __VLS_63: {
|
|
@@ -990,6 +994,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
990
994
|
placeholder: {
|
|
991
995
|
type: StringConstructor;
|
|
992
996
|
};
|
|
997
|
+
fitWidth: {
|
|
998
|
+
type: BooleanConstructor;
|
|
999
|
+
default: boolean;
|
|
1000
|
+
};
|
|
1001
|
+
maxWFull: {
|
|
1002
|
+
type: BooleanConstructor;
|
|
1003
|
+
default: boolean;
|
|
1004
|
+
};
|
|
993
1005
|
inputProps: {
|
|
994
1006
|
type: PropType<Record<string, any>>;
|
|
995
1007
|
};
|
|
@@ -1128,6 +1140,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1128
1140
|
placeholder: {
|
|
1129
1141
|
type: StringConstructor;
|
|
1130
1142
|
};
|
|
1143
|
+
fitWidth: {
|
|
1144
|
+
type: BooleanConstructor;
|
|
1145
|
+
default: boolean;
|
|
1146
|
+
};
|
|
1147
|
+
maxWFull: {
|
|
1148
|
+
type: BooleanConstructor;
|
|
1149
|
+
default: boolean;
|
|
1150
|
+
};
|
|
1131
1151
|
inputProps: {
|
|
1132
1152
|
type: PropType<Record<string, any>>;
|
|
1133
1153
|
};
|
|
@@ -1212,13 +1232,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1212
1232
|
"onPicker-value-change"?: ((_value: CalendarValue, _date: Date, _dateString: string) => any) | undefined;
|
|
1213
1233
|
"onUpdate:pickerValue"?: ((_value: CalendarValue) => any) | undefined;
|
|
1214
1234
|
}>, {
|
|
1235
|
+
position: "bottom" | "top" | "tl" | "tr" | "bl" | "br";
|
|
1236
|
+
disabled: boolean;
|
|
1215
1237
|
error: boolean;
|
|
1216
1238
|
popupVisible: boolean;
|
|
1217
1239
|
defaultPopupVisible: boolean;
|
|
1218
|
-
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
1219
|
-
disabled: boolean;
|
|
1220
1240
|
unmountOnClose: boolean;
|
|
1221
1241
|
allowClear: boolean;
|
|
1242
|
+
fitWidth: boolean;
|
|
1243
|
+
maxWFull: boolean;
|
|
1222
1244
|
mode: "month" | "year" | "date" | "week" | "quarter";
|
|
1223
1245
|
disabledInput: boolean;
|
|
1224
1246
|
showTime: boolean;
|
|
@@ -1228,7 +1250,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1228
1250
|
abbreviation: boolean;
|
|
1229
1251
|
shortcuts: ShortcutType[];
|
|
1230
1252
|
showNowBtn: boolean;
|
|
1231
|
-
shortcutsPosition: "
|
|
1253
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
1232
1254
|
hideTrigger: boolean;
|
|
1233
1255
|
previewShortcut: boolean;
|
|
1234
1256
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
@@ -11,7 +11,7 @@ import useState from "../_hooks/use-state.js";
|
|
|
11
11
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
12
12
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
13
13
|
import input_default from "../_components/picker/input.js";
|
|
14
|
-
import { getDateValue, getDayjsValue, getNow, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
14
|
+
import { dayjs, getDateValue, getDayjsValue, getNow, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
15
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
16
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
17
17
|
import useFormat from "./hooks/use-format.js";
|
|
@@ -132,6 +132,22 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
132
132
|
*/
|
|
133
133
|
placeholder: { type: String },
|
|
134
134
|
/**
|
|
135
|
+
* @zh 宽度是否适应文字内容
|
|
136
|
+
* @en Whether the width adapts to the text content
|
|
137
|
+
*/
|
|
138
|
+
fitWidth: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* @zh 最大宽度是否限制为父容器宽度
|
|
144
|
+
* @en Whether the maximum width is limited to the parent container width
|
|
145
|
+
*/
|
|
146
|
+
maxWFull: {
|
|
147
|
+
type: Boolean,
|
|
148
|
+
default: true
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
135
151
|
* @zh 原生输入框属性
|
|
136
152
|
* @en Native input attributes
|
|
137
153
|
*/
|
|
@@ -392,6 +408,11 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
392
408
|
var _format$value;
|
|
393
409
|
return (_format$value = format.value) === null || _format$value === void 0 ? void 0 : _format$value.call(format, getDateValue(value));
|
|
394
410
|
} : computedFormat.value);
|
|
411
|
+
const fitWidthFallbackText = computed(() => {
|
|
412
|
+
const sample = dayjs(new Date(2e3, 0, 1, 0, 0, 0));
|
|
413
|
+
return typeof inputFormat.value === "function" ? inputFormat.value(sample) : sample.format(inputFormat.value);
|
|
414
|
+
});
|
|
415
|
+
const fitWidthFallback = computed(() => `${Array.from(fitWidthFallbackText.value).length}ch`);
|
|
395
416
|
const getReturnValue = useReturnValue(reactive({
|
|
396
417
|
format: returnValueFormat,
|
|
397
418
|
utcOffset,
|
|
@@ -668,6 +689,10 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
668
689
|
readonly: !inputEditable.value || __props.disabledInput,
|
|
669
690
|
"allow-clear": unref(mergedAllowClear) && !unref(readonly),
|
|
670
691
|
placeholder: computedPlaceholder.value,
|
|
692
|
+
"fit-width": __props.fitWidth,
|
|
693
|
+
"max-w-full": __props.maxWFull,
|
|
694
|
+
"fit-width-fallback": fitWidthFallback.value,
|
|
695
|
+
"fit-width-fallback-text": fitWidthFallbackText.value,
|
|
671
696
|
"input-props": __props.inputProps,
|
|
672
697
|
"input-value": unref(inputValue),
|
|
673
698
|
value: needConfirm.value ? panelValue.value : unref(selectedValue),
|
|
@@ -692,6 +717,10 @@ var picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
692
717
|
"readonly",
|
|
693
718
|
"allow-clear",
|
|
694
719
|
"placeholder",
|
|
720
|
+
"fit-width",
|
|
721
|
+
"max-w-full",
|
|
722
|
+
"fit-width-fallback",
|
|
723
|
+
"fit-width-fallback-text",
|
|
695
724
|
"input-props",
|
|
696
725
|
"input-value",
|
|
697
726
|
"value",
|
|
@@ -34,6 +34,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
34
34
|
type: BooleanConstructor;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
+
fitWidth: {
|
|
38
|
+
type: BooleanConstructor;
|
|
39
|
+
default: boolean;
|
|
40
|
+
};
|
|
41
|
+
maxWFull: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
37
45
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
46
|
modelValue: {
|
|
39
47
|
type: PropType<Date | string | number>;
|
|
@@ -67,8 +75,18 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
67
75
|
type: BooleanConstructor;
|
|
68
76
|
default: boolean;
|
|
69
77
|
};
|
|
78
|
+
fitWidth: {
|
|
79
|
+
type: BooleanConstructor;
|
|
80
|
+
default: boolean;
|
|
81
|
+
};
|
|
82
|
+
maxWFull: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
70
86
|
}>> & Readonly<{}>, {
|
|
71
87
|
disabled: boolean;
|
|
88
|
+
fitWidth: boolean;
|
|
89
|
+
maxWFull: boolean;
|
|
72
90
|
showTime: boolean;
|
|
73
91
|
dayStartOfWeek: WeekStart;
|
|
74
92
|
showNowBtn: boolean;
|
|
@@ -69,6 +69,22 @@ var date_picker_default = /* @__PURE__ */ defineComponent({
|
|
|
69
69
|
showNowBtn: {
|
|
70
70
|
type: Boolean,
|
|
71
71
|
default: true
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* @zh 宽度是否适应文字内容
|
|
75
|
+
* @en Whether the width adapts to the text content
|
|
76
|
+
*/
|
|
77
|
+
fitWidth: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: false
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* @zh 最大宽度是否限制为父容器宽度
|
|
83
|
+
* @en Whether the maximum width is limited to the parent container width
|
|
84
|
+
*/
|
|
85
|
+
maxWFull: {
|
|
86
|
+
type: Boolean,
|
|
87
|
+
default: true
|
|
72
88
|
}
|
|
73
89
|
},
|
|
74
90
|
setup(props, { attrs, slots }) {
|
|
@@ -275,7 +275,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
275
275
|
confirmBtnDisabled: boolean;
|
|
276
276
|
abbreviation: boolean;
|
|
277
277
|
shortcuts: ShortcutType[];
|
|
278
|
-
shortcutsPosition: "
|
|
278
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
279
279
|
hideTrigger: boolean;
|
|
280
280
|
startHeaderProps: StartHeaderProps;
|
|
281
281
|
endHeaderProps: StartHeaderProps;
|
|
@@ -146,7 +146,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
146
146
|
confirmBtnDisabled: boolean;
|
|
147
147
|
abbreviation: boolean;
|
|
148
148
|
shortcuts: ShortcutType[];
|
|
149
|
-
shortcutsPosition: "
|
|
149
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
150
150
|
hideTrigger: boolean;
|
|
151
151
|
startHeaderProps: import("./interface").StartHeaderProps;
|
|
152
152
|
endHeaderProps: import("./interface").StartHeaderProps;
|
|
@@ -273,7 +273,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
273
273
|
confirmBtnDisabled: boolean;
|
|
274
274
|
abbreviation: boolean;
|
|
275
275
|
shortcuts: ShortcutType[];
|
|
276
|
-
shortcutsPosition: "
|
|
276
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
277
277
|
hideTrigger: boolean;
|
|
278
278
|
startHeaderProps: import("./interface").StartHeaderProps;
|
|
279
279
|
endHeaderProps: import("./interface").StartHeaderProps;
|
|
@@ -409,7 +409,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
409
409
|
confirmBtnDisabled: boolean;
|
|
410
410
|
abbreviation: boolean;
|
|
411
411
|
shortcuts: ShortcutType[];
|
|
412
|
-
shortcutsPosition: "
|
|
412
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
413
413
|
hideTrigger: boolean;
|
|
414
414
|
startHeaderProps: import("./interface").StartHeaderProps;
|
|
415
415
|
endHeaderProps: import("./interface").StartHeaderProps;
|
|
@@ -479,17 +479,19 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
479
479
|
timePickerProps: {
|
|
480
480
|
visible: boolean;
|
|
481
481
|
type?: "time" | "time-range" | undefined;
|
|
482
|
+
size?: "small" | "medium" | "large" | "mini" | undefined;
|
|
483
|
+
position?: "bottom" | "top" | "tl" | "tr" | "bl" | "br" | undefined;
|
|
484
|
+
disabled?: boolean | undefined;
|
|
482
485
|
error?: boolean | undefined;
|
|
483
486
|
readonly?: boolean | undefined;
|
|
484
|
-
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
485
487
|
popupVisible?: boolean | undefined;
|
|
486
488
|
defaultPopupVisible?: boolean | undefined;
|
|
487
|
-
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
488
|
-
disabled?: boolean | undefined;
|
|
489
489
|
unmountOnClose?: boolean | undefined;
|
|
490
490
|
modelValue?: (import("../index.ts").TimeValue | import("../index.ts").TimeValue[]) | undefined;
|
|
491
491
|
placeholder?: string | string[] | undefined;
|
|
492
492
|
allowClear?: boolean | undefined;
|
|
493
|
+
fitWidth?: boolean | undefined;
|
|
494
|
+
maxWFull?: boolean | undefined;
|
|
493
495
|
triggerProps?: Record<string, unknown> | undefined;
|
|
494
496
|
format: string;
|
|
495
497
|
disabledHours?: (() => number[]) | undefined;
|
|
@@ -647,7 +649,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
647
649
|
dayStartOfWeek: WeekStart;
|
|
648
650
|
abbreviation: boolean;
|
|
649
651
|
shortcuts: ShortcutType[];
|
|
650
|
-
shortcutsPosition: "
|
|
652
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
651
653
|
hideTrigger: boolean;
|
|
652
654
|
};
|
|
653
655
|
}, __VLS_48: {}, __VLS_51: {
|
|
@@ -783,7 +785,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
783
785
|
confirmBtnDisabled: boolean;
|
|
784
786
|
abbreviation: boolean;
|
|
785
787
|
shortcuts: ShortcutType[];
|
|
786
|
-
shortcutsPosition: "
|
|
788
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
787
789
|
hideTrigger: boolean;
|
|
788
790
|
startHeaderProps: import("./interface").StartHeaderProps;
|
|
789
791
|
endHeaderProps: import("./interface").StartHeaderProps;
|
|
@@ -910,7 +912,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
910
912
|
confirmBtnDisabled: boolean;
|
|
911
913
|
abbreviation: boolean;
|
|
912
914
|
shortcuts: ShortcutType[];
|
|
913
|
-
shortcutsPosition: "
|
|
915
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
914
916
|
hideTrigger: boolean;
|
|
915
917
|
startHeaderProps: import("./interface").StartHeaderProps;
|
|
916
918
|
endHeaderProps: import("./interface").StartHeaderProps;
|
|
@@ -1046,7 +1048,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
1046
1048
|
confirmBtnDisabled: boolean;
|
|
1047
1049
|
abbreviation: boolean;
|
|
1048
1050
|
shortcuts: ShortcutType[];
|
|
1049
|
-
shortcutsPosition: "
|
|
1051
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
1050
1052
|
hideTrigger: boolean;
|
|
1051
1053
|
startHeaderProps: import("./interface").StartHeaderProps;
|
|
1052
1054
|
endHeaderProps: import("./interface").StartHeaderProps;
|
|
@@ -1116,17 +1118,19 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
1116
1118
|
timePickerProps: {
|
|
1117
1119
|
visible: boolean;
|
|
1118
1120
|
type?: "time" | "time-range" | undefined;
|
|
1121
|
+
size?: "small" | "medium" | "large" | "mini" | undefined;
|
|
1122
|
+
position?: "bottom" | "top" | "tl" | "tr" | "bl" | "br" | undefined;
|
|
1123
|
+
disabled?: boolean | undefined;
|
|
1119
1124
|
error?: boolean | undefined;
|
|
1120
1125
|
readonly?: boolean | undefined;
|
|
1121
|
-
size?: "small" | "mini" | "medium" | "large" | undefined;
|
|
1122
1126
|
popupVisible?: boolean | undefined;
|
|
1123
1127
|
defaultPopupVisible?: boolean | undefined;
|
|
1124
|
-
position?: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | undefined;
|
|
1125
|
-
disabled?: boolean | undefined;
|
|
1126
1128
|
unmountOnClose?: boolean | undefined;
|
|
1127
1129
|
modelValue?: (import("../index.ts").TimeValue | import("../index.ts").TimeValue[]) | undefined;
|
|
1128
1130
|
placeholder?: string | string[] | undefined;
|
|
1129
1131
|
allowClear?: boolean | undefined;
|
|
1132
|
+
fitWidth?: boolean | undefined;
|
|
1133
|
+
maxWFull?: boolean | undefined;
|
|
1130
1134
|
triggerProps?: Record<string, unknown> | undefined;
|
|
1131
1135
|
format: string;
|
|
1132
1136
|
disabledHours?: (() => number[]) | undefined;
|
|
@@ -1284,7 +1288,7 @@ declare var __VLS_10: {}, __VLS_25: {}, __VLS_28: {}, __VLS_36: {}, __VLS_39: {
|
|
|
1284
1288
|
dayStartOfWeek: WeekStart;
|
|
1285
1289
|
abbreviation: boolean;
|
|
1286
1290
|
shortcuts: ShortcutType[];
|
|
1287
|
-
shortcutsPosition: "
|
|
1291
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
1288
1292
|
hideTrigger: boolean;
|
|
1289
1293
|
};
|
|
1290
1294
|
}, __VLS_62: {}, __VLS_65: {
|
|
@@ -1356,6 +1360,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1356
1360
|
placeholder: {
|
|
1357
1361
|
type: PropType<string[]>;
|
|
1358
1362
|
};
|
|
1363
|
+
fitWidth: {
|
|
1364
|
+
type: BooleanConstructor;
|
|
1365
|
+
default: boolean;
|
|
1366
|
+
};
|
|
1367
|
+
maxWFull: {
|
|
1368
|
+
type: BooleanConstructor;
|
|
1369
|
+
default: boolean;
|
|
1370
|
+
};
|
|
1359
1371
|
disabledDate: {
|
|
1360
1372
|
type: PropType<(current: Date, type: "start" | "end") => boolean>;
|
|
1361
1373
|
};
|
|
@@ -1506,6 +1518,14 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1506
1518
|
placeholder: {
|
|
1507
1519
|
type: PropType<string[]>;
|
|
1508
1520
|
};
|
|
1521
|
+
fitWidth: {
|
|
1522
|
+
type: BooleanConstructor;
|
|
1523
|
+
default: boolean;
|
|
1524
|
+
};
|
|
1525
|
+
maxWFull: {
|
|
1526
|
+
type: BooleanConstructor;
|
|
1527
|
+
default: boolean;
|
|
1528
|
+
};
|
|
1509
1529
|
disabledDate: {
|
|
1510
1530
|
type: PropType<(current: Date, type: "start" | "end") => boolean>;
|
|
1511
1531
|
};
|
|
@@ -1613,13 +1633,15 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1613
1633
|
"onPicker-value-change"?: ((value: CalendarValue[], date: Date[], dateString: string[]) => any) | undefined;
|
|
1614
1634
|
"onUpdate:pickerValue"?: ((value: CalendarValue[]) => any) | undefined;
|
|
1615
1635
|
}>, {
|
|
1636
|
+
position: "bottom" | "top" | "tl" | "tr" | "bl" | "br";
|
|
1637
|
+
disabled: boolean | boolean[];
|
|
1616
1638
|
error: boolean;
|
|
1617
1639
|
popupVisible: boolean;
|
|
1618
1640
|
defaultPopupVisible: boolean;
|
|
1619
|
-
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br";
|
|
1620
|
-
disabled: boolean | boolean[];
|
|
1621
1641
|
unmountOnClose: boolean;
|
|
1622
1642
|
allowClear: boolean;
|
|
1643
|
+
fitWidth: boolean;
|
|
1644
|
+
maxWFull: boolean;
|
|
1623
1645
|
mode: "month" | "year" | "date" | "week" | "quarter";
|
|
1624
1646
|
disabledInput: boolean;
|
|
1625
1647
|
showTime: boolean;
|
|
@@ -1628,7 +1650,7 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
1628
1650
|
showConfirmBtn: boolean;
|
|
1629
1651
|
abbreviation: boolean;
|
|
1630
1652
|
shortcuts: ShortcutType[];
|
|
1631
|
-
shortcutsPosition: "
|
|
1653
|
+
shortcutsPosition: "left" | "right" | "bottom";
|
|
1632
1654
|
hideTrigger: boolean;
|
|
1633
1655
|
inputProps: Record<string, any>[];
|
|
1634
1656
|
previewShortcut: boolean;
|
|
@@ -11,7 +11,7 @@ import Trigger from "../trigger/index.js";
|
|
|
11
11
|
import useState from "../_hooks/use-state.js";
|
|
12
12
|
import useMergeState from "../_hooks/use-merge-state.js";
|
|
13
13
|
import { useConfigProviderProp } from "../_hooks/use-config-provider-prop.js";
|
|
14
|
-
import { getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
14
|
+
import { dayjs, getDateValue, getDayjsValue, getNow, getSortedDayjsArray, initializeDateLocale, isValueChange, toLocal } from "../_utils/date.js";
|
|
15
15
|
import IconCalendar from "../icon/icon-calendar/index.js";
|
|
16
16
|
import { getFormattedValue, isValidInputValue } from "../time-picker/utils/index.js";
|
|
17
17
|
import useFormat from "./hooks/use-format.js";
|
|
@@ -113,6 +113,22 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
113
113
|
* */
|
|
114
114
|
placeholder: { type: Array },
|
|
115
115
|
/**
|
|
116
|
+
* @zh 宽度是否适应文字内容
|
|
117
|
+
* @en Whether the width adapts to the text content
|
|
118
|
+
*/
|
|
119
|
+
fitWidth: {
|
|
120
|
+
type: Boolean,
|
|
121
|
+
default: false
|
|
122
|
+
},
|
|
123
|
+
/**
|
|
124
|
+
* @zh 最大宽度是否限制为父容器宽度
|
|
125
|
+
* @en Whether the maximum width is limited to the parent container width
|
|
126
|
+
*/
|
|
127
|
+
maxWFull: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: true
|
|
130
|
+
},
|
|
131
|
+
/**
|
|
116
132
|
* @zh 不可选的日期
|
|
117
133
|
* @en Non-selectable date
|
|
118
134
|
* */
|
|
@@ -321,6 +337,8 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
321
337
|
showTime,
|
|
322
338
|
valueFormat
|
|
323
339
|
}));
|
|
340
|
+
const fitWidthFallbackText = computed(() => dayjs(new Date(2e3, 0, 1, 0, 0, 0)).format(computedFormat.value));
|
|
341
|
+
const fitWidthFallback = computed(() => `${Array.from(fitWidthFallbackText.value).length}ch`);
|
|
324
342
|
const disabledArray = computed(() => {
|
|
325
343
|
return [disabled.value === true || formDisabled.value || isArray(disabled.value) && disabled.value[0] === true, disabled.value === true || formDisabled.value || isArray(disabled.value) && disabled.value[1] === true];
|
|
326
344
|
});
|
|
@@ -701,6 +719,10 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
701
719
|
readonly: __props.readonly || __props.disabledInput,
|
|
702
720
|
"allow-clear": unref(mergedAllowClear) && !__props.readonly,
|
|
703
721
|
placeholder: computedPlaceholder.value,
|
|
722
|
+
"fit-width": __props.fitWidth,
|
|
723
|
+
"max-w-full": __props.maxWFull,
|
|
724
|
+
"fit-width-fallback": fitWidthFallback.value,
|
|
725
|
+
"fit-width-fallback-text": fitWidthFallbackText.value,
|
|
704
726
|
"input-props": __props.inputProps,
|
|
705
727
|
"input-value": unref(inputValue),
|
|
706
728
|
value: panelValue.value,
|
|
@@ -726,6 +748,10 @@ var range_picker_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
726
748
|
"readonly",
|
|
727
749
|
"allow-clear",
|
|
728
750
|
"placeholder",
|
|
751
|
+
"fit-width",
|
|
752
|
+
"max-w-full",
|
|
753
|
+
"fit-width-fallback",
|
|
754
|
+
"fit-width-fallback-text",
|
|
729
755
|
"input-props",
|
|
730
756
|
"input-value",
|
|
731
757
|
"value",
|
|
@@ -32,6 +32,12 @@
|
|
|
32
32
|
border-radius: var(--sd-border-radius-small);
|
|
33
33
|
transition: color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), background-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), border-color 0.1s cubic-bezier(0.34, 0.69, 0.1, 1), box-shadow 0.1s cubic-bezier(0.34, 0.69, 0.1, 1);
|
|
34
34
|
}
|
|
35
|
+
.sd-picker.sd-picker-fit-width {
|
|
36
|
+
width: fit-content;
|
|
37
|
+
}
|
|
38
|
+
.sd-picker.sd-picker-max-w-full {
|
|
39
|
+
max-width: 100%;
|
|
40
|
+
}
|
|
35
41
|
.sd-picker-input {
|
|
36
42
|
display: inline-flex;
|
|
37
43
|
flex: 1;
|
|
@@ -79,12 +79,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
79
79
|
default: string;
|
|
80
80
|
};
|
|
81
81
|
}>> & Readonly<{}>, {
|
|
82
|
+
column: number | ResponsiveValue;
|
|
83
|
+
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
82
84
|
data: DescData[];
|
|
83
85
|
bordered: boolean;
|
|
84
|
-
column: number | ResponsiveValue;
|
|
85
86
|
tableLayout: "fixed" | "auto";
|
|
86
|
-
|
|
87
|
-
align: "left" | "right" | "center" | {
|
|
87
|
+
align: "center" | "left" | "right" | {
|
|
88
88
|
label?: TextAlign;
|
|
89
89
|
value?: TextAlign;
|
|
90
90
|
};
|
|
@@ -42,12 +42,12 @@ declare const Descriptions: {
|
|
|
42
42
|
default: string;
|
|
43
43
|
};
|
|
44
44
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
45
|
+
column: number | import("../index.ts").ResponsiveValue;
|
|
46
|
+
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
45
47
|
data: import("./interface").DescData[];
|
|
46
48
|
bordered: boolean;
|
|
47
|
-
column: number | import("../index.ts").ResponsiveValue;
|
|
48
49
|
tableLayout: "fixed" | "auto";
|
|
49
|
-
|
|
50
|
-
align: "left" | "right" | "center" | {
|
|
50
|
+
align: "center" | "left" | "right" | {
|
|
51
51
|
label?: import("../_utils/constant.ts").TextAlign;
|
|
52
52
|
value?: import("../_utils/constant.ts").TextAlign;
|
|
53
53
|
};
|
|
@@ -97,12 +97,12 @@ declare const Descriptions: {
|
|
|
97
97
|
default: string;
|
|
98
98
|
};
|
|
99
99
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
100
|
+
column: number | import("../index.ts").ResponsiveValue;
|
|
101
|
+
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
100
102
|
data: import("./interface").DescData[];
|
|
101
103
|
bordered: boolean;
|
|
102
|
-
column: number | import("../index.ts").ResponsiveValue;
|
|
103
104
|
tableLayout: "fixed" | "auto";
|
|
104
|
-
|
|
105
|
-
align: "left" | "right" | "center" | {
|
|
105
|
+
align: "center" | "left" | "right" | {
|
|
106
106
|
label?: import("../_utils/constant.ts").TextAlign;
|
|
107
107
|
value?: import("../_utils/constant.ts").TextAlign;
|
|
108
108
|
};
|
|
@@ -149,12 +149,12 @@ declare const Descriptions: {
|
|
|
149
149
|
default: string;
|
|
150
150
|
};
|
|
151
151
|
}>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
152
|
+
column: number | import("../index.ts").ResponsiveValue;
|
|
153
|
+
layout: "horizontal" | "vertical" | "inline-horizontal" | "inline-vertical";
|
|
152
154
|
data: import("./interface").DescData[];
|
|
153
155
|
bordered: boolean;
|
|
154
|
-
column: number | import("../index.ts").ResponsiveValue;
|
|
155
156
|
tableLayout: "fixed" | "auto";
|
|
156
|
-
|
|
157
|
-
align: "left" | "right" | "center" | {
|
|
157
|
+
align: "center" | "left" | "right" | {
|
|
158
158
|
label?: import("../_utils/constant.ts").TextAlign;
|
|
159
159
|
value?: import("../_utils/constant.ts").TextAlign;
|
|
160
160
|
};
|
package/es/divider/divider.d.ts
CHANGED
|
@@ -38,6 +38,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
};
|
|
39
39
|
}>> & Readonly<{}>, {
|
|
40
40
|
direction: "horizontal" | "vertical";
|
|
41
|
-
orientation: "
|
|
41
|
+
orientation: "center" | "left" | "right";
|
|
42
42
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
43
43
|
export default _default;
|