|
@@ -177,18 +177,18 @@ export interface FormItemType extends FormItem {
|
|
tips?: string; // 提示
|
|
tips?: string; // 提示
|
|
placeholder?: string; // input placeholder
|
|
placeholder?: string; // input placeholder
|
|
type:
|
|
type:
|
|
- | 'text' // string 类型输入框
|
|
|
|
- | 'number'
|
|
|
|
- | 'color'
|
|
|
|
- | 'textarea'
|
|
|
|
- | 'select'
|
|
|
|
- | 'switch'
|
|
|
|
- | 'code'
|
|
|
|
- | 'image'
|
|
|
|
- | 'icon'
|
|
|
|
- | 'slider'
|
|
|
|
- | 'autoComplete'
|
|
|
|
- | 'label'; // 文字,不含输入框;
|
|
|
|
|
|
+ | 'text' // string 类型输入框
|
|
|
|
+ | 'number'
|
|
|
|
+ | 'color'
|
|
|
|
+ | 'textarea'
|
|
|
|
+ | 'select'
|
|
|
|
+ | 'switch'
|
|
|
|
+ | 'code'
|
|
|
|
+ | 'image'
|
|
|
|
+ | 'icon'
|
|
|
|
+ | 'slider'
|
|
|
|
+ | 'autoComplete'
|
|
|
|
+ | 'label'; // 文字,不含输入框;
|
|
options?: {
|
|
options?: {
|
|
// 选项
|
|
// 选项
|
|
label: string; // 选项的标题,可以使用 html
|
|
label: string; // 选项的标题,可以使用 html
|
|
@@ -1607,8 +1607,64 @@ export const formComponents = [
|
|
name: '树',
|
|
name: '树',
|
|
icon: 'l-pc', //l-shu
|
|
icon: 'l-pc', //l-shu
|
|
data: {
|
|
data: {
|
|
|
|
+ name:'leTree',
|
|
width: 200,
|
|
width: 200,
|
|
height: 200,
|
|
height: 200,
|
|
|
|
+ expanded:['1','2'],
|
|
|
|
+ data:[
|
|
|
|
+ {
|
|
|
|
+ label:'1',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'1-1'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'1-2'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'2',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'2-1',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'2-1-1',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'2-1-1-1'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'2-2-2-2'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'2-2-2'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'2-2'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'3'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'4',
|
|
|
|
+ children:[
|
|
|
|
+ {
|
|
|
|
+ label:'4-1'
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ label:'4-2'
|
|
|
|
+ }
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -2131,8 +2187,40 @@ export const formComponents = [
|
|
name: '分页',
|
|
name: '分页',
|
|
icon: 'l-pc', //l-fenye
|
|
icon: 'l-pc', //l-fenye
|
|
data: {
|
|
data: {
|
|
- width: 200,
|
|
|
|
|
|
+ name: 'lePagination',
|
|
|
|
+ width: 300,
|
|
height: 200,
|
|
height: 200,
|
|
|
|
+ size: 'small',
|
|
|
|
+ total:25,
|
|
|
|
+ pageSize:5,
|
|
|
|
+ current:1,
|
|
|
|
+ maxPageBtn:5,
|
|
|
|
+ pageSizeOptions:[5,10,20,30],
|
|
|
|
+ props: {
|
|
|
|
+ custom: [
|
|
|
|
+ {
|
|
|
|
+ key: 'total',
|
|
|
|
+ label: '数据总条数',
|
|
|
|
+ type: 'number',
|
|
|
|
+ min: 0,
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'pageSize',
|
|
|
|
+ label: '每页数据量',
|
|
|
|
+ type: 'number',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'pageSizeOptions',
|
|
|
|
+ label: '分页大小控制器',
|
|
|
|
+ type: 'Array',
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ key: 'maxPageBtn',
|
|
|
|
+ label: '最多显示页码按钮数',
|
|
|
|
+ type: 'number',
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
},
|
|
},
|
|
},
|
|
},
|
|
{
|
|
{
|