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
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../node_modules/nanoid/index.browser.js"),a=require("../
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),l=require("../node_modules/nanoid/index.browser.js"),a=require("../_shared/utils/is.js"),u=require("../node_modules/@vueuse/core/index.js"),t=require("../_shared/utils/dom.js"),o=require("../_shared/utils/control.js"),r=require("../_shared/utils/global-config.js"),n=require("../Tag/index.js"),i=;/* empty css */;/* empty css */const s=;/* empty css */,/* empty css */;/* empty css */const d=["disabled","readonly","placeholder"],c=e.defineComponent({name:"InputTag",__name:"index",props:{modelValue:{default:void 0},defaultValue:{default:()=>[]},inputValue:{default:void 0},defaultInputValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{default:void 0},maxTagCount:{default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{},uniqueValue:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1},fieldNames:{default:()=>({id:"id",label:"label",value:"value",closeable:"closeable",tagProps:"tagProps"})},allowCreate:{type:Boolean,default:!0}},emits:["update:modelValue","update:inputValue","input","input-value-change","focus","blur","press-enter","remove","clear"],setup(c,{expose:v,emit:p}){const f=e.useSlots(),m=c,g=p,{modelValue:b,defaultValue:h,inputValue:y,defaultInputValue:x,allowClear:k,disabled:V,readonly:w,uniqueValue:C,retainInputValue:B,allowCreate:_,maxTagCount:j,fieldNames:q,tagNowrap:N}=e.toRefs(m),{size:T}=r.getGlobalConfig(m),S=e.ref(),E=e.ref(),I=e.computed(()=>Object.fromEntries(["id","label","value","closable","tagProps"].map(e=>[e,q.value[e]??e]))),{width:P}=u.useElementSize(E,void 0,{box:"border-box"}),z=o.useControlValue(b,h.value,e=>g("update:modelValue",e),e=>{const{id:u,label:t,value:o,closable:r,tagProps:n}=I.value;return e.map(e=>{if(a.isObject(e)){const a=e;return a[u]=a[u]??l.nanoid(),a[r]=a[r]??!0,a[n]=a[n]??{bordered:!0,nowrap:N.value},e}const i={};return i[u]=l.nanoid(),i[t]=e,i[o]=e,i[r]=!0,i[n]={bordered:!0,nowrap:N.value},i})}),D=o.useControlValue(y,x.value,e=>{g("update:inputValue",e)}),L=e.computed(()=>({visibleList:j.value>0?z.value.slice(0,j.value):z.value,hideList:z.value.slice(j.value)})),O=e.computed(()=>k.value&&!V.value&&!w.value&&z.value.length),M=()=>{a.isBoolean(B.value)&&B.value||a.isObject(B.value)&&B.value.create||(D.value="")},R=(e,a,u)=>{var t,o;const r=null==(t=D.value)?void 0:t.trim();switch(e){case"input":case"input-value-change":{const{value:l}=a.target;g(e,l,a)}break;case"focus":case"blur":g(e,a),"blur"==e&&M();break;case"pressEnter":{const{label:e,value:u,id:t}=I.value,o=!C.value||C.value&&!z.value.find(e=>((null==e?void 0:e[u])??e)==r);if(!r||!_.value||!o)return;const n={};n[t]=l.nanoid(),n[e]=D.value,n[u]=D.value,z.value=[...z.value,n],g("press-enter",a),M()}break;case"close":{const e=z.value,l=e.find(e=>e.id==u);z.value=e.filter(e=>e.id!=u),g("remove",null==l?void 0:l.value,a)}break;case"remove":{if(r||!(null==(o=z.value)?void 0:o.length))return;const e=z.value[z.value.length-1];z.value=z.value.slice(0,z.value.length-1),g("remove",e.value,a)}break;case"clear":z.value=[],g("clear",a)}};return v({focus(){var e;null==(e=S.value)||e.focus()},blur(){var e;null==(e=S.value)||e.blur()}}),(l,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["yc-input-tag",`yc-input-tag-size-${e.unref(T)}`,{"yc-input-tag-no-value":!e.unref(z).length,"yc-input-tag-disabled":e.unref(V),"yc-input-tag-error":l.error,"yc-input-tag-has-suffix":f.suffix||O.value}]),onMousedown:a[8]||(a[8]=e=>e.preventDefault()),onClick:a[9]||(a[9]=e=>{var l;return null==(l=S.value)?void 0:l.focus()})},[f.prefix?(e.openBlock(),e.createBlock(e.unref(s.default),{key:0,class:"yc-input-tag-prefix"},{default:e.withCtx(()=>[e.renderSlot(l.$slots,"prefix")]),_:3})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"yc-input-tag-mirror",ref_key:"mirrorRef",ref:E},e.toDisplayString(e.unref(D)||(e.unref(z).length?"":l.placeholder)),513),e.createVNode(e.TransitionGroup,{name:"input-tag-zoom",tag:"div",class:"yc-input-tag-inner"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(L.value.visibleList,a=>e.renderSlot(l.$slots,"tag",{key:null==a?void 0:a[I.value.id],tag:a},()=>[e.createVNode(e.unref(n.default),{closable:a[I.value.closable],bordered:a[I.value.tagProps].bordered,nowrap:a[I.value.tagProps].nowrap,checked:!1,onClose:e=>R("close",e,null==a?void 0:a[I.value.id])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(l.formatTag?l.formatTag(a):a[I.value.label]),1)]),_:2},1032,["closable","bordered","nowrap","onClose"])])),128)),e.unref(j)>0&&e.unref(z).length>e.unref(j)?(e.openBlock(),e.createBlock(e.unref(n.default),{nowrap:e.unref(N),checked:!1,bordered:"",key:"yc-select-value-tag"},{default:e.withCtx(()=>[e.createTextVNode(" +"+e.toDisplayString(L.value.hideList.length)+"... ",1)]),_:1},8,["nowrap"])):e.createCommentVNode("",!0),e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":a[0]||(a[0]=l=>e.isRef(D)?D.value=l:null),key:"yc-input-tag-input",disabled:e.unref(V),readonly:e.unref(w),placeholder:e.unref(z).length?"":l.placeholder,style:e.normalizeStyle({width:e.unref(t.valueToPx)(e.unref(P))}),class:"yc-input-tag-input",ref_key:"inputRef",ref:S,onInput:a[1]||(a[1]=e=>R("input",e)),onChange:a[2]||(a[2]=e=>R("input-value-change",e)),onFocus:a[3]||(a[3]=e=>R("focus",e)),onBlur:a[4]||(a[4]=e=>R("blur",e)),onKeydown:[a[5]||(a[5]=e.withKeys(e=>R("pressEnter",e),["enter"])),a[6]||(a[6]=e.withKeys(e=>R("remove",e),["delete"]))]},null,44,d),[[e.vModelText,e.unref(D)]])]),_:3}),f.suffix||O.value?(e.openBlock(),e.createBlock(e.unref(s.default),{key:1,class:"yc-input-tag-suffix"},{default:e.withCtx(()=>[O.value?(e.openBlock(),e.createBlock(e.unref(i.default),{key:0,class:"yc-input-tag-clear-button",onClick:a[7]||(a[7]=e=>R("clear",e))})):e.createCommentVNode("",!0),e.renderSlot(l.$slots,"suffix")]),_:3})):e.createCommentVNode("",!0)],34))}});exports.default=c;
|
@@ -6,11 +6,10 @@ export type LayoutContext = {
|
|
6
6
|
theme: Ref<Theme | undefined>;
|
7
7
|
collapsed: Ref<boolean>;
|
8
8
|
};
|
9
|
-
|
9
|
+
export default function useLayoutContext(): {
|
10
10
|
provide: (props: RecordType, emits: LayoutSiderEmits) => {
|
11
11
|
theme: import('vue').ComputedRef<Theme>;
|
12
12
|
computedCollapsed: import('vue').WritableComputedRef<boolean, boolean>;
|
13
13
|
};
|
14
14
|
inject: () => LayoutContext;
|
15
15
|
};
|
16
|
-
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),t=require("../../_shared/utils/control.js"),o="LAYOUT-CONTEXT";exports.LAYOUT_CONTEXT_KEY=o,exports.default=function(){return{provide:(l,r)=>{const{collapsed:u,defaultCollapsed:s,theme:d}=e.toRefs(l),a=t.useControlValue(u,s.value,e=>{r("update:collapsed",e)}),p=e.computed(()=>d.value||"light");return e.provide(o,{theme:d,collapsed:a}),{theme:p,computedCollapsed:a}},inject:()=>e.inject(o,{theme:e.ref(void 0),collapsed:e.ref(!1)})}};
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../node_modules/@vueuse/core/index.js"),o=require("../../_shared/utils/dom.js");exports.default=l=>{const{scrollRef:t,offset:r,onReachBottom:u,onReachLeft:n,onReachRight:s,onReachTop:c,onScroll:
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}}),require("vue");const e=require("../../node_modules/@vueuse/core/index.js"),o=require("../../_shared/utils/dom.js");exports.default=l=>{const{scrollRef:t,offset:r,onReachBottom:u,onReachLeft:n,onReachRight:s,onReachTop:c,onScroll:i}=l,{arrivedState:a}=e.useScroll(t,{onScroll:o.debounce(e=>{null==i||i(e,a),a.bottom&&(null==u||u(e)),a.left&&(null==n||n(e)),a.right&&(null==s||s(e)),a.top&&(null==c||c(e))},50),offset:r})};
|
package/lib/Mention/index.d.ts
CHANGED
@@ -5,24 +5,24 @@ export * from './type';
|
|
5
5
|
declare const Mention: {
|
6
6
|
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./type').MentionProps> & Readonly<{
|
7
7
|
onChange?: ((value: string) => any) | undefined;
|
8
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
9
8
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
10
9
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
11
10
|
onSearch?: ((value: string) => any) | undefined;
|
12
11
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
13
12
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
13
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
14
14
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
15
15
|
}>, {
|
16
16
|
focus(): void;
|
17
17
|
blur(): void;
|
18
18
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
19
19
|
change: (value: string) => any;
|
20
|
-
focus: (ev: FocusEvent) => any;
|
21
20
|
clear: (ev: MouseEvent) => any;
|
22
21
|
input: (value: string, ev: Event) => any;
|
23
22
|
search: (value: string) => any;
|
24
23
|
select: (value: import('..').SelectOptionValue) => any;
|
25
24
|
blur: (ev: FocusEvent) => any;
|
25
|
+
focus: (ev: FocusEvent) => any;
|
26
26
|
"update:modelValue": (value: string) => any;
|
27
27
|
}, import('vue').PublicProps, {
|
28
28
|
type: import('./type').MentionType;
|
@@ -52,12 +52,12 @@ declare const Mention: {
|
|
52
52
|
readonly isSearch?: boolean | undefined;
|
53
53
|
readonly type?: "textarea" | "input" | undefined;
|
54
54
|
readonly onChange?: ((value: string) => any) | undefined;
|
55
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
56
55
|
readonly onClear?: ((ev?: Event | undefined) => any) | undefined;
|
57
56
|
readonly onInput?: ((value: string, ev: Event) => any) | undefined;
|
58
57
|
readonly onSearch?: ((value: string) => any) | undefined;
|
59
58
|
readonly onSelect?: ((value: string) => any) | undefined;
|
60
59
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
60
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
61
61
|
readonly onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
62
62
|
readonly "onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
63
63
|
readonly "onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
@@ -110,12 +110,12 @@ declare const Mention: {
|
|
110
110
|
readonly hotkeys?: boolean | undefined;
|
111
111
|
readonly showEmpty?: boolean | undefined;
|
112
112
|
readonly onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
113
|
-
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
114
|
-
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
115
113
|
readonly onClear?: (() => any) | undefined;
|
116
114
|
readonly onSearch?: ((value: string) => any) | undefined;
|
117
115
|
readonly onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
118
116
|
readonly onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
117
|
+
readonly "onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
118
|
+
readonly "onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
119
119
|
readonly "onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
120
120
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
121
121
|
readonly "onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -388,10 +388,10 @@ declare const Mention: {
|
|
388
388
|
readonly tagNowrap?: boolean | undefined;
|
389
389
|
readonly fieldNames?: Record<string, string> | undefined;
|
390
390
|
readonly allowCreate?: boolean | undefined;
|
391
|
-
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
392
391
|
readonly onClear?: ((ev: MouseEvent) => any) | undefined;
|
393
392
|
readonly onInput?: ((value: string) => any) | undefined;
|
394
393
|
readonly onBlur?: ((ev: FocusEvent) => any) | undefined;
|
394
|
+
readonly onFocus?: ((ev: FocusEvent) => any) | undefined;
|
395
395
|
readonly onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
396
396
|
readonly "onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
397
397
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -413,13 +413,13 @@ declare const Mention: {
|
|
413
413
|
$root: import('vue').ComponentPublicInstance | null;
|
414
414
|
$parent: import('vue').ComponentPublicInstance | null;
|
415
415
|
$host: Element | null;
|
416
|
-
$emit: ((event: "
|
416
|
+
$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);
|
417
417
|
$el: HTMLDivElement;
|
418
418
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').InputTagProps> & Readonly<{
|
419
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
420
419
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
421
420
|
onInput?: ((value: string) => any) | undefined;
|
422
421
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
422
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
423
423
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
424
424
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
425
425
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
@@ -429,10 +429,10 @@ declare const Mention: {
|
|
429
429
|
focus(): void;
|
430
430
|
blur(): void;
|
431
431
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
432
|
-
focus: (ev: FocusEvent) => any;
|
433
432
|
clear: (ev: MouseEvent) => any;
|
434
433
|
input: (value: string) => any;
|
435
434
|
blur: (ev: FocusEvent) => any;
|
435
|
+
focus: (ev: FocusEvent) => any;
|
436
436
|
remove: (value: string | number, ev: MouseEvent | KeyboardEvent) => any;
|
437
437
|
"update:modelValue": (value: import('..').InputTagValue) => any;
|
438
438
|
"update:inputValue": (value: string) => any;
|
@@ -493,16 +493,16 @@ declare const Mention: {
|
|
493
493
|
retainInputValue: import('..').InputRetainValue;
|
494
494
|
uniqueValue: boolean;
|
495
495
|
}> & Omit<Readonly<import('..').InputTagProps> & Readonly<{
|
496
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
497
496
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
498
497
|
onInput?: ((value: string) => any) | undefined;
|
499
498
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
499
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
500
500
|
onRemove?: ((value: string | number, ev: MouseEvent | KeyboardEvent) => any) | undefined;
|
501
501
|
"onUpdate:modelValue"?: ((value: import('..').InputTagValue) => any) | undefined;
|
502
502
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
503
503
|
"onInput-value-change"?: ((value: string, ev: Event) => any) | undefined;
|
504
504
|
"onPress-enter"?: ((ev: KeyboardEvent) => any) | undefined;
|
505
|
-
}>, "
|
505
|
+
}>, "blur" | "focus" | ("size" | "error" | "disabled" | "placeholder" | "modelValue" | "defaultValue" | "allowClear" | "readonly" | "inputValue" | "defaultInputValue" | "fieldNames" | "allowCreate" | "maxTagCount" | "tagNowrap" | "retainInputValue" | "uniqueValue")> & import('vue').ShallowUnwrapRef<{
|
506
506
|
focus(): void;
|
507
507
|
blur(): void;
|
508
508
|
}> & {} & import('@vue/runtime-core').ComponentCustomProperties & {} & {
|
@@ -515,16 +515,16 @@ declare const Mention: {
|
|
515
515
|
$root: import('vue').ComponentPublicInstance | null;
|
516
516
|
$parent: import('vue').ComponentPublicInstance | null;
|
517
517
|
$host: Element | null;
|
518
|
-
$emit: ((event: "change", value: import('..').SelectValue) => void) & ((event: "
|
518
|
+
$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);
|
519
519
|
$el: any;
|
520
520
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').SelectProps> & Readonly<{
|
521
521
|
onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
522
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
523
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
524
522
|
onClear?: (() => any) | undefined;
|
525
523
|
onSearch?: ((value: string) => any) | undefined;
|
526
524
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
527
525
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
526
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
527
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
528
528
|
"onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
529
529
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
530
530
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
@@ -537,12 +537,12 @@ declare const Mention: {
|
|
537
537
|
getPopupRef(): import('..').TriggerInstance;
|
538
538
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
539
539
|
change: (value: import('..').SelectValue) => any;
|
540
|
-
"update:popupVisible": (value: boolean) => any;
|
541
|
-
"popup-visible-change": (value: boolean) => any;
|
542
540
|
clear: () => any;
|
543
541
|
search: (value: string) => any;
|
544
542
|
select: (value: import('..').SelectOptionValue) => any;
|
545
543
|
remove: (index: string | number, ev: Event) => any;
|
544
|
+
"update:popupVisible": (value: boolean) => any;
|
545
|
+
"popup-visible-change": (value: boolean) => any;
|
546
546
|
"update:modelValue": (value: import('..').SelectValue) => any;
|
547
547
|
"update:inputValue": (value: string) => any;
|
548
548
|
"input-value-change": (value: string) => any;
|
@@ -637,19 +637,19 @@ declare const Mention: {
|
|
637
637
|
tagNowrap: boolean;
|
638
638
|
}> & Omit<Readonly<import('..').SelectProps> & Readonly<{
|
639
639
|
onChange?: ((value: import('..').SelectValue) => any) | undefined;
|
640
|
-
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
641
|
-
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
642
640
|
onClear?: (() => any) | undefined;
|
643
641
|
onSearch?: ((value: string) => any) | undefined;
|
644
642
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
645
643
|
onRemove?: ((index: string | number, ev: Event) => any) | undefined;
|
644
|
+
"onUpdate:popupVisible"?: ((value: boolean) => any) | undefined;
|
645
|
+
"onPopup-visible-change"?: ((value: boolean) => any) | undefined;
|
646
646
|
"onUpdate:modelValue"?: ((value: import('..').SelectValue) => any) | undefined;
|
647
647
|
"onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
648
648
|
"onInput-value-change"?: ((value: string) => any) | undefined;
|
649
649
|
onExceedLimit?: ((value: import('..').SelectOptionValue, ev?: MouseEvent | undefined) => any) | undefined;
|
650
650
|
"onDropdown-scroll"?: ((ev: Event) => any) | undefined;
|
651
651
|
"onDropdown-reach-bottom"?: ((ev: Event) => any) | undefined;
|
652
|
-
}>, "
|
652
|
+
}>, "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<{
|
653
653
|
focus(): void;
|
654
654
|
blur(): void;
|
655
655
|
getPopupRef(): import('..').TriggerInstance;
|
@@ -658,10 +658,10 @@ declare const Mention: {
|
|
658
658
|
}) | null;
|
659
659
|
inputRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('..').TextareaProps> & Readonly<{
|
660
660
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
661
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
662
661
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
663
662
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
664
663
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
664
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
665
665
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
666
666
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
667
667
|
}>, {
|
@@ -671,10 +671,10 @@ declare const Mention: {
|
|
671
671
|
getMirrorRef(): HTMLDivElement;
|
672
672
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
673
673
|
change: (value: string, ev: Event) => any;
|
674
|
-
focus: (ev: FocusEvent) => any;
|
675
674
|
clear: (ev: MouseEvent) => any;
|
676
675
|
input: (value: string, ev: Event) => any;
|
677
676
|
blur: (ev: FocusEvent) => any;
|
677
|
+
focus: (ev: FocusEvent) => any;
|
678
678
|
keydown: (ev: KeyboardEvent) => any;
|
679
679
|
"update:modelValue": (value: string) => any;
|
680
680
|
}, import('vue').PublicProps, {
|
@@ -704,10 +704,10 @@ declare const Mention: {
|
|
704
704
|
Defaults: {};
|
705
705
|
}, Readonly<import('..').TextareaProps> & Readonly<{
|
706
706
|
onChange?: ((value: string, ev: Event) => any) | undefined;
|
707
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
708
707
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
709
708
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
710
709
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
710
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
711
711
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
712
712
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
713
713
|
}>, {
|
@@ -738,16 +738,16 @@ declare const Mention: {
|
|
738
738
|
$root: import('vue').ComponentPublicInstance | null;
|
739
739
|
$parent: import('vue').ComponentPublicInstance | null;
|
740
740
|
$host: Element | null;
|
741
|
-
$emit: ((event: "change", value: string) => void) & ((event: "
|
741
|
+
$emit: ((event: "change", value: string) => void) & ((event: "clear", ev?: Event | undefined) => void) & ((event: "input", value: string, ev: Event) => void) & ((event: "search", value: string) => void) & ((event: "select", value: string) => void) & ((event: "blur", ev: FocusEvent) => void) & ((event: "focus", ev: FocusEvent) => void) & ((event: "keydown", ev: KeyboardEvent) => void) & ((event: "update:modelValue", value: string) => void) & ((event: "dropdown-scroll", ev?: Event | undefined) => void) & ((event: "dropdown-reach-bottom", ev?: Event | undefined) => void);
|
742
742
|
$el: any;
|
743
743
|
$options: import('vue').ComponentOptionsBase<Readonly<import('..').AutoCompleteProps> & Readonly<{
|
744
744
|
onChange?: ((value: string) => any) | undefined;
|
745
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
746
745
|
onClear?: ((ev?: Event | undefined) => any) | undefined;
|
747
746
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
748
747
|
onSearch?: ((value: string) => any) | undefined;
|
749
748
|
onSelect?: ((value: string) => any) | undefined;
|
750
749
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
750
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
751
751
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
752
752
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
753
753
|
"onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
@@ -760,12 +760,12 @@ declare const Mention: {
|
|
760
760
|
updatePosition(x: number, y: number): void;
|
761
761
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
762
762
|
change: (value: string) => any;
|
763
|
-
focus: (ev: FocusEvent) => any;
|
764
763
|
clear: (ev?: Event | undefined) => any;
|
765
764
|
input: (value: string, ev: Event) => any;
|
766
765
|
search: (value: string) => any;
|
767
766
|
select: (value: string) => any;
|
768
767
|
blur: (ev: FocusEvent) => any;
|
768
|
+
focus: (ev: FocusEvent) => any;
|
769
769
|
keydown: (ev: KeyboardEvent) => any;
|
770
770
|
"update:modelValue": (value: string) => any;
|
771
771
|
"dropdown-scroll": (ev?: Event | undefined) => any;
|
@@ -818,17 +818,17 @@ declare const Mention: {
|
|
818
818
|
isSearch: boolean;
|
819
819
|
}> & Omit<Readonly<import('..').AutoCompleteProps> & Readonly<{
|
820
820
|
onChange?: ((value: string) => any) | undefined;
|
821
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
822
821
|
onClear?: ((ev?: Event | undefined) => any) | undefined;
|
823
822
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
824
823
|
onSearch?: ((value: string) => any) | undefined;
|
825
824
|
onSelect?: ((value: string) => any) | undefined;
|
826
825
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
826
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
827
827
|
onKeydown?: ((ev: KeyboardEvent) => any) | undefined;
|
828
828
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
829
829
|
"onDropdown-scroll"?: ((ev?: Event | undefined) => any) | undefined;
|
830
830
|
"onDropdown-reach-bottom"?: ((ev?: Event | undefined) => any) | undefined;
|
831
|
-
}>, "
|
831
|
+
}>, "blur" | "focus" | "updatePosition" | "getInputRef" | "getMirrorRef" | ("type" | "data" | "popupContainer" | "disabled" | "strict" | "modelValue" | "defaultValue" | "allowClear" | "filterOption" | "triggerProps" | "isSelectSetValue" | "isSearch")> & import('vue').ShallowUnwrapRef<{
|
832
832
|
focus(): void;
|
833
833
|
blur(): void;
|
834
834
|
getInputRef(): HTMLInputElement | HTMLTextAreaElement | undefined;
|
@@ -846,12 +846,12 @@ declare const Mention: {
|
|
846
846
|
Defaults: {};
|
847
847
|
}, Readonly<import('./type').MentionProps> & Readonly<{
|
848
848
|
onChange?: ((value: string) => any) | undefined;
|
849
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
850
849
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
851
850
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
852
851
|
onSearch?: ((value: string) => any) | undefined;
|
853
852
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
854
853
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
854
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
855
855
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
856
856
|
}>, {
|
857
857
|
focus(): void;
|
@@ -871,24 +871,24 @@ declare const Mention: {
|
|
871
871
|
__isSuspense?: never;
|
872
872
|
} & import('vue').ComponentOptionsBase<Readonly<import('./type').MentionProps> & Readonly<{
|
873
873
|
onChange?: ((value: string) => any) | undefined;
|
874
|
-
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
875
874
|
onClear?: ((ev: MouseEvent) => any) | undefined;
|
876
875
|
onInput?: ((value: string, ev: Event) => any) | undefined;
|
877
876
|
onSearch?: ((value: string) => any) | undefined;
|
878
877
|
onSelect?: ((value: import('..').SelectOptionValue) => any) | undefined;
|
879
878
|
onBlur?: ((ev: FocusEvent) => any) | undefined;
|
879
|
+
onFocus?: ((ev: FocusEvent) => any) | undefined;
|
880
880
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
881
881
|
}>, {
|
882
882
|
focus(): void;
|
883
883
|
blur(): void;
|
884
884
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
885
885
|
change: (value: string) => any;
|
886
|
-
focus: (ev: FocusEvent) => any;
|
887
886
|
clear: (ev: MouseEvent) => any;
|
888
887
|
input: (value: string, ev: Event) => any;
|
889
888
|
search: (value: string) => any;
|
890
889
|
select: (value: import('..').SelectOptionValue) => any;
|
891
890
|
blur: (ev: FocusEvent) => any;
|
891
|
+
focus: (ev: FocusEvent) => any;
|
892
892
|
"update:modelValue": (value: string) => any;
|
893
893
|
}, string, {
|
894
894
|
type: import('./type').MentionType;
|