diff --git a/scripts/gen-index.js b/scripts/gen-index.js index 1f4b6ab917915..cd45097b85d70 100644 --- a/scripts/gen-index.js +++ b/scripts/gen-index.js @@ -89,8 +89,8 @@ function genIndex(moduleName) { function addComponentName(content, componentName) { const setupScriptTagRegex = /(]*lang=["']ts["'][^>]*>)/; - const defineOptionsRegex = /defineOptions\(\{[^}]*}\);?(\n+)?/; - const newDefineOptions = `defineOptions({ name: '${COMPONENT_PREFIX}${componentName}' });\n\n`; + const defineOptionsRegex = /defineOptions\(\{[^}]*}\);?\n+/; + const newDefineOptions = `defineOptions({ name: '${COMPONENT_PREFIX}${componentName}' });\n`; // Check if the script setup tag exists if (setupScriptTagRegex.test(content)) { diff --git a/src/components/button/Button.vue b/src/components/button/Button.vue index a6792ca6285a0..5ef52ccf4309b 100644 --- a/src/components/button/Button.vue +++ b/src/components/button/Button.vue @@ -1,6 +1,5 @@ + - - diff --git a/src/components/file/FileActions.vue b/src/components/file/FileActions.vue index 06ce97ec592c4..877a70b765076 100644 --- a/src/components/file/FileActions.vue +++ b/src/components/file/FileActions.vue @@ -1,6 +1,5 @@ + - -