yc-design-vue 2.0.4 → 2.0.5
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/index.umd.js +1 -0
- package/dist/style.css +1 -0
- package/es/Affix/index.vue.js +1 -1
- package/es/Anchor/Anchor.vue.js +2 -2
- package/es/Anchor/AnchorLink.vue.js +2 -2
- package/es/Anchor/hooks/useContext.d.ts +2 -2
- package/es/Anchor/hooks/useContext.js +3 -3
- package/es/AutoComplete/index.d.ts +24 -24
- package/es/AutoComplete/index.vue.d.ts +40 -40
- package/es/Avatar/Avatar.vue.js +3 -3
- package/es/Avatar/AvatarGroup.vue.js +2 -2
- package/es/Avatar/hooks/useContext.d.ts +1 -2
- package/es/Avatar/hooks/useContext.js +3 -3
- package/es/BackTop/index.vue.js +1 -1
- package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/es/Button/Button.vue.js +2 -2
- package/es/Button/ButtonGroup.vue.js +2 -2
- package/es/Button/hooks/useContext.d.ts +1 -2
- package/es/Button/hooks/useContext.js +3 -3
- package/es/Card/Card.vue.js +2 -2
- package/es/Card/CardMeta.vue.js +2 -2
- package/es/Card/hooks/useContext.d.ts +2 -2
- package/es/Card/hooks/useContext.js +3 -3
- package/es/Carousel/Carousel.vue.js +2 -2
- package/es/Carousel/CarouselArrow.vue.js +2 -2
- package/es/Carousel/CarouselIndicator.vue.js +2 -2
- package/es/Carousel/CarouselItem.vue.js +2 -2
- package/es/Carousel/hooks/useContext.d.ts +2 -2
- package/es/Carousel/hooks/useContext.js +3 -3
- package/es/Cascader/Cascader.vue.d.ts +18 -18
- package/es/Cascader/Cascader.vue.js +2 -2
- package/es/Cascader/CascaderIcon.vue.js +2 -2
- package/es/Cascader/CascaderOption.vue.js +2 -2
- package/es/Cascader/CascaderPanel.vue.js +2 -2
- package/es/Cascader/CascaderSearchPanel.vue.js +2 -2
- package/es/Cascader/hooks/useContext.d.ts +2 -2
- package/es/Cascader/hooks/useContext.js +3 -3
- package/es/Cascader/index.d.ts +21 -21
- package/es/Checkbox/Checkbox.vue.js +2 -2
- package/es/Checkbox/CheckboxGroup.vue.js +2 -2
- package/es/Checkbox/hooks/useContext.d.ts +2 -2
- package/es/Checkbox/hooks/useContext.js +3 -3
- package/es/Collapse/Collapse.vue.js +2 -2
- package/es/Collapse/CollapseItem.vue.js +2 -2
- package/es/Collapse/hooks/useContext.d.ts +1 -2
- package/es/Collapse/hooks/useContext.js +3 -3
- package/es/ColorPicker/ColorControl.vue.js +1 -1
- package/es/ColorPicker/ColorPalette.vue.js +1 -1
- package/es/ColorPicker/ColorPanel.vue.js +2 -2
- package/es/ColorPicker/ColorPicker.vue.js +2 -2
- package/es/ColorPicker/hooks/useContext.d.ts +2 -2
- package/es/ColorPicker/hooks/useContext.js +3 -3
- package/es/Comment/hooks/useContext.d.ts +1 -2
- package/es/Comment/hooks/useContext.js +3 -3
- package/es/Comment/index.vue.js +2 -2
- package/es/Descriptions/Descriptions.vue.js +2 -2
- package/es/Descriptions/ReuseItem.vue.js +2 -2
- package/es/Descriptions/ReuseTd.vue.js +2 -2
- package/es/Descriptions/hooks/useContext.d.ts +2 -2
- package/es/Descriptions/hooks/useContext.js +3 -3
- package/es/Dropdown/Doption.vue.js +2 -2
- package/es/Dropdown/Dropdown.vue.d.ts +2 -2
- package/es/Dropdown/Dropdown.vue.js +2 -2
- package/es/Dropdown/DropdownButton.vue.d.ts +2 -2
- package/es/Dropdown/Dsubmenu.vue.js +1 -1
- package/es/Dropdown/hooks/useContext.d.ts +2 -2
- package/es/Dropdown/hooks/useContext.js +3 -3
- package/es/Dropdown/index.d.ts +10 -10
- package/es/Grid/Grid.vue.js +2 -2
- package/es/Grid/GridCol.vue.js +2 -2
- package/es/Grid/GridItem.vue.js +2 -2
- package/es/Grid/GridRow.vue.js +2 -2
- package/es/Grid/hooks/useContext.d.ts +1 -2
- package/es/Grid/hooks/useContext.js +3 -3
- package/es/Image/Image.vue.js +2 -2
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreviewGroup.vue.js +2 -2
- package/es/Image/hooks/useContext.d.ts +2 -2
- package/es/Image/hooks/useContext.js +3 -3
- package/es/Input/Input.vue.d.ts +2 -2
- package/es/Input/InputSuffix.vue.js +2 -2
- package/es/Input/index.d.ts +5 -5
- package/es/InputNumber/InputNumber.vue.d.ts +14 -14
- package/es/InputNumber/index.d.ts +11 -11
- package/es/InputTag/index.d.ts +5 -5
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/InputTag/index.vue.js +1 -1
- package/es/Layout/LayoutSider.vue.js +2 -2
- package/es/Layout/hooks/useSiderContext.d.ts +1 -2
- package/es/Layout/hooks/useSiderContext.js +3 -3
- package/es/List/hooks/useScrollReach.js +1 -0
- package/es/Mention/index.d.ts +30 -30
- package/es/Mention/index.vue.d.ts +52 -52
- package/es/Menu/MenuItem.vue.js +1 -1
- package/es/Menu/hooks/useContext.d.ts +2 -2
- package/es/Menu/hooks/useContext.js +5 -5
- package/es/OverflowList/index.vue.js +2 -2
- package/es/Pagination/Pagination.vue.js +2 -2
- package/es/Pagination/PaginationItem.vue.js +2 -2
- package/es/Pagination/hooks/useContext.d.ts +2 -2
- package/es/Pagination/hooks/useContext.js +3 -3
- package/es/Popconfirm/index.d.ts +5 -5
- package/es/Popconfirm/index.vue.d.ts +2 -2
- package/es/Radio/Radio.vue.js +2 -2
- package/es/Radio/RadioGroup.vue.js +2 -2
- package/es/Radio/hooks/useContext.d.ts +2 -2
- package/es/Radio/hooks/useContext.js +3 -3
- package/es/Scrollbar/Scrollbar.vue.js +2 -2
- package/es/Scrollbar/ScrollbarTrack.vue.js +2 -2
- package/es/Scrollbar/hooks/useContext.d.ts +2 -2
- package/es/Scrollbar/hooks/useContext.js +3 -3
- package/es/Select/Option.vue.js +2 -2
- package/es/Select/Select.vue.d.ts +16 -16
- package/es/Select/Select.vue.js +2 -2
- package/es/Select/SelectIcon.vue.js +2 -2
- package/es/Select/SelectRealList.vue.js +2 -2
- package/es/Select/SelectView.vue.js +2 -2
- package/es/Select/SelectVirtualList.vue.js +3 -3
- package/es/Select/hooks/useContext.d.ts +2 -2
- package/es/Select/hooks/useContext.js +3 -3
- package/es/Select/index.d.ts +16 -16
- package/es/Slider/Slider.vue.js +2 -2
- package/es/Slider/SliderBtn.vue.js +2 -2
- package/es/Slider/SliderInput.vue.js +2 -2
- package/es/Slider/SliderTicks.vue.js +2 -2
- package/es/Slider/hooks/useContext.d.ts +2 -2
- package/es/Slider/hooks/useContext.js +3 -3
- package/es/Spin/index.vue.js +1 -1
- package/es/Steps/Step.vue.js +2 -2
- package/es/Steps/Steps.vue.js +2 -2
- package/es/Steps/hooks/useContext.d.ts +1 -2
- package/es/Steps/hooks/useContext.js +3 -3
- package/es/Switch/index.d.ts +5 -5
- package/es/Switch/index.vue.d.ts +2 -2
- package/es/Tabs/TabPane.vue.js +2 -2
- package/es/Tabs/Tabs.vue.js +2 -2
- package/es/Tabs/TabsNavInk.vue.js +2 -2
- package/es/Tabs/TabsTab.vue.js +2 -2
- package/es/Tabs/hooks/useContext.d.ts +2 -2
- package/es/Tabs/hooks/useContext.js +3 -3
- package/es/Textarea/hooks/useTextareaHeight.js +1 -1
- package/es/Textarea/index.d.ts +5 -5
- package/es/Textarea/index.vue.d.ts +2 -2
- package/es/TimePicker/TimePicker.vue.d.ts +4 -4
- package/es/TimePicker/TimePicker.vue.js +2 -2
- package/es/TimePicker/TimePickerPanel.vue.js +2 -2
- package/es/TimePicker/hooks/useContext.d.ts +2 -2
- package/es/TimePicker/hooks/useContext.js +3 -3
- package/es/TimePicker/index.d.ts +10 -10
- package/es/Timeline/Timeline.vue.js +2 -2
- package/es/Timeline/TimelineItem.vue.js +2 -2
- package/es/Timeline/hooks/useContext.d.ts +2 -2
- package/es/Timeline/hooks/useContext.js +3 -3
- package/es/Transfer/Transfer.vue.js +2 -2
- package/es/Transfer/TransferPanel.vue.js +2 -2
- package/es/Transfer/hooks/useContext.d.ts +2 -2
- package/es/Transfer/hooks/useContext.js +3 -3
- package/es/Trigger/hooks/useContext.d.ts +2 -3
- package/es/Trigger/hooks/useContext.js +4 -4
- package/es/Trigger/hooks/useTriggerPosition.js +1 -1
- package/es/Trigger/hooks/useTriggerVisible.js +2 -2
- package/es/Typography/TypographyBase.vue.d.ts +12 -12
- package/es/Typography/TypographyBase.vue.js +3 -3
- package/es/Watermark/index.vue.js +1 -1
- package/es/_shared/icons/IconCopy.vue.js +19 -1
- package/es/_shared/icons/IconCopy.vue2.js +1 -19
- package/es/_shared/icons/IconEdit.vue.js +19 -1
- package/es/_shared/icons/IconEdit.vue2.js +1 -19
- package/es/_shared/icons/IconEyeClose.vue.js +1 -23
- package/es/_shared/icons/IconEyeClose.vue2.js +23 -1
- package/es/_shared/icons/IconEyeOpen.vue.js +1 -20
- package/es/_shared/icons/IconEyeOpen.vue2.js +20 -1
- package/es/_shared/icons/IconSeparator.vue.js +1 -19
- package/es/_shared/icons/IconSeparator.vue2.js +19 -1
- package/es/_shared/utils/is.d.ts +0 -15
- package/es/_shared/utils/vue-utils.d.ts +1 -0
- package/es/index.d.ts +5 -5
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Anchor/hooks/useContext.d.ts +2 -2
- package/lib/Anchor/hooks/useContext.js +1 -1
- package/lib/AutoComplete/index.d.ts +24 -24
- package/lib/AutoComplete/index.vue.d.ts +40 -40
- package/lib/Avatar/Avatar.vue.js +1 -1
- package/lib/Avatar/hooks/useContext.d.ts +1 -2
- package/lib/Avatar/hooks/useContext.js +1 -1
- package/lib/BackTop/index.vue.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
- package/lib/Button/hooks/useContext.d.ts +1 -2
- package/lib/Button/hooks/useContext.js +1 -1
- package/lib/Card/hooks/useContext.d.ts +2 -2
- package/lib/Card/hooks/useContext.js +1 -1
- package/lib/Carousel/hooks/useContext.d.ts +2 -2
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +18 -18
- package/lib/Cascader/hooks/useContext.d.ts +2 -2
- package/lib/Cascader/hooks/useContext.js +1 -1
- package/lib/Cascader/index.d.ts +21 -21
- package/lib/Checkbox/hooks/useContext.d.ts +2 -2
- package/lib/Checkbox/hooks/useContext.js +1 -1
- package/lib/Collapse/hooks/useContext.d.ts +1 -2
- package/lib/Collapse/hooks/useContext.js +1 -1
- package/lib/ColorPicker/ColorControl.vue.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue.js +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +2 -2
- package/lib/ColorPicker/hooks/useContext.js +1 -1
- package/lib/Comment/hooks/useContext.d.ts +1 -2
- package/lib/Comment/hooks/useContext.js +1 -1
- package/lib/Descriptions/hooks/useContext.d.ts +2 -2
- package/lib/Descriptions/hooks/useContext.js +1 -1
- package/lib/Dropdown/Dropdown.vue.d.ts +2 -2
- package/lib/Dropdown/DropdownButton.vue.d.ts +2 -2
- package/lib/Dropdown/Dsubmenu.vue.js +1 -1
- package/lib/Dropdown/hooks/useContext.d.ts +2 -2
- package/lib/Dropdown/hooks/useContext.js +1 -1
- package/lib/Dropdown/index.d.ts +10 -10
- package/lib/Grid/hooks/useContext.d.ts +1 -2
- package/lib/Grid/hooks/useContext.js +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/hooks/useContext.d.ts +2 -2
- package/lib/Image/hooks/useContext.js +1 -1
- package/lib/Input/Input.vue.d.ts +2 -2
- package/lib/Input/InputSuffix.vue.js +1 -1
- package/lib/Input/index.d.ts +5 -5
- package/lib/InputNumber/InputNumber.vue.d.ts +14 -14
- package/lib/InputNumber/index.d.ts +11 -11
- package/lib/InputTag/index.d.ts +5 -5
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/InputTag/index.vue.js +1 -1
- package/lib/Layout/hooks/useSiderContext.d.ts +1 -2
- package/lib/Layout/hooks/useSiderContext.js +1 -1
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/Mention/index.d.ts +30 -30
- package/lib/Mention/index.vue.d.ts +52 -52
- package/lib/Menu/MenuItem.vue.js +1 -1
- package/lib/Menu/hooks/useContext.d.ts +2 -2
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/OverflowList/index.vue.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +2 -2
- package/lib/Pagination/hooks/useContext.js +1 -1
- package/lib/Popconfirm/index.d.ts +5 -5
- package/lib/Popconfirm/index.vue.d.ts +2 -2
- package/lib/Radio/hooks/useContext.d.ts +2 -2
- package/lib/Radio/hooks/useContext.js +1 -1
- package/lib/Scrollbar/hooks/useContext.d.ts +2 -2
- package/lib/Scrollbar/hooks/useContext.js +1 -1
- package/lib/Select/Select.vue.d.ts +16 -16
- package/lib/Select/SelectVirtualList.vue.js +1 -1
- package/lib/Select/hooks/useContext.d.ts +2 -2
- package/lib/Select/hooks/useContext.js +1 -1
- package/lib/Select/index.d.ts +16 -16
- package/lib/Slider/hooks/useContext.d.ts +2 -2
- package/lib/Slider/hooks/useContext.js +1 -1
- package/lib/Spin/index.vue.js +1 -1
- package/lib/Steps/hooks/useContext.d.ts +1 -2
- package/lib/Steps/hooks/useContext.js +1 -1
- package/lib/Switch/index.d.ts +5 -5
- package/lib/Switch/index.vue.d.ts +2 -2
- package/lib/Tabs/hooks/useContext.d.ts +2 -2
- package/lib/Tabs/hooks/useContext.js +1 -1
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/Textarea/index.d.ts +5 -5
- package/lib/Textarea/index.vue.d.ts +2 -2
- package/lib/TimePicker/TimePicker.vue.d.ts +4 -4
- package/lib/TimePicker/hooks/useContext.d.ts +2 -2
- package/lib/TimePicker/hooks/useContext.js +1 -1
- package/lib/TimePicker/index.d.ts +10 -10
- package/lib/Timeline/hooks/useContext.d.ts +2 -2
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Transfer/hooks/useContext.d.ts +2 -2
- package/lib/Transfer/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useContext.d.ts +2 -3
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Trigger/hooks/useTriggerVisible.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +12 -12
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Watermark/index.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue.js +1 -1
- package/lib/_shared/icons/IconEyeClose.vue2.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue.js +1 -1
- package/lib/_shared/icons/IconEyeOpen.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/utils/is.d.ts +0 -15
- package/lib/_shared/utils/vue-utils.d.ts +1 -0
- package/lib/index.d.ts +5 -5
- package/package.json +1 -1
package/es/Select/index.d.ts
CHANGED
@@ -9,12 +9,12 @@ export * from './type';
|
|
9
9
|
declare const Select: {
|
10
10
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SelectProps> & Readonly<{
|
11
11
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
12
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
13
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
14
12
|
onClear?: (() => any) | undefined;
|
15
13
|
onSearch?: ((value: string) => any) | undefined;
|
16
14
|
onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
|
17
15
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
16
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
17
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
18
18
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
19
19
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
20
20
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -27,12 +27,12 @@ declare const Select: {
|
|
27
27
|
getPopupRef(): import('..').TriggerInstance;
|
28
28
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
29
29
|
change: (value: import('./type').SelectValue) => any;
|
30
|
-
"update:popupVisible": (value: boolean) => any;
|
31
|
-
"popup-visible-change": (value: boolean) => any;
|
32
30
|
clear: () => any;
|
33
31
|
search: (value: string) => any;
|
34
32
|
select: (value: import('./type').SelectOptionValue) => any;
|
35
33
|
remove: (index: string | number, ev: Event) => any;
|
34
|
+
"update:popupVisible": (value: boolean) => any;
|
35
|
+
"popup-visible-change": (value: boolean) => any;
|
36
36
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
37
37
|
"update:inputValue": (value: string) => any;
|
38
38
|
"input-value-change": (value: string) => any;
|
@@ -332,10 +332,10 @@ declare const Select: {
|
|
332
332
|
readonly tagNowrap?: boolean | undefined;
|
333
333
|
readonly fieldNames?: Record<string, string> | undefined;
|
334
334
|
readonly allowCreate?: boolean | undefined;
|
335
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
336
335
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
337
336
|
readonly onInput?: ((value: string) => any) | undefined;
|
338
337
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
338
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
339
339
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
340
340
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
341
341
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -357,13 +357,13 @@ declare const Select: {
|
|
357
357
|
$root: import('vue').ComponentPublicInstance | null;
|
358
358
|
$parent: import('vue').ComponentPublicInstance | null;
|
359
359
|
$host: Element | null;
|
360
|
-
$emit: ((event: "
|
360
|
+
$emit: ((event: "clear", ev: MouseEvent) => void) & ((event: "input", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
361
361
|
$el: HTMLDivElement;
|
362
362
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
363
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
364
363
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
365
364
|
onInput?: ((value: string) => any) | undefined;
|
366
365
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
366
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
367
367
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
368
368
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
369
369
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -373,10 +373,10 @@ declare const Select: {
|
|
373
373
|
focus(): void;
|
374
374
|
blur(): void;
|
375
375
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
376
|
-
focus: (ev: FocusEvent) => any;
|
377
376
|
clear: (ev: MouseEvent) => any;
|
378
377
|
input: (value: string) => any;
|
379
378
|
blur: (ev: FocusEvent) => any;
|
379
|
+
focus: (ev: FocusEvent) => any;
|
380
380
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
381
381
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
382
382
|
"update:inputValue": (value: string) => any;
|
@@ -437,16 +437,16 @@ declare const Select: {
|
|
437
437
|
retainInputValue: import('..').InputRetainValue;
|
438
438
|
uniqueValue: boolean;
|
439
439
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
440
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
441
440
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
442
441
|
onInput?: ((value: string) => any) | undefined;
|
443
442
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
443
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
444
444
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
445
445
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
446
446
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
447
447
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
448
448
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
449
|
-
}>, "
|
449
|
+
}>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
450
450
|
focus(): void;
|
451
451
|
blur(): void;
|
452
452
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -461,12 +461,12 @@ declare const Select: {
|
|
461
461
|
Defaults: {};
|
462
462
|
}, Readonly<import('./type').SelectProps> & Readonly<{
|
463
463
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
464
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
465
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
466
464
|
onClear?: (() => any) | undefined;
|
467
465
|
onSearch?: ((value: string) => any) | undefined;
|
468
466
|
onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
|
469
467
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
468
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
469
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
470
470
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
471
471
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
472
472
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -516,12 +516,12 @@ declare const Select: {
|
|
516
516
|
__isSuspense?: never;
|
517
517
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SelectProps> & Readonly<{
|
518
518
|
onChange?: ((value: import('./type').SelectValue) => any) | undefined;
|
519
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
520
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
521
519
|
onClear?: (() => any) | undefined;
|
522
520
|
onSearch?: ((value: string) => any) | undefined;
|
523
521
|
onSelect?: ((value: import('./type').SelectOptionValue) => any) | undefined;
|
524
522
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
523
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
524
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
525
525
|
"onUpdate:modelValue"?: ((value: import('./type').SelectValue) => any) | undefined;
|
526
526
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
527
527
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -534,12 +534,12 @@ declare const Select: {
|
|
534
534
|
getPopupRef(): import('..').TriggerInstance;
|
535
535
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
536
536
|
change: (value: import('./type').SelectValue) => any;
|
537
|
-
"update:popupVisible": (value: boolean) => any;
|
538
|
-
"popup-visible-change": (value: boolean) => any;
|
539
537
|
clear: () => any;
|
540
538
|
search: (value: string) => any;
|
541
539
|
select: (value: import('./type').SelectOptionValue) => any;
|
542
540
|
remove: (index: string | number, ev: Event) => any;
|
541
|
+
"update:popupVisible": (value: boolean) => any;
|
542
|
+
"popup-visible-change": (value: boolean) => any;
|
543
543
|
"update:modelValue": (value: import('./type').SelectValue) => any;
|
544
544
|
"update:inputValue": (value: string) => any;
|
545
545
|
"input-value-change": (value: string) => any;
|
package/es/Slider/Slider.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createBlock, createVNode, normalizeStyle } from "vue";
|
2
|
-
import
|
2
|
+
import useSliderContext from "./hooks/useContext.js";
|
3
3
|
import _sfc_main$1 from "./SliderTicks.vue.js";
|
4
4
|
/* empty css */
|
5
5
|
import _sfc_main$2 from "./SliderBtn.vue.js";
|
@@ -44,7 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
44
44
|
const props = __props;
|
45
45
|
const emits = __emit;
|
46
46
|
const trackRef = ref();
|
47
|
-
const { ticks, marks, range, direction, min, normalizeValue } =
|
47
|
+
const { ticks, marks, range, direction, min, normalizeValue } = useSliderContext().provide(props, emits, trackRef);
|
48
48
|
const startPosition = ref({
|
49
49
|
bottom: 0,
|
50
50
|
left: 0,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, watch, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeStyle } from "vue";
|
2
|
-
import
|
2
|
+
import useSliderContext from "./hooks/useContext.js";
|
3
3
|
import useSliderDraggable from "./hooks/useSliderDraggable.js";
|
4
4
|
import Tooltip from "../Tooltip/index.js";
|
5
5
|
import { useControlValue } from "../_shared/utils/control.js";
|
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
28
28
|
formatTooltip,
|
29
29
|
normalizeValue,
|
30
30
|
denormalizeValue
|
31
|
-
} =
|
31
|
+
} = useSliderContext().inject();
|
32
32
|
const computedValue = computed({
|
33
33
|
get() {
|
34
34
|
return type.value == "start" ? startValue.value : endValue.value;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, computed, createBlock, openBlock, unref } from "vue";
|
2
|
-
import
|
2
|
+
import useSliderContext from "./hooks/useContext.js";
|
3
3
|
import InputNumber from "../InputNumber/index.js";
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
5
|
__name: "SliderInput",
|
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
17
17
|
endValue,
|
18
18
|
tempStartValue,
|
19
19
|
tempEndValue
|
20
|
-
} =
|
20
|
+
} = useSliderContext().inject();
|
21
21
|
const computedValue = computed({
|
22
22
|
get() {
|
23
23
|
return type.value == "start" ? tempStartValue.value : tempEndValue.value;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, normalizeStyle, toDisplayString } from "vue";
|
2
|
-
import
|
2
|
+
import useSliderContext from "./hooks/useContext.js";
|
3
3
|
const _hoisted_1 = ["onClick"];
|
4
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
5
5
|
__name: "SliderTicks",
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
setup(__props) {
|
12
12
|
const props = __props;
|
13
13
|
const { type } = toRefs(props);
|
14
|
-
const { min, max, startValue, endValue, range, direction, normalizeValue } =
|
14
|
+
const { min, max, startValue, endValue, range, direction, normalizeValue } = useSliderContext().inject();
|
15
15
|
const getPosition = (value) => {
|
16
16
|
const curValue = normalizeValue(value);
|
17
17
|
if (type.value == "ticks") {
|
@@ -18,7 +18,7 @@ type SliderContext = {
|
|
18
18
|
normalizeValue: (value: number) => number;
|
19
19
|
denormalizeValue: (value: number) => number;
|
20
20
|
};
|
21
|
-
|
21
|
+
export default function useSliderContext(): {
|
22
22
|
inject: () => SliderContext;
|
23
23
|
provide: (props: RecordType, emits: SliderEmits, trackRef: Ref<HTMLDivElement | undefined>) => {
|
24
24
|
range: Ref<boolean, boolean>;
|
@@ -41,4 +41,4 @@ declare const _default: () => {
|
|
41
41
|
normalizeValue: (value: number) => number;
|
42
42
|
};
|
43
43
|
};
|
44
|
-
export
|
44
|
+
export {};
|
@@ -2,7 +2,7 @@ import { toRefs, computed, ref, provide, inject } from "vue";
|
|
2
2
|
import { useControlValue } from "../../_shared/utils/control.js";
|
3
3
|
import { isArray } from "../../_shared/utils/is.js";
|
4
4
|
const SLIDER_CONTEXT_KEY = "slider-context";
|
5
|
-
|
5
|
+
function useSliderContext() {
|
6
6
|
const provide$1 = (props, emits, trackRef) => {
|
7
7
|
const {
|
8
8
|
modelValue,
|
@@ -152,7 +152,7 @@ const useContext = () => {
|
|
152
152
|
inject: inject$1,
|
153
153
|
provide: provide$1
|
154
154
|
};
|
155
|
-
}
|
155
|
+
}
|
156
156
|
export {
|
157
|
-
|
157
|
+
useSliderContext as default
|
158
158
|
};
|
package/es/Spin/index.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, useSlots, createElementBlock, openBlock, createVNode, createBlock, renderSlot, unref, withCtx, createCommentVNode, normalizeStyle, normalizeClass, Fragment, renderList, createElementVNode, createTextVNode, toDisplayString, Transition } from "vue";
|
2
|
-
import { createReusableTemplate } from "../node_modules/@vueuse/core/index.js";
|
3
2
|
import { valueToPx } from "../_shared/utils/dom.js";
|
3
|
+
import { createReusableTemplate } from "../node_modules/@vueuse/core/index.js";
|
4
4
|
/* empty css */
|
5
5
|
/* empty css */
|
6
6
|
/* empty css */
|
package/es/Steps/Step.vue.js
CHANGED
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
/* empty css */
|
6
6
|
import _sfc_main$1 from "../_shared/icons/IconCheck.vue.js";
|
7
7
|
import _sfc_main$2 from "../_shared/icons/IconClose.vue.js";
|
8
|
-
import
|
8
|
+
import useStepsContext from "./hooks/useContext.js";
|
9
9
|
const _hoisted_1 = {
|
10
10
|
key: 0,
|
11
11
|
class: "yc-steps-item-tail"
|
@@ -46,7 +46,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
46
46
|
lineLess: _lineLess,
|
47
47
|
small: _small,
|
48
48
|
emits
|
49
|
-
} =
|
49
|
+
} = useStepsContext().inject(props);
|
50
50
|
const small = computed(() => {
|
51
51
|
return type.value != "dot" ? _small.value : false;
|
52
52
|
});
|
package/es/Steps/Steps.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, renderSlot } from "vue";
|
2
|
-
import
|
2
|
+
import useStepsContext from "./hooks/useContext.js";
|
3
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
4
|
...{
|
5
5
|
name: "Steps"
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
setup(__props, { emit: __emit }) {
|
21
21
|
const props = __props;
|
22
22
|
const emits = __emit;
|
23
|
-
const { type, labelPlacement, direction } =
|
23
|
+
const { type, labelPlacement, direction } = useStepsContext().provide(props, emits);
|
24
24
|
return (_ctx, _cache) => {
|
25
25
|
return openBlock(), createElementBlock("div", {
|
26
26
|
class: normalizeClass([
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { Ref, Reactive } from 'vue';
|
2
2
|
import { StepsEmits, StepStatus, StepType } from '../type';
|
3
3
|
import { Direction, RecordType } from '../../_shared/type';
|
4
|
-
|
4
|
+
export default function useStepsContext(): {
|
5
5
|
provide: (props: RecordType, emits: StepsEmits) => {
|
6
6
|
direction: import('vue').ComputedRef<Direction>;
|
7
7
|
labelPlacement: import('vue').ComputedRef<Direction>;
|
@@ -23,4 +23,3 @@ declare const _default: () => {
|
|
23
23
|
emits: StepsEmits;
|
24
24
|
};
|
25
25
|
};
|
26
|
-
export default _default;
|
@@ -3,7 +3,7 @@ import { nanoid } from "../../node_modules/nanoid/index.browser.js";
|
|
3
3
|
import { isUndefined } from "../../_shared/utils/is.js";
|
4
4
|
import { useControlValue } from "../../_shared/utils/control.js";
|
5
5
|
const STEPS_CONTEXT_KEY = "card-context";
|
6
|
-
|
6
|
+
function useStepsContext() {
|
7
7
|
const provide$1 = (props, emits) => {
|
8
8
|
const {
|
9
9
|
status,
|
@@ -127,7 +127,7 @@ const useContext = () => {
|
|
127
127
|
provide: provide$1,
|
128
128
|
inject: inject$1
|
129
129
|
};
|
130
|
-
}
|
130
|
+
}
|
131
131
|
export {
|
132
|
-
|
132
|
+
useStepsContext as default
|
133
133
|
};
|
package/es/Switch/index.d.ts
CHANGED
@@ -5,13 +5,13 @@ export * from './type';
|
|
5
5
|
declare const Switch: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').SwitchProps> & Readonly<{
|
7
7
|
onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
|
8
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
9
8
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
9
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
10
10
|
"onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
|
11
11
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
12
12
|
change: (value: import('./type').SwitchValue, ev: Event) => any;
|
13
|
-
focus: (ev: FocusEvent) => any;
|
14
13
|
blur: (ev: FocusEvent) => any;
|
14
|
+
focus: (ev: FocusEvent) => any;
|
15
15
|
"update:modelValue": (value: import('./type').SwitchValue) => any;
|
16
16
|
}, import('vue').PublicProps, {
|
17
17
|
size: import('./type').SwitchSize;
|
@@ -36,8 +36,8 @@ declare const Switch: {
|
|
36
36
|
Defaults: {};
|
37
37
|
}, Readonly<import('./type').SwitchProps> & Readonly<{
|
38
38
|
onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
|
39
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
40
39
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
40
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
41
41
|
"onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
|
42
42
|
}>, {}, {}, {}, {}, {
|
43
43
|
size: import('./type').SwitchSize;
|
@@ -59,13 +59,13 @@ declare const Switch: {
|
|
59
59
|
__isSuspense?: never;
|
60
60
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').SwitchProps> & Readonly<{
|
61
61
|
onChange?: ((value: import('./type').SwitchValue, ev: Event) => any) | undefined;
|
62
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
63
62
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
63
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
64
64
|
"onUpdate:modelValue"?: ((value: import('./type').SwitchValue) => any) | undefined;
|
65
65
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
66
66
|
change: (value: import('./type').SwitchValue, ev: Event) => any;
|
67
|
-
focus: (ev: FocusEvent) => any;
|
68
67
|
blur: (ev: FocusEvent) => any;
|
68
|
+
focus: (ev: FocusEvent) => any;
|
69
69
|
"update:modelValue": (value: import('./type').SwitchValue) => any;
|
70
70
|
}, string, {
|
71
71
|
size: import('./type').SwitchSize;
|
package/es/Switch/index.vue.d.ts
CHANGED
@@ -8,13 +8,13 @@ declare function __VLS_template(): {
|
|
8
8
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
9
9
|
declare const __VLS_component: import('vue').DefineComponent<SwitchProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
10
10
|
change: (value: SwitchValue, ev: Event) => any;
|
11
|
-
focus: (ev: FocusEvent) => any;
|
12
11
|
blur: (ev: FocusEvent) => any;
|
12
|
+
focus: (ev: FocusEvent) => any;
|
13
13
|
"update:modelValue": (value: SwitchValue) => any;
|
14
14
|
}, string, import('vue').PublicProps, Readonly<SwitchProps> & Readonly<{
|
15
15
|
onChange?: ((value: SwitchValue, ev: Event) => any) | undefined;
|
16
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
17
16
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
17
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
18
18
|
"onUpdate:modelValue"?: ((value: SwitchValue) => any) | undefined;
|
19
19
|
}>, {
|
20
20
|
size: import('./type').SwitchSize;
|
package/es/Tabs/TabPane.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, unref, renderSlot } from "vue";
|
2
2
|
import { isUndefined } from "../_shared/utils/is.js";
|
3
|
-
import
|
3
|
+
import useTabsContext from "./hooks/useContext.js";
|
4
4
|
const _hoisted_1 = { class: "yc-tabs-content-item" };
|
5
5
|
const _hoisted_2 = {
|
6
6
|
key: 0,
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
},
|
21
21
|
setup(__props) {
|
22
22
|
const props = __props;
|
23
|
-
const { computedActiveKey, destoryOnHide: _destoryOnHide } =
|
23
|
+
const { computedActiveKey, destoryOnHide: _destoryOnHide } = useTabsContext().inject();
|
24
24
|
const destoryOnHide = computed(() => {
|
25
25
|
return !isUndefined(props.destoryOnHide) ? props.destoryOnHide : _destoryOnHide.value;
|
26
26
|
});
|
package/es/Tabs/Tabs.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, ref, computed, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, createBlock, withCtx, createVNode, normalizeStyle, Fragment, renderList, renderSlot, resolveDynamicComponent, nextTick } from "vue";
|
2
2
|
import { valueToPx } from "../_shared/utils/dom.js";
|
3
3
|
import { findComponentsFromVnodes } from "../_shared/utils/vue-utils.js";
|
4
|
-
import
|
4
|
+
import useTabsContext from "./hooks/useContext.js";
|
5
5
|
import useTabsScroll from "./hooks/useTabsScroll.js";
|
6
6
|
/* empty css */
|
7
7
|
/* empty css */
|
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
49
49
|
const props = __props;
|
50
50
|
const emits = __emit;
|
51
51
|
const listRef = ref();
|
52
|
-
const { computedActiveKey, size, direction, autoSwitch, position } =
|
52
|
+
const { computedActiveKey, size, direction, autoSwitch, position } = useTabsContext().provide(props, emits, listRef);
|
53
53
|
const tabPanes = computed(
|
54
54
|
() => {
|
55
55
|
var _a;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeStyle } from "vue";
|
2
2
|
import { isUndefined } from "../_shared/utils/is.js";
|
3
3
|
import { valueToPx } from "../_shared/utils/dom.js";
|
4
|
-
import
|
4
|
+
import useTabsContext from "./hooks/useContext.js";
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
__name: "TabsNavInk",
|
7
7
|
props: {
|
@@ -11,7 +11,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
11
11
|
setup(__props) {
|
12
12
|
const props = __props;
|
13
13
|
const { curIndex, panes } = toRefs(props);
|
14
|
-
const { titleRefs, listRef, direction, editable } =
|
14
|
+
const { titleRefs, listRef, direction, editable } = useTabsContext().inject();
|
15
15
|
const sliderStyle = computed(() => {
|
16
16
|
var _a, _b, _c;
|
17
17
|
const curPane = panes.value[curIndex.value];
|
package/es/Tabs/TabsTab.vue.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, toRefs, onMounted, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent } from "vue";
|
2
|
-
import
|
2
|
+
import useTabsContext from "./hooks/useContext.js";
|
3
3
|
import { isUndefined } from "../_shared/utils/is.js";
|
4
4
|
import _sfc_main$1 from "./TabButton.vue.js";
|
5
5
|
/* empty css */
|
@@ -24,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
24
24
|
headerPadding,
|
25
25
|
size,
|
26
26
|
emits
|
27
|
-
} =
|
27
|
+
} = useTabsContext().inject();
|
28
28
|
const renderTitle = (node2) => {
|
29
29
|
const { slots, title } = node2;
|
30
30
|
return slots.title ?? (() => title);
|
@@ -20,7 +20,7 @@ type TabPaneProps = Required<_TabPaneProps>;
|
|
20
20
|
export type PaneNode = {
|
21
21
|
slots: Slots;
|
22
22
|
} & TabPaneProps;
|
23
|
-
|
23
|
+
export default function useTabsContext(): {
|
24
24
|
provide: (props: RecordType, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
|
25
25
|
computedActiveKey: import('vue').WritableComputedRef<TabKey, TabKey>;
|
26
26
|
size: import('vue').ComputedRef<any>;
|
@@ -32,4 +32,4 @@ declare const _default: () => {
|
|
32
32
|
};
|
33
33
|
inject: () => TabsContext;
|
34
34
|
};
|
35
|
-
export
|
35
|
+
export {};
|
@@ -2,7 +2,7 @@ import { toRefs, ref, computed, provide, inject } from "vue";
|
|
2
2
|
import { useControlValue } from "../../_shared/utils/control.js";
|
3
3
|
import { getGlobalConfig } from "../../_shared/utils/global-config.js";
|
4
4
|
const TABS_CONTEXT_KEY = "tabs-context";
|
5
|
-
|
5
|
+
function useTabsContext() {
|
6
6
|
const provide$1 = (props, emits, listRef) => {
|
7
7
|
const { size } = getGlobalConfig(props);
|
8
8
|
const {
|
@@ -81,7 +81,7 @@ const useContext = () => {
|
|
81
81
|
provide: provide$1,
|
82
82
|
inject: inject$1
|
83
83
|
};
|
84
|
-
}
|
84
|
+
}
|
85
85
|
export {
|
86
|
-
|
86
|
+
useTabsContext as default
|
87
87
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { computed } from "vue";
|
2
|
-
import { useElementSize } from "../../node_modules/@vueuse/core/index.js";
|
3
2
|
import { valueToPx } from "../../_shared/utils/dom.js";
|
3
|
+
import { useElementSize } from "../../node_modules/@vueuse/core/index.js";
|
4
4
|
const useTextareaHeight = (mirrorRef, autoSize) => {
|
5
5
|
if (!autoSize) {
|
6
6
|
return {};
|
package/es/Textarea/index.d.ts
CHANGED
@@ -5,10 +5,10 @@ export * from './type';
|
|
5
5
|
declare const Textarea: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').TextareaProps> & Readonly<{
|
7
7
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
8
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
9
8
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
10
9
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
11
10
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
11
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
12
12
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
13
13
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
14
14
|
}>, {
|
@@ -18,10 +18,10 @@ declare const Textarea: {
|
|
18
18
|
getMirrorRef(): HTMLDivElement;
|
19
19
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
20
20
|
change: (value: string, ev: Event) => any;
|
21
|
-
focus: (ev: FocusEvent) => any;
|
22
21
|
clear: (ev: MouseEvent) => any;
|
23
22
|
input: (value: string, ev: Event) => any;
|
24
23
|
blur: (ev: FocusEvent) => any;
|
24
|
+
focus: (ev: FocusEvent) => any;
|
25
25
|
keydown: (ev: KeyboardEvent) => any;
|
26
26
|
"update:modelValue": (value: string) => any;
|
27
27
|
}, import('vue').PublicProps, {
|
@@ -51,10 +51,10 @@ declare const Textarea: {
|
|
51
51
|
Defaults: {};
|
52
52
|
}, Readonly<import('./type').TextareaProps> & Readonly<{
|
53
53
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
54
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
55
54
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
56
55
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
57
56
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
57
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
58
58
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
59
59
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
60
60
|
}>, {
|
@@ -83,10 +83,10 @@ declare const Textarea: {
|
|
83
83
|
__isSuspense?: never;
|
84
84
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').TextareaProps> & Readonly<{
|
85
85
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
86
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
87
86
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
88
87
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
89
88
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
89
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
90
90
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
91
91
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
92
92
|
}>, {
|
@@ -96,10 +96,10 @@ declare const Textarea: {
|
|
96
96
|
getMirrorRef(): HTMLDivElement;
|
97
97
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
98
98
|
change: (value: string, ev: Event) => any;
|
99
|
-
focus: (ev: FocusEvent) => any;
|
100
99
|
clear: (ev: MouseEvent) => any;
|
101
100
|
input: (value: string, ev: Event) => any;
|
102
101
|
blur: (ev: FocusEvent) => any;
|
102
|
+
focus: (ev: FocusEvent) => any;
|
103
103
|
keydown: (ev: KeyboardEvent) => any;
|
104
104
|
"update:modelValue": (value: string) => any;
|
105
105
|
}, string, {
|
@@ -6,18 +6,18 @@ declare const _default: import('vue').DefineComponent<TextareaProps, {
|
|
6
6
|
getMirrorRef(): HTMLDivElement;
|
7
7
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
8
8
|
change: (value: string, ev: Event) => any;
|
9
|
-
focus: (ev: FocusEvent) => any;
|
10
9
|
clear: (ev: MouseEvent) => any;
|
11
10
|
input: (value: string, ev: Event) => any;
|
12
11
|
blur: (ev: FocusEvent) => any;
|
12
|
+
focus: (ev: FocusEvent) => any;
|
13
13
|
keydown: (ev: KeyboardEvent) => any;
|
14
14
|
"update:modelValue": (value: string) => any;
|
15
15
|
}, string, import('vue').PublicProps, Readonly<TextareaProps> & Readonly<{
|
16
16
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
17
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
18
17
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
19
18
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
20
19
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
20
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
21
21
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
22
22
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
23
23
|
}>, {
|
@@ -56,17 +56,17 @@ declare function __VLS_template(): {
|
|
56
56
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
57
57
|
declare const __VLS_component: import('vue').DefineComponent<TimePickerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
58
58
|
change: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
59
|
-
"update:popupVisible": (value: boolean) => any;
|
60
|
-
"popup-visible-change": (value: boolean) => any;
|
61
59
|
clear: () => any;
|
62
60
|
select: (timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any;
|
61
|
+
"update:popupVisible": (value: boolean) => any;
|
62
|
+
"popup-visible-change": (value: boolean) => any;
|
63
63
|
"update:modelValue": (value: import('./type').TimePickerValue) => any;
|
64
64
|
}, string, import('vue').PublicProps, Readonly<TimePickerProps> & Readonly<{
|
65
65
|
onChange?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
66
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
67
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
68
66
|
onClear?: (() => any) | undefined;
|
69
67
|
onSelect?: ((timeString: string | (string | undefined)[] | undefined, time: Date | (Date | undefined)[] | undefined) => any) | undefined;
|
68
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
69
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
70
70
|
"onUpdate:modelValue"?: ((value: import('./type').TimePickerValue) => any) | undefined;
|
71
71
|
}>, {
|
72
72
|
size: import('..').Size;
|
@@ -2,7 +2,7 @@ import { defineComponent, useSlots, ref, createBlock, openBlock, unref, mergePro
|
|
2
2
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
3
3
|
import { isArray } from "../_shared/utils/is.js";
|
4
4
|
import { isValidTimeRange } from "../_shared/utils/time.js";
|
5
|
-
import
|
5
|
+
import useTimePickerContext from "./hooks/useContext.js";
|
6
6
|
import _sfc_main$1 from "../_shared/components/IconButton/index.vue.js";
|
7
7
|
/* empty css */
|
8
8
|
import "../_shared/utils/dom.js";
|
@@ -71,7 +71,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
71
71
|
inputRefs,
|
72
72
|
format,
|
73
73
|
placeholder
|
74
|
-
} =
|
74
|
+
} = useTimePickerContext().provide(props, emits);
|
75
75
|
const panelRef = ref();
|
76
76
|
const handleClear = () => {
|
77
77
|
computedValue.value = type.value == "time-range" ? [] : "";
|
@@ -4,7 +4,7 @@ import dayjs from "../node_modules/dayjs/dayjs.min.js";
|
|
4
4
|
import { isUndefined, isArray } from "../_shared/utils/is.js";
|
5
5
|
import { sleep } from "../_shared/utils/dom.js";
|
6
6
|
import { useI18n } from "../_shared/utils/locale.js";
|
7
|
-
import
|
7
|
+
import useTimePickerContext from "./hooks/useContext.js";
|
8
8
|
import Button from "../Button/index.js";
|
9
9
|
import Scrollbar from "../Scrollbar/index.js";
|
10
10
|
const _hoisted_1 = { class: "yc-timepicker-container" };
|
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
36
36
|
disabledHours,
|
37
37
|
disabledMinutes,
|
38
38
|
disabledSeconds
|
39
|
-
} =
|
39
|
+
} = useTimePickerContext().inject();
|
40
40
|
const { t } = useI18n();
|
41
41
|
const scrollRefs = ref([]);
|
42
42
|
const disabled = computed(() => {
|