From f2c5d6ecaaf180b1c82983498ed35c6adb4c24ea Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Mon, 29 Jan 2024 14:53:56 +0100 Subject: [PATCH 1/3] fix: #304 update storybook + refacto syntax of the table emits definitions --- package.json | 4 +-- packages/components/table/src/table.vue | 10 +++--- .../components/table/stories/table.stories.ts | 31 +++++++++++++------ playground/package.json | 2 +- 4 files changed, 29 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index c958d2f3..85cefeaf 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "not op_mini all" ], "peerDependencies": { - "vue": "^3.4.14" + "vue": "^3.2.0" }, "dependencies": { "@headlessui/vue": "^1.7.13", @@ -108,7 +108,7 @@ "typescript": "^5.0.4", "unplugin-vue-define-options": "^1.3.3", "vitest": "^0.32.4", - "vue": "^3.4.14", + "vue": "^3.2.47", "vue-router": "^4.1.6", "vue-tsc": "^1.2.0" } diff --git a/packages/components/table/src/table.vue b/packages/components/table/src/table.vue index 6ff25f72..4bf786d2 100644 --- a/packages/components/table/src/table.vue +++ b/packages/components/table/src/table.vue @@ -378,11 +378,11 @@ defineOptions({ const props = defineProps(tableProps) const emit = defineEmits<{ - (e: 'select', index: number): void - (e: 'select:all'): void - (e: 'update:selection', value: number[]): void - (e: 'sortColumn', column: sortOption): void - (e: 'searchSubmit', column: searchOption[]): void + select: [index: number] + 'select:all': [] + 'update:selection': [value: number[]] + sortColumn: [column: sortOption] + searchSubmit: [column: searchOption[]] }>() const { t } = useLocale() diff --git a/packages/components/table/stories/table.stories.ts b/packages/components/table/stories/table.stories.ts index 786d1167..9937b0ac 100644 --- a/packages/components/table/stories/table.stories.ts +++ b/packages/components/table/stories/table.stories.ts @@ -47,14 +47,21 @@ export default { import type { PuikTableHeader } from '@prestashopcorp/puik/es/components/table/src/table' interface PuikTableHeader { - text: string | undefined value: string - size: 'sm' | 'md' | 'lg' | undefined - width: string | undefined - align: 'left' | 'center' | 'right' | undefined - sortable: boolean | undefined - searchable: boolean | undefined - preventExpand: boolean | undefined + text?: string + size?: 'sm' | 'md' | 'lg' + align?: 'left' | 'center' | 'right' + width?: string + sortable?: boolean + preventExpand?: boolean + searchable?: boolean + searchSubmit?: boolean + searchType?: {$PuikTableSearchInputTypes} + } + + enum PuikTableSearchInputTypes { + Text = 'text', + Range = 'range', } `, }, @@ -216,8 +223,10 @@ export default { description: 'Event emitted when sorting a column', table: { type: { - summary: 'sortOption', + summary: 'event => sortOption', detail: ` +// Payload type = sortOption + import type { sortOption } from '@prestashopcorp/puik/es/components/table/src/table' type sortOption = { @@ -233,9 +242,11 @@ type sortOption = { control: 'none', table: { type: { - summary: 'event', + summary: 'event => SearchOption[]', detail: ` -Payload type = Array +// Payload type = Array + +import type { searchOption } from '@prestashopcorp/puik/es/components/table/src/table' type searchOption = { searchBy: string; diff --git a/playground/package.json b/playground/package.json index 861a9d8d..3594e127 100644 --- a/playground/package.json +++ b/playground/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "vue": "^3.4.14" + "vue": "3.3.10" }, "devDependencies": { "@vitejs/plugin-vue": "^4.1.0", From fd2cfb5a3e4c4465ee5cbb50792540f1592fce63 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Mon, 29 Jan 2024 15:06:08 +0100 Subject: [PATCH 2/3] build: update pnpm-lockfile --- pnpm-lock.yaml | 159 +++++++++++++++++++++++++++++++++---------------- 1 file changed, 108 insertions(+), 51 deletions(-) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 828a42b7..1385019d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@headlessui/vue': specifier: ^1.7.13 - version: 1.7.13(vue@3.4.14) + version: 1.7.13(vue@3.3.10) '@popperjs/core': specifier: ^2.11.7 version: 2.11.7 @@ -37,7 +37,7 @@ importers: version: link:packages/utils '@vueuse/core': specifier: ^9.13.0 - version: 9.13.0(vue@3.4.14) + version: 9.13.0(vue@3.3.10) lodash-es: specifier: ^4.17.21 version: 4.17.21 @@ -95,13 +95,13 @@ importers: version: 5.58.0(eslint@8.38.0)(typescript@5.0.4) '@vitejs/plugin-vue': specifier: ^4.1.0 - version: 4.1.0(vite@4.2.1)(vue@3.4.14) + version: 4.1.0(vite@4.2.1)(vue@3.3.10) '@vitest/coverage-v8': specifier: ^0.32.4 version: 0.32.4(vitest@0.32.4) '@vue/test-utils': specifier: ^2.3.2 - version: 2.3.2(vue@3.4.14) + version: 2.3.2(vue@3.3.10) '@vue/tsconfig': specifier: ^0.1.3 version: 0.1.3(@types/node@18.15.11) @@ -176,16 +176,16 @@ importers: version: 5.0.4 unplugin-vue-define-options: specifier: ^1.3.3 - version: 1.3.3(vue@3.4.14) + version: 1.3.3(vue@3.3.10) vitest: specifier: ^0.32.4 version: 0.32.4(jsdom@21.1.1)(sass@1.62.0) vue: - specifier: ^3.4.14 - version: 3.4.14(typescript@5.0.4) + specifier: ^3.2.47 + version: 3.3.10(typescript@5.0.4) vue-router: specifier: ^4.1.6 - version: 4.1.6(vue@3.4.14) + version: 4.1.6(vue@3.3.10) vue-tsc: specifier: ^1.2.0 version: 1.2.0(typescript@5.0.4) @@ -431,12 +431,12 @@ importers: playground: dependencies: vue: - specifier: ^3.4.14 - version: 3.4.14(typescript@5.0.4) + specifier: 3.3.10 + version: 3.3.10(typescript@5.0.4) devDependencies: '@vitejs/plugin-vue': specifier: ^4.1.0 - version: 4.1.0(vite@4.2.1)(vue@3.4.14) + version: 4.1.0(vite@4.2.1)(vue@3.3.10) typescript: specifier: ^5.0.4 version: 5.0.4 @@ -2203,13 +2203,13 @@ packages: vue: 3.2.47 dev: false - /@headlessui/vue@1.7.13(vue@3.4.14): + /@headlessui/vue@1.7.13(vue@3.3.10): resolution: {integrity: sha512-obG5TdPdBDfs+jiA1mY29LPFqyJl93Q90EL86ontfRe1B6XvbjPkx+x1aAC5DA18bXbb0Juni1ayDbXo0w1u0A==} engines: {node: '>=10'} peerDependencies: vue: ^3.2.0 dependencies: - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) dev: false /@humanwhocodes/config-array@0.11.8: @@ -5073,7 +5073,7 @@ packages: vite: 4.2.1(@types/node@18.15.11)(sass@1.62.0) vue: 3.2.47 - /@vitejs/plugin-vue@4.1.0(vite@4.2.1)(vue@3.4.14): + /@vitejs/plugin-vue@4.1.0(vite@4.2.1)(vue@3.3.10): resolution: {integrity: sha512-++9JOAFdcXI3lyer9UKUV4rfoQ3T1RN8yDqoCLar86s0xQct5yblxAE+yWgRnU5/0FOlVCpTZpYSBV/bGWrSrQ==} engines: {node: ^14.18.0 || >=16.0.0} peerDependencies: @@ -5081,7 +5081,7 @@ packages: vue: ^3.2.25 dependencies: vite: 4.2.1(@types/node@18.15.11)(sass@1.62.0) - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) dev: true /@vitest/coverage-v8@0.32.4(vitest@0.32.4): @@ -5201,7 +5201,7 @@ packages: - rollup dev: false - /@vue-macros/common@1.2.0(vue@3.4.14): + /@vue-macros/common@1.2.0(vue@3.3.10): resolution: {integrity: sha512-lQglnRn+8wkdAhmGQbrI0mo4SzRuY5KBjst0qi8LBDYllFKtI2brapbewUME1AXnXbVett0SRDnB2EdZXyzCmw==} engines: {node: '>=14.19.0'} peerDependencies: @@ -5215,7 +5215,7 @@ packages: '@vue/compiler-sfc': 3.4.14 local-pkg: 0.4.3 magic-string-ast: 0.1.2 - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) transitivePeerDependencies: - rollup dev: true @@ -5228,6 +5228,14 @@ packages: estree-walker: 2.0.2 source-map: 0.6.1 + /@vue/compiler-core@3.3.10: + resolution: {integrity: sha512-doe0hODR1+i1menPkRzJ5MNR6G+9uiZHIknK3Zn5OcIztu6GGw7u0XUzf3AgB8h/dfsZC9eouzoLo3c3+N/cVA==} + dependencies: + '@babel/parser': 7.23.6 + '@vue/shared': 3.3.10 + estree-walker: 2.0.2 + source-map-js: 1.0.2 + /@vue/compiler-core@3.4.14: resolution: {integrity: sha512-ro4Zzl/MPdWs7XwxT7omHRxAjMbDFRZEEjD+2m3NBf8YzAe3HuoSEZosXQo+m1GQ1G3LQ1LdmNh1RKTYe+ssEg==} dependencies: @@ -5243,6 +5251,12 @@ packages: '@vue/compiler-core': 3.2.47 '@vue/shared': 3.2.47 + /@vue/compiler-dom@3.3.10: + resolution: {integrity: sha512-NCrqF5fm10GXZIK0GrEAauBqdy+F2LZRt3yNHzrYjpYBuRssQbuPLtSnSNjyR9luHKkWSH8we5LMB3g+4z2HvA==} + dependencies: + '@vue/compiler-core': 3.3.10 + '@vue/shared': 3.3.10 + /@vue/compiler-dom@3.4.14: resolution: {integrity: sha512-nOZTY+veWNa0DKAceNWxorAbWm0INHdQq7cejFaWM1WYnoNSJbSEKYtE7Ir6lR/+mo9fttZpPVI9ZFGJ1juUEQ==} dependencies: @@ -5263,6 +5277,20 @@ packages: postcss: 8.4.31 source-map: 0.6.1 + /@vue/compiler-sfc@3.3.10: + resolution: {integrity: sha512-xpcTe7Rw7QefOTRFFTlcfzozccvjM40dT45JtrE3onGm/jBLZ0JhpKu3jkV7rbDFLeeagR/5RlJ2Y9SvyS0lAg==} + dependencies: + '@babel/parser': 7.23.6 + '@vue/compiler-core': 3.3.10 + '@vue/compiler-dom': 3.3.10 + '@vue/compiler-ssr': 3.3.10 + '@vue/reactivity-transform': 3.3.10 + '@vue/shared': 3.3.10 + estree-walker: 2.0.2 + magic-string: 0.30.5 + postcss: 8.4.33 + source-map-js: 1.0.2 + /@vue/compiler-sfc@3.4.14: resolution: {integrity: sha512-1vHc9Kv1jV+YBZC/RJxQJ9JCxildTI+qrhtDh6tPkR1O8S+olBUekimY0km0ZNn8nG1wjtFAe9XHij+YLR8cRQ==} dependencies: @@ -5282,6 +5310,12 @@ packages: '@vue/compiler-dom': 3.2.47 '@vue/shared': 3.2.47 + /@vue/compiler-ssr@3.3.10: + resolution: {integrity: sha512-12iM4jA4GEbskwXMmPcskK5wImc2ohKm408+o9iox3tfN9qua8xL0THIZtoe9OJHnXP4eOWZpgCAAThEveNlqQ==} + dependencies: + '@vue/compiler-dom': 3.3.10 + '@vue/shared': 3.3.10 + /@vue/compiler-ssr@3.4.14: resolution: {integrity: sha512-bXT6+oAGlFjTYVOTtFJ4l4Jab1wjsC0cfSfOe2B4Z0N2vD2zOBSQ9w694RsCfhjk+bC2DY5Gubb1rHZVii107Q==} dependencies: @@ -5301,15 +5335,24 @@ packages: estree-walker: 2.0.2 magic-string: 0.25.9 + /@vue/reactivity-transform@3.3.10: + resolution: {integrity: sha512-0xBdk+CKHWT+Gev8oZ63Tc0qFfj935YZx+UAynlutnrDZ4diFCVFMWixn65HzjE3S1iJppWOo6Tt1OzASH7VEg==} + dependencies: + '@babel/parser': 7.23.6 + '@vue/compiler-core': 3.3.10 + '@vue/shared': 3.3.10 + estree-walker: 2.0.2 + magic-string: 0.30.5 + /@vue/reactivity@3.2.47: resolution: {integrity: sha512-7khqQ/75oyyg+N/e+iwV6lpy1f5wq759NdlS1fpAhFXa8VeAIKGgk2E/C4VF59lx5b+Ezs5fpp/5WsRYXQiKxQ==} dependencies: '@vue/shared': 3.2.47 - /@vue/reactivity@3.4.14: - resolution: {integrity: sha512-xRYwze5Q4tK7tT2J4uy4XLhK/AIXdU5EBUu9PLnIHcOKXO0uyXpNNMzlQKuq7B+zwtq6K2wuUL39pHA6ZQzObw==} + /@vue/reactivity@3.3.10: + resolution: {integrity: sha512-H5Z7rOY/JLO+e5a6/FEXaQ1TMuOvY4LDVgT+/+HKubEAgs9qeeZ+NhADSeEtrNQeiKLDuzeKc8v0CUFpB6Pqgw==} dependencies: - '@vue/shared': 3.4.14 + '@vue/shared': 3.3.10 /@vue/runtime-core@3.2.47: resolution: {integrity: sha512-RZxbLQIRB/K0ev0K9FXhNbBzT32H9iRtYbaXb0ZIz2usLms/D55dJR2t6cIEUn6vyhS3ALNvNthI+Q95C+NOpA==} @@ -5317,11 +5360,11 @@ packages: '@vue/reactivity': 3.2.47 '@vue/shared': 3.2.47 - /@vue/runtime-core@3.4.14: - resolution: {integrity: sha512-qu+NMkfujCoZL6cfqK5NOfxgXJROSlP2ZPs4CTcVR+mLrwl4TtycF5Tgo0QupkdBL+2kigc6EsJlTcuuZC1NaQ==} + /@vue/runtime-core@3.3.10: + resolution: {integrity: sha512-DZ0v31oTN4YHX9JEU5VW1LoIVgFovWgIVb30bWn9DG9a7oA415idcwsRNNajqTx8HQJyOaWfRKoyuP2P2TYIag==} dependencies: - '@vue/reactivity': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/reactivity': 3.3.10 + '@vue/shared': 3.3.10 /@vue/runtime-dom@3.2.47: resolution: {integrity: sha512-ArXrFTjS6TsDei4qwNvgrdmHtD930KgSKGhS5M+j8QxXrDJYLqYw4RRcDy1bz1m1wMmb6j+zGLifdVHtkXA7gA==} @@ -5330,11 +5373,11 @@ packages: '@vue/shared': 3.2.47 csstype: 2.6.21 - /@vue/runtime-dom@3.4.14: - resolution: {integrity: sha512-B85XmcR4E7XsirEHVqhmy4HPbRT9WLFWV9Uhie3OapV9m1MEN9+Er6hmUIE6d8/l2sUygpK9RstFM2bmHEUigA==} + /@vue/runtime-dom@3.3.10: + resolution: {integrity: sha512-c/jKb3ny05KJcYk0j1m7Wbhrxq7mZYr06GhKykDMNRRR9S+/dGT8KpHuNQjv3/8U4JshfkAk6TpecPD3B21Ijw==} dependencies: - '@vue/runtime-core': 3.4.14 - '@vue/shared': 3.4.14 + '@vue/runtime-core': 3.3.10 + '@vue/shared': 3.3.10 csstype: 3.1.3 /@vue/server-renderer@3.2.47(vue@3.2.47): @@ -5346,31 +5389,45 @@ packages: '@vue/shared': 3.2.47 vue: 3.2.47 - /@vue/server-renderer@3.4.14(vue@3.4.14): + /@vue/server-renderer@3.3.10(vue@3.3.10): + resolution: {integrity: sha512-0i6ww3sBV3SKlF3YTjSVqKQ74xialMbjVYGy7cOTi7Imd8ediE7t72SK3qnvhrTAhOvlQhq6Bk6nFPdXxe0sAg==} + peerDependencies: + vue: 3.3.10 + dependencies: + '@vue/compiler-ssr': 3.3.10 + '@vue/shared': 3.3.10 + vue: 3.3.10(typescript@5.0.4) + + /@vue/server-renderer@3.4.14(vue@3.3.10): resolution: {integrity: sha512-pwSKXQfYdJBTpvWHGEYI+akDE18TXAiLcGn+Q/2Fj8wQSHWztoo7PSvfMNqu6NDhp309QXXbPFEGCU5p85HqkA==} peerDependencies: vue: 3.4.14 dependencies: '@vue/compiler-ssr': 3.4.14 '@vue/shared': 3.4.14 - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) + dev: true + optional: true /@vue/shared@3.2.47: resolution: {integrity: sha512-BHGyyGN3Q97EZx0taMQ+OLNuZcW3d37ZEVmEAyeoA9ERdGvm9Irc/0Fua8SNyOtV1w6BS4q25wbMzJujO9HIfQ==} + /@vue/shared@3.3.10: + resolution: {integrity: sha512-2y3Y2J1a3RhFa0WisHvACJR2ncvWiVHcP8t0Inxo+NKz+8RKO4ZV8eZgCxRgQoA6ITfV12L4E6POOL9HOU5nqw==} + /@vue/shared@3.4.14: resolution: {integrity: sha512-nmi3BtLpvqXAWoRZ6HQ+pFJOHBU4UnH3vD3opgmwXac7vhaHKA9nj1VeGjMggdB9eLtW83eHyPCmOU1qzdsC7Q==} - /@vue/test-utils@2.3.2(vue@3.4.14): + /@vue/test-utils@2.3.2(vue@3.3.10): resolution: {integrity: sha512-hJnVaYhbrIm0yBS0+e1Y0Sj85cMyAi+PAbK4JHqMRUZ6S622Goa+G7QzkRSyvCteG8wop7tipuEbHoZo26wsSA==} peerDependencies: vue: ^3.0.1 dependencies: js-beautify: 1.14.6 - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) optionalDependencies: '@vue/compiler-dom': 3.4.14 - '@vue/server-renderer': 3.4.14(vue@3.4.14) + '@vue/server-renderer': 3.4.14(vue@3.3.10) dev: true /@vue/tsconfig@0.1.3(@types/node@18.15.11): @@ -5396,13 +5453,13 @@ packages: - vue dev: false - /@vueuse/core@9.13.0(vue@3.4.14): + /@vueuse/core@9.13.0(vue@3.3.10): resolution: {integrity: sha512-pujnclbeHWxxPRqXWmdkKV5OX4Wk4YeK7wusHqRwU0Q7EFusHoqNA/aPhB6KCh9hEqJkLAJo7bb0Lh9b+OIVzw==} dependencies: '@types/web-bluetooth': 0.0.16 '@vueuse/metadata': 9.13.0 - '@vueuse/shared': 9.13.0(vue@3.4.14) - vue-demi: 0.14.0(vue@3.4.14) + '@vueuse/shared': 9.13.0(vue@3.3.10) + vue-demi: 0.14.0(vue@3.3.10) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -5421,10 +5478,10 @@ packages: - vue dev: false - /@vueuse/shared@9.13.0(vue@3.4.14): + /@vueuse/shared@9.13.0(vue@3.3.10): resolution: {integrity: sha512-UrnhU+Cnufu4S6JLCPZnkWh0WwZGUp72ktOF2DFptMlOs3TOdVv8xJN53zhHGARmVOsz5KqOls09+J1NR6sBKw==} dependencies: - vue-demi: 0.14.0(vue@3.4.14) + vue-demi: 0.14.0(vue@3.3.10) transitivePeerDependencies: - '@vue/composition-api' - vue @@ -14754,11 +14811,11 @@ packages: - vue dev: false - /unplugin-vue-define-options@1.3.3(vue@3.4.14): + /unplugin-vue-define-options@1.3.3(vue@3.3.10): resolution: {integrity: sha512-gSBR84QJZUYhiLlQzJ8dQ9BCUAnnfWf+sTqhxXpzoL/nWH3sQqlGWznQtUPKTqQZdupQr1DCIVvLYMQD1/4X6g==} engines: {node: '>=14.19.0'} dependencies: - '@vue-macros/common': 1.2.0(vue@3.4.14) + '@vue-macros/common': 1.2.0(vue@3.3.10) ast-walker-scope: 0.4.1 unplugin: 1.3.1 transitivePeerDependencies: @@ -15152,7 +15209,7 @@ packages: vue: 3.2.47 dev: false - /vue-demi@0.14.0(vue@3.4.14): + /vue-demi@0.14.0(vue@3.3.10): resolution: {integrity: sha512-gt58r2ogsNQeVoQ3EhoUAvUsH9xviydl0dWJj7dabBC/2L4uBId7ujtCwDRD0JhkGsV1i0CtfLAeyYKBht9oWg==} engines: {node: '>=12'} hasBin: true @@ -15164,7 +15221,7 @@ packages: '@vue/composition-api': optional: true dependencies: - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) dev: false /vue-docgen-api@4.71.0(vue@3.2.47): @@ -15220,13 +15277,13 @@ packages: vue: 3.2.47 dev: true - /vue-router@4.1.6(vue@3.4.14): + /vue-router@4.1.6(vue@3.3.10): resolution: {integrity: sha512-DYWYwsG6xNPmLq/FmZn8Ip+qrhFEzA14EI12MsMgVxvHFDYvlr4NXpVF5hrRH1wVcDP8fGi5F4rxuJSl8/r+EQ==} peerDependencies: vue: ^3.2.0 dependencies: '@vue/devtools-api': 6.5.0 - vue: 3.4.14(typescript@5.0.4) + vue: 3.3.10(typescript@5.0.4) dev: true /vue-template-compiler@2.7.14: @@ -15256,19 +15313,19 @@ packages: '@vue/server-renderer': 3.2.47(vue@3.2.47) '@vue/shared': 3.2.47 - /vue@3.4.14(typescript@5.0.4): - resolution: {integrity: sha512-Rop5Al/ZcBbBz+KjPZaZDgHDX0kUP4duEzDbm+1o91uxYUNmJrZSBuegsNIJvUGy+epLevNRNhLjm08VKTgGyw==} + /vue@3.3.10(typescript@5.0.4): + resolution: {integrity: sha512-zg6SIXZdTBwiqCw/1p+m04VyHjLfwtjwz8N57sPaBhEex31ND0RYECVOC1YrRwMRmxFf5T1dabl6SGUbMKKuVw==} peerDependencies: typescript: '*' peerDependenciesMeta: typescript: optional: true dependencies: - '@vue/compiler-dom': 3.4.14 - '@vue/compiler-sfc': 3.4.14 - '@vue/runtime-dom': 3.4.14 - '@vue/server-renderer': 3.4.14(vue@3.4.14) - '@vue/shared': 3.4.14 + '@vue/compiler-dom': 3.3.10 + '@vue/compiler-sfc': 3.3.10 + '@vue/runtime-dom': 3.3.10 + '@vue/server-renderer': 3.3.10(vue@3.3.10) + '@vue/shared': 3.3.10 typescript: 5.0.4 /w3c-xmlserializer@4.0.0: From 120829e4ff6d115903ca6f458471b54755b704d5 Mon Sep 17 00:00:00 2001 From: Matthias Goudjil Date: Mon, 29 Jan 2024 15:10:01 +0100 Subject: [PATCH 3/3] fix: rollback syntax of table emit definitions --- packages/components/table/src/table.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/components/table/src/table.vue b/packages/components/table/src/table.vue index 4bf786d2..6ff25f72 100644 --- a/packages/components/table/src/table.vue +++ b/packages/components/table/src/table.vue @@ -378,11 +378,11 @@ defineOptions({ const props = defineProps(tableProps) const emit = defineEmits<{ - select: [index: number] - 'select:all': [] - 'update:selection': [value: number[]] - sortColumn: [column: sortOption] - searchSubmit: [column: searchOption[]] + (e: 'select', index: number): void + (e: 'select:all'): void + (e: 'update:selection', value: number[]): void + (e: 'sortColumn', column: sortOption): void + (e: 'searchSubmit', column: searchOption[]): void }>() const { t } = useLocale()