diff --git a/packages/editor/src/fields/StyleSetter/Index.vue b/packages/editor/src/fields/StyleSetter/Index.vue index 6ccbf25f..db037e84 100644 --- a/packages/editor/src/fields/StyleSetter/Index.vue +++ b/packages/editor/src/fields/StyleSetter/Index.vue @@ -27,7 +27,7 @@ defineOptions({ name: 'MFieldsStyleSetter', }); -defineProps>(); +const props = defineProps>(); const emit = defineEmits<{ change: [v: any, eventData: ContainerChangeEventData]; @@ -64,6 +64,9 @@ const collapseValue = shallowRef( ); const change = (v: any, eventData: ContainerChangeEventData) => { + eventData.changeRecords?.forEach((record) => { + record.propPath = `${props.name}.${record.propPath}`; + }); emit('change', v, eventData); }; diff --git a/packages/editor/src/fields/StyleSetter/pro/Layout.vue b/packages/editor/src/fields/StyleSetter/pro/Layout.vue index b01f9e99..6e7ad81c 100644 --- a/packages/editor/src/fields/StyleSetter/pro/Layout.vue +++ b/packages/editor/src/fields/StyleSetter/pro/Layout.vue @@ -1,6 +1,6 @@