Skip to content

BaseJsonDrawer 抽屉

使用场景

  • 抽屉需要有展示的表单提交

默认注入tdesign组件, 也可以注入成其他UI组件库

ts
import { type Component, ref } from 'vue';
import { Drawer } from 'tdesign-vue-next';
export const componentMap: Record<string, Component> = {
  Drawer,
};
export const registerBaseJsonDrawerComponent = (
  name: string,
  component: Component
) => {
  componentMap[name] = component;
};

Demo

API

参数说明类型默认值版本
...继承DialogBaseJsonForm属性--
cancelButtonText取消文案string'取消'
confirmButtonText确定文案string'确定'
width尺寸string-