Skip to content

Commit 88cdcee

Browse files
chilinglinghexqi
authored andcommitted
fix(style): fix render error caused by inline style breaks (opentiny#526)
1 parent 80a36d6 commit 88cdcee

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎packages/settings/styles/src/Main.vue‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ import { ref, watch } from 'vue'
6969
import { Collapse, CollapseItem, Input } from '@opentiny/vue'
7070
import { useHistory, useCanvas, useProperties } from '@opentiny/tiny-engine-meta-register'
7171
import { CodeConfigurator, VariableConfigurator } from '@opentiny/tiny-engine-configurator'
72-
import { formatString } from '@opentiny/tiny-engine-common/js/ast'
7372
import {
7473
SizeGroup,
7574
LayoutGroup,
@@ -128,7 +127,7 @@ export default {
128127
const { getSchema: getCanvasPageSchema, updateRect } = useCanvas().canvasApi.value
129128
const pageSchema = getCanvasPageSchema()
130129
const schema = getSchema() || pageSchema
131-
const styleString = formatString(styleStrRemoveRoot(content), 'css')
130+
const styleString = styleStrRemoveRoot(content)
132131
const currentSchema = getCurrentSchema() || pageSchema
133132
134133
state.styleContent = content

0 commit comments

Comments
 (0)