Commit 534e6e0f by chenwq

fix(mallConfig): 修复专场名称输入框缺少placeholder和调整样式

为专场名称输入框添加placeholder提示文本
调整SelectDialog组件样式,包括对齐方式和输入框宽度
修复indentation不一致问题
1 parent 97fa2966
<template> <template>
<GLDialog :title="dialogConfig.title" mode="small" :visible.sync="visible" :show-close="true" :before-close="handleClose" @onOk="confirmPriceChange" @onCancel="handleClose" :okText="dialogConfig.okText" :cancelText="dialogConfig.cancelText"> <GLDialog class="select-dialog" :title="dialogConfig.title" mode="small" :visible.sync="visible" :show-close="true" :before-close="handleClose" @onOk="confirmPriceChange" @onCancel="handleClose" :okText="dialogConfig.okText" :cancelText="dialogConfig.cancelText">
<div class="dialog-wrap" v-loading="loading"> <div class="dialog-wrap" v-loading="loading">
<glsxCombiForm ref="editFormRef" :formObj="batchForm" :formData="editFormData" :formRules="editRules" formRef="editChildRef"></glsxCombiForm> <glsxCombiForm ref="editFormRef" :labelWidth="labelWidth" labelPaddingRight="0" :formObj="batchForm" :formData="editFormData" :formRules="editRules" formRef="editChildRef"></glsxCombiForm>
</div> </div>
</GLDialog> </GLDialog>
</template> </template>
...@@ -40,6 +40,10 @@ export default { ...@@ -40,6 +40,10 @@ export default {
loading: { loading: {
type: Boolean, type: Boolean,
default: false default: false
},
labelWidth: {
type: String,
default: '154px'
} }
}, },
...@@ -66,32 +70,24 @@ export default { ...@@ -66,32 +70,24 @@ export default {
} }
</script> </script>
<style lang="scss"> <style lang="scss">
.dialog-wrap { .select-dialog {
.dialog-wrap {
display: flex; display: flex;
// align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 100%; height: 100%;
width: 100%; width: 100%;
span { span {
white-space: nowrap; white-space: nowrap;
margin-right: 8px;
} }
// /deep/ .el-input { /deep/ .el-input {
// &, &,
// .el-input__inner { .el-input__inner {
// width: 100px; width: 100px;
// } }
}
// .el-input-group__append { }
// box-sizing: border-box;
// padding: 0 11px;
// span {
// margin: 0;
// }
// }
// }
} }
</style> </style>
...@@ -229,6 +229,7 @@ export default { ...@@ -229,6 +229,7 @@ export default {
label: '专场名称:', label: '专场名称:',
name: 'eventName', name: 'eventName',
type: 'input', type: 'input',
placeholder: '请输入专场名称',
maxlength: 10 maxlength: 10
} }
], ],
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!