32 Commits

Author SHA1 Message Date
cfc661c626 feat(types): [components] add public prop types (#21222)
* feat(types): [utils] add ExtractPublicPropTypes type

* feat(types): [components] add props public type

* chore(types): use type-only import for Prop from 'vue'

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>

---------

Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
2025-07-07 00:51:32 +08:00
2f17df1209 style(eslint-config): newline before import type (#21036)
* perf: change to import-x

* feat: add rules

* chore: fix rule

* chore: fix

* chore: fix

* chore: fix

* style: `pnpm lint:fix`

* Revert "style: `pnpm lint:fix`"

This reverts commit db0116a288299c507e3cfc4d7a22e2207265d920.

* Revert "chore: fix"

This reverts commit 69c82a90c01525e38180be4c21e8ef5602512318.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

* chore: `pnpm format`
2025-06-16 15:37:12 +08:00
7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb814d2b1300bf57c06648b6b27281c7c5.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00
ae22c959ac feat(components): [badge] add content slot (#18922)
* feat(components): [badge] add `icon` prop and slot

* feat(components): [badge] remove icon prop

* feat(components): [badge] update badge icon slot test

* Update docs/en-US/component/badge.md

Co-authored-by: btea <2356281422@qq.com>

* Update docs/en-US/component/badge.md

Co-authored-by: btea <2356281422@qq.com>

* feat(components): [badge] update icon slot to content

* fix(components): [badge] remove legacy icon styles

* fix(docs): [badge] punctuation at the end of sentences in a document

* feat(components): [badge] `value` as the value of the `content` slot

* feat(docs): [badge] update badge's doc

* fix(docs): [badge] content slot value type

---------

Co-authored-by: btea <2356281422@qq.com>
2024-12-10 13:57:36 +08:00
sea
f5628e7b16 refactor(components): [badge] show-zero implement (#18360) 2024-09-28 17:10:35 +08:00
79938178dd build: use vue-tsc to generate dts (#16111)
* build: use vue-tsc to generate dts

* reduce inline type declaration

* fix: type checking failed

* apply suggestions from code review

* address PR comments
2024-08-07 12:01:46 +08:00
0f8282520f chore(components): remove deprecated 2.8.0 (#17735)
* chore(components): remove deprecated 2.8.0

* chore(components): update
2024-08-02 11:08:24 +08:00
ff5ba6a764 test(components): [badge] complete test cases (#17628) 2024-07-24 05:39:19 +00:00
dd97323232 feat(components): [badge] Add badge-style and badge-class (#16585) 2024-04-19 17:50:35 +08:00
dc69729161 feat(components): [badge] add dotClass、dotStyle、offset props (#16434)
* feat: 🎸 [badge] add color prop

add color prop to set badge background color

* feat: 🎸 [badge] add dotClass dotStyle offset  props

* docs: ✏️ [badge] add dotClass dotStyle offset props

* feat: 🎸 [badge] unify style

* style: 💄 [badge] format

* docs: ✏️ update badge.md

* docs: ✏️ update badge props desc

* Update docs/en-US/component/badge.md

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* refactor: 💡 [badge] refactor style

* fix: 🐛 [badge] dotStyle has higher precedence than color

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-04-12 14:35:55 +08:00
b3c423ff11 feat(components): [badge] add color prop (#16069)
* feat: 🎸 [badge] add color prop

add color prop to set badge background color

* Update badge.md

* 更新文档

* docs: ✏️ [badge] add color prop

* Update docs/en-US/component/badge.md

---------

Co-authored-by: btea <2356281422@qq.com>
2024-03-29 15:11:03 +08:00
69701f327c feat(components): [badge] add show-zero prop (#15944)
* feat(components): [badge] add show-zero prop

* fix(components): [badge] adjust hiden conditions

* Update packages/components/badge/src/badge.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* Update packages/components/badge/src/badge.vue

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* Update docs/en-US/component/badge.md

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>

* fix(components): [badge] adjust hiden conditions

* feat(components): [badge] add test case

* feat(components): [badge] add test case when showZero is false

* feat(components): [badge] add test case when showZero is false

* fix(components): [badge] test error

* fix(components): [badge] test error

* fix(components): [badge] adjust the judgment of content

---------

Co-authored-by: kooriookami <38392315+kooriookami@users.noreply.github.com>
2024-02-27 14:24:29 +08:00
f17c8f3a2e docs(components): [badge] enhancement (#10789)
* docs(components): [badge] enhancement

* Update badge docs per new syntax.
* Reorganize code per readability wise purpose.

* chore: remove component name prefix

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-11-27 22:35:13 +08:00
ec498d38b5 refactor(components): [badge] remove unnecessary condition (#8073) 2022-06-04 15:30:31 +08:00
Xc
25313f1075 refactor(components): [badge] use JSX in Unit test (#7972) 2022-05-30 09:38:54 +08:00
1d13ebb05d feat: drop jest (#7248)
* feat: drop jest

* test: remove ssr

* test: rename

* chore: update tsconfig
2022-04-19 16:51:44 +08:00
de0ee53cf0 test(components): switch all components to vitest (#7205)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-04-19 12:46:57 +08:00
5d85fba20c chore: self closing vue tag (#6603) 2022-03-13 16:16:11 -04:00
0f387bd58e feat(components): [badge] expose content (#6247) 2022-02-23 16:34:32 +08:00
447fbbb638 refactor(components): [el-badge] use utils isNumber (#6095) 2022-02-17 10:45:05 +08:00
bqy
944deebd8d refactor(components): [badge] switch to script-setup syntax (#6068) 2022-02-16 15:18:02 +08:00
6503e55277 refactor(utils): migrate utils (#5949)
* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils-v2): migrate utils

* refactor(utils): remove

* refactor(utils): rename

* refactor(utils): move EVENT_CODE to constants

* refactor: remove generic
2022-02-11 11:03:15 +08:00
c1e5d724d8 refactor(utils-v2): refactor utils (#5699) 2022-02-09 16:59:08 +08:00
b63956c325 refactor: add transition namespace (#5829) 2022-02-08 09:09:54 +08:00
3cef197e65 refactor(components): [badge] add namespace & instance type (#5473) 2022-01-19 11:37:11 +08:00
edb5726c2d refactor(utils): refactor buildProps & replace buildProp (#3775) 2021-10-06 19:56:24 +08:00
46d69bd37f refactor: improve buildProp (#3558)
* refactor: improve buildProp

* fix: fix key

* fix: improve validator
2021-09-22 20:27:23 +08:00
d943a66434 fix(components): [el-badge] add export type (#3376) 2021-09-13 13:19:24 +08:00
04d1d13905 refactor(components): refactor badge (#3366) 2021-09-13 10:49:52 +08:00
Aex
6408d3cce6 feat(components): [el-badge] support color of type when is-dot (#3279)
* feat(components): [el-badge] apply color of type when isDot

* fix(components): [el-badge] change default type to danger
2021-09-07 17:17:39 +08:00
55348b30b6 style: use prettier (#3228)
* style: use prettier

* style: just prettier format, no code changes

* style: eslint fix
object-shorthand, prefer-const

* style: fix no-void

* style: no-console
2021-09-04 19:29:28 +08:00
b0f4fc5f23 refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00