popupClassName自定义浮层类名string- popupStyle自定义浮层样式object{} popupPlacement浮层预设位置:bottomLeftbottomRighttopLefttopRightEnumbottomLeft popupVisible控制浮层显隐boolean- showSearch在选择框中显示搜索框boolean |objectfalse size输入框大小,可选largedefaultsmallstringdefault ...
icon菜单图标VueNode|(item: SubMenuType)=>VueNode- key唯一标志string | number- label菜单项标题VueNode- popupClassName子菜单样式,mode="inline"时无效string- popupOffset子菜单偏移量,mode="inline"时无效[number, number]- onTitleClick点击子菜单标题function({ key, domEvent })- ...
popupClassName 下拉菜单的 className 属性 string - 4.0 dropdownMatchSelectWidth 下拉菜单和选择器同宽。默认将设置 min-width,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动 boolean | number true dropdownMenuStyle dropdown 菜单自定义样式 object - dropdownRender 自定义下拉框内容 ({menuNode: ...
popupClassName To customize the className of the popup calendar string - getPopupContainer To set the container of the floating layer, while the default is to create a div element in body function(trigger) - inputReadOnly Set the readonly attribute of the input tag (avoids virtual keyboard...
popupClassName下拉菜单的 className 属性string-4.0 dropdownMatchSelectWidth下拉菜单和选择器同宽。默认将设置min-width,当值小于选择框宽度时会被忽略。false 时会关闭虚拟滚动boolean | numbertrue dropdownMenuStyledropdown 菜单自定义样式object1.5.0 filterOption是否根据输入项进行筛选。当其为一个函数时,会接收in...
popupClassName弹出层类名string'' popupStyle弹出层样式对象object- secondStep秒选项间隔number1 suffixIcon自定义的选择框后缀图标string | VNode | slot- clearIcon自定义的清除图标string | VNode | slot-1.5.0 use12Hours使用 12 小时制,为 true 时format默认为h:mm:ss abooleanfalse ...
但是由于mask变量在Trigger中的默认值是false,在Popup中也没有单独处理,所以在这里,mask === false,也就是说dropdown没有Mask蒙层。所以在极简代码中也是注释掉的。 exportdefaultfunctionMask(props:MaskProps){const{prefixCls,visible,zIndex,mask,maskAnimation,maskTransitionName}=props;// 这里的mask是falseif...
如果你使用到了 ant-design-vue 的 less 变量,通过兼容包将 v4 变量转译成 v3 版本,并通过 less-loader 注入: const{theme}=require('ant-design-vue/lib');constconvertLegacyToken=require('ant-design-vue/lib/theme/convertLegacyToken');const{defaultAlgorithm,defaultSeed}=theme;constmapToken=defaultAlgori...
源码地址:https://github.com/vueComponent/ant-design-vue/blob/main/components/vc-trigger/Popup/useVisibleStatus.ts 在源码中有这样一个hook,监控visible的变化,并且提供了当前状态和修改状态的函数。doMeasure是另一个hook提供的函数,目的是得到source节点的宽/高度。
overlayClassName 卡片类名 string 无 overlayStyle 卡片样式 object 无 placement 气泡框位置,可选 top left right bottom topLeft topRight bottomLeft bottomRight leftTop leftBottom rightTop rightBottom string top trigger 触发行为,可选 hover/focus/click/contextmenu string hover ...