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/Affix/index.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, computed, watch, createElementBlock, openBlock, createCommentVNode, createElementVNode, normalizeStyle, unref, normalizeClass, renderSlot } from "vue";
|
2
|
+
import { isUndefined } from "../_shared/utils/is.js";
|
2
3
|
import { useResizeObserver, useEventListener } from "../node_modules/@vueuse/core/index.js";
|
3
4
|
import { findFirstScrollableParent, getElement, throttleByRaf, valueToPx } from "../_shared/utils/dom.js";
|
4
|
-
import { isUndefined } from "../_shared/utils/is.js";
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
6
6
|
...{
|
7
7
|
name: "Affix",
|
package/es/Anchor/Anchor.vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, createElementBlock, openBlock, createCommentVNode, createElementVNode, normalizeStyle, unref, renderSlot } from "vue";
|
2
2
|
import { valueToPx } from "../_shared/utils/dom.js";
|
3
|
-
import
|
3
|
+
import useAnchorContext from "./hooks/useContext.js";
|
4
4
|
const _hoisted_1 = { class: "yc-anchor" };
|
5
5
|
const _hoisted_2 = {
|
6
6
|
key: 0,
|
@@ -22,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
22
|
const props = __props;
|
23
23
|
const listRef = ref();
|
24
24
|
const linkRefs = ref([]);
|
25
|
-
const { curHref, hrefs } =
|
25
|
+
const { curHref, hrefs } = useAnchorContext().provide(props, listRef);
|
26
26
|
const top = computed(() => {
|
27
27
|
const curIndex = hrefs.value.findIndex((item) => item == curHref.value);
|
28
28
|
const offset = linkRefs.value.slice(0, curIndex + 1).map((item) => item.offsetHeight).reduce((pre, cur, index) => {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, useSlots, toRefs, createElementBlock, openBlock, normalizeClass, unref, createElementVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString } from "vue";
|
2
2
|
import { getElement } from "../_shared/utils/dom.js";
|
3
3
|
import { isNumber } from "../_shared/utils/is.js";
|
4
|
-
import
|
4
|
+
import useAnchorContext from "./hooks/useContext.js";
|
5
5
|
const _hoisted_1 = ["href"];
|
6
6
|
const _hoisted_2 = {
|
7
7
|
key: 0,
|
@@ -20,7 +20,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
20
20
|
const $slots = useSlots();
|
21
21
|
const props = __props;
|
22
22
|
const { href } = toRefs(props);
|
23
|
-
const { smooth, boundary, changeHash, curHref, lineLess, scrollContainer } =
|
23
|
+
const { smooth, boundary, changeHash, curHref, lineLess, scrollContainer } = useAnchorContext().inject();
|
24
24
|
const handleClick = (e) => {
|
25
25
|
curHref.value = href.value;
|
26
26
|
if (changeHash.value) return;
|
@@ -8,7 +8,7 @@ type AnchorContext = {
|
|
8
8
|
curHref: Ref<string>;
|
9
9
|
scrollContainer: Ref<HTMLElement | undefined>;
|
10
10
|
};
|
11
|
-
|
11
|
+
export default function useAnchorContext(): {
|
12
12
|
provide: (props: RecordType, listRef: Ref<HTMLDivElement | undefined>) => {
|
13
13
|
hrefs: import('vue').ComputedRef<any[]>;
|
14
14
|
curHref: Ref<string, string>;
|
@@ -20,4 +20,4 @@ declare const _default: () => {
|
|
20
20
|
};
|
21
21
|
inject: () => AnchorContext;
|
22
22
|
};
|
23
|
-
export
|
23
|
+
export {};
|
@@ -5,7 +5,7 @@ import { isUndefined } from "../../_shared/utils/is.js";
|
|
5
5
|
import _sfc_main from "../AnchorLink.vue.js";
|
6
6
|
/* empty css */
|
7
7
|
const ANCHOR_CONTEXT_KEY = "anchor-context";
|
8
|
-
|
8
|
+
function useAnchorContext() {
|
9
9
|
const provide$1 = (props, listRef) => {
|
10
10
|
const {
|
11
11
|
changeHash,
|
@@ -62,7 +62,7 @@ const useContext = () => {
|
|
62
62
|
provide: provide$1,
|
63
63
|
inject: inject$1
|
64
64
|
};
|
65
|
-
}
|
65
|
+
}
|
66
66
|
export {
|
67
|
-
|
67
|
+
useAnchorContext as default
|
68
68
|
};
|
@@ -5,12 +5,12 @@ export * from './type';
|
|
5
5
|
declare const AutoComplete: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').AutoCompleteProps> & Readonly<{
|
7
7
|
onChange?: ((value: string) => any) | undefined;
|
8
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
9
8
|
onClear?: ((ev?: Event | undefined) => any) | undefined;
|
10
9
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
11
10
|
onSearch?: ((value: string) => any) | undefined;
|
12
11
|
onSelect?: ((value: string) => any) | undefined;
|
13
12
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
13
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
14
14
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
15
15
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
16
16
|
"onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
@@ -23,12 +23,12 @@ declare const AutoComplete: {
|
|
23
23
|
updatePosition(x: number, y: number): void;
|
24
24
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
25
25
|
change: (value: string) => any;
|
26
|
-
focus: (ev: FocusEvent) => any;
|
27
26
|
clear: (ev?: Event | undefined) => any;
|
28
27
|
input: (value: string, ev: Event) => any;
|
29
28
|
search: (value: string) => any;
|
30
29
|
select: (value: string) => any;
|
31
30
|
blur: (ev: FocusEvent) => any;
|
31
|
+
focus: (ev: FocusEvent) => any;
|
32
32
|
keydown: (ev: KeyboardEvent) => any;
|
33
33
|
"update:modelValue": (value: string) => any;
|
34
34
|
"dropdown-scroll": (ev?: Event | undefined) => any;
|
@@ -88,12 +88,12 @@ declare const AutoComplete: {
|
|
88
88
|
readonly hotkeys?: boolean | undefined;
|
89
89
|
readonly showEmpty?: boolean | undefined;
|
90
90
|
readonly onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
91
|
-
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
92
|
-
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
93
91
|
readonly onClear?: (() => any) | undefined;
|
94
92
|
readonly onSearch?: ((value: string) => any) | undefined;
|
95
93
|
readonly onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
96
94
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
95
|
+
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
96
|
+
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
97
97
|
readonly "onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
98
98
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
99
99
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -366,10 +366,10 @@ declare const AutoComplete: {
|
|
366
366
|
readonly tagNowrap?: boolean | undefined;
|
367
367
|
readonly fieldNames?: Record<string, string> | undefined;
|
368
368
|
readonly allowCreate?: boolean | undefined;
|
369
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
370
369
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
371
370
|
readonly onInput?: ((value: string) => any) | undefined;
|
372
371
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
372
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
373
373
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
374
374
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
375
375
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -391,13 +391,13 @@ declare const AutoComplete: {
|
|
391
391
|
$root: import('vue').ComponentPublicInstance | null;
|
392
392
|
$parent: import('vue').ComponentPublicInstance | null;
|
393
393
|
$host: Element | null;
|
394
|
-
$emit: ((event: "
|
394
|
+
$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);
|
395
395
|
$el: HTMLDivElement;
|
396
396
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
397
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
398
397
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
399
398
|
onInput?: ((value: string) => any) | undefined;
|
400
399
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
400
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
401
401
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
402
402
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
403
403
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -407,10 +407,10 @@ declare const AutoComplete: {
|
|
407
407
|
focus(): void;
|
408
408
|
blur(): void;
|
409
409
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
410
|
-
focus: (ev: FocusEvent) => any;
|
411
410
|
clear: (ev: MouseEvent) => any;
|
412
411
|
input: (value: string) => any;
|
413
412
|
blur: (ev: FocusEvent) => any;
|
413
|
+
focus: (ev: FocusEvent) => any;
|
414
414
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
415
415
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
416
416
|
"update:inputValue": (value: string) => any;
|
@@ -471,16 +471,16 @@ declare const AutoComplete: {
|
|
471
471
|
retainInputValue: import('..').InputRetainValue;
|
472
472
|
uniqueValue: boolean;
|
473
473
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
474
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
475
474
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
476
475
|
onInput?: ((value: string) => any) | undefined;
|
477
476
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
477
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
478
478
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
479
479
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
480
480
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
481
481
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
482
482
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
483
|
-
}>, "
|
483
|
+
}>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
484
484
|
focus(): void;
|
485
485
|
blur(): void;
|
486
486
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -493,16 +493,16 @@ declare const AutoComplete: {
|
|
493
493
|
$root: import('vue').ComponentPublicInstance | null;
|
494
494
|
$parent: import('vue').ComponentPublicInstance | null;
|
495
495
|
$host: Element | null;
|
496
|
-
$emit: ((event: "change", value: import('..').SelectValue) => void) & ((event: "
|
496
|
+
$emit: ((event: "change", value: import('..').SelectValue) => void) & ((event: "clear") => void) & ((event: "search", value: string) => void) & ((event: "select", value: import('..').SelectOptionValue) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "update:modelValue", value: import('..').SelectValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string) => void) & ((event: "exceedLimit", value: import('..').SelectOptionValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
497
497
|
$el: any;
|
498
498
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').SelectProps> & Readonly<{
|
499
499
|
onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
500
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
501
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
502
500
|
onClear?: (() => any) | undefined;
|
503
501
|
onSearch?: ((value: string) => any) | undefined;
|
504
502
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
505
503
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
504
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
505
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
506
506
|
"onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
507
507
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
508
508
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -515,12 +515,12 @@ declare const AutoComplete: {
|
|
515
515
|
getPopupRef(): import('..').TriggerInstance;
|
516
516
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
517
517
|
change: (value: import('..').SelectValue) => any;
|
518
|
-
"update:popupVisible": (value: boolean) => any;
|
519
|
-
"popup-visible-change": (value: boolean) => any;
|
520
518
|
clear: () => any;
|
521
519
|
search: (value: string) => any;
|
522
520
|
select: (value: import('..').SelectOptionValue) => any;
|
523
521
|
remove: (index: string | number, ev: Event) => any;
|
522
|
+
"update:popupVisible": (value: boolean) => any;
|
523
|
+
"popup-visible-change": (value: boolean) => any;
|
524
524
|
"update:modelValue": (value: import('..').SelectValue) => any;
|
525
525
|
"update:inputValue": (value: string) => any;
|
526
526
|
"input-value-change": (value: string) => any;
|
@@ -615,19 +615,19 @@ declare const AutoComplete: {
|
|
615
615
|
tagNowrap: boolean;
|
616
616
|
}> & Omit<Readonly<import('..').SelectProps> & Readonly<{
|
617
617
|
onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
618
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
619
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
620
618
|
onClear?: (() => any) | undefined;
|
621
619
|
onSearch?: ((value: string) => any) | undefined;
|
622
620
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
623
621
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
622
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
623
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
624
624
|
"onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
625
625
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
626
626
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
627
627
|
onExceedLimit?: ((value: import('..').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
628
628
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
629
629
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
630
|
-
}>, "
|
630
|
+
}>, "blur" | "focus" | ("size" | "error" | "popupContainer" | "popupVisible" | "defaultPopupVisible" | "disabled" | "scrollbar" | "multiple" | "placeholder" | "loading" | "bordered" | "modelValue" | "defaultValue" | "allowClear" | "showExtraOptions" | "options" | "limit" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowSearch" | "valueKey" | "showEmpty" | "allowCreate" | "maxTagCount" | "filterOption" | "virtualListProps" | "triggerProps" | "searchDelay" | "showHeaderOnEmpty" | "showFooterOnEmpty" | "tagNowrap") | "getPopupRef"> & import('vue').ShallowUnwrapRef<{
|
631
631
|
focus(): void;
|
632
632
|
blur(): void;
|
633
633
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -636,10 +636,10 @@ declare const AutoComplete: {
|
|
636
636
|
}) | null;
|
637
637
|
inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').TextareaProps> & Readonly<{
|
638
638
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
639
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
640
639
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
641
640
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
642
641
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
642
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
643
643
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
644
644
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
645
645
|
}>, {
|
@@ -649,10 +649,10 @@ declare const AutoComplete: {
|
|
649
649
|
getMirrorRef(): HTMLDivElement;
|
650
650
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
651
651
|
change: (value: string, ev: Event) => any;
|
652
|
-
focus: (ev: FocusEvent) => any;
|
653
652
|
clear: (ev: MouseEvent) => any;
|
654
653
|
input: (value: string, ev: Event) => any;
|
655
654
|
blur: (ev: FocusEvent) => any;
|
655
|
+
focus: (ev: FocusEvent) => any;
|
656
656
|
keydown: (ev: KeyboardEvent) => any;
|
657
657
|
"update:modelValue": (value: string) => any;
|
658
658
|
}, import('vue').PublicProps, {
|
@@ -682,10 +682,10 @@ declare const AutoComplete: {
|
|
682
682
|
Defaults: {};
|
683
683
|
}, Readonly<import('..').TextareaProps> & Readonly<{
|
684
684
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
685
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
686
685
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
687
686
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
688
687
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
688
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
689
689
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
690
690
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
691
691
|
}>, {
|
@@ -718,12 +718,12 @@ declare const AutoComplete: {
|
|
718
718
|
Defaults: {};
|
719
719
|
}, Readonly<import('./type').AutoCompleteProps> & Readonly<{
|
720
720
|
onChange?: ((value: string) => any) | undefined;
|
721
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
722
721
|
onClear?: ((ev?: Event | undefined) => any) | undefined;
|
723
722
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
724
723
|
onSearch?: ((value: string) => any) | undefined;
|
725
724
|
onSelect?: ((value: string) => any) | undefined;
|
726
725
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
726
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
727
727
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
728
728
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
729
729
|
"onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
@@ -753,12 +753,12 @@ declare const AutoComplete: {
|
|
753
753
|
__isSuspense?: never;
|
754
754
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').AutoCompleteProps> & Readonly<{
|
755
755
|
onChange?: ((value: string) => any) | undefined;
|
756
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
757
756
|
onClear?: ((ev?: Event | undefined) => any) | undefined;
|
758
757
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
759
758
|
onSearch?: ((value: string) => any) | undefined;
|
760
759
|
onSelect?: ((value: string) => any) | undefined;
|
761
760
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
761
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
762
762
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
763
763
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
764
764
|
"onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
@@ -771,12 +771,12 @@ declare const AutoComplete: {
|
|
771
771
|
updatePosition(x: number, y: number): void;
|
772
772
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
773
773
|
change: (value: string) => any;
|
774
|
-
focus: (ev: FocusEvent) => any;
|
775
774
|
clear: (ev?: Event | undefined) => any;
|
776
775
|
input: (value: string, ev: Event) => any;
|
777
776
|
search: (value: string) => any;
|
778
777
|
select: (value: string) => any;
|
779
778
|
blur: (ev: FocusEvent) => any;
|
779
|
+
focus: (ev: FocusEvent) => any;
|
780
780
|
keydown: (ev: KeyboardEvent) => any;
|
781
781
|
"update:modelValue": (value: string) => any;
|
782
782
|
"dropdown-scroll": (ev?: Event | undefined) => any;
|