lwx-test-ui
Version:
lwx-test-ui
201 lines (200 loc) • 2.95 kB
JavaScript
const a = {
/**
* 表格主键
*/
rowKey: {
type: String,
default: "id"
},
/**
* 查询接口
*/
queryInterface: {
type: String,
default: ""
},
/**
* 查询条件接口
*/
queryInfoInterface: {
type: String,
default: ""
},
/**
* 保存接口
*/
saveInterface: {
type: String,
default: ""
},
/**
* 修改接口
*/
updateInterface: {
type: String,
default: ""
},
/**
* 删除接口
*/
deleteInterface: {
type: String,
default: ""
},
/**
* 表格列
*/
columns: {
type: Array,
default: () => []
},
/**
* 查询条件
*/
formInline: {
type: Object,
default: () => ({})
},
/**
* 新增实体
*/
addForm: {
type: Object,
default: () => ({})
},
/**
* 操作类型 add edit info
*/
operateType: {
type: String,
default: "add"
},
/**
* 表单校验规则
*/
rules: {
type: Object,
default: () => ({})
},
/**
* 标签宽度
*/
labelWidth: {
type: [String, Number],
default: "90px"
},
/**
* 对话框宽度
*/
dialogWidth: {
type: [String, Number],
default: "35%"
},
/**
* 对话框距离顶部距离
*/
dialogTop: {
type: [String, Number],
default: "15vh"
},
/**
* 对话框标题
*/
dialogTitle: {
type: Object,
default: () => ({
addTitle: "新增",
editTitle: "编辑",
infoTitle: "详情"
})
},
/**
* 显示序号
*/
showIndex: {
type: Boolean,
default: !0
},
/**
* 是否显示选择框
*/
showSelection: {
type: Boolean,
default: !0
},
/**
* 是否默认查询
*/
isDefaultQuery: {
type: Boolean,
default: !0
},
/**
* 是否显示批量删除按钮
*/
showBatchDelBtn: {
type: Boolean,
default: !0
},
/**
* 是否显示分页
*/
showPagination: {
type: Boolean,
default: !0
},
/**
* 是否显示新增按钮
*/
showAddBtn: {
type: Boolean,
default: !0
},
/**
* 是否显示折叠按钮
*/
showFoldBtn: {
type: Boolean,
default: !0
},
/**
* 对话框类型 dialog big-dialog
*/
dialogType: {
type: String,
default: "dialog"
},
/**
* 树形结构属性
*/
treeProps: {
type: Object,
default: () => ({ children: "children", hasChildren: "hasChildren" })
},
/**
* 是否默认展开所有树节点
*/
defaultExpandAll: {
type: Boolean,
default: !0
},
/**
* 对话框是否可见
*/
dialogVisible: {
type: Boolean,
default: !1
}
}, d = {
"update:modelValue": (e) => e,
"update:operateType": (e) => e,
"update:dialogVisible": (e) => e,
currentChange: (e, t) => e,
rowDblclick: (e, t, l) => !0,
selectionChange: (e) => !0,
rowClick: (e, t, l) => !0
};
export {
d as tableProEmits,
a as tableProProps
};