mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-18 19:49:25 +08:00
parent
8e1e7ef0de
commit
259a5aa530
@ -10,7 +10,7 @@ npm i pnpm -g
|
||||
# magic依赖安装和构建
|
||||
cd ${WORKSPACE}
|
||||
npm run reinstall
|
||||
# npm run build
|
||||
npm run build:admin
|
||||
|
||||
echo "magic依赖安装完毕 & 打包完毕"
|
||||
|
||||
|
@ -9,15 +9,15 @@
|
||||
"lint": "vue-cli-service lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tmagic/editor": "1.1.0-beta.4",
|
||||
"@tmagic/form": "1.1.0-beta.4",
|
||||
"@tmagic/schema": "1.1.0-beta.4",
|
||||
"@tmagic/stage": "1.1.0-beta.4",
|
||||
"@tmagic/utils": "1.1.0-beta.4",
|
||||
"@tmagic/editor": "1.1.0-beta.5",
|
||||
"@tmagic/form": "1.1.0-beta.5",
|
||||
"@tmagic/schema": "1.1.0-beta.5",
|
||||
"@tmagic/stage": "1.1.0-beta.5",
|
||||
"@tmagic/utils": "1.1.0-beta.5",
|
||||
"axios": "^0.27.2",
|
||||
"axios-jsonp": "^1.0.4",
|
||||
"core-js": "^3.20.0",
|
||||
"element-plus": "^2.2.6",
|
||||
"element-plus": "^2.2.12",
|
||||
"js-cookie": "^3.0.0",
|
||||
"moment": "^2.29.3",
|
||||
"moment-timezone": "^0.5.34",
|
||||
@ -54,7 +54,6 @@
|
||||
"sass": "^1.32.7",
|
||||
"sass-loader": "^12.0.0",
|
||||
"ts-jest": "^27.0.4",
|
||||
"typescript": "~4.5.5",
|
||||
"vue-jest": "^3.0.7"
|
||||
"typescript": "~4.5.5"
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="2"><span>活动列表</span></el-col>
|
||||
<el-col :span="1">
|
||||
<el-button id="create" type="primary" @click="newHandler" size="mini"> 新建活动 </el-button>
|
||||
<el-button id="create" type="primary" @click="newHandler" size="small"> 新建活动 </el-button>
|
||||
</el-col>
|
||||
<el-col :span="3" :offset="9">
|
||||
<!-- 活动状态选项框 -->
|
||||
@ -58,13 +58,13 @@
|
||||
</el-card>
|
||||
|
||||
<form-dialog
|
||||
title="新建活动"
|
||||
:visible="formDialogVisible"
|
||||
:values="actValues"
|
||||
:action="action"
|
||||
:config="formConfig"
|
||||
@afterAction="afterAction"
|
||||
@close="closeFormDialogHandler"
|
||||
:config="formConfig"
|
||||
title="新建活动"
|
||||
></form-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -19,6 +19,9 @@
|
||||
// 新建活动表单配置
|
||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
||||
export const BlankActFormConfig = [
|
||||
{
|
||||
labelWidth: '120px',
|
||||
items: [
|
||||
{ name: 'actName', text: '活动名称', rules: [{ required: true, message: '请输入活动名称', trigger: 'blur' }] },
|
||||
{
|
||||
names: ['actBeginTime', 'actEndTime'],
|
||||
@ -46,4 +49,6 @@ export const BlankActFormConfig = [
|
||||
rules: [{ required: true }],
|
||||
disabled: true,
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
@ -51,12 +51,13 @@ export const initConfigByActId = async ({ actId }: { actId: number }) => {
|
||||
name: page.pageTitle,
|
||||
title: page.pageTitle,
|
||||
style: {
|
||||
height: '728',
|
||||
height: '100%',
|
||||
width: '375',
|
||||
position: 'relative',
|
||||
layout: 'absolute',
|
||||
left: 0,
|
||||
top: 0,
|
||||
backgroundColor: '#fff',
|
||||
},
|
||||
items: [],
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user