chore: clean codes
This commit is contained in:
parent
3e23aaa894
commit
ece1e59c9a
@ -55,8 +55,9 @@ export const auditLogsTableColumnInitializers = new SchemaInitializer({
|
|||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
|
'x-toolbar': 'TableColumnSchemaToolbar',
|
||||||
|
'x-settings': 'fieldSettings:TableColumn',
|
||||||
'x-decorator': 'TableV2.Column.Decorator',
|
'x-decorator': 'TableV2.Column.Decorator',
|
||||||
'x-designer': 'TableV2.Column.Designer',
|
|
||||||
'x-component': 'TableV2.Column',
|
'x-component': 'TableV2.Column',
|
||||||
properties: {
|
properties: {
|
||||||
[s.name]: {
|
[s.name]: {
|
||||||
|
@ -158,9 +158,9 @@ export const createSchema = () => {
|
|||||||
'x-component': 'Select',
|
'x-component': 'Select',
|
||||||
'x-read-pretty': true,
|
'x-read-pretty': true,
|
||||||
enum: [
|
enum: [
|
||||||
{ label: "{{ t('Add new') }}", value: 'create', color: 'green' },
|
{ label: tval('Add new'), value: 'create', color: 'green' },
|
||||||
{ label: "{{ t('Update') }}", value: 'update', color: 'blue' },
|
{ label: tval('Update'), value: 'update', color: 'blue' },
|
||||||
{ label: "{{ t('Delete') }}", value: 'destroy', color: 'red' },
|
{ label: tval('Delete'), value: 'destroy', color: 'red' },
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -175,7 +175,7 @@ export const createSchema = () => {
|
|||||||
},
|
},
|
||||||
properties: {
|
properties: {
|
||||||
[uid()]: {
|
[uid()]: {
|
||||||
title: '{{ t("View") }}',
|
title: tval('View'),
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-action': 'view',
|
'x-action': 'view',
|
||||||
'x-component': 'Action.Link',
|
'x-component': 'Action.Link',
|
||||||
@ -189,7 +189,7 @@ export const createSchema = () => {
|
|||||||
'x-component-props': {
|
'x-component-props': {
|
||||||
className: 'nb-action-popup',
|
className: 'nb-action-popup',
|
||||||
},
|
},
|
||||||
title: '{{ t("View record") }}',
|
title: tval('View record'),
|
||||||
properties: {
|
properties: {
|
||||||
created_at: {
|
created_at: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -266,7 +266,7 @@ export const createSchema = () => {
|
|||||||
column2: {
|
column2: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Table.Column',
|
'x-component': 'Table.Column',
|
||||||
'x-component-props': { title: "{{ t('Before change') }}" },
|
'x-component-props': { title: tval('Before change') },
|
||||||
properties: {
|
properties: {
|
||||||
before: {
|
before: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
@ -278,7 +278,7 @@ export const createSchema = () => {
|
|||||||
column3: {
|
column3: {
|
||||||
type: 'void',
|
type: 'void',
|
||||||
'x-component': 'Table.Column',
|
'x-component': 'Table.Column',
|
||||||
'x-component-props': { title: "{{ t('After change') }}" },
|
'x-component-props': { title: tval('After change') },
|
||||||
properties: {
|
properties: {
|
||||||
after: {
|
after: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
Loading…
Reference in New Issue
Block a user