fix: action buttons
This commit is contained in:
parent
7ea223be78
commit
250dd26df9
@ -110,10 +110,10 @@ const data = [
|
|||||||
type: 'ali-oss',
|
type: 'ali-oss',
|
||||||
baseUrl: process.env.ALIYUN_STORAGE_BASE_URL,
|
baseUrl: process.env.ALIYUN_STORAGE_BASE_URL,
|
||||||
options: {
|
options: {
|
||||||
region: process.env.ALIYUN_OSS_REGION,// 'oss-cn-beijing',
|
region: process.env.ALIYUN_OSS_REGION,
|
||||||
accessKeyId: process.env.ALIYUN_OSS_ACCESS_KEY_ID,// 'LTAI4GEGDJsdGantisvSaz47',
|
accessKeyId: process.env.ALIYUN_OSS_ACCESS_KEY_ID,
|
||||||
accessKeySecret: process.env.ALIYUN_OSS_ACCESS_KEY_SECRET,//'cDFaOUwigps7ohRmsfBFXGDxNm8uIq',
|
accessKeySecret: process.env.ALIYUN_OSS_ACCESS_KEY_SECRET,
|
||||||
bucket: process.env.ALIYUN_OSS_BUCKET, //'nocobase'
|
bucket: process.env.ALIYUN_OSS_BUCKET,
|
||||||
},
|
},
|
||||||
default: true
|
default: true
|
||||||
});
|
});
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
max-width: 368px;
|
max-width: 368px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
padding-top: 100px;
|
padding-top: 100px;
|
||||||
|
padding: 100px 12px 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ant-form-item-with-help {
|
.ant-form-item-with-help {
|
||||||
|
@ -186,16 +186,6 @@ export default {
|
|||||||
labelField: 'title',
|
labelField: 'title',
|
||||||
draggable: true,
|
draggable: true,
|
||||||
actions: [
|
actions: [
|
||||||
{
|
|
||||||
name: 'create',
|
|
||||||
type: 'create',
|
|
||||||
title: '新增',
|
|
||||||
transform: {
|
|
||||||
'data': 'view',
|
|
||||||
'data.title': 'title',
|
|
||||||
},
|
|
||||||
viewName: 'views_v2.form',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'add',
|
name: 'add',
|
||||||
type: 'add',
|
type: 'add',
|
||||||
@ -205,6 +195,9 @@ export default {
|
|||||||
'data.title': 'title',
|
'data.title': 'title',
|
||||||
},
|
},
|
||||||
viewName: 'views_v2.table',
|
viewName: 'views_v2.table',
|
||||||
|
componentProps: {
|
||||||
|
type: 'primary',
|
||||||
|
},
|
||||||
filter: {
|
filter: {
|
||||||
and: [
|
and: [
|
||||||
{ 'type.ne': 'descriptions' },
|
{ 'type.ne': 'descriptions' },
|
||||||
@ -212,6 +205,19 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'create',
|
||||||
|
type: 'create',
|
||||||
|
title: '新增',
|
||||||
|
transform: {
|
||||||
|
'data': 'view',
|
||||||
|
'data.title': 'title',
|
||||||
|
},
|
||||||
|
componentProps: {
|
||||||
|
type: 'default',
|
||||||
|
},
|
||||||
|
viewName: 'views_v2.form',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'destroy',
|
name: 'destroy',
|
||||||
type: 'destroy',
|
type: 'destroy',
|
||||||
|
@ -49,16 +49,6 @@ export default {
|
|||||||
labelField: 'title',
|
labelField: 'title',
|
||||||
draggable: true,
|
draggable: true,
|
||||||
actions: [
|
actions: [
|
||||||
{
|
|
||||||
name: 'create',
|
|
||||||
type: 'create',
|
|
||||||
title: '新增',
|
|
||||||
transform: {
|
|
||||||
'data': 'view',
|
|
||||||
'data.title': 'title',
|
|
||||||
},
|
|
||||||
viewName: 'collections.views_v2.form',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'add',
|
name: 'add',
|
||||||
type: 'add',
|
type: 'add',
|
||||||
@ -68,6 +58,9 @@ export default {
|
|||||||
'data.title': 'title',
|
'data.title': 'title',
|
||||||
},
|
},
|
||||||
viewName: 'collections.views_v2.table',
|
viewName: 'collections.views_v2.table',
|
||||||
|
componentProps: {
|
||||||
|
type: 'primary',
|
||||||
|
},
|
||||||
filter: {
|
filter: {
|
||||||
or: [
|
or: [
|
||||||
{ 'type': 'form' },
|
{ 'type': 'form' },
|
||||||
@ -76,6 +69,19 @@ export default {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'create',
|
||||||
|
type: 'create',
|
||||||
|
title: '新增',
|
||||||
|
transform: {
|
||||||
|
'data': 'view',
|
||||||
|
'data.title': 'title',
|
||||||
|
},
|
||||||
|
viewName: 'collections.views_v2.form',
|
||||||
|
componentProps: {
|
||||||
|
type: 'default',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'destroy',
|
name: 'destroy',
|
||||||
type: 'destroy',
|
type: 'destroy',
|
||||||
|
Loading…
Reference in New Issue
Block a user