Commit Graph

36 Commits

Author SHA1 Message Date
E66
d2e2ff3d59 fix(components): [affix] positioning under KeepAlive cache (#23549)
* fix(components): [affix] positioning under KeepAlive cache

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

Co-authored-by: rzzf <cszhjh@gmail.com>

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
2026-01-29 16:53:12 +08:00
rzzf
3e30572f9c refactor(components): [affix] use type-based definitions (#23400) 2026-01-17 21:25:20 +08:00
dopamine
0ca1570aa1 chore: upgrade to Vue 3.5 (#22096)
* chore: upgrade deps

* chore: replace __ExtractPublicPropTypes with ExtractPublicPropTypes

* fix: get rid of type errors

* fix: resolve test errors with @vue/test-utils v2.4.6

* fix: resolve test errors with Vue 3.5.22

* ci: set pnpm flag

* chore: update the Vue peer dependency version

* Apply suggestion from @tolking

Co-authored-by: qiang <qw13131wang@gmail.com>

* docs: update example code

Co-authored-by: warmthsea <2586244885@qq.com>

* chore: remove csstype (#22487)

* chore: fix merge code type error

* chore: fix test:ssr error

- Cannot read properties of undefined (reading 'getSSRProps')

* chore: fix typecheck:vitest error

* chore: update pnpm yaml file

* test: fix collapse accordion error

* chore: update deps

* chore: fix type error

* chore: lock file

* chore: sync change

sync with the remove of vue macro

* refactor: use computed instead of eagerComputed

* fix: timeline.test.tsx typecheck

* chore: clean lock file

try dont throw CodeFactor issues in ci

did:
- rm pnpm-lock.yaml
- rm -rf ./**/node_modules
- pnpm store prune
- pnpm cache delete
- pnpm install

Also stay in 3.1.0 for vue-tsc in order to avoid the warnings of
template refs, see https://github.com/vuejs/language-tools/issues/5815

* chore: format code

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: qiang <qw13131wang@gmail.com>
Co-authored-by: warmthsea <2586244885@qq.com>
Co-authored-by: Noblet Ouways <91417411+Dsaquel@users.noreply.github.com>
Co-authored-by: sea <45450994+warmthsea@users.noreply.github.com>
Co-authored-by: btea <2356281422@qq.com>
2025-12-16 09:34:03 +08:00
micaiguai
b171632d4e feat(components): [affix] support append-to and teleported (#23053)
* feat(components): [affix] implement append-to-body

* feat: change append-to-body to teleported and append-to

* test: optimize affix teleport case

* Update packages/components/affix/src/affix.ts

Co-authored-by: rzzf <cszhjh@gmail.com>

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

Co-authored-by: rzzf <cszhjh@gmail.com>

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

Co-authored-by: rzzf <cszhjh@gmail.com>

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

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

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

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

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

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

* chore: update the affix.md format

---------

Co-authored-by: rzzf <cszhjh@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-12-15 21:13:54 +08:00
rzzf
1859f5137e fix(utils): [addUnit] handle 0 value correctly (#22808)
* fix(utils): [addUnit] handle 0 value correctly

* fix: provide example

* fix: update

* fix: update

* test: update case name

* fix: update

Co-authored-by: Dsaquel <291874700n@gmail.com>

* fix: update

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

---------

Co-authored-by: Dsaquel <291874700n@gmail.com>
Co-authored-by: btea <2356281422@qq.com>
2025-11-18 16:29:01 +08:00
An Hao
797044368e fix(components): [affix] correctly updateRoot when fixed (#21094)
Co-authored-by: anhao <wzanh@sinopec.com>
2025-07-07 21:18:47 +08:00
yuhengshen
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
Noblet Ouways
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 db0116a288.

* Revert "chore: fix"

This reverts commit 69c82a90c0.

* chore: fix

* style: `pnpm lint:fix`

* fix: lint

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

This reverts commit 13506ffb81.

* 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
biaobiao
1d6711a37c fix(components): [affix] scroll event value sync (#20108)
* fix:affix scroll event value sync

* fix(components): [affix] fix lint errors in the affix.vue file

* fix(components): [affix] remove excess text

---------

Co-authored-by: QD-OUJINBIAO <1105973070@qq.com>
2025-03-13 16:38:40 +08:00
thinkasany
7dbac0e1bc chore: use event constants instead string (#20104)
* chore: use UPDATE_MODEL_EVENT constants

* chore: update INPUT_EVENT & CHANGE_EVENT
2025-03-12 15:52:07 +08:00
sea
244e811b44 chore(eslint-config): add line-between-blocks rules (#20051) 2025-03-08 08:55:02 +08:00
Kylin
97652eb14b refactor(components): [affix] optimized code logic (#17929)
* perf(components): [affix] optimized code logic

* perf(components): [affix] restore the original writing
2024-08-20 11:42:06 +08:00
Akash Bagchi
f5e49591a9 improvement(other): Minor change to English phrasing (#16654)
Update affix.vue

Minor fix to phrasing
2024-04-25 15:30:37 +08:00
Jeremy
dd65c73870 docs(components): [affix] (#10345)
docs(components): [affix]

* Add lost exposed API to documentation.
* Refine code.
* Add descriptions for APIs.
* Refine implementation for `FunctionType` and `EnumType`.
* Update affix documentation based on the changes above.

Co-authored-by: JeremyWuuuuu <15975785+JeremyWuuuuu@users.noreply.github.com>
2022-11-01 21:52:16 +08:00
Li Zhequ
5be9bd2d4d fix(components): [affix] fix affix when scroll container is not window (#9660)
Co-authored-by: lizhequ <lizhequ@ysbang.cn>
2022-09-20 17:06:00 +08:00
三咲智子
861a7953b4 refactor(components): switch to vue macros (#9306) 2022-09-16 22:57:41 +08:00
yangguang
4a20c326fa fix(components): [affix] expose updateRoot (#9159)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-08-27 16:52:06 +00:00
류한경
e757409852 refactor(components): [affix] props and emits validation (#7945)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-05-29 06:24:45 +08:00
三咲智子
184facdb4c chore: add eslint rule sort imports (#6823) 2022-03-25 15:35:56 +08:00
三咲智子
bb160c5f9b refactor(components): [affix] use vueuse utils (#6295)
* refactor(components): refactor affix

* refactor: resolve review comments
2022-03-01 23:27:00 +08:00
bqy
77eb2ea4e4 refactor(components): [affix] use JSX in Unit test (#6159)
Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
2022-02-23 16:44:48 +08:00
bqy
c2fe2a4f05 refactor(components): [affix] switch to script-setup syntax (#6065) 2022-02-16 21:47:01 -05: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
三咲智子
58463b9ba4 refactor(components): [affix] add namespace & instance type (#5474) 2022-01-19 11:37:37 +08:00
Herrington Darkholme
343b7e333f fix(components): always emit scroll with scrollTop number (#4974) 2021-12-26 15:44:47 +08:00
midcu
fb55efe48b fix(components): [el-affix] 监听容器的大小变化 (#3932)
Co-authored-by: midcu <me@midcu.com>
2021-11-02 18:46:10 +08:00
Alan Wang
4b76238ea3 fix(components): [el-affix] update method does not exist (#3996) 2021-10-22 12:15:35 +08:00
deepthan
e8043abca8 fix: capitalize the first letter of the error message (#3882)
* Fix: fix erros message typo

Co-authored-by: linkun.he <helinkun@ithinkdt.com>
Co-authored-by: Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>
2021-10-15 17:51:15 +08:00
三咲智子
edb5726c2d refactor(utils): refactor buildProps & replace buildProp (#3775) 2021-10-06 19:56:24 +08:00
Summer
ec96e9dbc7 fix(components): [el-affix] get scrollContainer of vertical (#3424)
Co-authored-by: 徐志伟 <zwxu01@wisedu.com>
2021-09-27 14:53:16 +08:00
三咲智子
46d69bd37f refactor: improve buildProp (#3558)
* refactor: improve buildProp

* fix: fix key

* fix: improve validator
2021-09-22 20:27:23 +08:00
三咲智子
7a4bd0f236 refactor(components): refactor affix (#3368) 2021-09-13 12:02:18 +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
jeremywu
b0f4fc5f23 refactor: update package path and bundle folder (#3016) 2021-08-24 13:36:48 +08:00