feat(Overlay): add teleport prop by@inottnin#13087 feat(Field): add min and max props by @dadaguai-git in#13068 Bug Fixes 🐞 fix: use declare module 'vue' instead of @vue/runtime-core by@skywalker512in#13067 fix(vant-area-data): export package.json by@yangmingshanin#13074 ...
feat(Overlay): add teleport prop by @inottn in https://github.com/youzan/vant/pull/13087 feat(Field): add min and max props by @dadaguai-git in https://github.com/youzan/vant/pull/13068 Bug Fixes 🐞 fix: use declare module 'vue' instead of @vue/runtime-core by @...
teleport指定挂载的节点,等同于 Teleport 组件的to 属性string | Element- DropdownItem Events 事件名说明回调参数 change点击选项导致 value 变化时触发value open打开菜单栏时触发- close关闭菜单栏时触发- opened打开菜单栏且动画结束后触发- closed关闭菜单栏且动画结束后触发- ...
teleport指定挂载的节点,等同于 Teleport 组件的to 属性string | Elementbody Props 通过组件调用 Dialog 时,支持以下 Props: 参数说明类型默认值 v-model:show是否显示弹窗boolean- title标题string- width弹窗宽度,默认单位为pxnumber | string320px ...
{ "name" : "overlay-style" , "default" : "-" , "description" : "custom overlay style" , "value" :{ "type" : "object" , "kind" : "expression" }},{ "name" : "teleport" , "default" : "-" , "description" : "specifies a target element where imagepreview will be mounted" ...
{renderTransition()} </Teleport> ); } return ( <> {renderOverlay()} {renderTransition()} </> ); }; }, }); Loading... 马建仓 AI 助手 JavaScript 1 https://gitee.com/vant-contrib/vant.git git@gitee.com:vant-contrib/vant.git vant-contrib vant vant 1bfcbab2fa1...
IndexBar: add teleport prop #8820Bug FixesDialog: allow message function to return html #8872 Slider: format v-model with step correctly #8893v3.0.182021-06-03FeatureButton: add icon slot #8783 CouponList: add list-footer、disabled-list-footer slot #8801 List: remove unused Less v...
{ type: BooleanConstructor; default: true; }; closeOnClickOverlay: { type: BooleanConstructor; default: true; }; closeOnClickOutside: { type: BooleanConstructor; default: true; }; offset: { type: import("vue").PropType<[number, number]>; default: () => number[]; }; teleport: { ...
Vue 3.0 中增加了Teleport组件,提供将组件渲染到任意 DOM 位置的能力,Vant 2.x 也通过get-container属性提供了类似的能力。为了与官方的 API 保持一致,Vant 中的get-container属性将重命名为teleport。 <!-- Vant 2 --><template><van-popupget-container="body"/><van-popup:get-container="getContainer"/>...
close-on-popstate v2.5.3 是否在页面回退时自动关闭 boolean false close-on-click-action 是否在点击选项后关闭 boolean false close-on-click-overlay 是否在点击遮罩层后关闭 boolean true safe-area-inset-bottom 是否开启底部安全区适配 boolean true teleport 指定挂载的节点,用法示例 string / Element - ...