发布时间:2023-03-22 11:30
创建components文件夹,并且创建封装组件
{{item.render(scope.row)}}
{{scope.row[item.param]}}
{{item.label}}
2.Select——选择器
{{item[itemIndex]}}
{{ optionKey ? item[optionKey.value] : item.label }}
首页
{{ level1 }}
{{ level2 }}
7.Dialog——对话框
查询
重置
// 按钮、表格、面包屑、分页器、输入框、选择器、对话框、表单组件导入
import Breadcrumb from './components/BreadCrumb.vue'
import Button from './components/Button.vue';
import Table from './components/Table.vue';
import Select from './components/Select.vue'
import Pagination from './components/Pagination.vue'
import Input from './components/Input.vue'
import Dialog from './components/Dialog.vue'
import Form from './components/Form.vue'
const Loading = {
install:(Vue =>{
// 按钮、表格、面包屑、分页器、输入框、选择器、对话框、表单组件
Vue.component('Button',Button)
Vue.component('Table',Table)
Vue.component('Breadcrumb',Breadcrumb)
Vue.component('Select',Select)
Vue.component('Pagination',Pagination)
Vue.component('Input',Input)
Vue.component('Dialog',Dialog)
Vue.component('Form',Form)
})
}
Vue.use(Loading);
{{props.scope.row.status === 0 ? '启用' : '禁用'}}
效果图如下: