diff --git a/packages/renderless/src/ip-address/index.ts b/packages/renderless/src/ip-address/index.ts index 2d957dd53..624d9f689 100644 --- a/packages/renderless/src/ip-address/index.ts +++ b/packages/renderless/src/ip-address/index.ts @@ -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) } } diff --git a/packages/renderless/tsup.config.ts b/packages/renderless/tsup.config.ts index e9d1f27cb..d1a053990 100644 --- a/packages/renderless/tsup.config.ts +++ b/packages/renderless/tsup.config.ts @@ -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,