fix: action buttons

This commit is contained in:
chenos 2021-03-29 10:32:49 +08:00
parent 7ea223be78
commit 250dd26df9
4 changed files with 37 additions and 24 deletions

View File

@ -110,10 +110,10 @@ const data = [
type: 'ali-oss',
baseUrl: process.env.ALIYUN_STORAGE_BASE_URL,
options: {
region: process.env.ALIYUN_OSS_REGION,// 'oss-cn-beijing',
accessKeyId: process.env.ALIYUN_OSS_ACCESS_KEY_ID,// 'LTAI4GEGDJsdGantisvSaz47',
accessKeySecret: process.env.ALIYUN_OSS_ACCESS_KEY_SECRET,//'cDFaOUwigps7ohRmsfBFXGDxNm8uIq',
bucket: process.env.ALIYUN_OSS_BUCKET, //'nocobase'
region: process.env.ALIYUN_OSS_REGION,
accessKeyId: process.env.ALIYUN_OSS_ACCESS_KEY_ID,
accessKeySecret: process.env.ALIYUN_OSS_ACCESS_KEY_SECRET,
bucket: process.env.ALIYUN_OSS_BUCKET,
},
default: true
});

View File

@ -2,6 +2,7 @@
max-width: 368px;
margin: 0 auto;
padding-top: 100px;
padding: 100px 12px 12px;
}
.ant-form-item-with-help {

View File

@ -186,16 +186,6 @@ export default {
labelField: 'title',
draggable: true,
actions: [
{
name: 'create',
type: 'create',
title: '新增',
transform: {
'data': 'view',
'data.title': 'title',
},
viewName: 'views_v2.form',
},
{
name: 'add',
type: 'add',
@ -205,6 +195,9 @@ export default {
'data.title': 'title',
},
viewName: 'views_v2.table',
componentProps: {
type: 'primary',
},
filter: {
and: [
{ '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',
type: 'destroy',

View File

@ -49,16 +49,6 @@ export default {
labelField: 'title',
draggable: true,
actions: [
{
name: 'create',
type: 'create',
title: '新增',
transform: {
'data': 'view',
'data.title': 'title',
},
viewName: 'collections.views_v2.form',
},
{
name: 'add',
type: 'add',
@ -68,6 +58,9 @@ export default {
'data.title': 'title',
},
viewName: 'collections.views_v2.table',
componentProps: {
type: 'primary',
},
filter: {
or: [
{ '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',
type: 'destroy',