Commit Graph

121 Commits

Author SHA1 Message Date
kiner-tang
d1df8e54cc
refactor: Use constant instead of enum to reduce package size ()
* feat: optimize code

* feat: optimize code

* feat: optimize code
2024-04-12 16:28:06 +08:00
lijianan
a17b98aa69
type: export AffixRef interface () 2024-03-21 16:30:47 +08:00
MadCcc
2e0942ab26
refactor: separate cssVarCls from hashId ()
* refactor: cssVarCls

* refactor: update

* chore: update

* fix: cascader & tree-select

* fix: ribbon
2023-12-14 14:58:53 +08:00
MadCcc
c4b8c9df93
refactor: genStyleHooks ()
* refactor: genStyleHooks

* chore: update sciprt

* refactor: affix

* refactor: select

* chore: update

* refactor: update

* refactor: update

* refactor: done

* chore: code clean

* chore: code clean

* chore: fix lint

* chore: decrease size limit

* chore: code clean

* chore: code clean

* chore: remove export
2023-11-29 17:23:45 +08:00
lijianan
c8637cf03a
feat: Affix support cssVar ()
* feat: Affix support cssVar

* fix: fix

* fix: fix

* fix: fix
2023-11-13 20:25:05 +08:00
lijianan
34e0a3e0cf
style: simplify code 2023-10-14 11:57:53 +08:00
mingming-ma
73c0cd7b49
fix: Affix target add listeners protect () ()
* Fix: Affix target add listeners protect ()

* Update components/affix/index.tsx

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: lijianan <574980606@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-10-14 10:49:23 +08:00
lijianan
be92498f15
refactor: rewrite Affix CC => FC ()
* fix

* test

* Update index.ts

* fix

* fix

* fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* fix: fix

* update docs

* Update components/affix/index.tsx

Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* fix

* test: add test case

* Update components/affix/index.zh-CN.md

Co-authored-by: afc163 <afc163@gmail.com>
Signed-off-by: lijianan <574980606@qq.com>

* update demo

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: kiner-tang(文辉) <1127031143@qq.com>
Co-authored-by: afc163 <afc163@gmail.com>
2023-10-07 18:53:14 +08:00
Dunqing
f0c105d262
feat: insert use client automatically at compilations instead of hardcode ()
* feat: remove the hardcode of `use client`

* chore: update `@ant-design/tools`

* test: update

* fix: incorrect dictionary

* chore: update dep

* ci: check use client

* chore: update ci

* fix: should be LIB_DIR

* ci: should only run in dist

* chore: update check tsx files
2023-09-04 19:27:20 +08:00
叶枫
65fd05c344
style: add prettier-plugin-sort-imports ()
* style: sort

* style: sort

* style: sort

* style: sort

* style: 规则调整

* style: 规则调整
2023-08-21 10:03:15 +08:00
二货爱吃白萝卜
72b449a1a4
docs: update faq ()
* docs: update faq

* chore: update lint

* chore: update lint

* chore: use returnType
2023-08-14 13:32:57 +08:00
lijianan
38474628fd
feat: prepend use-client directive for with Next.js App Router ()
* fix: prepend use-client directive for with Next.js App Router

* Update components/affix/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/badge/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/divider/index.tsx

Co-authored-by: MadCcc <1075746765@qq.com>
Signed-off-by: lijianan <574980606@qq.com>

* Update components/cascader/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/list/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/mentions/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/qrcode/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/spin/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/steps/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/time-picker/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/transfer/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

* Update components/tree-select/index.tsx

Signed-off-by: lijianan <574980606@qq.com>

---------

Signed-off-by: lijianan <574980606@qq.com>
Co-authored-by: MadCcc <1075746765@qq.com>
2023-07-15 12:57:03 +08:00
lijianan
c61ea98b5d
fix: code optimization ()
* fix: code optimization

* refactor

* [CodeFactor] Apply fixes

* test: add cov

---------

Co-authored-by: codefactor-io <support@codefactor.io>
2023-05-19 14:29:44 +08:00
lijianan
8f1d496972
refactor: remove rc-util/lib/Dom/addEventListener ()
* docs: fix typo in docs

* remove rc-util/lib/Dom/addEventListener

* fix

* fix
2023-05-18 20:35:09 +08:00
Simon He
40a1e5e4d1
perf(affix): reduce unnecessary calculations () 2023-04-26 19:58:59 +08:00
Rinku Chaudhari
4dc86da9e5
chore: code comment english ()
* translations: cn to en

* docs: grammar fix and ts definitions translated to english

* scripts change revert
2023-04-07 23:27:50 +08:00
lyn
433a73c53b
fix: typos () 2023-02-24 09:04:03 +08:00
lijianan
f9a38af179
chore: rename internal Affix () 2023-02-22 10:42:25 +08:00
MadCcc
8e5c31413a Merge branch 'master' into feature-merge-master 2023-02-06 10:56:07 +08:00
lijianan
0a75cfe9e2
refactoring: use React.createRef replace ref function ()
* style: use React.createRef replace ref function

* style: use React.createRef replace ref function

* add useRef

* fix

* rename
2023-02-05 10:51:51 +08:00
二货爱吃白萝卜
1fc374495f
chore: patch for missing rootClassName ()
* chore: init test

* test: rootClassName inject

* test: part of test

* chore: patch qrcode rootCls

* chore: part rootClassName

* chore: part rootClassName

* test: more test

* test: more test

* test: more test

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* test: more test

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: part rootClassName

* chore: fix lint

