BaseJsonDialog 弹窗
使用场景
- 弹窗需要有展示的表单提交
默认注入tdesign组件, 也可以注入成其他UI组件库
ts
import { type Component, ref } from 'vue';
import { Dialog } from 'tdesign-vue-next';
export const componentMap: Record<string, Component> = {
Dialog,
};
export const registerBaseJsonDialogComponent = (
name: string,
component: Component
) => {
componentMap[name] = component;
};Demo
API
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| ... | 继承Dialog 和 BaseJsonForm属性 | - | - | |
| cancelButtonText | 取消文案 | string | '取消' | |
| confirmButtonText | 确定文案 | string | '确定' |