|
|
|
@ -6,10 +6,10 @@ |
|
|
|
|
<!-- 模板预览 --> |
|
|
|
|
<div class="preview fl-l"> |
|
|
|
|
<a-carousel autoplay> |
|
|
|
|
<template v-if="form.getFieldValue('style')"> |
|
|
|
|
<template> |
|
|
|
|
<div v-for="(item, index) in imageList" :key="index"> |
|
|
|
|
<img |
|
|
|
|
:src="`static/style/${form.getFieldValue('style')}/${item.name}${form.getFieldValue('style')}.png`" |
|
|
|
|
:src="`static/style/${form.getFieldValue('style') || 'default'}/${item.name}${form.getFieldValue('style')}.png`" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
@ -20,7 +20,7 @@ |
|
|
|
|
<a-form :form="form" @submit="handleSubmit"> |
|
|
|
|
<a-form-item label="页面风格" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
|
<a-radio-group |
|
|
|
|
v-decorator="['style', { rules: [{ required: true, message: '请选择页面风格' }]}]" |
|
|
|
|
v-decorator="['style', { rules: [{ required: false, message: '请选择页面风格' }]}]" |
|
|
|
|
> |
|
|
|
|
<a-radio |
|
|
|
|
v-for="(item, index) in pageStyle" |
|
|
|
|