refactor(editor): 调整表单配置

This commit is contained in:
roymondchen 2025-10-17 15:02:15 +08:00
parent d59428d2d6
commit 1cb2d57ade
4 changed files with 5 additions and 6 deletions

View File

@ -55,7 +55,7 @@ const config = computed<GroupListConfig>(() => ({
{
type: 'table',
name: 'cond',
operateColWidth: 100,
operateColWidth: 80,
enableToggleMode: false,
items: [
parentFields.value.length
@ -93,7 +93,7 @@ const config = computed<GroupListConfig>(() => ({
type: 'cond-op-select',
parentFields: parentFields.value,
label: '条件',
width: 160,
width: 140,
name: 'op',
},
{

View File

@ -4,7 +4,7 @@
<span class="help-txt" v-if="item.text">{{ item.text }}</span>
<span class="next-input">
<input
v-model="model[item.name]"
:model-value="model[item.name]"
placeholder="0"
:title="model[item.name]"
:disabled="disabled"

View File

@ -3,7 +3,7 @@
<div v-for="(item, index) in list" :key="index" :class="item.class">
<span class="next-input">
<input
v-model="model[item.name]"
:model-value="model[item.name]"
placeholder="0"
:title="model[item.name]"
:disabled="disabled"

View File

@ -574,8 +574,6 @@ class Editor extends BaseService {
nodes.splice(targetIndex, 1, newConfig);
this.set('nodes', [...nodes]);
// update后会触发依赖收集收集完后会掉stage.update方法
if (isPage(newConfig) || isPageFragment(newConfig)) {
this.set('page', newConfig as MPage | MPageFragment);
}
@ -591,6 +589,7 @@ class Editor extends BaseService {
/**
*
* update后会触发依赖收集stage.update方法
* @param config id信息
* @returns
*/