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