fix(renderless): synchronize release code to dev (#954)

This commit is contained in:
gimmyhehe 2023-11-29 14:32:34 +08:00 committed by GitHub
parent 5d6c7a60ed
commit 61eaf29bc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -109,7 +109,10 @@ export const setValue =
}
}
} else {
state.address = api.isIP6(props.type) ? new Array(8).fill({ value: '' }) : new Array(4).fill({ value: '' })
const createValue = () => ({ value: '' })
state.address = api.isIP6(props.type)
? new Array(8).fill('').map(createValue)
: new Array(4).fill('').map(createValue)
}
}

View File

@ -18,7 +18,6 @@ export default defineConfig([
bundle: false,
clean: true,
outDir: 'dist/types',
format: ['esm'],
external: ['@opentiny/vue-icon', '@opentiny/vue-common'],
dts: {
only: true,