fix: 补齐编辑器组件响应式和定宽选项的缺失

This commit is contained in:
gaoyunqi
2024-03-13 15:29:53 +08:00
parent cf66f75050
commit 17b3040c9b
2 changed files with 36 additions and 1 deletions

View File

@ -428,7 +428,7 @@
<a-switch v-model:checked="data.options.responsive" />
</a-form-item>
<a-form-item v-if="hasKey('respNewRow') && data.options.responsive" label="独立成行">
<a-form-item v-if="hasKey('responsive') && data.options.responsive" label="独立成行">
<a-switch v-model:checked="data.options.respNewRow" />
</a-form-item>

View File

@ -280,6 +280,10 @@ export const advanceComponents = [
typeName: t('级联选择器'),
type: 'cascader',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
respNewRow: false,
width: '100%',
span: '',
placeholder: t('请选择级联选择器'),
@ -305,6 +309,10 @@ export const advanceComponents = [
typeName: t('联想下拉'),
type: 'associate-select',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
respNewRow: false,
width: '100%',
span: '',
placeholder: t('请选择联想下拉'),
@ -344,6 +352,9 @@ export const advanceComponents = [
typeName: t('联想弹层'),
type: 'associate-popup',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
popupType: 'associate',
width: '100%',
span: '',
@ -389,6 +400,9 @@ export const advanceComponents = [
typeName: t('多选弹层'),
type: 'multiple-popup',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
popupType: 'multiple',
width: '100%',
span: '',
@ -572,6 +586,9 @@ export const advanceComponents = [
typeName: t('滑块组件'),
type: 'slider',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
span: '',
defaultValue: 0,
min: 0,
@ -589,6 +606,9 @@ export const advanceComponents = [
typeName: t('时间选择'),
type: 'time',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
span: '',
defaultValue: '',
width: '100%',
@ -658,6 +678,7 @@ export const advanceComponents = [
span: '',
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
defaultValue: [],
width: '100%',
showTime: false,
@ -678,6 +699,9 @@ export const advanceComponents = [
typeName: t('评分组件'),
type: 'rate',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
span: '',
defaultValue: 0,
count: 5,
@ -693,6 +717,9 @@ export const advanceComponents = [
typeName: t('颜色选择'),
type: 'picker-color',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
responsive: false,
span: '',
defaultValue: '#000000',
showLabel: true,
@ -706,6 +733,8 @@ export const advanceComponents = [
typeName: t('上传组件'),
type: 'upload',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
span: '',
defaultValue: [],
// name: 'file',
@ -726,6 +755,8 @@ export const advanceComponents = [
typeName: t('图片组件'),
type: 'image',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
span: '',
defaultValue: '',
showLabel: true,
@ -739,6 +770,8 @@ export const advanceComponents = [
typeName: t('地图选择'),
type: 'map',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
span: '',
width: '100%',
defaultValue: '',
@ -760,6 +793,8 @@ export const advanceComponents = [
typeName: t('二维码组件'),
type: 'qrcode',
options: {
labelWidthMode: 'fix',
labelFixWidth: 120,
span: '',
defaultValue: ' ',
showLabel: true,