Commit Graph

783 Commits

Author SHA1 Message Date
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
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
XieZongChen
ea16d5f0f7
docs: supplementary CHANGELOG (#1453) 2021-10-27 16:09:36 +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
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
07akioni
8f6a34d37e feat(input-number): focus & blur methods 2021-10-18 00:51:37 +08:00
07akioni
53027762e6 fix(cascader): separator prop doesn't appiled to filter select menu 2021-10-17 23:57:31 +08:00
Kev1nzh
f1360847bb
feat(upload): add max prop and fix disabled's style (#1363)
* feat(upload): add `max` prop and fix `disabled`'s style  (#1237)

* feat(upload): fix CHANGELOG

* feat(upload): add test

* feat(upload): fix disabled

* Update src/upload/src/Upload.tsx

Co-authored-by: 07akioni <07akioni2@gmail.com>

* feat(upload): fix `upload-dragger` mergedDisabled

Co-authored-by: kev1nzh <kev1nzh@app-ark.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-17 23:55:46 +08:00
07akioni
9c61354dee refactor(cascader): filter fixing 2021-10-17 22:59:23 +08:00
XieZongChen
35693c8644
fix(cascader): fix filter prop lose efficacy (#1382) 2021-10-17 22:50:17 +08:00
07akioni
1661e2edd5 feat(time-picker): add use-12-hours prop, closes #547 2021-10-17 22:45:00 +08:00
07akioni
134aa49ecd fix(upload): file is set to null after upload failure, closes #1316 2021-10-17 19:43:56 +08:00
07akioni
23a7f24888 feat(input): add count slot, closes #1314 2021-10-17 19:20:58 +08:00
07akioni
4ac6be229a fix(dialog): close button will be overlayed with content, closes #1381 2021-10-17 18:56:21 +08:00
07akioni
e140e848d4 fix(collapse): expanded status is lost when using v-if with n-collapse-item, closes #1387 2021-10-17 18:51:47 +08:00
XieZongChen
a2e5f557cb
feat(dropdown): add dropdown-props prop (#1369)
* feat(dropdown): add dropdown-props prop

* feat: optimization
2021-10-16 16:10:57 +08:00
07akioni
15261637f8 2.19.8 2021-10-14 04:18:00 +08:00
07akioni
497e657013 refactor(auto-complete): getDerivedShowFromValue => getShow 2021-10-14 04:07:53 +08:00
07akioni
2f79dfff7d fix(ellipsis): prop not show pointer cursor when content is short when tooltip = false, closes #1299 2021-10-14 03:50:31 +08:00
07akioni
f471c9bd04 fix(scrollbar): doesn't support scrollTo, closes #1346 2021-10-14 03:38:45 +08:00
07akioni
b5c7a6592b refactor(color-picker): refactor logic, ref #1281 2021-10-14 02:48:59 +08:00
不见月
66f5fd42b7
feat(color-picker): support swatches (#1324)
* feat(color-picker): support swatches

* feat(color-picker): support swatches

* chore(color-picker-swatches): simplify logic

*chore: delete `show-swatches` props
*refactor: simplify logic and lazily handle color values
*docs: update docs

* chore(color-picker): remove color props

* style(color-picker-swatches): dealing with format

* chore: supplementary logic

* test: add test
2021-10-14 01:50:50 +08:00
07akioni
31caf74e88 fix(data-table): has duplicate right border when it has multiple level headers 2021-10-14 01:03:28 +08:00
07akioni
a6a2efbdf3 feat(select): add input-props prop, closes #1351 2021-10-14 00:27:18 +08:00
小魔王
77260fe68c
feat(auto-complete): add getDerivedShowFromValue prop (#1318)
* feat(n-auto-complete): add show-on-focus prop to show all options or not

* feat: 更新属性设置

* feat: demo文件命名修正

Co-authored-by: unknown <liyang@xiaoyouzi.com>
2021-10-14 00:08:37 +08:00
小魔王
88b4c6e9a5
fix(data-table): fixed style does not work in group header table (#1348)
* fix(n-data-table): fixed style does not work in group header table

* feat: 优化类型

Co-authored-by: unknown <liyang@xiaoyouzi.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-13 17:14:13 +08:00
Void-YY
e3d5ae6e0d
feat: jaJP locale (#1347)
* feat(locale): add jaJP locale

* Update CHANGELOG.en-US.md & CHANGELOG.zh-CN.md

Co-authored-by: YY <yanyu@tri-japan.com>
2021-10-13 17:05:12 +08:00
07akioni
2921860be1 2.19.7 2021-10-12 03:26:39 +08:00
07akioni
e7bbcf410f fix(modal): on-after-enter prop not working 2021-10-12 03:20:55 +08:00
小魔王
1b6fe1427d
fix(ellipsis): expand-trigger prop not show pointer cursor when con… (#1302)
* fix(n-ellipsis): expand-trigger prop not show pointer cursor when content is short

* feat: 优化cursor样式添加

* fix: 测量前后摆正ellipsis样式

* feat: 提取公共方法

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: unknown <liyang@xiaoyouzi.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-12 01:18:08 +08:00
07akioni
cf61b67789 fix(select): fallback-option prop's type, closes #1327 2021-10-12 00:02:12 +08:00
07akioni
7230ca20e8 2.19.6 2021-10-10 19:43:07 +08:00
07akioni
204441be20 docs(changelog): format 2021-10-10 19:34:53 +08:00
Yufan You
bd50a70fd5
fix: ul list style (#1311)
This was introduced in #1248. These styles should belong to Breadcrumb
only.
2021-10-10 19:27:47 +08:00
07akioni
1e0c1ab7af fix: useThemeVars is sometimes unusable, closes #1309 2021-10-10 00:37:12 +08:00
07akioni
9ed18b2f96 refactor(cascader): clean codes 2021-10-10 00:37:12 +08:00
小魔王
a6298cac85
feat(cascader): provide all top options in callback function (#1298)
* feat(n-cascader): provide all top Key values in callback function

* feat: 更新获取节点路径

* fix: 考虑节点null值

Co-authored-by: unknown <liyang@xiaoyouzi.com>
2021-10-09 23:47:29 +08:00
Mr.Bai
1d7901e89f
feat(layout): add scroll event (#1296)
* feat(n-layout): add scroll event

* optimization

Co-authored-by: Jiwen Bai <56228105@qq.com>
2021-10-09 11:03:45 +08:00
07akioni
336320001c fix(menu): incorrect warning on default-expanded-keys 2021-10-08 00:15:32 +08:00
07akioni
e6cdfbdf91 2.19.5 2021-10-07 02:57:47 +08:00
07akioni
1214144b55 docs(changelog): reorder 2021-10-06 22:13:02 +08:00
XieZongChen
51d9b39a53
feat(tree): on-update-* prop add option info (#1277)
* feat(n-tree): n-tree's on-update prop add option info.

* feat: optimization

* feat: optimization

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-06 22:10:25 +08:00
07akioni
1646f9b11a fix(pagination): buttonColor theme variable not working 2021-10-06 21:53:09 +08:00
07akioni
783354d91f feat(popover): add to prop 2021-10-06 13:50:59 +08:00
07akioni
47fac44d35 wip(date-picker): clean codes 2021-10-06 13:44:51 +08:00
doom-9
3ea326e7a2
feat(date-picker): support month type (#1202)
* 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.

* feat(date-picker): wip

* feat(date-picker): wip

* feat(date-picker): support VirtualList

* wip

* 添加 NScrollbar

* Update use-calendar.ts

* changelog

* 抽取公共代码

* 完善代码
2021-10-06 11:45:12 +08:00
07akioni
bacb7a3fc7 feat(date-picker): add first-day-of-week prop 2021-10-06 02:17:06 +08:00
07akioni
47346fa47f refactor(data-table): multiple column sorting 2021-10-06 01:59:30 +08:00
07akioni
f19822bdd1 fix(popselect): checkmark overlays on option text, closes #1282 2021-10-06 00:14:18 +08:00
07akioni
9b059bcd5d fix(popover): can't be nested with other pop-able components, closes #872 2021-10-05 23:54:40 +08:00
07akioni
84d2950dd8 fix(data-table): selection column's width is collapsed when it is set to fixed, closes #1283 2021-10-05 02:11:22 +08:00
07akioni
1e5c6d0fa6 feat(dropdown): support options with type='render' 2021-10-05 02:05:31 +08:00
07akioni
93db614c4d feat(scrollbar): new component 2021-10-04 18:22:36 +08:00
07akioni
94693bb64a feat(collapse-transition): new component, closes #829 2021-10-04 16:17:50 +08:00
07akioni
c31442bdf7 feat(switch, checkbox): add check-value & unchecked-value prop, closes #1234 2021-10-04 15:16:48 +08:00
Yugang Cao
ae4c3c56cf
feat(descriptions): add separator prop (#1265)
* feat: add separator prop

* fix: remove separator dom

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-10-04 13:40:08 +08:00
07akioni
ad8b6d587c feat(data-table): supports using path of the property to get as column key, closes #1271 2021-10-04 13:37:43 +08:00
07akioni
68c4e8d3a9 fix(data-table): throws error when using selection and summary together, closes #1276 2021-10-04 13:20:34 +08:00
07akioni
e9e133b82b feat(menu, dropdown): customizable field 2021-10-04 13:06:42 +08:00
Yugang Cao
b688493c8e
fix(date-picker): date action validate error (#1259)
* fix: date-picker date action validate error

* fix: update

* fix: validate error

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-10-02 00:15:08 +08:00
shuaibishun
b6ebd7614f
fix(form-item): too long content affects formItem width (#1269)
* fix: Too long content affects formItem  width

* fix: 修改更新日志

* fix: update log

Co-authored-by: zhouzhengshun@huatu.com <zhouzhengshun@huatu.com>
2021-10-02 00:14:10 +08:00
Matthew
a4cc59c608
feat(breadcrumb): aria support (#1248)
* improve accessibility of the breadcrumb container

* improve semantic and accessibility of breadcrumb item

* update doc

update index of the documentation

* update changelog

* Fix typo

* fix label doc for BreadCrumb

* improve test coverage

improve coverage

* add test for raising error when item is not inside a container

* create composable to make browser location reactive

* handle isCurrent automatically

* update docs

* externalize hasWindow function

* use better naming
2021-09-29 16:09:02 +08:00
wenzheng
d62f9348c6
feat(layout-sider): add ToggleButtonTextColor (#1250)
* feat(layout-sider): add siderToggleButtonTextColor

* docs(changelog): fulfill

* feat(layout-sider): improve toggleButtonIconColor
2021-09-29 00:09:48 +08:00
07akioni
c58aaea137 docs(changelog): fix upload log 2021-09-28 23:40:01 +08:00
Kev1nzh
3b39e2561b
fix(upload): show-preview-button not working (#1258)
Co-authored-by: kev1nzh <kev1nzh@app-ark.com>
2021-09-28 23:38:34 +08:00
07akioni
beb63bf2fc 2.19.3 2021-09-28 03:17:12 +08:00
07akioni
b39a798185 fix(tabs): scroll shadow is not updated when it's resized, closes #1224 2021-09-28 03:02:41 +08:00
07akioni
532a6ce65f fix(grid-item): no resposive behavior, closes #1220 2021-09-28 02:41:48 +08:00
Mr.Bai
468055bb00
fix(data-table): ellipsis ellipsis not show when last column not set ellipsis (#1246)
* fix(data-table): ellipsis bug

* update changelog

* fix(data-table): typo

* fix(data-table): typo

Co-authored-by: Jiwen Bai <56228105@qq.com>
2021-09-27 22:09:56 +08:00
07akioni
93dffad0ea 2.9.12 2021-09-26 01:33:44 +08:00
07akioni
92134f7801 fix(select): global theme overrides not working for select trigger, closes #1229 2021-09-26 01:30:26 +08:00
07akioni
8d3d98102e fix: components with popover throws error in SSR 2021-09-25 19:35:17 +08:00
07akioni
698e557797 fix: components with rtl support throws error in SSR 2021-09-25 18:09:54 +08:00