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
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| ... | 继承Dialog 和 BaseJsonForm属性 | - | - | |
| cancelButtonText | 取消文案 | string | '取消' | |
| confirmButtonText | 确定文案 | string | '确定' | |
| width | 尺寸 | string | - |