yc-design-vue 1.0.8 → 1.1.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/es/Affix/index.vue.js +1 -2
- package/es/Anchor/Anchor.vue2.js +1 -2
- package/es/AutoComplete/index.d.ts +16 -19
- package/es/AutoComplete/index.vue.d.ts +27 -33
- package/es/Avatar/Avatar.vue2.js +1 -2
- package/es/Avatar/AvatarGroup.vue2.js +1 -2
- package/es/Badge/index.vue2.js +1 -2
- package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/es/Button/hooks/useContext.d.ts +1 -1
- package/es/Carousel/CarouselIndicator.vue2.js +1 -2
- package/es/Carousel/hooks/useContext.js +1 -2
- package/es/Cascader/Cascader.vue.d.ts +7 -7
- package/es/Cascader/Cascader.vue2.js +1 -2
- package/es/Cascader/CascaderOption.vue2.js +1 -2
- package/es/Cascader/index.d.ts +6 -6
- package/es/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/es/Checkbox/index.d.ts +3 -3
- package/es/ColorPicker/ColorControl.vue2.js +1 -2
- package/es/ColorPicker/ColorPalette.vue2.js +1 -2
- package/es/ColorPicker/ColorPicker.vue.d.ts +2 -2
- package/es/ColorPicker/index.d.ts +6 -6
- package/es/Descriptions/Descriptions.vue.d.ts +1 -1
- package/es/Descriptions/index.d.ts +3 -3
- package/es/Divider/index.d.ts +3 -3
- package/es/Divider/index.vue.d.ts +1 -1
- package/es/Divider/index.vue2.js +1 -2
- package/es/Drawer/Drawer.vue2.js +1 -2
- package/es/Dropdown/Dropdown.vue.js +1 -2
- package/es/Dropdown/Dsubmenu.vue2.js +1 -2
- package/es/Grid/Grid.vue2.js +1 -2
- package/es/Grid/GridCol.vue.js +1 -2
- package/es/Grid/GridItem.vue.js +1 -2
- package/es/Grid/GridRow.vue2.js +1 -2
- package/es/Icon/index.vue2.js +1 -2
- package/es/Image/Image.vue2.js +1 -2
- package/es/Image/ImagePreview.vue.d.ts +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreview.vue2.js +0 -1
- package/es/Image/ImagePreviewToolbar.vue2.js +6 -6
- package/es/Image/index.d.ts +3 -3
- package/es/Input/Input.vue.d.ts +1 -1
- package/es/Input/index.d.ts +3 -3
- package/es/InputNumber/InputNumber.vue.d.ts +7 -7
- package/es/InputNumber/InputNumber.vue2.js +1 -2
- package/es/InputNumber/index.d.ts +6 -6
- package/es/InputTag/index.d.ts +5 -5
- package/es/InputTag/index.vue.d.ts +2 -2
- package/es/InputTag/index.vue2.js +1 -2
- package/es/Layout/LayoutSider.vue2.js +1 -2
- package/es/List/List.vue.d.ts +1 -2
- package/es/List/List.vue.js +1 -1
- package/es/List/List.vue2.js +6 -24
- package/es/List/hooks/useScrollReach.js +1 -2
- package/es/List/index.d.ts +3 -6
- package/es/List/type.d.ts +0 -2
- package/es/Mention/index.d.ts +16 -19
- package/es/Mention/index.vue.d.ts +32 -38
- package/es/Menu/MenuItem.vue2.js +1 -2
- package/es/Menu/MenuItemGroup.vue2.js +1 -2
- package/es/Menu/hooks/useContext.js +1 -2
- package/es/Message/Message.vue.d.ts +2 -2
- package/es/Message/index.d.ts +6 -6
- package/es/Modal/Modal.vue2.js +1 -2
- package/es/Modal/hooks/useModalDraggable.js +1 -2
- package/es/Notification/Notification.vue.d.ts +2 -2
- package/es/Notification/index.d.ts +6 -6
- package/es/OverflowList/index.vue2.js +1 -2
- package/es/Pagination/Pagination.vue2.js +1 -2
- package/es/Progress/ProgressCircle.vue2.js +2 -3
- package/es/Progress/ProgressLine.vue2.js +1 -2
- package/es/Progress/ProgressSteps.vue.js +1 -2
- package/es/Radio/RadioGroup.vue.d.ts +1 -1
- package/es/Radio/index.d.ts +3 -3
- package/es/Rate/index.vue2.js +1 -2
- package/es/ResizeBox/index.vue2.js +1 -2
- package/es/Scrollbar/ScrollbarTrack.vue2.js +1 -2
- package/es/Select/Select.vue.d.ts +13 -14
- package/es/Select/Select.vue.js +1 -1
- package/es/Select/Select.vue2.js +1 -3
- package/es/Select/index.d.ts +13 -16
- package/es/Select/type.d.ts +0 -1
- package/es/Skeleton/SkeletonLine.vue.d.ts +1 -1
- package/es/Skeleton/SkeletonLine.vue2.js +1 -2
- package/es/Skeleton/index.d.ts +1 -1
- package/es/Slider/Slider.vue.d.ts +3 -3
- package/es/Slider/hooks/useSliderDraggable.js +1 -2
- package/es/Slider/index.d.ts +9 -9
- package/es/Space/index.d.ts +3 -3
- package/es/Space/index.vue.d.ts +1 -1
- package/es/Space/index.vue2.js +1 -2
- package/es/Spin/index.vue2.js +1 -2
- package/es/Split/index.d.ts +3 -3
- package/es/Split/index.vue.d.ts +1 -1
- package/es/Split/index.vue2.js +1 -2
- package/es/Statistic/Countdown.vue.d.ts +1 -1
- package/es/Statistic/Countdown.vue.js +1 -2
- package/es/Statistic/Statistic.vue.d.ts +1 -1
- package/es/Statistic/Statistic.vue.js +1 -1
- package/es/Statistic/Statistic.vue2.js +9 -2
- package/es/Statistic/index.d.ts +6 -6
- package/es/Tabs/Tabs.vue2.js +1 -2
- package/es/Tabs/TabsNavInk.vue2.js +1 -2
- package/es/Tabs/hooks/useTabsScroll.js +1 -2
- package/es/Textarea/hooks/useTextareaHeight.js +1 -2
- package/es/TimePicker/TimePicker.vue.d.ts +5 -5
- package/es/TimePicker/TimePickerPanel.vue2.js +1 -2
- package/es/TimePicker/index.d.ts +15 -15
- package/es/Tooltip/index.d.ts +3 -3
- package/es/Tooltip/index.vue.d.ts +1 -1
- package/es/Tooltip/index.vue.js +1 -1
- package/es/Transfer/TransferPanel.vue2.js +2 -2
- package/es/Trigger/hooks/useContext.js +1 -2
- package/es/Trigger/hooks/useTriggerPosition.js +1 -2
- package/es/Typography/TypographyBase.vue.d.ts +6 -6
- package/es/Typography/TypographyBase.vue.js +1 -1
- package/es/Typography/TypographyBase.vue2.js +2 -6
- package/es/VerificationCode/index.vue2.js +1 -2
- package/es/_shared/components/ExpandTransition.vue3.js +1 -2
- package/es/_shared/components/Icon.vue3.js +1 -2
- package/es/_shared/components/IconButton.vue3.js +1 -2
- package/es/_shared/constants/index.d.ts +8 -0
- package/es/_shared/constants/index.js +9 -0
- package/es/_shared/icons/IconDelete.vue.js +1 -16
- package/es/_shared/icons/IconDelete.vue2.js +16 -1
- package/es/_shared/icons/IconExclamation.vue.js +27 -1
- package/es/_shared/icons/IconExclamation.vue2.js +1 -27
- package/es/_shared/icons/IconFullScreen.vue.js +16 -1
- package/es/_shared/icons/IconFullScreen.vue2.js +1 -16
- package/es/_shared/icons/IconOriginSize.vue.js +22 -1
- package/es/_shared/icons/IconOriginSize.vue2.js +1 -22
- package/es/_shared/icons/IconRotateLeft.vue.js +16 -1
- package/es/_shared/icons/IconRotateLeft.vue2.js +1 -16
- package/es/_shared/icons/IconRotateRight.vue.js +16 -1
- package/es/_shared/icons/IconRotateRight.vue2.js +1 -16
- package/es/_shared/icons/IconSearch.vue.js +1 -16
- package/es/_shared/icons/IconSearch.vue2.js +16 -1
- package/es/_shared/icons/IconSeparator.vue.js +1 -16
- package/es/_shared/icons/IconSeparator.vue2.js +16 -1
- package/es/_shared/icons/IconZoomIn.vue.js +16 -1
- package/es/_shared/icons/IconZoomIn.vue2.js +1 -16
- package/es/_shared/icons/IconZoomOut.vue.js +16 -1
- package/es/_shared/icons/IconZoomOut.vue2.js +1 -16
- package/es/_shared/utils/dom.d.ts +7 -18
- package/es/_shared/utils/dom.js +80 -13
- package/es/_shared/utils/index.d.ts +0 -1
- package/es/_shared/utils/time.d.ts +1 -37
- package/es/_shared/utils/time.js +2 -2
- package/es/_shared/utils/vue-utils.d.ts +4 -4
- package/es/_shared/utils/vue-utils.js +6 -6
- package/es/index.d.ts +13 -13
- package/es/style.css +1 -1
- package/lib/Affix/index.vue.js +1 -1
- package/lib/Anchor/Anchor.vue2.js +1 -1
- package/lib/AutoComplete/index.d.ts +16 -19
- package/lib/AutoComplete/index.vue.d.ts +27 -33
- package/lib/Avatar/Avatar.vue2.js +1 -1
- package/lib/Avatar/AvatarGroup.vue2.js +1 -1
- package/lib/Badge/index.vue2.js +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/lib/Button/hooks/useContext.d.ts +1 -1
- package/lib/Carousel/CarouselIndicator.vue2.js +1 -1
- package/lib/Carousel/hooks/useContext.js +1 -1
- package/lib/Cascader/Cascader.vue.d.ts +7 -7
- package/lib/Cascader/Cascader.vue2.js +1 -1
- package/lib/Cascader/CascaderOption.vue2.js +1 -1
- package/lib/Cascader/index.d.ts +6 -6
- package/lib/Checkbox/CheckboxGroup.vue.d.ts +1 -1
- package/lib/Checkbox/index.d.ts +3 -3
- package/lib/ColorPicker/ColorControl.vue2.js +1 -1
- package/lib/ColorPicker/ColorPalette.vue2.js +1 -1
- package/lib/ColorPicker/ColorPicker.vue.d.ts +2 -2
- package/lib/ColorPicker/index.d.ts +6 -6
- package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
- package/lib/Descriptions/index.d.ts +3 -3
- package/lib/Divider/index.d.ts +3 -3
- package/lib/Divider/index.vue.d.ts +1 -1
- package/lib/Divider/index.vue2.js +1 -1
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Dropdown/Dropdown.vue.js +1 -1
- package/lib/Dropdown/Dsubmenu.vue2.js +1 -1
- package/lib/Grid/Grid.vue2.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Grid/GridItem.vue.js +1 -1
- package/lib/Grid/GridRow.vue2.js +1 -1
- package/lib/Icon/index.vue2.js +1 -1
- package/lib/Image/Image.vue2.js +1 -1
- package/lib/Image/ImagePreview.vue.d.ts +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreviewToolbar.vue2.js +1 -1
- package/lib/Image/index.d.ts +3 -3
- package/lib/Input/Input.vue.d.ts +1 -1
- package/lib/Input/index.d.ts +3 -3
- package/lib/InputNumber/InputNumber.vue.d.ts +7 -7
- package/lib/InputNumber/InputNumber.vue2.js +1 -1
- package/lib/InputNumber/index.d.ts +6 -6
- package/lib/InputTag/index.d.ts +5 -5
- package/lib/InputTag/index.vue.d.ts +2 -2
- package/lib/InputTag/index.vue2.js +1 -1
- package/lib/Layout/LayoutSider.vue2.js +1 -1
- package/lib/List/List.vue.d.ts +1 -2
- package/lib/List/List.vue.js +1 -1
- package/lib/List/List.vue2.js +1 -1
- package/lib/List/hooks/useScrollReach.js +1 -1
- package/lib/List/index.d.ts +3 -6
- package/lib/List/type.d.ts +0 -2
- package/lib/Mention/index.d.ts +16 -19
- package/lib/Mention/index.vue.d.ts +32 -38
- package/lib/Menu/MenuItem.vue2.js +1 -1
- package/lib/Menu/MenuItemGroup.vue2.js +1 -1
- package/lib/Menu/hooks/useContext.js +1 -1
- package/lib/Message/Message.vue.d.ts +2 -2
- package/lib/Message/index.d.ts +6 -6
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Modal/hooks/useModalDraggable.js +1 -1
- package/lib/Notification/Notification.vue.d.ts +2 -2
- package/lib/Notification/index.d.ts +6 -6
- package/lib/OverflowList/index.vue2.js +1 -1
- package/lib/Pagination/Pagination.vue2.js +1 -1
- package/lib/Progress/ProgressCircle.vue2.js +1 -1
- package/lib/Progress/ProgressLine.vue2.js +1 -1
- package/lib/Progress/ProgressSteps.vue.js +1 -1
- package/lib/Radio/RadioGroup.vue.d.ts +1 -1
- package/lib/Radio/index.d.ts +3 -3
- package/lib/Rate/index.vue2.js +1 -1
- package/lib/ResizeBox/index.vue2.js +1 -1
- package/lib/Scrollbar/ScrollbarTrack.vue2.js +1 -1
- package/lib/Select/Select.vue.d.ts +13 -14
- package/lib/Select/Select.vue.js +1 -1
- package/lib/Select/Select.vue2.js +1 -1
- package/lib/Select/index.d.ts +13 -16
- package/lib/Select/type.d.ts +0 -1
- package/lib/Skeleton/SkeletonLine.vue.d.ts +1 -1
- package/lib/Skeleton/SkeletonLine.vue2.js +1 -1
- package/lib/Skeleton/index.d.ts +1 -1
- package/lib/Slider/Slider.vue.d.ts +3 -3
- package/lib/Slider/hooks/useSliderDraggable.js +1 -1
- package/lib/Slider/index.d.ts +9 -9
- package/lib/Space/index.d.ts +3 -3
- package/lib/Space/index.vue.d.ts +1 -1
- package/lib/Space/index.vue2.js +1 -1
- package/lib/Spin/index.vue2.js +1 -1
- package/lib/Split/index.d.ts +3 -3
- package/lib/Split/index.vue.d.ts +1 -1
- package/lib/Split/index.vue2.js +1 -1
- package/lib/Statistic/Countdown.vue.d.ts +1 -1
- package/lib/Statistic/Countdown.vue.js +1 -1
- package/lib/Statistic/Statistic.vue.d.ts +1 -1
- package/lib/Statistic/Statistic.vue.js +1 -1
- package/lib/Statistic/Statistic.vue2.js +1 -1
- package/lib/Statistic/index.d.ts +6 -6
- package/lib/Tabs/Tabs.vue2.js +1 -1
- package/lib/Tabs/TabsNavInk.vue2.js +1 -1
- package/lib/Tabs/hooks/useTabsScroll.js +1 -1
- package/lib/Textarea/hooks/useTextareaHeight.js +1 -1
- package/lib/TimePicker/TimePicker.vue.d.ts +5 -5
- package/lib/TimePicker/TimePickerPanel.vue2.js +1 -1
- package/lib/TimePicker/index.d.ts +15 -15
- package/lib/Tooltip/index.d.ts +3 -3
- package/lib/Tooltip/index.vue.d.ts +1 -1
- package/lib/Tooltip/index.vue.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Trigger/hooks/useContext.js +1 -1
- package/lib/Trigger/hooks/useTriggerPosition.js +1 -1
- package/lib/Typography/TypographyBase.vue.d.ts +6 -6
- package/lib/Typography/TypographyBase.vue.js +1 -1
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/VerificationCode/index.vue2.js +1 -1
- package/lib/_shared/components/ExpandTransition.vue3.js +1 -1
- package/lib/_shared/components/Icon.vue3.js +1 -1
- package/lib/_shared/components/IconButton.vue3.js +1 -1
- package/lib/_shared/constants/index.d.ts +8 -0
- package/lib/_shared/constants/index.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue.js +1 -1
- package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue.js +1 -1
- package/lib/_shared/icons/IconFullScreen.vue2.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue.js +1 -1
- package/lib/_shared/icons/IconOriginSize.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue.js +1 -1
- package/lib/_shared/icons/IconRotateLeft.vue2.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue.js +1 -1
- package/lib/_shared/icons/IconRotateRight.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.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/icons/IconZoomIn.vue.js +1 -1
- package/lib/_shared/icons/IconZoomIn.vue2.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue.js +1 -1
- package/lib/_shared/icons/IconZoomOut.vue2.js +1 -1
- package/lib/_shared/utils/dom.d.ts +7 -18
- package/lib/_shared/utils/dom.js +1 -1
- package/lib/_shared/utils/index.d.ts +0 -1
- package/lib/_shared/utils/time.d.ts +1 -37
- package/lib/_shared/utils/time.js +1 -1
- package/lib/_shared/utils/vue-utils.d.ts +4 -4
- package/lib/_shared/utils/vue-utils.js +1 -1
- package/lib/index.d.ts +13 -13
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/es/_shared/utils/fn.d.ts +0 -8
- package/es/_shared/utils/fn.js +0 -79
- package/lib/_shared/utils/fn.d.ts +0 -8
- package/lib/_shared/utils/fn.js +0 -1
package/lib/Affix/index.vue.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),l=require("../_shared/utils/
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js"),l=require("../_shared/utils/is.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=e.defineComponent({name:"Affix",__name:"index",props:{offsetTop:{default:0},offsetBottom:{default:void 0},target:{default:void 0},targetContainer:{default:void 0}},emits:["change"],setup(a,{expose:r,emit:u}){const n=a,i=u,{target:s,targetContainer:d,offsetTop:f,offsetBottom:v}=e.toRefs(n),c=e.ref(),m=e.ref(),p=e.computed(()=>l.isUndefined(s.value)?o.findFirstScrollableParent(c.value):o.getElement(s.value)),g=e.computed(()=>l.isUndefined(d.value)?o.findFirstScrollableParent(c.value):o.getElement(d.value)),x=e.ref(!1),h=e.ref({}),y=e.ref(0),B=e.ref(0);t.useResizeObserver(c,()=>{const{width:e,height:t}=c.value.getBoundingClientRect();y.value=e,B.value=t,_()},{box:"border-box"}),e.watch(()=>x.value,e=>{i("change",e)});const _=o.throttleByRaf(()=>{if(!p.value||!g.value||!m.value)return;const{top:e,bottom:t}=m.value.getBoundingClientRect(),{top:a,bottom:r}=g.value.getBoundingClientRect();x.value=l.isUndefined(v.value)?e-a<=f.value:r-t<=v.value,x.value?h.value=l.isUndefined(v.value)?{position:"fixed",top:o.valueToPx(a+f.value)}:{position:"fixed",bottom:o.valueToPx(v.value)}:h.value={}});return t.useEventListener(p,"scroll",_),r({updatePosition(){_()}}),(t,l)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"wrapperRef",ref:m},[x.value?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle({width:e.unref(o.valueToPx)(y.value),height:e.unref(o.valueToPx)(B.value)})},null,4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([{"yc-affix":x.value}]),style:e.normalizeStyle(h.value),ref_key:"affixRef",ref:c},[e.renderSlot(t.$slots,"default")],6)],512))}});module.exports=a;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js")
|
1
|
+
"use strict";const e=require("vue");require("../node_modules/tinycolor2/esm/tinycolor.js");const o=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const l=require("./hooks/useContext.js"),r={class:"yc-anchor"},t={key:0,class:"yc-anchor-line-track"},n=e.defineComponent({name:"Anchor",__name:"Anchor",props:{boundary:{default:"start"},lineLess:{type:Boolean,default:!1},scrollContainer:{default:void 0},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},setup(n){const s=n,a=e.ref(),c=e.ref([]),{curHref:u,hrefs:i}=l().provide(s,a),d=e.computed(()=>{const e=i.value.findIndex(e=>e==u.value);return c.value.slice(0,e+1).map(e=>e.offsetHeight).reduce((o,l,r)=>r==e?o+(l-12)/2:o+l,0)+2*e});return e.onMounted(()=>{i.value.length&&(u.value=i.value[0],c.value=[...a.value.querySelectorAll(".yc-anchor-link")])}),(l,n)=>(e.openBlock(),e.createElementBlock("div",r,[l.lineLess?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",t,[e.createElementVNode("div",{class:"yc-anchor-line-slider",style:e.normalizeStyle({top:e.unref(o.valueToPx)(d.value)})},null,4)])),e.createElementVNode("div",{class:"yc-anchor-list",ref_key:"listRef",ref:a},[e.renderSlot(l.$slots,"default",{},void 0,!0)],512)]))}});module.exports=n;
|
@@ -39,11 +39,11 @@ declare const AutoComplete: {
|
|
39
39
|
strict: boolean;
|
40
40
|
type: "textarea" | "input";
|
41
41
|
data: import('..').SelectOptions;
|
42
|
-
triggerProps: import('..').TriggerProps;
|
43
42
|
modelValue: string;
|
44
43
|
defaultValue: string;
|
45
44
|
allowClear: boolean;
|
46
45
|
filterOption: (inputValue: string, option: import('..').SelectOptionData) => boolean;
|
46
|
+
triggerProps: import('..').TriggerProps;
|
47
47
|
isSelectSetValue: boolean;
|
48
48
|
isSearch: boolean;
|
49
49
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
@@ -67,7 +67,6 @@ declare const AutoComplete: {
|
|
67
67
|
readonly maxTagCount?: number | undefined;
|
68
68
|
readonly popupContainer?: import('..').PopupContainer | undefined;
|
69
69
|
readonly bordered?: boolean | undefined;
|
70
|
-
readonly defaultActivefirstOption?: boolean | undefined;
|
71
70
|
readonly popupVisible?: boolean | undefined;
|
72
71
|
readonly defaultPopupVisible?: boolean | undefined;
|
73
72
|
readonly unmountonClose?: boolean | undefined;
|
@@ -94,10 +93,10 @@ declare const AutoComplete: {
|
|
94
93
|
readonly onClear?: (() => any) | undefined;
|
95
94
|
readonly onSelect?: ((value: import('..').SelectValue) => any) | undefined;
|
96
95
|
readonly onSearch?: ((value: string) => any) | undefined;
|
97
|
-
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
98
96
|
readonly "onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
99
97
|
readonly "onUpdate:inputValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
100
98
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
99
|
+
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
101
100
|
readonly onExceedLimit?: ((value: import('..').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
102
101
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
103
102
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
@@ -371,10 +370,10 @@ declare const AutoComplete: {
|
|
371
370
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
372
371
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
373
372
|
readonly onInput?: ((value: string) => any) | undefined;
|
374
|
-
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
375
373
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
376
374
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
377
375
|
readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
376
|
+
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
378
377
|
readonly "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
379
378
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
380
379
|
$attrs: {
|
@@ -392,17 +391,17 @@ declare const AutoComplete: {
|
|
392
391
|
$root: import('vue').ComponentPublicInstance | null;
|
393
392
|
$parent: import('vue').ComponentPublicInstance | null;
|
394
393
|
$host: Element | null;
|
395
|
-
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "
|
394
|
+
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
396
395
|
$el: HTMLDivElement;
|
397
396
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
398
397
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
399
398
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
400
399
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
401
400
|
onInput?: ((value: string) => any) | undefined;
|
402
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
403
401
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
404
402
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
405
403
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
404
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
406
405
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
407
406
|
}>, {
|
408
407
|
focus(): void;
|
@@ -412,10 +411,10 @@ declare const AutoComplete: {
|
|
412
411
|
clear: (ev: MouseEvent) => any;
|
413
412
|
blur: (ev: FocusEvent) => any;
|
414
413
|
input: (value: string) => any;
|
415
|
-
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
416
414
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
417
415
|
"update:inputValue": (value: string) => any;
|
418
416
|
"input-value-change": (value: string, ev: Event) => any;
|
417
|
+
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
419
418
|
"press-enter": (ev: KeyboardEvent) => any;
|
420
419
|
}, string, {
|
421
420
|
size: import('..').Size;
|
@@ -476,10 +475,10 @@ declare const AutoComplete: {
|
|
476
475
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
477
476
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
478
477
|
onInput?: ((value: string) => any) | undefined;
|
479
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
480
478
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
481
479
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
482
480
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
481
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
483
482
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
484
483
|
}>, "focus" | "blur" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
485
484
|
focus(): void;
|
@@ -494,7 +493,7 @@ declare const AutoComplete: {
|
|
494
493
|
$root: import('vue').ComponentPublicInstance | null;
|
495
494
|
$parent: import('vue').ComponentPublicInstance | null;
|
496
495
|
$host: Element | null;
|
497
|
-
$emit: ((event: "change", value: import('..').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: import('..').SelectValue) => void) & ((event: "search", value: string) => void) & ((event: "
|
496
|
+
$emit: ((event: "change", value: import('..').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: import('..').SelectValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('..').SelectValue) => void) & ((event: "update:inputValue", value: import('..').SelectValue) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: import('..').SelectValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
498
497
|
$el: any;
|
499
498
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').SelectProps> & Readonly<{
|
500
499
|
onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
@@ -503,10 +502,10 @@ declare const AutoComplete: {
|
|
503
502
|
onClear?: (() => any) | undefined;
|
504
503
|
onSelect?: ((value: import('..').SelectValue) => any) | undefined;
|
505
504
|
onSearch?: ((value: string) => any) | undefined;
|
506
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
507
505
|
"onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
508
506
|
"onUpdate:inputValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
509
507
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
508
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
510
509
|
onExceedLimit?: ((value: import('..').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
511
510
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
512
511
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
@@ -521,10 +520,10 @@ declare const AutoComplete: {
|
|
521
520
|
clear: () => any;
|
522
521
|
select: (value: import('..').SelectValue) => any;
|
523
522
|
search: (value: string) => any;
|
524
|
-
remove: (index: string | number, ev: Event) => any;
|
525
523
|
"update:modelValue": (value: import('..').SelectValue) => any;
|
526
524
|
"update:inputValue": (value: import('..').SelectValue) => any;
|
527
525
|
"input-value-change": (value: string) => any;
|
526
|
+
remove: (index: string | number, ev: Event) => any;
|
528
527
|
exceedLimit: (value: import('..').SelectValue, ev?: MouseEvent | undefined) => any;
|
529
528
|
"dropdown-scroll": (ev: Event) => any;
|
530
529
|
"dropdown-reach-bottom": (ev: Event) => any;
|
@@ -539,7 +538,6 @@ declare const AutoComplete: {
|
|
539
538
|
scrollbar: boolean;
|
540
539
|
multiple: boolean;
|
541
540
|
placeholder: string;
|
542
|
-
triggerProps: import('..').TriggerProps;
|
543
541
|
bordered: boolean;
|
544
542
|
modelValue: import('..').SelectValue;
|
545
543
|
defaultValue: import('..').SelectValue;
|
@@ -555,9 +553,9 @@ declare const AutoComplete: {
|
|
555
553
|
showEmpty: boolean;
|
556
554
|
allowCreate: boolean;
|
557
555
|
maxTagCount: number;
|
558
|
-
defaultActivefirstOption: boolean;
|
559
556
|
filterOption: import('..').FilterOption;
|
560
557
|
virtualListProps: import('..').VirtualListProps;
|
558
|
+
triggerProps: import('..').TriggerProps;
|
561
559
|
searchDelay: number;
|
562
560
|
showHeaderOnEmpty: boolean;
|
563
561
|
showFooterOnEmpty: boolean;
|
@@ -593,7 +591,6 @@ declare const AutoComplete: {
|
|
593
591
|
scrollbar: boolean;
|
594
592
|
multiple: boolean;
|
595
593
|
placeholder: string;
|
596
|
-
triggerProps: import('..').TriggerProps;
|
597
594
|
bordered: boolean;
|
598
595
|
modelValue: import('..').SelectValue;
|
599
596
|
defaultValue: import('..').SelectValue;
|
@@ -609,9 +606,9 @@ declare const AutoComplete: {
|
|
609
606
|
showEmpty: boolean;
|
610
607
|
allowCreate: boolean;
|
611
608
|
maxTagCount: number;
|
612
|
-
defaultActivefirstOption: boolean;
|
613
609
|
filterOption: import('..').FilterOption;
|
614
610
|
virtualListProps: import('..').VirtualListProps;
|
611
|
+
triggerProps: import('..').TriggerProps;
|
615
612
|
searchDelay: number;
|
616
613
|
showHeaderOnEmpty: boolean;
|
617
614
|
showFooterOnEmpty: boolean;
|
@@ -623,14 +620,14 @@ declare const AutoComplete: {
|
|
623
620
|
onClear?: (() => any) | undefined;
|
624
621
|
onSelect?: ((value: import('..').SelectValue) => any) | undefined;
|
625
622
|
onSearch?: ((value: string) => any) | undefined;
|
626
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
627
623
|
"onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
628
624
|
"onUpdate:inputValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
629
625
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
626
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
630
627
|
onExceedLimit?: ((value: import('..').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
631
628
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
632
629
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
633
|
-
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "loading" | "error" | "scrollbar" | "multiple" | "placeholder" | "
|
630
|
+
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "loading" | "error" | "scrollbar" | "multiple" | "placeholder" | "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<{
|
634
631
|
focus(): void;
|
635
632
|
blur(): void;
|
636
633
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -743,11 +740,11 @@ declare const AutoComplete: {
|
|
743
740
|
strict: boolean;
|
744
741
|
type: "textarea" | "input";
|
745
742
|
data: import('..').SelectOptions;
|
746
|
-
triggerProps: import('..').TriggerProps;
|
747
743
|
modelValue: string;
|
748
744
|
defaultValue: string;
|
749
745
|
allowClear: boolean;
|
750
746
|
filterOption: (inputValue: string, option: import('..').SelectOptionData) => boolean;
|
747
|
+
triggerProps: import('..').TriggerProps;
|
751
748
|
isSelectSetValue: boolean;
|
752
749
|
isSearch: boolean;
|
753
750
|
}>;
|
@@ -790,11 +787,11 @@ declare const AutoComplete: {
|
|
790
787
|
strict: boolean;
|
791
788
|
type: "textarea" | "input";
|
792
789
|
data: import('..').SelectOptions;
|
793
|
-
triggerProps: import('..').TriggerProps;
|
794
790
|
modelValue: string;
|
795
791
|
defaultValue: string;
|
796
792
|
allowClear: boolean;
|
797
793
|
filterOption: (inputValue: string, option: import('..').SelectOptionData) => boolean;
|
794
|
+
triggerProps: import('..').TriggerProps;
|
798
795
|
isSelectSetValue: boolean;
|
799
796
|
isSearch: boolean;
|
800
797
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
@@ -25,7 +25,6 @@ declare function __VLS_template(): {
|
|
25
25
|
readonly maxTagCount?: number | undefined;
|
26
26
|
readonly popupContainer?: import('..').PopupContainer | undefined;
|
27
27
|
readonly bordered?: boolean | undefined;
|
28
|
-
readonly defaultActivefirstOption?: boolean | undefined;
|
29
28
|
readonly popupVisible?: boolean | undefined;
|
30
29
|
readonly defaultPopupVisible?: boolean | undefined;
|
31
30
|
readonly unmountonClose?: boolean | undefined;
|
@@ -52,10 +51,10 @@ declare function __VLS_template(): {
|
|
52
51
|
readonly onClear?: (() => any) | undefined;
|
53
52
|
readonly onSelect?: ((value: import('../Select').SelectValue) => any) | undefined;
|
54
53
|
readonly onSearch?: ((value: string) => any) | undefined;
|
55
|
-
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
56
54
|
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
57
55
|
readonly "onUpdate:inputValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
58
56
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
57
|
+
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
59
58
|
readonly onExceedLimit?: ((value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
60
59
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
61
60
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
@@ -329,10 +328,10 @@ declare function __VLS_template(): {
|
|
329
328
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
330
329
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
331
330
|
readonly onInput?: ((value: string) => any) | undefined;
|
332
|
-
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
333
331
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
334
332
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
335
333
|
readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
334
|
+
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
336
335
|
readonly "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
337
336
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
338
337
|
$attrs: {
|
@@ -350,17 +349,17 @@ declare function __VLS_template(): {
|
|
350
349
|
$root: import('vue').ComponentPublicInstance | null;
|
351
350
|
$parent: import('vue').ComponentPublicInstance | null;
|
352
351
|
$host: Element | null;
|
353
|
-
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "
|
352
|
+
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
354
353
|
$el: HTMLDivElement;
|
355
354
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
356
355
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
357
356
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
358
357
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
359
358
|
onInput?: ((value: string) => any) | undefined;
|
360
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
361
359
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
362
360
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
363
361
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
362
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
364
363
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
365
364
|
}>, {
|
366
365
|
focus(): void;
|
@@ -370,10 +369,10 @@ declare function __VLS_template(): {
|
|
370
369
|
clear: (ev: MouseEvent) => any;
|
371
370
|
blur: (ev: FocusEvent) => any;
|
372
371
|
input: (value: string) => any;
|
373
|
-
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
374
372
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
375
373
|
"update:inputValue": (value: string) => any;
|
376
374
|
"input-value-change": (value: string, ev: Event) => any;
|
375
|
+
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
377
376
|
"press-enter": (ev: KeyboardEvent) => any;
|
378
377
|
}, string, {
|
379
378
|
size: import('..').Size;
|
@@ -434,10 +433,10 @@ declare function __VLS_template(): {
|
|
434
433
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
435
434
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
436
435
|
onInput?: ((value: string) => any) | undefined;
|
437
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
438
436
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
439
437
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
440
438
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
439
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
441
440
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
442
441
|
}>, "focus" | "blur" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
443
442
|
focus(): void;
|
@@ -452,7 +451,7 @@ declare function __VLS_template(): {
|
|
452
451
|
$root: import('vue').ComponentPublicInstance | null;
|
453
452
|
$parent: import('vue').ComponentPublicInstance | null;
|
454
453
|
$host: Element | null;
|
455
|
-
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: import('../Select').SelectValue) => void) & ((event: "search", value: string) => void) & ((event: "
|
454
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: import('../Select').SelectValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: import('../Select').SelectValue) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
456
455
|
$el: any;
|
457
456
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
458
457
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
@@ -461,10 +460,10 @@ declare function __VLS_template(): {
|
|
461
460
|
onClear?: (() => any) | undefined;
|
462
461
|
onSelect?: ((value: import('../Select').SelectValue) => any) | undefined;
|
463
462
|
onSearch?: ((value: string) => any) | undefined;
|
464
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
465
463
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
466
464
|
"onUpdate:inputValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
467
465
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
466
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
468
467
|
onExceedLimit?: ((value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
469
468
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
470
469
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
@@ -479,10 +478,10 @@ declare function __VLS_template(): {
|
|
479
478
|
clear: () => any;
|
480
479
|
select: (value: import('../Select').SelectValue) => any;
|
481
480
|
search: (value: string) => any;
|
482
|
-
remove: (index: string | number, ev: Event) => any;
|
483
481
|
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
484
482
|
"update:inputValue": (value: import('../Select').SelectValue) => any;
|
485
483
|
"input-value-change": (value: string) => any;
|
484
|
+
remove: (index: string | number, ev: Event) => any;
|
486
485
|
exceedLimit: (value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any;
|
487
486
|
"dropdown-scroll": (ev: Event) => any;
|
488
487
|
"dropdown-reach-bottom": (ev: Event) => any;
|
@@ -497,7 +496,6 @@ declare function __VLS_template(): {
|
|
497
496
|
scrollbar: boolean;
|
498
497
|
multiple: boolean;
|
499
498
|
placeholder: string;
|
500
|
-
triggerProps: import('..').TriggerProps;
|
501
499
|
bordered: boolean;
|
502
500
|
modelValue: import('../Select').SelectValue;
|
503
501
|
defaultValue: import('../Select').SelectValue;
|
@@ -513,9 +511,9 @@ declare function __VLS_template(): {
|
|
513
511
|
showEmpty: boolean;
|
514
512
|
allowCreate: boolean;
|
515
513
|
maxTagCount: number;
|
516
|
-
defaultActivefirstOption: boolean;
|
517
514
|
filterOption: import('../Select').FilterOption;
|
518
515
|
virtualListProps: import('../Select').VirtualListProps;
|
516
|
+
triggerProps: import('..').TriggerProps;
|
519
517
|
searchDelay: number;
|
520
518
|
showHeaderOnEmpty: boolean;
|
521
519
|
showFooterOnEmpty: boolean;
|
@@ -551,7 +549,6 @@ declare function __VLS_template(): {
|
|
551
549
|
scrollbar: boolean;
|
552
550
|
multiple: boolean;
|
553
551
|
placeholder: string;
|
554
|
-
triggerProps: import('..').TriggerProps;
|
555
552
|
bordered: boolean;
|
556
553
|
modelValue: import('../Select').SelectValue;
|
557
554
|
defaultValue: import('../Select').SelectValue;
|
@@ -567,9 +564,9 @@ declare function __VLS_template(): {
|
|
567
564
|
showEmpty: boolean;
|
568
565
|
allowCreate: boolean;
|
569
566
|
maxTagCount: number;
|
570
|
-
defaultActivefirstOption: boolean;
|
571
567
|
filterOption: import('../Select').FilterOption;
|
572
568
|
virtualListProps: import('../Select').VirtualListProps;
|
569
|
+
triggerProps: import('..').TriggerProps;
|
573
570
|
searchDelay: number;
|
574
571
|
showHeaderOnEmpty: boolean;
|
575
572
|
showFooterOnEmpty: boolean;
|
@@ -581,14 +578,14 @@ declare function __VLS_template(): {
|
|
581
578
|
onClear?: (() => any) | undefined;
|
582
579
|
onSelect?: ((value: import('../Select').SelectValue) => any) | undefined;
|
583
580
|
onSearch?: ((value: string) => any) | undefined;
|
584
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
585
581
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
586
582
|
"onUpdate:inputValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
587
583
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
584
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
588
585
|
onExceedLimit?: ((value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
589
586
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
590
587
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
591
|
-
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "loading" | "error" | "scrollbar" | "multiple" | "placeholder" | "
|
588
|
+
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "loading" | "error" | "scrollbar" | "multiple" | "placeholder" | "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<{
|
592
589
|
focus(): void;
|
593
590
|
blur(): void;
|
594
591
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -710,11 +707,11 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
710
707
|
strict: boolean;
|
711
708
|
type: "textarea" | "input";
|
712
709
|
data: SelectOptions;
|
713
|
-
triggerProps: import('..').TriggerProps;
|
714
710
|
modelValue: string;
|
715
711
|
defaultValue: string;
|
716
712
|
allowClear: boolean;
|
717
713
|
filterOption: (inputValue: string, option: SelectOptionData) => boolean;
|
714
|
+
triggerProps: import('..').TriggerProps;
|
718
715
|
isSelectSetValue: boolean;
|
719
716
|
isSearch: boolean;
|
720
717
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
@@ -738,7 +735,6 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
738
735
|
readonly maxTagCount?: number | undefined;
|
739
736
|
readonly popupContainer?: import('..').PopupContainer | undefined;
|
740
737
|
readonly bordered?: boolean | undefined;
|
741
|
-
readonly defaultActivefirstOption?: boolean | undefined;
|
742
738
|
readonly popupVisible?: boolean | undefined;
|
743
739
|
readonly defaultPopupVisible?: boolean | undefined;
|
744
740
|
readonly unmountonClose?: boolean | undefined;
|
@@ -765,10 +761,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
765
761
|
readonly onClear?: (() => any) | undefined;
|
766
762
|
readonly onSelect?: ((value: import('../Select').SelectValue) => any) | undefined;
|
767
763
|
readonly onSearch?: ((value: string) => any) | undefined;
|
768
|
-
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
769
764
|
readonly "onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
770
765
|
readonly "onUpdate:inputValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
771
766
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
767
|
+
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
772
768
|
readonly onExceedLimit?: ((value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
773
769
|
readonly "onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
774
770
|
readonly "onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
@@ -1042,10 +1038,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1042
1038
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
1043
1039
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1044
1040
|
readonly onInput?: ((value: string) => any) | undefined;
|
1045
|
-
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1046
1041
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
1047
1042
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1048
1043
|
readonly "onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
1044
|
+
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1049
1045
|
readonly "onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
1050
1046
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
1051
1047
|
$attrs: {
|
@@ -1063,17 +1059,17 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1063
1059
|
$root: import('vue').ComponentPublicInstance | null;
|
1064
1060
|
$parent: import('vue').ComponentPublicInstance | null;
|
1065
1061
|
$host: Element | null;
|
1066
|
-
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "
|
1062
|
+
$emit: ((event: "focus", ev: FocusEvent) => void) & ((event: "clear", ev: MouseEvent) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "input", value: string) => void) & ((event: "update:modelValue", value: import('..').InputTagValue) => void) & ((event: "update:inputValue", value: string) => void) & ((event: "input-value-change", value: string, ev: Event) => void) & ((event: "remove", value: string | number, ev: MouseEvent | KeyboardEvent) => void) & ((event: "press-enter", ev: KeyboardEvent) => void);
|
1067
1063
|
$el: HTMLDivElement;
|
1068
1064
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
1069
1065
|
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
1070
1066
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
1071
1067
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1072
1068
|
onInput?: ((value: string) => any) | undefined;
|
1073
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1074
1069
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
1075
1070
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1076
1071
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
1072
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1077
1073
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
1078
1074
|
}>, {
|
1079
1075
|
focus(): void;
|
@@ -1083,10 +1079,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1083
1079
|
clear: (ev: MouseEvent) => any;
|
1084
1080
|
blur: (ev: FocusEvent) => any;
|
1085
1081
|
input: (value: string) => any;
|
1086
|
-
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
1087
1082
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
1088
1083
|
"update:inputValue": (value: string) => any;
|
1089
1084
|
"input-value-change": (value: string, ev: Event) => any;
|
1085
|
+
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
1090
1086
|
"press-enter": (ev: KeyboardEvent) => any;
|
1091
1087
|
}, string, {
|
1092
1088
|
size: import('..').Size;
|
@@ -1147,10 +1143,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1147
1143
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
1148
1144
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
1149
1145
|
onInput?: ((value: string) => any) | undefined;
|
1150
|
-
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1151
1146
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
1152
1147
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
1153
1148
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
1149
|
+
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
1154
1150
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
1155
1151
|
}>, "focus" | "blur" | ("size" | "disabled" | "error" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
1156
1152
|
focus(): void;
|
@@ -1165,7 +1161,7 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1165
1161
|
$root: import('vue').ComponentPublicInstance | null;
|
1166
1162
|
$parent: import('vue').ComponentPublicInstance | null;
|
1167
1163
|
$host: Element | null;
|
1168
|
-
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: import('../Select').SelectValue) => void) & ((event: "search", value: string) => void) & ((event: "
|
1164
|
+
$emit: ((event: "change", value: import('../Select').SelectValue) => void) & ((event: "update:popupVisible", value: boolean) => void) & ((event: "popup-visible-change", value: boolean) => void) & ((event: "clear") => void) & ((event: "select", value: import('../Select').SelectValue) => void) & ((event: "search", value: string) => void) & ((event: "update:modelValue", value: import('../Select').SelectValue) => void) & ((event: "update:inputValue", value: import('../Select').SelectValue) => void) & ((event: "input-value-change", value: string) => void) & ((event: "remove", index: string | number, ev: Event) => void) & ((event: "exceedLimit", value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => void) & ((event: "dropdown-scroll", ev: Event) => void) & ((event: "dropdown-reach-bottom", ev: Event) => void);
|
1169
1165
|
$el: any;
|
1170
1166
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../Select').SelectProps> & Readonly<{
|
1171
1167
|
onChange?: ((value: import('../Select').SelectValue) => any) | undefined;
|
@@ -1174,10 +1170,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1174
1170
|
onClear?: (() => any) | undefined;
|
1175
1171
|
onSelect?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1176
1172
|
onSearch?: ((value: string) => any) | undefined;
|
1177
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1178
1173
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1179
1174
|
"onUpdate:inputValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1180
1175
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1176
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1181
1177
|
onExceedLimit?: ((value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1182
1178
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1183
1179
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
@@ -1192,10 +1188,10 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1192
1188
|
clear: () => any;
|
1193
1189
|
select: (value: import('../Select').SelectValue) => any;
|
1194
1190
|
search: (value: string) => any;
|
1195
|
-
remove: (index: string | number, ev: Event) => any;
|
1196
1191
|
"update:modelValue": (value: import('../Select').SelectValue) => any;
|
1197
1192
|
"update:inputValue": (value: import('../Select').SelectValue) => any;
|
1198
1193
|
"input-value-change": (value: string) => any;
|
1194
|
+
remove: (index: string | number, ev: Event) => any;
|
1199
1195
|
exceedLimit: (value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any;
|
1200
1196
|
"dropdown-scroll": (ev: Event) => any;
|
1201
1197
|
"dropdown-reach-bottom": (ev: Event) => any;
|
@@ -1210,7 +1206,6 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1210
1206
|
scrollbar: boolean;
|
1211
1207
|
multiple: boolean;
|
1212
1208
|
placeholder: string;
|
1213
|
-
triggerProps: import('..').TriggerProps;
|
1214
1209
|
bordered: boolean;
|
1215
1210
|
modelValue: import('../Select').SelectValue;
|
1216
1211
|
defaultValue: import('../Select').SelectValue;
|
@@ -1226,9 +1221,9 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1226
1221
|
showEmpty: boolean;
|
1227
1222
|
allowCreate: boolean;
|
1228
1223
|
maxTagCount: number;
|
1229
|
-
defaultActivefirstOption: boolean;
|
1230
1224
|
filterOption: import('../Select').FilterOption;
|
1231
1225
|
virtualListProps: import('../Select').VirtualListProps;
|
1226
|
+
triggerProps: import('..').TriggerProps;
|
1232
1227
|
searchDelay: number;
|
1233
1228
|
showHeaderOnEmpty: boolean;
|
1234
1229
|
showFooterOnEmpty: boolean;
|
@@ -1264,7 +1259,6 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1264
1259
|
scrollbar: boolean;
|
1265
1260
|
multiple: boolean;
|
1266
1261
|
placeholder: string;
|
1267
|
-
triggerProps: import('..').TriggerProps;
|
1268
1262
|
bordered: boolean;
|
1269
1263
|
modelValue: import('../Select').SelectValue;
|
1270
1264
|
defaultValue: import('../Select').SelectValue;
|
@@ -1280,9 +1274,9 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1280
1274
|
showEmpty: boolean;
|
1281
1275
|
allowCreate: boolean;
|
1282
1276
|
maxTagCount: number;
|
1283
|
-
defaultActivefirstOption: boolean;
|
1284
1277
|
filterOption: import('../Select').FilterOption;
|
1285
1278
|
virtualListProps: import('../Select').VirtualListProps;
|
1279
|
+
triggerProps: import('..').TriggerProps;
|
1286
1280
|
searchDelay: number;
|
1287
1281
|
showHeaderOnEmpty: boolean;
|
1288
1282
|
showFooterOnEmpty: boolean;
|
@@ -1294,14 +1288,14 @@ declare const __VLS_component: import('vue').DefineComponent<AutoCompleteProps,
|
|
1294
1288
|
onClear?: (() => any) | undefined;
|
1295
1289
|
onSelect?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1296
1290
|
onSearch?: ((value: string) => any) | undefined;
|
1297
|
-
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1298
1291
|
"onUpdate:modelValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1299
1292
|
"onUpdate:inputValue"?: ((value: import('../Select').SelectValue) => any) | undefined;
|
1300
1293
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
1294
|
+
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
1301
1295
|
onExceedLimit?: ((value: import('../Select').SelectValue, ev?: MouseEvent | undefined) => any) | undefined;
|
1302
1296
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
1303
1297
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
1304
|
-
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "loading" | "error" | "scrollbar" | "multiple" | "placeholder" | "
|
1298
|
+
}>, "focus" | "blur" | ("size" | "popupVisible" | "defaultPopupVisible" | "disabled" | "popupContainer" | "loading" | "error" | "scrollbar" | "multiple" | "placeholder" | "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<{
|
1305
1299
|
focus(): void;
|
1306
1300
|
blur(): void;
|
1307
1301
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js")
|
1
|
+
"use strict";const e=require("vue"),t=require("../node_modules/@vueuse/core/index.js");require("../node_modules/tinycolor2/esm/tinycolor.js");const r=require("../_shared/utils/dom.js");require("../_shared/utils/time.js"),require("../Empty/index.js");/* empty css */const a=require("../_shared/icons/IconImageClose.vue.js"),o=require("./hooks/useContext.js"),l={key:1,class:"yc-avatar-image"},s=["src"],i={key:1,class:"yc-avatar-image-icon"},n=e.defineComponent({name:"Avatar",__name:"Avatar",props:{shape:{default:void 0},imageUrl:{default:""},size:{default:void 0},autoFixFontSize:{type:Boolean,default:void 0},triggerType:{default:"button"},triggerIconStyle:{default:()=>({})},objectFit:{default:"cover"}},emits:["click","error","load"],setup(n,{emit:c}){const u=n,m=c,{size:d,autoFixFontSize:v,shape:y}=o().inject(u),f=e.ref(!1),g=e.ref(1),k=e.ref(),p=e.ref(),h=e.computed(()=>{var e;return null==(e=k.value)?void 0:e.querySelector("img")}),B=e=>{f.value=!0,m("error",e)};return v.value&&t.useResizeObserver(k,()=>{const e=d.value??p.value.offsetWidth,t=e/(k.value.offsetWidth+8);g.value=e&&t<1?t:1}),(t,o)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-avatar",`yc-avatar-shape-${e.unref(y)}`]),style:e.normalizeStyle({width:e.unref(r.valueToPx)(e.unref(d)),height:e.unref(r.valueToPx)(e.unref(d))}),ref_key:"avatarRef",ref:p,onClick:o[1]||(o[1]=e=>t.$emit("click",e))},[t.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass([h.value?"yc-avatar-image":"yc-avatar-text"]),style:e.normalizeStyle({transform:h.value?"":`scale(${g.value}) translateX(-50%)`}),ref_key:"textRef",ref:k},[e.renderSlot(t.$slots,"default",{},void 0,!0)],6)):t.imageUrl?(e.openBlock(),e.createElementBlock("span",l,[f.value?(e.openBlock(),e.createElementBlock("div",i,[e.createVNode(e.unref(a))])):(e.openBlock(),e.createElementBlock("img",{key:0,src:t.imageUrl,style:e.normalizeStyle({objectFit:t.objectFit}),alt:"avatar",onLoad:o[0]||(o[0]=e=>t.$emit("load",e)),onError:B},null,44,s))])):e.createCommentVNode("",!0),t.$slots["trigger-icon"]?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass([{"yc-avatar-trigger-icon-button":"button"==t.triggerType,"yc-avatar-trigger-icon-mask":"mask"==t.triggerType}]),style:e.normalizeStyle(t.triggerIconStyle)},[e.renderSlot(t.$slots,"trigger-icon",{},void 0,!0)],6)):e.createCommentVNode("",!0)],6))}});module.exports=n;
|