diff --git a/packages/nutui-prettier-plugin/index.js b/packages/nutui-prettier-plugin/index.js index 64770e43d8..ad6aa194b2 100644 --- a/packages/nutui-prettier-plugin/index.js +++ b/packages/nutui-prettier-plugin/index.js @@ -34,7 +34,15 @@ function printTable(path, options, print) { const contents = path.map( () => path.map(() => { - const text = print().flat(Infinity).join('') + const text = print() + .flat(Infinity) + .map((item) => { + if (typeof item === 'string') { + return item + } + return item.parts.flat(Infinity).join('') + }) + .join('') return { text } }, 'children'), 'children' diff --git a/packages/nutui-taro-demo/src/dentry/pages/uploader/index.vue b/packages/nutui-taro-demo/src/dentry/pages/uploader/index.vue index b75a7204bb..842fc71719 100644 --- a/packages/nutui-taro-demo/src/dentry/pages/uploader/index.vue +++ b/packages/nutui-taro-demo/src/dentry/pages/uploader/index.vue @@ -1,7 +1,7 @@