* chore: fix lint

* chore: ignore part of lint

* test: update snapshot

* test: fix test case

* chore: fix node test

* chore: adjust render logic

* fix: test

* test: update snapshot

* test: update

* refactor

* chore: fix require module logic
2023-01-20 11:03:50 +08:00
René Wang
a2980e3d57
lint: remove useless ts-ignore comment () 2023-01-18 10:07:16 +08:00
thinkasany
98041591ff
fix: optimized type () 2022-11-24 10:08:44 +08:00
lijianan
52cb37f487
chore: remove throttleByAnimationFrameDecorator ()
* chore: remove throttleByAnimationFrameDecorator

* fix

* fix
2022-11-19 13:45:56 +08:00
二货机器人
d5cfd195dd chore: merge master 2022-11-07 23:32:46 +08:00
章鱼怪
0438b0bbca
fix: Affix shake when switching from hide to show ()
* fix: do not measure when Affix is hidden

* feat: add test
2022-11-07 11:58:32 +08:00
MadCcc
03a1ae427d Merge branch 'feature' into next-merge-feature 2022-10-11 20:29:55 +08:00
Zheeeng
dcac4f66a4
fix: signatures for Upload () 2022-10-06 18:53:06 +08:00
zombiej
8749c1ae04 chore: merge master 2022-06-22 15:18:03 +08:00
二货机器人
2c2c631bfd
chore: prettier components () 2022-06-22 14:57:09 +08:00
zombiej
cffc4f05aa chore: merge master 2022-06-07 21:13:52 +08:00
Shang Song
22c8bc4c7a
test: migrate part of Affix tests () 2022-06-06 17:49:55 +08:00
MadCcc
1f5e271eb6 Merge branch 'master' into next-merge-master 2022-05-09 21:26:25 +08:00
Tom Xu
1719748a29
chore: eslint add consistent-type-imports ()
* chore: eslint add consistent-type-imports

* fix avatar

* Update Item.tsx
2022-05-07 14:31:54 +08:00
MadCcc
b63bdc47e5 Merge branch 'master' into next-merge-master 2022-03-23 22:08:40 +08:00
Long Hao (龙濠)
18c4fe5fd9
refactor: next-affix change affix use cssinjs ()
* refactor: next-affix

* fix: wrong spell

* fix: add fixme

* fix: prefixnam

* fix: change hash to classname

* fix: omit hashclassName

* fix: change name to rootclassName

* fix: rootClassName add

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
2022-03-22 13:27:12 +08:00
Long Hao (龙濠)
7c182926bc
fix: wrong word and cancel export inner interface ()
Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
2022-03-22 10:32:54 +08:00
Long Hao (龙濠)
bef910b9bc
refactor: move prefixCls to wrapper ()
* refactor: move prefixCls to wrapper

* fix: name change

Co-authored-by: zengguhao.zgh <zengguhao.zgh@alibaba-inc.com>
2022-03-14 16:22:18 +08:00
二货机器人
a05a8674e9
refactor: Wrap affix with FC ()
* test: fix

* chore: ts fix

* chore: update ts def

* test: fix test
2022-03-02 17:05:59 +08:00
Tom And Jerry
e0c777d5b4
refactor: replace let with const ()
* refactor: replace let with const

* refactor: replace let with const

* refactor: replace let with const

* refactor: replace let with const new

* Update components/affix/index.tsx

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: afc163 <afc163@gmail.com>
2021-12-04 00:10:59 +08:00
renovate[bot]
94b21979e0
chore(deps): update dependency @typescript-eslint/parser to v5 ()
* chore(deps): update dependency @typescript-eslint/parser to v5

* fix md lint

* fix eslint errors

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: afc163 <afc163@gmail.com>
2021-10-15 09:30:56 +08:00
afc163
13a829d20c
fix: classNames typing errors () 2021-04-02 22:37:36 +08:00
二货机器人
9e5e4c8743
chore: Fix ts () 2021-02-20 14:08:49 +08:00
afc163
99c2c2ff0b
refactor: use optional chaining instead of if ()
* refactor: use optional chaining instead of if

* revert some code
2021-02-19 18:26:53 +08:00
二货机器人
4315ac567c
chore: replace omit ()
* chore: Replace omit.js with rc-util omit

* chore: Replace omit.js with rc-util omit

* fix ts

* fix ts

* fix ts
2021-01-13 21:00:30 +08:00
Hossein Mohammadi
04bfa3c54f
chore: add prettier-plugin-jsdoc () 2020-12-28 15:30:18 +08:00
dependabot[bot]
775d1800bb
chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0 ()
* chore(deps-dev): bump eslint-config-prettier from 6.15.0 to 7.0.0

Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0.
- [Release notes](https://github.com/prettier/eslint-config-prettier/releases)
- [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/eslint-config-prettier/compare/v6.15.0...v7.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

* chore: fix eslint style

* chore: prettier code style

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: afc163 <afc163@gmail.com>
2020-12-09 17:12:32 +08:00
偏右
637aa09bc5
chore: fix some eslint problems ()
* 💄 fix lint

* 💄 fix lint
2020-06-08 18:01:50 +08:00
二货机器人
bb1f157645
feat: ConfigProvider support getTargetContainer ()
* add getTargetContainer

* support affix

* test case

* anchor use new context api

* Anchor support getTargetContainer

* doc it

* update patch
2020-04-29 20:22:16 +08:00
Eric Wang
95f6f0f14a
Chore: Refactor affix test to typescript () 2020-04-18 00:31:31 +08:00