163 Commits

Author SHA1 Message Date
07akioni
cf4404d7af 2.41.0 2025-01-05 22:47:49 +08:00
07akioni
2992da0217 refactor(modal): correct draggable implementation 2025-01-04 20:21:56 +08:00
Zheng-Changfu
11ee8fcbdc
feat(modal): draggable (#6583)
* feat(modal): 弹窗增加拖拽功能

* docs(modal): 增加文档示例

* chore(changelog): 拖拽功能增加 changelog

* chore(modal): getMousePosition 逻辑重构,删除不需要的代码

* chore(modal): 阻止默认行为,防止拖拽文字触发浏览器默认拖拽行为引起的 bug

---------

Co-authored-by: 07akioni <07akioni2@gmail.com>
2025-01-04 18:30:34 +08:00
07akioni
3cb6a61ebf refactor: impl slots type in a correct way 2025-01-02 01:18:33 +08:00
Zero
5bf584dfa9
feat: add slots typing for all components (#6603)
* feat(alert): add slots type (#6599)

* feat(auto-complete): add slots type (#6599)

* fix(auto-complete): slots type (#6599)

* feat(auto-complete): export slots type (#6599)

* feat(avatar): add slots type (#6599)

* feat(avatar-group): add slots type (#6599), may not be particularly precise

* feat(breadcrumb-item): add slots type (#6599)

* feat(breadcrumb-item): export slots type (#6599)

* feat(button): add slots type (#6599)

* feat(calendar): add slots type (#6599)

* feat(card): add slots type (#6599)

* feat(carousel): add slots type (#6599)

* feat(cascader): add slots type (#6599)

* feat(collapse): add slots type (#6599)

* feat(color-picker): add slots type (#6599)

* feat(data-table): add slots type (#6599)

* feat(date-picker): add slots type (#6599)

* feat(descriptions): add slots type (#6599)

* feat(dialog): add slots type (#6599)

* feat(drawer-content): add slots type (#6599)

* feat(dynamic-input): add slots type (#6599)

* feat(dynamic-tags): add slots type (#6599)

* feat(ellipsis): add slots type (#6599)

* feat(empty): add slots type (#6599)

* feat(float-button): add slots type (#6599)

* feat(image): add slots type (#6599)

* feat(input): add slots type (#6599)

* feat(input-number): add slots type (#6599)

* feat(list): add slots type (#6599)

* feat(mention): add slots type (#6599)

* feat(modal): add slots type (#6599)

* feat(page-header): add slots type (#6599)

* feat(pagination): add slots type (#6599)

* feat(popconfirm): add slots type (#6599)

* feat(popover): add slots type (#6599)

* feat(popselect): add slots type (#6599)

* feat(result): add slots type (#6599)

* feat(select): add slots type (#6599)

* feat(slider): add slots type (#6599)

* feat(spin): add slots type (#6599)

* feat(split): add slots type (#6599)

* feat(statistic): add slots type (#6599)

* feat(step): add slots type (#6599)

* feat(switch): add slots type (#6599)

* feat(tabs): add slots type (#6599)

* feat(tag): add slots type (#6599)

* feat(thing): add slots type (#6599)

* feat(time-picker): add slots type (#6599)

* feat(time-picker): export slots type (#6599)

* feat(timeline): export slots type (#6599)

* feat(tooltip): export slots type (#6599)

* feat(tree): export slots type (#6599)

* feat(tree-select): export slots type (#6599)

* feat(upload-trigger): export slots type (#6599)

---------

Co-authored-by: Naily <zero@naily.cc>
2025-01-01 23:06:07 +08:00
07akioni
41db9e6aa4 fix: lint 2024-12-19 17:50:44 +08:00
Artea
9a2d034d60
fix: lint (#6568)
Signed-off-by: Artea <sepush@outlook.com>
2024-11-27 15:23:29 +08:00
07akioni
9007b7d905 feat: upgrade eslint config 2024-11-26 00:32:01 +08:00
07akioni
d5d0134c09 fix: lint erros 2024-09-25 01:14:09 +08:00
07akioni
1dfb1be694 feat: move eslint config to antfu config 2024-07-12 02:19:13 +08:00
07akioni
10f515f8f6 fix: type 2024-07-12 01:03:34 +08:00
吉仔
35cf7891b9
fix(dialog,modal): call destroy method may throw error (#5756)
Co-authored-by: 07akioni <07akioni2@gmail.com>
2024-03-10 17:40:10 +08:00
吉仔
e0d160410f
fix(useModal): card preset without corresponding props in n-card slots (#5757)
* fix(useModal): `card` preset without corresponding props in `n-card` slots, closes #5746

* Update src/card/src/Card.tsx

---------

Co-authored-by: 07akioni <07akioni2@gmail.com>
2024-03-10 17:31:18 +08:00
07akioni
82fccfb05a 2.38.0 2024-02-22 22:49:15 +08:00
07akioni
2bf5229543 refactor(modal-provider): make it work 2024-01-29 23:36:51 +08:00
jahnli
e7f5534394
feat(modal-provider): add modal provider (#5547)
* feat: add modal provider

* fix: remove api

* feat: add demo
2024-01-29 22:12:38 +08:00
Sepush
0a836a17aa
chore: update deps (#4727)
* chore: update deps

Signed-off-by: Sepush <sepush@outlook.com>

* chore: eslint disable nextline

Signed-off-by: Sepush <sepush@outlook.com>

* chore: disable eslint for await dom click

Signed-off-by: Sepush <sepush@outlook.com>

* chore: update deps

Signed-off-by: Sepush <sepush@outlook.com>

* chore: update deps

Signed-off-by: Sepush <sepush@outlook.com>

* chore: update deps

Signed-off-by: Sepush <sepush@outlook.com>

* fix: pin node version to 18.15 to fix ci

Signed-off-by: Sepush <sepush@outlook.com>

---------

Signed-off-by: Sepush <sepush@outlook.com>
2023-05-01 01:37:06 +08:00
Amorites
129dd01918
fix: typo (#4757) 2023-05-01 00:50:10 +08:00
07akioni
8c44c3dc83
fix: some components works abnormally in open mode shadow DOM, closes #3281 (#3447)
* fix: event target

* chore: update evtd

* 2.32.2-beta.0

* chore: fix type

* fix: some components works abnormally in open mode shadow DOM, closes #3281
2022-08-07 20:14:54 +08:00
thinker-ljn
8ac46b121d
feat: export all component props definitions (#3214)
* feat: export all component props definitions

* feat: export props definitions from index file

* Update src/_internal/scrollbar/src/Scrollbar.tsx

* Update src/carousel/src/CarouselDots.tsx

* Apply suggestions from code review

Co-authored-by: 07akioni <07akioni2@gmail.com>
2022-07-03 19:54:43 +08:00
07akioni
dc3e920f10 fix(modal): mask may overlay over content if no preset is used, closes #3204 2022-06-28 23:33:03 +08:00
07akioni
ac37052dbc fix(modal): when many instances are activated at same time, on-mask-click will be triggered on every modal even only one mask is clicked #3147 2022-06-22 02:32:39 +08:00
07akioni
4e2d4ac427 feat(modal): can handle esc key pressing correctly with inner popup component like n-select, closes #2973 2022-06-12 19:04:45 +08:00
07akioni
fca40da624 fix(modal, drawer): will be closed on esc pressed during IME input, closes #2989 2022-05-30 00:00:05 +08:00
f635df2ccf
fix: skip esc if in composition (#2991)
* fix: skip esc if in composition

* refactor: reduce code
2022-05-29 23:46:42 +08:00
07akioni
c84c654322 refactor: remove default from cssr transition 2022-05-18 01:58:12 +08:00
07akioni
9992d0521e 2.28.3 2022-05-11 04:22:36 +08:00
07akioni
40cbafe48b feat(drawer, modal, dialog): block scroll 2022-05-05 03:40:51 +08:00
07akioni
a57815d2bf fix: eslint 2022-04-17 19:33:40 +08:00
07akioni
f3d3db11ab fix: type 2022-04-17 18:35:35 +08:00
Sepush
d392b12c04
refactor: enhance type (#2763)
Signed-off-by: Sepush <sepush@outlook.com>
2022-04-10 17:47:25 +08:00
07akioni
1137c6cd3a fix: using capture on clickoutside handlers 2022-04-10 16:35:56 +08:00
07akioni
09384ee7ee fix(useDialog): renders component with popup content with unexpected focus management behavior, closes #2612 2022-03-11 01:42:45 +08:00
07akioni
ea4a98245c fix(modal): mask doesn't have enter & leave transition 2022-03-05 23:56:13 +08:00
07akioni
86ec149059 docs(modal): nested debug 2022-02-14 00:59:00 +08:00
07akioni
3351152634 feat(dialog, modal): inlineThemeDisabled 2022-02-14 00:45:53 +08:00
07akioni
c753414573 refactor: component cssr id 2022-02-02 01:25:19 +08:00
07akioni
0f9a365d43 fix: remove cycle import 2022-01-29 02:04:06 +08:00
07akioni
58462ccf84 2.24.2 2022-01-24 04:19:04 +08:00
07akioni
d2de41d93b fix(modal): warning 2022-01-24 03:04:33 +08:00
07akioni
2df79f735d fix(drawer): can't be closed by esc key when mask-closable=false, closes #2233 2022-01-24 02:59:17 +08:00
07akioni
6caedd6b61 feat(modal, drawer): add focus related props 2022-01-24 01:00:23 +08:00
Yugang Cao
f7e4aa15bc
fix: esno run error (#2248) 2022-01-24 00:02:45 +08:00
07akioni
ad2fe09177 refactor: add prefix for injection key name to avoid potential conflict 2022-01-23 03:05:26 +08:00
Julian Hundeloh
8ad8c28158
refactor: use new createInjectionKey function (#2203)
Co-authored-by: Julian Hundeloh <julian@hundeloh-consulting.ch>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2022-01-23 02:55:27 +08:00
07akioni
b991f42835 fix(modal): temporarily fix type error introduced by vue 3.2.27 2022-01-17 00:37:53 +08:00
07akioni
a866e75bfb 2.24.0 2022-01-12 05:05:57 +08:00
07akioni
5e0b8477bc Merge branch 'docs' 2022-01-12 04:33:32 +08:00
07akioni
09c7275fb4 refactor(carousel): clean code 2022-01-10 02:58:39 +08:00
不见月
c0d62e3994
refactor(carousel): many features (#2061)
* refactor(Carousel): refactor `Carousel`

* fix(Carousel): calc total view on auto slides size

* test(Carousel): udpate test

* test(Carousel): update test

* chore(Carousel)

* docs(Carousel): supplementary demo

* fix(Carousel): server test

* fix(Carousel): server test

* chore(Carousel): docs and style

* fix(Carousel): fix transitionend listen

* chore: ignore ts error

* docs(Carousel): docs

* chore(Carousel): ts error

* chore(Carousel): optimize the drag experience

* chore(Carousel): dot focus and slide and wheel

* chore(Carousel): assign keyboard to dot

* docs

* docs

* style(Carousel): style and docs and exposed methods

* fix(Carousel): calculating size incorrectly when scaling

* docs: version

* refactor(Carousel): transition and style

* feat(Carousel): dot focus and effect

* test

* chore: disabled transition duration on mounted instant

* fix(Carousel): autoplay

* fix(Carousel): calc slide size

* chore(Carousel): normalize
2022-01-10 02:34:23 +08:00