116 Commits

Author SHA1 Message Date
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
da4394dee6 fix: memory leak 2024-12-19 19:25:46 +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
d507910f6d 2.40.2 2024-11-26 01:12:06 +08:00
07akioni
9007b7d905 feat: upgrade eslint config 2024-11-26 00:32:01 +08:00
07akioni
57f4504fc0 refactor: some PR fixes 2024-10-07 16:33:59 +08:00
jahnli
a4981a294f
feat(image): add error slot (#6424)
* feat(n-image): add `error` slot

* feat: add demo
2024-10-07 13:49:52 +08:00
07akioni
313d234d86 Merge branch 'main' into docs 2024-07-15 23:05:13 +08:00
07akioni
1dfb1be694 feat: move eslint config to antfu config 2024-07-12 02:19:13 +08:00
07akioni
da4a6ec969 Merge branch 'main' into docs 2024-05-03 23:36:29 +08:00
07akioni
136dbe91e7 2.38.2 2024-05-03 23:31:29 +08:00
07akioni
d1d306cfc3 feat(cascader): adds render-prefix & render-suffix props 2024-04-24 01:08:39 +08:00
07akioni
4845729961 fix(image): download icon 2024-04-24 00:48:49 +08:00
07akioni
fb1a86cfe8 refactor(image): render-toolbar props 2024-04-24 00:46:00 +08:00
jahnli
eb8bdb69e7
feat(image): add render-toolbar prop (#5677)
* feat: add toolbar slot

* refactor to render function

* feat: add docs

---------

Co-authored-by: 07akioni <07akioni2@gmail.com>
2024-04-24 00:18:25 +08:00
吉仔
4bc272c317
docs: fix type desc (#5734) 2024-03-11 14:05:00 +08:00
07akioni
83c09a6bf9 fix(avatar): lazy & error 2024-01-07 02:15:07 +08:00
07akioni
b5a72a0cd8 feat(date-picker): month, quarter, year format 2024-01-01 17:52:35 +08:00
zhanglecong
47e5511aea refactor: download, data-table exportCsv => downloadCsv 2023-12-27 21:16:10 +08:00
jahnli
3ed6557a48
feat(image-group): add on-preview-prev on-preview-next prop (#4849)
Co-authored-by: lijiaheng <lijiaheng@semi-tech.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2023-06-12 23:19:11 +08:00
07akioni
7f15d72013 refactor(image-preview): download impl 2023-06-08 23:52:27 +08:00
jahnli
1190413a05
feat(image-preview): adds downaload tool (#4864)
* feat(n-iamge-preview): adds `downaload` tool

* fix: modify code location

---------

Co-authored-by: 07akioni <07akioni2@gmail.com>
2023-06-08 23:47:05 +08:00
Pig Fang
41e9a0f96f
fix(types): fix tsc compilation errors (#4820) 2023-05-27 22:14:43 +08:00
07akioni
f00d90cdef Merge branch 'main' into docs 2023-05-21 22:02:30 +08:00
吉仔
31fb2f10a1
fix(image): fallback-src prop and lazy loading dosen't work (#4485)
* fix(image): `fallback-src` prop and lazy loading dosen't work, close #4480

* Update src/image/demos/zhCN/lazy.demo.vue

---------

Co-authored-by: 07akioni <07akioni2@gmail.com>
2023-05-11 23:01:32 +08:00
07akioni
1c652acc9a Merge branch 'main' into docs 2023-05-10 00:16:43 +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
XieZongChen
38697ac80a
test(image): optimize test (#4423) 2023-01-31 11:58:17 +08:00
07akioni
ee7e7e4473 refactor(image, avatar): lazy 2022-12-24 19:34:58 +08:00
wuqian
f391d3c7b6
fix(image): in lazy mode, the rootMargin of preload does not take effect. (#4070) 2022-12-24 19:27:54 +08:00
07akioni
88907fc496 Merge branch 'main' of github.com:TuSimple/naive-ui 2022-12-12 00:36:43 +08:00
吉仔
0942679316
fix(image): error while operating the previewed image (#4154)
* fix(image): error in toolbar operation during preview, close #4144

* Update CHANGELOG.en-US.md

* Update CHANGELOG.zh-CN.md

Co-authored-by: 07akioni <07akioni2@gmail.com>
2022-12-12 00:33:02 +08:00
Vanilla
f145984d1f
fix(image): preview toolbar error (#4159)
close https://github.com/tusen-ai/naive-ui/issues/4157
2022-12-09 15:35:24 +08:00
07akioni
bf8184904d 2.34.0 2022-11-21 02:12:14 +08:00
07akioni
d40eb77a37 fix(image): doesn't prevent space pressing scroll behavior in preview mode, closes #3919 2022-11-21 01:50:39 +08:00
07akioni
cb045130d4 fix: deps upgrade 2022-11-12 21:32:12 +08:00
07akioni
3961aa4f16 fix(upload): show image preveiew warning 2022-11-12 19:25:56 +08:00
07akioni
abd777577c feat(image): adds previewed-img-props prop 2022-11-12 13:25:33 +08:00
07akioni
41e278d206 refactor(image): remove withModifiers 2022-10-30 00:44:02 +08:00
Nebula
2dacc6250c
fix(image): preview image mouse to drag (#3950) (#3964) 2022-10-30 00:42:26 +08:00
DF-98A
69b858ee25
docs(image): fix typo (#3425) 2022-08-07 20:29:42 +08:00
07akioni
039f5ef2e7 fix(avatar): shows placeholder after load fails, closes #3315 2022-07-22 02:11:21 +08:00
07akioni
1e7bb4a8f5 fix: all components' user-select style prop's effect on safari 2022-07-06 23:29:19 +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
675fb6b5d0 fix(image, avatar): lazy load 2022-07-03 13:56:29 +08:00
d73d7ad061
feat(avatar): lazyload (#3154)
* feat: avatar lazyload

* chore: update docs

* chore: log update

* chore: docs version col

* refactor: use native lazy load image
2022-07-03 13:36:32 +08:00
07akioni
03a07409fc fix(image): lazy prop doesn't work on Safari & Firefox 2022-06-22 03:35:38 +08:00
07akioni
922224aa27 2.30.5 2022-06-20 02:28:31 +08:00