mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 07:15:36 +00:00
feat: add icon field
This commit is contained in:
parent
71b2d9bfeb
commit
ab90b15ffc
@ -33,6 +33,7 @@ export const setup = () => {
|
|||||||
month: DatePicker.MonthPicker,
|
month: DatePicker.MonthPicker,
|
||||||
week: DatePicker.WeekPicker,
|
week: DatePicker.WeekPicker,
|
||||||
string: Input,
|
string: Input,
|
||||||
|
icon: Input,
|
||||||
textarea: Input.TextArea,
|
textarea: Input.TextArea,
|
||||||
number: NumberPicker,
|
number: NumberPicker,
|
||||||
percent: Percent,
|
percent: Percent,
|
||||||
|
@ -52,13 +52,13 @@ export default {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
interface: 'string',
|
interface: 'icon',
|
||||||
type: 'virtual',
|
type: 'virtual',
|
||||||
name: 'icon',
|
name: 'icon',
|
||||||
title: '图标',
|
title: '图标',
|
||||||
defaultValue: 'TableOutlined',
|
defaultValue: 'TableOutlined',
|
||||||
component: {
|
component: {
|
||||||
type: 'string',
|
type: 'icon',
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
showInForm: true,
|
showInForm: true,
|
||||||
showInDetail: true,
|
showInDetail: true,
|
||||||
|
@ -63,6 +63,7 @@ export const options = [
|
|||||||
types.sort,
|
types.sort,
|
||||||
types.password,
|
types.password,
|
||||||
types.json,
|
types.json,
|
||||||
|
types.icon,
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
].map(({title, children}: any) => ({
|
].map(({title, children}: any) => ({
|
||||||
|
@ -472,10 +472,21 @@ export const json = {
|
|||||||
options: {
|
options: {
|
||||||
interface: 'json',
|
interface: 'json',
|
||||||
type: 'json',
|
type: 'json',
|
||||||
dottie: true,
|
mode: 'replace',
|
||||||
// developerMode: true,
|
// developerMode: true,
|
||||||
component: {
|
component: {
|
||||||
type: 'hidden',
|
type: 'hidden',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export const icon = {
|
||||||
|
title: '图标',
|
||||||
|
options: {
|
||||||
|
interface: 'icon',
|
||||||
|
type: 'string',
|
||||||
|
component: {
|
||||||
|
type: 'icon',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user