Commit Graph

754 Commits

Author SHA1 Message Date
07akioni
366c0b17bb feat(menu): add watch-props prop 2021-11-15 01:59:42 +08:00
07akioni
e59f9a8d1f feat(locale): add createLocale to make locale customizable, closes #1525 2021-11-14 22:16:04 +08:00
doom-9
80dd6d6702
feat(date-picker): support year type (#1297)
* feat:n-input Support hidden password

* feat(form): support require-mark-placement(#171)

* Revert "feat(form): support require-mark-placement(#171)"

This reverts commit 0627777693.

* Revert "feat:n-input Support hidden password"

This reverts commit ea6491783d.

* test(dialog): Update dialog component test (#1404)

* test(data-table): update test (#1411)

* fix

* Feat(date picker) support year type

* format code

* 修正代码

* 修正代码

* 去掉多余代码

* 去掉无用代码

* 修正代码

* 修改类型

* 修正代码

* Update src/date-picker/src/DatePicker.tsx

Co-authored-by: Mr.Bai <935196116@qq.com>

* Update src/date-picker/src/DatePicker.tsx

* 修正代码

* checkbox:  简化代码

* add padding-bottom

* changelog

* Update Checkbox.tsx

Co-authored-by: songjianet <1778651752@qq.com>
Co-authored-by: XieZongChen <46394163+amadeus711@users.noreply.github.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
Co-authored-by: Mr.Bai <935196116@qq.com>
2021-11-14 20:20:59 +08:00
07akioni
120458613f refactor(input): input-props prop 2021-11-14 19:30:13 +08:00
Sepush
15b21454a7
fix(input): input-props override the props (#1576)
* fix(#1553):`input-props` override the props

* fix:remove char
2021-11-14 19:14:13 +08:00
XieZongChen
1ef5569216
fix(button): shrink abnormally in certain scenarios when using the circle prop (#1562) 2021-11-12 01:35:41 +08:00
Mr.Bai
f2c3249804
fix(time-picker): blur event not trigger (#1505)
* fix(time-picker): blur event not trigger

* rebase

* feat(time-picker): add test

Co-authored-by: Jiwen Bai <56228105@qq.com>
2021-11-09 02:03:33 +08:00
小魔王
68e903e5a1
fix(gird): suffix gridItem`s span does not work when collapsed (#1537)
* fix(gird): 当后缀gridItem设置span时收缩状态不起作用

* fix: update test

Co-authored-by: unknown <liyang@xiaoyouzi.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-11-09 01:59:47 +08:00
小魔王
fdd37e7848
feat(menu): add a color distinction between selected and unselected arrow (#1540)
* feat(menu): add a color distinction between selected and unselected arrow

* Update src/menu/styles/light.ts

Co-authored-by: unknown <liyang@xiaoyouzi.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-11-09 01:57:13 +08:00
Yugang Cao
2b434e76c9
fix(menu): defaultExpandedKeys use watchEffect to initialize (#1541)
Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-11-08 23:08:05 +08:00
07akioni
514b5b217e 2.20.2 2021-11-05 02:43:19 +08:00
rubjo
4f795a28a5
feat(i18n): add Norwegian Bokmål locale (#1518) 2021-11-05 02:16:57 +08:00
Kigoal
3ed68e16cb
fix(upload): file's thumbnailUrl not working (#1492)
* feat(upload): add `createThumbnailUrl` parameter `fileInfo`

* feat(upload): add `thumbnailUrl`

* feat(upload): add `thumbnailUrl`

* chore(upload): rollback `createThumbnailUrl` feature

* test(image): add `previewSrc` test case
2021-11-05 02:16:18 +08:00
小魔王
a28b09c528
fix(button): keyboard does not work when setting false (#1509)
Co-authored-by: unknown <liyang@xiaoyouzi.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-11-03 23:14:13 +08:00
07akioni
26fc49f233 refactor(upload): instance misses openOpenFileDialog method 2021-11-03 23:11:24 +08:00
Yugang Cao
ec61bbf906
fix(upload): export openFileDialog method (#1511)
* fix(n-upload): export openFileDialog method

* Update CHANGELOG.zh-CN.md

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-11-03 23:04:49 +08:00
FaHaIk
cbd2c7beb6
feat(i18n): add deDE locale (#1513)
* feat(i18n): add deDE locale

* docs: update CHANGELOGS
2021-11-03 23:02:28 +08:00
Yugang Cao
ca8475752b
feat(tabs): add pane-class prop (#1503)
Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-11-03 01:20:10 +08:00
Yugang Cao
3b633fa6eb
fix(alert): theme vars cannot work (#1501)
Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-11-03 01:19:28 +08:00
07akioni
19c5d71410 feat(modal): add transform-origin prop, closes #1498 2021-11-02 01:19:15 +08:00
07akioni
c3ae99d608 docs(changelog): format 2021-11-01 02:13:52 +08:00
07akioni
a56122dca6 2.20.1 2021-11-01 01:53:03 +08:00
07akioni
6070a8cb57 fix(select): menu height shifts on close in filterable mode 2021-11-01 01:36:26 +08:00
07akioni
cd5f041bd5 fix(select): option created by on-create doesn't show correct label in trigger, closes #1482 2021-11-01 01:24:54 +08:00
07akioni
ec1662a515 refactor(tree): clean codes 2021-11-01 00:59:09 +08:00
XieZongChen
9d43c0db36
feat(tree): n-tree's on-load prop is triggered when the expanded-keys prop changes in remote mode (#1429)
* test(dialog): Update dialog component test (#1404)

* test(data-table): update test (#1411)

* feat(tree): n-tree's on-load prop is triggered when the expanded-keys prop changes in remote mode

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization

* Update src/tree/src/Tree.tsx

Co-authored-by: songjianet <1778651752@qq.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-11-01 00:47:07 +08:00
Yugang Cao
9a922c6a13
feat(image): toolbar add close icon (#1418)
* feat(image): toolbar add close icon

* fix: replace closeIcon

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-11-01 00:23:46 +08:00
07akioni
abe07b777e docs(changelog): cascader fix 2021-10-31 23:58:06 +08:00
fuhaofuhao
b3d20684fd
fix(cascader): cannot remove option when using custom-field and multiple together (#1360)
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-31 23:53:17 +08:00
Yugang Cao
ea80180308
feat(select): add menuProps prop (#1480)
* feat(n-select): add menuProps prop

* feat(n-select): add menuProps prop

* feat: update

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-10-31 23:26:13 +08:00
小魔王
66548d127f
fix(tree): filter prop does not work when assgined childrenFiled (#1479)
Co-authored-by: unknown <liyang@xiaoyouzi.com>
2021-10-31 23:22:22 +08:00
小魔王
75879999c1
fix(tabs): refactor before-leave prop (#1420)
* feat: update before-leave prop

* fix: optimization

* fix: update log

* feat: update test

* fix: add debug demo

* feat: optimization

* fix: add debug demo

* feat: optimization

* feat: optimization

Co-authored-by: unknown <liyang@xiaoyouzi.com>
2021-10-29 03:15:45 +08:00
07akioni
d8acab7f83 2.20.0 2021-10-28 03:52:41 +08:00
XieZongChen
ba11d25ddf
fix(input): text type doesn't support count slot (#1452)
* refactor(tabs): on-before-leave prop

* fix(tabs): typo

* fix(upload): file can't be removed when file count limit is reached, closes #1401

* 2.19.11

* test(dialog): Update dialog component test (#1404)

* test(data-table): update test (#1411)

* feat(input): n-input add categories supported by const slots

Co-authored-by: 张乐聪 <zhanglecong@bytedance.com>
Co-authored-by: songjianet <1778651752@qq.com>
2021-10-28 02:38:34 +08:00
07akioni
93f5b4f4c4 fix(date-picker): separator prop not working, closes #1456 2021-10-28 02:20:39 +08:00
07akioni
9312609462 docs(changelog): idID locale 2021-10-27 02:24:14 +08:00
07akioni
a4563e4c4c refactor(tabs): rename display-directive show to show:lazy 2021-10-27 02:16:31 +08:00
XieZongChen
44fd457157
feat(data-table): refactor virtual-scroll (#1295)
* refactor(tabs): on-before-leave prop

* fix(tabs): typo

* fix(upload): file can't be removed when file count limit is reached, closes #1401

* 2.19.11

* test(dialog): Update dialog component test (#1404)

* test(data-table): update test (#1411)

* feat(data-table): restructure virtual-scroll

* feat(data-table): optimization

* feat: optimization

* feat(data-table): optimization expanded

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization

* feat: add change log

* Update src/data-table/src/TableParts/Body.tsx

Co-authored-by: 张乐聪 <zhanglecong@bytedance.com>
Co-authored-by: songjianet <1778651752@qq.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-27 02:15:36 +08:00
不见月
079b8f4ed0
feat(tabs): support tab-pane lazy load (#1423)
* feat(tabs): support `tab-pane` lazy load

* docs(tabs): update docs

* chore(tab-pane): revised name

* perf(tabs): reduce the number of patch

* docs(tabs): update docs

* test(tabs): add test

* refactor(tabs): refactor `lazyload` of `tab-pane`

* fix(tabs): avoid dependency loop

* Apply suggestions from code review

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-27 01:57:55 +08:00
bjym
f826003544
feat(date-picker): shortcuts function value (#1415)
* feat(date-picker): shortcuts function value

* feat(date-picker): Shortcuts remove data parameter

* Apply suggestions from code review

Co-authored-by: aaronz <aaron.bjym1011@outlook.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-27 01:31:50 +08:00
07akioni
f618ffc167 fix(loading-bar): will show once even if start is not called when loading-bar-style is set 2021-10-25 01:07:19 +08:00
07akioni
0cbb1730cb fix(log): font-size prop not working, closes #1416 2021-10-24 00:36:51 +08:00
不见月
9978d92906
feat(color-picker): add show-color-preview prop (#1395)
* feat(color-picker): add `color-preview`

* docs(color-picker): add docs

* docs(color-picker): replace symbols

* feat(color-picker): `color-picker-swatches` support keyboard selection

* fix: guarantee test pass

* chore: use `toUpperCase`

* feat(color-picker): add `show-preview` prop

* chore(color-picker): public color convert function

* chore: keep uppercase

* docs(color-picker): document with color preview

* chore(color-picker): correct the variable name

* docs(color-picker): update docs

* refactor(tabs): on-before-leave prop

* fix(tabs): typo

* fix(upload): file can't be removed when file count limit is reached, closes #1401

* 2.19.11

* test(dialog): Update dialog component test (#1404)

* test(data-table): update test (#1411)

* chore: correct prop

Co-authored-by: 张乐聪 <zhanglecong@bytedance.com>
Co-authored-by: songjianet <1778651752@qq.com>
Co-authored-by: XieZongChen <46394163+amadeus711@users.noreply.github.com>
2021-10-22 00:59:38 +08:00
张乐聪
a98528f2d7 feat(collapse-transition): add show-prop, deprecate collapsed prop, closes #1407 2021-10-22 00:07:59 +08:00
07akioni
0449838329 2.19.11 2021-10-21 23:48:21 +08:00
07akioni
439f265667 fix(upload): file can't be removed when file count limit is reached, closes #1401 2021-10-21 23:48:16 +08:00
小魔王
2c530b56da
feat(tabs): add on-before-leave prop (#1394)
* feat(tabs): add on-before-leave prop

* feat: demo引入属性优化

* feat: 优化tab加载

* feat: 优化tab加载

* feat: 处理新tab打开中断旧导航

Co-authored-by: unknown <liyang@xiaoyouzi.com>
2021-10-20 23:22:40 +08:00
07akioni
06462b96fc docs(changelog): fix typo 2021-10-18 02:11:52 +08:00
07akioni
e511b8d413 2.19.9 2021-10-18 01:59:37 +08:00
07akioni
e271e63272 feat(config-provider): add breakpoints prop, closes #1379 2021-10-18 01:44:46 +08:00