Commit Graph

2362 Commits

Author SHA1 Message Date
XieZongChen
c5534b139f
test(page-header): add NPageHeader test (#383) 2021-07-05 16:22:43 +08:00
Wanli Song
f0a4b3c0fd
feat(auto-complete): add loading prop (#257)
* feat(auto-complete): add loading prop

* doc(changelog)

* test(auto-complete): add test

* fix(auto-complete): refact loading prop

Co-authored-by: wanli.song@tusimple.ai <wanli.song@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-05 15:21:23 +08:00
07akioni
e8b1b4ad07 fix(data-table): fixed column shadow doesn't work when max-height is set, closes #376 2021-07-05 15:17:02 +08:00
Wanli Song
79d1d381f2
docs(popover) (#377)
* doc(popover)

* Update src/popover/demos/enUS/index.demo-entry.md

Co-authored-by: wanli.song@tusimple.ai <wanli.song@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-05 14:51:39 +08:00
Ryan Wang
5a25b0cfe3
fix(popconfirm): popover internalExtraClass prop type error in popconfirm. (#381)
* fix: popover internalExtraClass prop type error in popconfirm.

* doc: update CHANGELOG.zh-CN.md

Co-authored-by: wangruiyuan <wangruiyuan@dgg.net>
2021-07-05 14:50:21 +08:00
07akioni
6262b6fdf8 feat(slider): add tooltip prop, closes #362 2021-07-05 14:23:51 +08:00
07akioni
72b1287424 refactor(form-item): label-align 2021-07-05 14:08:36 +08:00
07akioni
dd5be6fbe3 test(tree): fix prefix & suffix 2021-07-05 13:38:57 +08:00
Mr.Bai
b2d3816346
fix(form): label-align not work (#220)
* fix(form): label-align not work

* fix(form): label align when placement is top,align is right

* fix(form): naming problem

* changelog: update pending fix

* fix(form): label-align in cssvar

Co-authored-by: tusimple <jiwen.bai@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-05 13:07:57 +08:00
caoyugang_1
ad14dce495
docs(dialog): add descriptions (#372) 2021-07-05 12:50:00 +08:00
07akioni
0eb3d4a9ec docs(carousel): fix typo 2021-07-05 12:48:30 +08:00
doom-9
85c0bae815
feat:(carousel): add dot-position prop (#366)
* 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:(n-carousel): add dotPosition prop

* feat:(n-carousel): add test and fix code

* feat:(n-carousel): fix code

* feat:(n-carousel): fix code

* feat:(n-carousel): fix code and remove console
2021-07-05 12:45:57 +08:00
XieZongChen
4afc083389
test(icon): add NIcon test (#374) 2021-07-05 12:43:36 +08:00
07akioni
364058b94b chore(carousel): remove console 2021-07-04 21:20:18 +08:00
XieZongChen
ead038eb29
feat(tree): n-tree add prefix and suffix in TreeOption (#353)
* feat(tree):  add  and  in TreeOption

* feat(tree): add test for prefix and suffix

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization

* feat: optimization
2021-07-04 20:27:14 +08:00
07akioni
58897a73bf fix(carousel): doesn't work with v-for children 2021-07-04 20:16:33 +08:00
07akioni
f61990c139 docs(input): focus & blur manually 2021-07-04 12:55:20 +08:00
07akioni
8aef306a10 fix(menu): tooltip's inner <a />'s style 2021-07-04 01:00:58 +08:00
07akioni
cba70a3c3f fix(dropdown): inner <a />'s style 2021-07-04 00:30:55 +08:00
XieZongChen
47a67a2da2
test(gradient-text): add gradient-text test (#368)
* test(gradient-text): add gradient-text test

* test: optimization

* test: optimization
2021-07-04 00:20:30 +08:00
Pengsha Ying
0c2489e0a2
feat: Add native title attributes where necessary (#365)
* feat(Link): add the title attribute

* feat(Badge): Add the title attribute

* feat(Calendar): Add the title attribute

* feat(Transfer): Add the title attribute

* feat(Upload): Add the title attribute

* feat(Selection): Add the title attribute

* Replace the title assignment with `getTitleAttribute`

* fix(UploadFile): remove UploadFile title attribute

* update ChangeLog
2021-07-04 00:04:56 +08:00
cyn
4e994cc37f
fix(menu): render-label not working for dropdown in collapsed mode (#364)
* fix(menu): render-label not working for dropdown in collapsed mode

* feat(menu): typo demo
2021-07-04 00:02:35 +08:00
07akioni
616003762b
fix(upload): multiple=false doesn't work for drag & drop (#369) 2021-07-03 23:41:15 +08:00
doom-9
4191aaeb54
feat:(image): add img-props prop (#349)
* 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:(image): add test

* feat:(image): add test

* WIP

* WIP

* feat(image): add imgProps prop and add test

* feat(image): add imgProps type
2021-07-03 11:35:17 +08:00
seafronthu
3b6f4219fa
feat(loading-bar): export LoadingBarApi (#354)
* 对外导出 LoadingBarApiInjection

* changlog

* change log  export  type

* 修改为LoadingBarApi

* Apply suggestions from code review

* Update CHANGELOG.en-US.md

Co-authored-by: hhf <1170533231@qq.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-03 00:08:53 +08:00
07akioni
1fd2a6d919 2.15.2 2021-07-02 18:23:17 +08:00
07akioni
50dfc3b420
Merge pull request #360 from TuSimple/docs
Docs
2021-07-02 18:17:03 +08:00
07akioni
04e1a4b120 fix(tag): lacks on-update-checked prop 2021-07-02 17:54:37 +08:00
07akioni
16bd268aeb test(collapse): props.defaultExpandedNames 2021-07-02 17:22:36 +08:00
07akioni
aea1a71870 fix(modal): still closes when on-negative-click returns false 2021-07-02 17:14:36 +08:00
小魔王
27e703f465
fix(collapse): defaultExpandedNames doesn't work in accrodion mode (#351) 2021-07-02 17:14:23 +08:00
07akioni
df9690487f fix(input-group): type error
https://github.com/vuejs/vue-next/issues/4051
2021-07-02 11:54:16 +08:00
07akioni
49c3f587c5 fix(tab-pane): throws error when using v-if 2021-07-02 10:59:22 +08:00
07akioni
30d0299e0d
fix(select): doesn't scroll to selected item when menu is opened (#348) 2021-07-02 01:35:10 +08:00
cyn
8564f95031
feat(dropdown): add render-label prop (#321)
* feat(dropdown): add render-label prrop

* feat(dropdown): opt code

* feat(dropdown): add render-label test

* feat(dropdown): update snapshot

* feat(dropdown): optimaze test case

* Update src/dropdown/tests/Dropdown.spec.ts

* Update src/dropdown/tests/Dropdown.spec.ts

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-02 00:43:46 +08:00
07akioni
55f37d5005 test(spin): fix rotate 2021-07-02 00:23:51 +08:00
07akioni
930ecab4c8 refactor(spin): reimplement customize icon codes 2021-07-02 00:20:56 +08:00
Wanli Song
21698de271
feat(spin): icon slot, rotate prop (#289)
* feat(spin): add icon slot

* doc(changelog

* fix(spin): icon slot logic

* test(spin): add icon slot test

* fix(spin): refact code

* feat(spin): add rotate prop

Co-authored-by: wanli.song@tusimple.ai <wanli.song@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-01 23:57:16 +08:00
07akioni
1a354081ba
fix(loading-bar): disappears unexpectly (#347)
* fix(loading-bar): disappears unexpectly

* docs: changelog
2021-07-01 23:52:57 +08:00
doom-9
322bf2ca33
feat(image): add alt prop (#335)
* 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(input): add alt prop

* feat(input): add alt prop

* feat(input): add alt prop
2021-07-01 23:45:00 +08:00
caoyugang_1
efc0ba1e58
feat(form): export FormItemRule and FormRules (#345)
* fix: tsconfig support ts

* feat: form export FormItemRule and FormRules type
2021-07-01 22:41:29 +08:00
XieZongChen
cff915f954
feat(select): add render-tag prop (#270)
* feat: select add render-tag prop

* feat: fix changelog

* feat: add select render tag prop test

* feat: optimization

* feat: optimization

* feat: optimization
2021-07-01 11:32:08 +08:00
Danny Feliz
4e555a003c
feat: adds support for the enter key on the numeric keypad (#341) 2021-07-01 11:14:51 +08:00
kalykun
362d2c29e7
feat(carousel): add trigger prop (#339)
* feat(carousel): add trigger prop

* chore(carousel): use onMouseenter instead of onMouseover
2021-07-01 11:12:54 +08:00
XieZongChen
428101eda6
test(ellipsis): add ellipsis test (#342) 2021-07-01 11:09:44 +08:00
07akioni
b09818195d chore: fix lint 2021-07-01 01:03:45 +08:00
07akioni
e7cadff23d refactor(menu): rename placement to dropdown-placement 2021-07-01 00:52:41 +08:00
Kev1nzh
8ae18e646d
feat(upload): add before-upload prop (#294)
* feat(upload): add before-upload method

* docs(upload): add before-upload demo and log (#291)

* Update src/upload/demos/enUS/before-upload.demo.md

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

* Update src/upload/demos/enUS/before-upload.demo.md

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

* Update src/upload/demos/enUS/before-upload.demo.md

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

* Update src/upload/demos/enUS/index.demo-entry.md

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

* fix(upload): fix husky

* docs(upload): fix zhCN md as suggested

* fix(upload): replace file with copyFiles and remove console log

* docs(upload):  fix md method

* Update .husky/pre-commit

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

* Update src/upload/demos/enUS/index.demo-entry.md

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

* Update src/upload/demos/zhCN/index.demo-entry.md

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

* Update src/upload/src/Upload.tsx

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

* Update src/upload/src/Upload.tsx

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

* fix(upload):  rewrite with FileInfo

* docs(upload):  changelog  with FileInfo

* Update src/upload/demos/enUS/before-upload.demo.md

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

* Update src/upload/demos/zhCN/before-upload.demo.md

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

* Update src/upload/demos/zhCN/index.demo-entry.md

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

* Update src/upload/src/Upload.tsx

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

* Update src/upload/src/Upload.tsx

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

* Update src/upload/src/Upload.tsx

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

* Update src/upload/src/Upload.tsx

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

* Update src/upload/src/interface.ts

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

* docs(upload): delete useless attr

* fix(upload): optimize some code

* Update src/upload/src/Upload.tsx

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

Co-authored-by: kev1nzh <kev1nzh@app-ark.com>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-01 00:48:00 +08:00
Nic_
7b3821eb08
feat(menu): add placement prop (#316)
* feat(menu): add placement prop

* feat(menu): add placement prop

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-07-01 00:47:10 +08:00
liicos
8920de8cef
fix(calendar): remove useless console.log (#334)
* 去除calendar组件的console.log

* 更新changelog.md

Co-authored-by: liaojinping <liaojinping@mail>
2021-07-01 00:11:18 +08:00
doom-9
4e3d993147
docs(image) (#336)
* doc(image)

* doc(image)
2021-07-01 00:09:54 +08:00
XieZongChen
ba36861413
fix(ellipsis): fix ellipsis word (#337) 2021-07-01 00:09:16 +08:00
07akioni
846c339d9b fix(log): warn on highlight.js when no language is set, closes #327 2021-07-01 00:03:21 +08:00
07akioni
3dc4e7c8ba 2.15.1 2021-06-30 21:04:13 +08:00
07akioni
f50976ad83 2.15.0 2021-06-29 23:56:28 +08:00
07akioni
c1b0fe12a3
feat(select): add render-option prop, label support render function (#325)
* feat(select): add `render-option` prop, `label` support render function

* fix: type

* docs(data-table): fix caveat

* fix: type & test

* chore

* test

* fix(cascader, auto-complete, mention): related types
2021-06-29 23:40:50 +08:00
07akioni
3505549c32
Merge pull request #330 from TuSimple/docs
Docs
2021-06-29 23:29:11 +08:00
07akioni
a30d71f773 feat(tree): make leaf-only work with cascade 2021-06-29 23:18:56 +08:00
07akioni
0104a280c6 refactor(popover): remove title prop & fix docs 2021-06-29 23:03:38 +08:00
caoyugang_1
dc46ba15dd
feat:(popover): popover add header slot (#274)
* fix: tsconfig support ts

* feat(popover): add header slot

* fix: change some comment and add test

* fix: change test

* fix: change header paddingTop

* fix: spec

* fix: remove spec async

* fix: change popoverBody hasHeader

* fix: hasHeader remove ref

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-06-29 22:31:14 +08:00
XieZongChen
524d508089
test(divider): add divider test (#326) 2021-06-29 22:26:24 +08:00
doom-9
427ed502e9
docs(input): Improve the documentation (#324) 2021-06-29 17:58:32 +08:00
07akioni
d4740739a1 chore(tree): format 2021-06-29 15:27:33 +08:00
doom-9
a379334f00
feat(tree, tree-select): add leaf-only prop (#313)
* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* feat(tree and tree-select): add leaf-only prop

* Update src/tree/src/TreeNode.tsx

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-29 15:26:09 +08:00
XieZongChen
684d499e59
test(collapse): add collapse test (#317) 2021-06-29 02:19:42 +08:00
07akioni
6433a0d783
fix(dropdown): can't render n-popover in option (#311) 2021-06-28 01:17:36 +08:00
五柳
7956fbf6fd
test(tag): add tag test (#309) 2021-06-28 00:04:08 +08:00
07akioni
ddd860064a chore(upload): fix lint 2021-06-27 22:08:23 +08:00
cyn
c47bd3fd09
fix(menu): tooltip content doesn't follow render-label when collapsed (#308)
* fix(menu): render-label on collapsed

* docs: add changelog

* Apply suggestions from code review

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-27 21:30:25 +08:00
XieZongChen
3d48a7c711
fix(carousel): fix navigate to current item (#302)
* fix(carousel): fix carousel click triggering button bug

* Apply suggestions from code review

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-27 15:59:34 +08:00
Mr.Bai
4401d4954f
feat:(message): add useMessage usage link of prerequisite (#304)
* feat:(message): add useMessage usage link of prerequisite

* Update src/message/src/use-message.ts

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-27 15:51:57 +08:00
caoyugang_1
cf01833f1c
docs(descriptions): add description in api table (#297)
* docs: add descriptions doc

* feat: add descript docs

* Update src/descriptions/demos/enUS/index.demo-entry.md

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

* Update src/descriptions/demos/enUS/index.demo-entry.md

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

* Update src/descriptions/demos/enUS/index.demo-entry.md

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

* Update src/descriptions/demos/enUS/index.demo-entry.md

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

* fix: change zhCN docs

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-26 00:07:16 +08:00
07akioni
21a132241d
feat(select): rename option.render => option.renderLabel (#296) 2021-06-25 23:08:45 +08:00
Delowar Hossain
4cefd10bab
fix(input): clear button placeholder prevent clicking on actual component [#288] (#292)
* Fix: input clear button placeholder prevents clicking inside input #288

* changelog added

* Fix: input clear button placeholder prevents clicking inside input #288

* Fix: input clear button placeholder prevents clicking inside input #288

* TimePicer Fix #288
2021-06-25 22:57:36 +08:00
fa0a51ee14
feat(input): add input-props prop (#204)
* fix: add some lost form props

* chore: remove ts expect error

* feat: add `input-props`

* chore: update docs

* revert: clearable demo

* chore: typo

* chore: remove blank line

* fix: docs & props

* docs: update

* chore: changelog
2021-06-25 22:39:07 +08:00
07akioni
c371207c36 docs(data-table): narrow column type name 2021-06-25 11:17:18 +08:00
XieZongChen
7ce6b92e88
test(card): add card test (#290)
* test(card): add card test

* test(card): optimization
2021-06-25 10:39:15 +08:00
Mr.Bai
287c804519
fix(date-picker): provider pass date-locale doesn't work (#286)
* fix(date-picker): provider pass date-locale not work

* changelog: update fix #250

Co-authored-by: tusimple <jiwen.bai@tusimple.ai>
2021-06-24 19:37:31 +08:00
XieZongChen
252eea4f91
test(button): optimization button test (#287) 2021-06-24 16:01:49 +08:00
07akioni
870386ee38
feat(carousel): touch operation (#275)
* feat(carousel): touch operation

* chore: fix comment
2021-06-24 01:17:59 +08:00
giwitty
729f19fa1a
test(empty): add unit test (#256)
* test(empty): add unit test

* style(empty): rename

Co-authored-by: 陈强 <chenqiang@wondersoft.cn>
2021-06-23 23:35:11 +08:00
Yanming Deng
3136bb72f0
docs: fix typo (#272) 2021-06-23 23:20:25 +08:00
kalykun
ec37e3eb9d
chore(avatar): remove unnecessary size prop type (#273)
* chore(avatar): remove unnecessary size prop type

* doc: changelog

* Apply suggestions from code review

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-23 23:15:51 +08:00
07akioni
450b093fd9
docs(carousel): fix basic title (#268) 2021-06-23 15:56:55 +08:00
07akioni
6309ca13e0
2.14.0 2021-06-23 15:31:24 +08:00
07akioni
92462fbde8
Merge pull request #265 from TuSimple/docs
Docs
2021-06-23 14:56:16 +08:00
Wanli Song
fc955ff9d4
feat(upload): add on-update:file-list prop (#243)
* feat(upload): add v-model:file-list

* doc(changelog)

* fix(upload): change the timing of doUpdateFileList call

Co-authored-by: wanli.song@tusimple.ai <wanli.song@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-23 14:50:19 +08:00
07akioni
44946ecc9a fix(data-table): expand trigger's cursor is not pointer, closes #261 2021-06-23 14:21:04 +08:00
07akioni
38dcf86ad5 docs(pagination): fix prefix demo 2021-06-23 14:17:57 +08:00
cyn
06d0387ebc
feat(date-picker): add update-value-on-close prop (#231)
* feat(date-picker): add update-value-on-close prop (#156)

* feat(date-picker): add update-value-on-close prop

* feat(date-picker): lint style

* feat(date-picker): optimazate demo & docs

* feat(date-picker): optimaze docs

* feat(date-picker): lint date-picker code

* feat(date-picker): update prop desc

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

* feat(date-picker): disable update-value-on-close when handle button click

* feat(date-picker): OnClose type

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-23 14:03:19 +08:00
07akioni
4ebecee456
fix(input-number): many fixes (#259)
* fix(input-number): many fixes

- Fix `n-input-number` lacks `on-update-value` prop.
- Fix `n-input-number`'s value can't be null.
- Fix `n-input-number`'s button doesn't work after value is cleared, closes [#251](https://github.com/TuSimple/naive-ui/issues/251).
- `n-input-number` will focus directly, closes [#244](https://github.com/TuSimple/naive-ui/issues/244).

* docs(input-number): fixes

* docs
2021-06-23 13:35:14 +08:00
Yanming Deng
6edf9db812
test(alert): add some tests (#253) 2021-06-23 13:26:59 +08:00
07akioni
fd23a30721 docs(element): add useThemeVars link 2021-06-23 09:08:40 +08:00
07akioni
315fd67a03 feat(use-theme-vars): add useThemeVars composable & remove n-element's abstract prop and theme vars from default slot 2021-06-23 09:03:24 +08:00
07akioni
d50755f4e7
feat(carousel): new component (#248)
* wip(carousel): add scaffold

* feat(carousel): component

* docs(changelog): carousel

* fix(carousel): handle edge case

* feat(carousel): basic a11y
2021-06-23 08:30:35 +08:00
djkloop
4c13451496
docs(modal): remove show-mask (#247) 2021-06-23 00:08:01 +08:00
XieZongChen
643ad413aa
test(button): add test (#237)
* fix: add button test

* feat: optimization
2021-06-22 23:00:04 +08:00
xrkffgg
2e5b988dee
docs(checkbox): fix default in props (#245)
* Update index.demo-entry.md

* Update index.demo-entry.md
2021-06-22 22:48:11 +08:00
07akioni
4316282619 fix(select): can't input in filterable mode in single mode in iOS Safari
ref https://github.com/TuSimple/naive-ui/issues/230
2021-06-22 17:18:39 +08:00
Mr.Bai
131a51ec75
docs(message): add use not int setup demo (#215)
* docs(message): use message outside of setup

* docs(message): use html

* Apply suggestions from code review

* docs(message): put use message outside setup to Q&A section

* Apply suggestions from code review

Co-authored-by: tusimple <jiwen.bai@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-22 14:54:16 +08:00
07akioni
1deb3fb023 2.13.0 2021-06-21 22:09:27 +08:00
07akioni
cdb1ade28d docs(select): fix render-label has no selected arg 2021-06-21 22:03:39 +08:00
07akioni
571efa209e fix(date-picker, time-picker): icon doesn't work with clearable
Fix https://github.com/TuSimple/naive-ui/issues/222
2021-06-21 22:01:05 +08:00
07akioni
9a5d1a39f5
Merge pull request #226 from TuSimple/docs
Docs
2021-06-21 22:00:09 +08:00
XieZongChen
303eb71edc
feat: add button test (#221)
* feat: add button test

* feat: optimization
2021-06-21 21:43:03 +08:00
07akioni
da83b7a0d3 fix(button): loading icon doesn't show on iOS Safari
fix https://github.com/TuSimple/naive-ui/issues/219
2021-06-21 17:36:37 +08:00
07akioni
6ee3896319
feat(tree-select): component (#211)
* site: tree-select route

* refactor(internal-selection): remove useless remote prop & on-delete-last-option

* refactor(dropdown, popselect): set slots stable mark from true to 1

* fix(scrollbar): attributes applied multiple times

* wip(tree-select): add exports

* fix(tree): misses `on-update-expanded-keys`, `on-update-selected-keys`, `on-update-checked-keys` prop

* feat(tree): support keyboard operations

* feat(tree): scroll with keyboard target node

* fix(tree): `selected-keys` prop influences original array

* feat(tree): pending on selected node at first

* feat(tree): follow tree-select's pending status

* feat(tree): `internalCheckboxFocusable` prop

* refactor(tree): split treeMate to displayTreeMate & dataTreeMate to work with tree-select

* fix(tree): scrollbar won't sync in virtual scroll mode

* feat(tree-select)

* docs: changelog

* docs(tree-select)

* feat(tree-select): stricter type

* fix: typo

* fix(select): input blinks in filterable mode when click at menu and input has value

* fix(tree): multiple line style

* docs(tree-select)

* refactor(tree-select): disable tree expand animation on tree select

* feat(tree-select): change expanded keys on filter

* chore(tree): add comment about animation

* chore

* feat(tree-select): close on single select

* fix(base-selection): input has useless empty row in multiple filterable mode

* docs(tree-select): add clearable in filterable demo
2021-06-21 15:48:15 +08:00
XieZongChen
00ff423d62
feat(menu): add render-label prop (#191)
* feat: n-menu add renderLabel prop

* fix: optimization

* feat: add menu test and restructure menu renderLabel

* fix: optimization

* fix: optimization

* Apply suggestions from code review

* fix: optimization

* feat: Optimize code

* feat: Optimize demo docs

* fix: fixed path bug in site

* fix: fixed path bug in site

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-21 09:39:54 +08:00
caoyugang_1
82115e5c2d
feat(dropdown): add on-clickoutside prop (#199)
* fix: tsconfig support ts

* feat(dropdown) add onClickOutside:

* fix(dropdown): add clickoutside test

* fix: remove clickoutside demo

* fix: resolve conflict

* fix: change some error

* fix(PopoverBody): directives repeat

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
2021-06-20 22:46:54 +08:00
djkloop
b9dd756875 docs(tabs): api error (#207)
fix tab docs error
2021-06-20 22:37:04 +08:00
Yanming Deng
6437446eac
test(message): fix typo (#210)
Fixed a typo
2021-06-20 19:48:45 +08:00
caoyugang_1
d866c1b122
docs(date-picker): fulfill api table (#198)
* docs(DatePicker): add DatePicker docs

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/enUS/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

* Update src/date-picker/demos/zhCN/index.demo-entry.md

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

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-19 20:51:47 +08:00
07akioni
9d791cd56e
fix(tree): drag over leaf node causes error (#203) 2021-06-19 16:50:39 +08:00
07akioni
e9d377a380 2.12.2 2021-06-19 16:28:23 +08:00
07akioni
dc2f2080ae
fix(form-item): always show require mark (#201)
* docs(changelog): typo

* fix(form-item): always show require mark.

* chore
2021-06-19 16:23:50 +08:00
07akioni
58ee106560 2.12.1 2021-06-19 02:30:52 +08:00
07akioni
4a9e25c000
chore: sync doc branch (#195) 2021-06-19 02:23:16 +08:00
07akioni
cec295f3d1
feat(popselect): add render-label prop (#194) 2021-06-19 02:22:11 +08:00
TakaSoap
06127da334
docs(switch): fix typo (#196) 2021-06-19 02:11:33 +08:00
07akioni
4a767a4cff
Merge branch 'main' into docs 2021-06-19 02:07:28 +08:00
07akioni
59e02912a9 fix(message): content & option type not correct 2021-06-19 02:04:55 +08:00
07akioni
0fb8f0cc1e
refactor(input): reimplement icons, support press & hover (#193) 2021-06-19 02:03:22 +08:00
07akioni
3f1ebe119c
feat(select): add render-label prop (#190)
* feat(select): add `render-label` prop, `option.label` supports render function

* docs: changelog

* fix: type

* test: update snap
2021-06-19 01:08:54 +08:00
07akioni
1a39c06cf8
fix(notification): position not correct (#192) 2021-06-19 00:51:01 +08:00
07akioni
dbcf7a2b73
feat(popselect): support class attr (#189)
* feat(popselect): support class attr

* test: update snapshot
2021-06-18 22:28:22 +08:00
07akioni
b6165ca1a7 chore(input): cssr style 2021-06-18 21:26:14 +08:00
kalykun
96ae3a38dd
feat(input): add show-password-toggle prop to support show & hide password (#179)
* feat(n-input): add show-password attribute to support show & hide password

* feat(n-input): update show-password-toggle attribute

* docs: fix typos

* feat(n-input): remove unnecessary code

* feat(n-input): trigger click to show & hide password

* feat(n-input): add icon component prop onMouseup

* style(icon): add style to the eye icon

* style(n-input): modify css
2021-06-18 21:23:08 +08:00
Yiuman Kam
faee18c1d4
fix(input): baseline shifts when input mixed language(修复Input组件的行高问题)close#174 (#183)
* fix: Fixed Input Component line-heitgh issue(修复Input组件的行高问题)

* fix: Fixed Input Component line-height issue(修复Input组件的行高问题)

* style: 优化代码格式

* docs: add changelog for fixed input jitter (变更日志添加解决Input组件抖动问题)

* docs: 将fixes调整到pending中。

* Update CHANGELOG.zh-CN.md

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-18 15:21:52 +08:00
doom-9
107dc136a2
feat(form): require-mark support left and right (#184)
* feat(form): support require-mark-placement(#171)

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

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

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

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

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-18 13:18:25 +08:00
五柳
e5d640f4d7
fix(icon): $parent.$options will be undefined in setup script (#185) 2021-06-18 10:55:56 +08:00
07akioni
51b43826cb fix: test warnings 2021-06-17 22:04:06 +08:00
07akioni
c92f862fb6
feat(dropdown): support class (#181) 2021-06-17 21:56:00 +08:00
fae668b9ff
fix(form-item): custom width override (#175)
* fix: form-item custom width override

* chore: use `formatLength` instead of `pxfy`
2021-06-17 16:43:21 +08:00
五柳
bb74d13b56
docs(button): add tag prop document introduction (#169)
* docs(button): add tag prop document introduction

* Update CHANGELOG.en-US.md

* Update CHANGELOG.zh-CN.md

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-17 10:46:43 +08:00
07akioni
8e89d1db4f 2.12.0 2021-06-16 23:49:38 +08:00
07akioni
f431ba7911
Merge pull request #166 from TuSimple/docs
Docs
2021-06-16 23:42:23 +08:00
07akioni
1b7236ac1d
Merge branch 'main' into feat 2021-06-16 23:12:08 +08:00
07akioni
2317e1ea21
feat(n-a): remove to prop (#162) 2021-06-16 23:06:21 +08:00
XieZongChen
47c8c08001
feat(input-number): support keyboard events ArrowUp and ArrowDown opera… (#161)
* feat: InputNumber support keyboard events ArrowUp and ArrowDown operations

* feat: Optimize code
2021-06-16 23:02:13 +08:00
07akioni
11fae2f48d refactor: remove service layout 2021-06-16 22:18:44 +08:00
07akioni
f18af1e3f9
feat(tree): support disabled & checkboxDisabled on option. fix click on indent won't trigger select in block line mode (#160) 2021-06-16 22:03:57 +08:00
牧码山人
902773310e
docs(form): fix custom-rule demo 2021-06-16 21:58:09 +08:00
牧码山人
9c83e7f1b4
docs(form): fix custom-rule demo 2021-06-16 21:57:54 +08:00
二梦
a08dbcf1b0
fix(cascader): text blur in win10 Chrome. (#154) 2021-06-16 17:29:49 +08:00
caoyugang_1
6ec77a2f3f
docs: update affix ~ data-table doc (#126)
* feat: update demo doc

* docs: update affix to data-table docs

* fix: change some question

* Update src/affix/demos/enUS/index.demo-entry.md

* Update src/affix/demos/zhCN/index.demo-entry.md

* Apply suggestions from code review

* Apply suggestions from code review

* Update src/auto-complete/demos/enUS/index.demo-entry.md

* Apply suggestions from code review

* Apply suggestions from code review

* fix: vercel test failed

* Apply suggestions from code review

Co-authored-by: yugang.cao <yugang.cao@tusimple.ai>
Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-16 15:06:09 +08:00
07akioni
445e2772a8 2.11.12 2021-06-16 14:13:09 +08:00
07akioni
da5d78378f
feat(element): pass themeVars to default slot & add abstract prop (#146) 2021-06-16 14:04:39 +08:00
07akioni
5c7c05c149
Merge branch 'main' into feat 2021-06-16 13:32:45 +08:00
07akioni
31d2f8ff01
refactor: remove config-consumer (#142)
* refactor: remove config-consumer

* docs
2021-06-16 13:13:36 +08:00
07akioni
80c368dc2b
fix(auto-complete): customizing input not working (#143) 2021-06-16 13:13:11 +08:00
07akioni
cd19648059
Merge pull request #141 from TuSimple/docs
chore: sync main with docs
2021-06-16 13:11:54 +08:00
07akioni
1678a29118 docs: optimize default slot template style 2021-06-16 12:58:14 +08:00
07akioni
f8f312aec1
feat(drawer-content): closable prop (#140) 2021-06-16 11:47:20 +08:00
cyn
59d8643e65
feat(tag): unstable rtl (#130)
* feat(tag): unstable rtl

* feat(tag): optimizate code

* feat(tag): delete extra close class

* feat(tag): optimizate code
2021-06-15 23:51:39 +08:00
ahwgs
b18b742055
test(space): add space test (#138)
* test(space): add space test

* test(space): update snapshot
2021-06-15 23:49:53 +08:00
Loner
87aee41e68
docs(layout): delete error attribute on n-layout-footer (#134) 2021-06-15 23:18:02 +08:00
07akioni
1690141486 docs(form): fix slider example 2021-06-15 18:38:07 +08:00
07akioni
7fc659de7e fix(radio-group): doesn't trigger form item validation 2021-06-15 18:36:29 +08:00
07akioni
c4950e01d3 docs(dynamic-tags): fix closable default value 2021-06-15 14:35:13 +08:00
cyn
962c2cebbb
docs(button): optimizate button rtl demo (#125) 2021-06-15 12:16:06 +08:00
07akioni
f9fb82695a 2.11.11 2021-06-15 11:23:16 +08:00
07akioni
801b647530 2.11.9 2021-06-15 01:09:52 +08:00
07akioni
f1812ff90a feat(space): a11y 2021-06-15 01:03:12 +08:00
07akioni
5905c07276 chore(input-number): format 2021-06-15 01:00:51 +08:00
07akioni
4e927823a3 fix(progress): better a11y 2021-06-15 01:00:16 +08:00
LiamLi
d301208d47 feat: progress and button-group supports wai-aria (#109)
* feat(progress): supports wai-aria

* feat(button-group): supports wai-aria

* Update ButtonGroup.tsx

* Update Line.tsx

* feat(progress): fixed some generic DOM which shouldn't appear in a11y tree.

* feat: (progress) supports wai-aria

* feat: (progress) supports wai-aria

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-15 00:52:16 +08:00
07akioni
56a0a59d2e refactor(rate): clean codes 2021-06-15 00:38:39 +08:00
caoyugang_1
b062eb122f feat(rate): add default slot for icon and color size property (#91)
* feat: rate add slot and add color size property

* fix: update rate md

* Update CHANGELOG.en-US.md

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

* Update CHANGELOG.zh-CN.md

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

* Update src/rate/demos/enUS/icon.demo.md

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

* Update src/rate/src/Rate.tsx

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

* Update src/rate/src/Rate.tsx

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

* Update src/rate/demos/zhCN/color.demo.md

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

* Update src/rate/demos/zhCN/size.demo.md

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

* Update src/rate/demos/enUS/size.demo.md

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

* Update src/rate/demos/enUS/color.demo.md

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

* Update src/rate/demos/zhCN/events.demo.md

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

* Update src/rate/demos/zhCN/icon.demo.md

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

* fix: resolve rate comment

* fix: change demo

* fix: update md

* fix: add type lint

* fix: icon demo remove n-space

* Update CHANGELOG.en-US.md

* Update src/rate/demos/zhCN/color.demo.md

* Update CHANGELOG.en-US.md

* Update src/rate/demos/enUS/size.demo.md

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-15 00:38:22 +08:00
07akioni
03d8938084 feat(menu): supports use <a /> and <router-link /> as label (#117) 2021-06-15 00:37:18 +08:00
07akioni
c780a28b55 docs(input-number): optimize description 2021-06-15 00:34:44 +08:00
XieZongChen
b0294bab0d feat(input-number): add show-button props (#65)
* feat: inputNumber add show-button props

* Update src/input-number/tests/InputNumber.spec.ts

* feat: Perfect pr

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-15 00:33:23 +08:00
07akioni
b6c5134f71
Merge pull request #116 from TuSimple/docs
chore: sync main with docs
2021-06-14 23:35:29 +08:00
07akioni
867ed96d3d docs(button): icon button demo 2021-06-14 23:23:37 +08:00
07akioni
03a684dc4e fix(data-table): missing on-update-sorter, on-update-filter, on-update-page and on-update-page-size props 2021-06-14 22:46:52 +08:00
07akioni
dc78f77380 deps: @vicons/ionicons5 2021-06-14 17:41:15 +08:00
07akioni
53bbbba717 chore(dialog): fix changelog & optimize codes 2021-06-14 09:15:25 +08:00
djkloop
fc09a36d8c
fix(dialog): add dialog destroyAll methods (#104)
* fix(dialog):add  dialog destroyAll methods

* update changelog
2021-06-14 09:12:55 +08:00
07akioni
fa11306afd
fix(card): header-style is not applied to header (#105) 2021-06-14 01:21:50 +08:00
ahwgs
d022cf2f36
test(avatar): add avatar test (#102) 2021-06-14 00:01:40 +08:00
07akioni
2ea6b1aa48 docs(modal): fix preset dialog 2021-06-13 20:30:27 +08:00
yck
5992dbbe2f
test(dropdown): add unit test (#89)
* build: add test:watch script

* test: add dropdown unit test

* style: dropdown group warn 文案

* style: import 合并

* style: remove log

* style: 重命名

* test: update snapshot
2021-06-13 20:28:51 +08:00
07akioni
9450e72956 docs(dialog): api table 2021-06-13 19:10:58 +08:00
zhypower1997
6d21f72e1d
feat(data-table): add slot to custom empty content (#98)
* feat: add slot to custom description when data table is empty

* feat: change props to slot

* fix: change comment

* Update src/data-table/demos/enUS/index.demo-entry.md

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

* Update src/data-table/demos/zhCN/index.demo-entry.md

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

* Update src/data-table/demos/enUS/index.demo-entry.md

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

* Update CHANGELOG.zh-CN.md

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

* feat: add tests

* feat: change comment

* feat: update comment

* feat: update comment

* feat: update comment

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-13 16:42:16 +08:00
07akioni
a1319e75b5 docs(select): fix group demo 2021-06-13 16:12:14 +08:00
07akioni
dabf8b1b2b refactor(use-rtl): optimize watchEffect 2021-06-13 14:05:43 +08:00
07akioni
5d50114397 2.11.8 2021-06-13 12:59:23 +08:00
07akioni
fbbd4c667a docs(form): fix clearValidationEffect => restoreValidation 2021-06-13 12:39:21 +08:00
07akioni
7ef3357472
fix(data-table): prop types of rowKey, rowClassName, rowProps, summary aren't compatible with expected value (#95) 2021-06-13 12:36:35 +08:00
XieZongChen
3905fb1972
fix(form-item): autosize textarea may overflow (#94)
* fix: n-form-item's grid-template-columns

* Update src/form/src/styles/form-item.cssr.ts

Co-authored-by: 07akioni <07akioni2@gmail.com>
2021-06-13 12:04:24 +08:00
Robert Soriano
1d8deaffae
docs(notification): fix typo (#92) 2021-06-13 00:40:32 +08:00
07akioni
b008d51039 docs(data-table): make row-key's type explicitly 2021-06-12 23:55:34 +08:00
07akioni
5a7b2fa0e2 fix(calendar): on-update:value prop type 2021-06-12 19:23:05 +08:00
07akioni
e6109f7255 deps: eslint-config-standard-with-typescript 20 2021-06-12 18:52:20 +08:00
07akioni
97bc288520 refactor(ssr): remove ssr-provider & use new hook from @css-render/vue3-ssr 2021-06-12 18:16:23 +08:00
07akioni
d8c1a8c354 2.11.7 2021-06-12 15:59:11 +08:00
07akioni
e7f1f91da9
fix(color-picker): default value doesn't follow modes (#87)
* fix(color-picker): default value doesn't follow modes

* docs: changelog
2021-06-12 14:06:39 +08:00
07akioni
d307488479
fix(slider): prevent default on touchstart to avoid page scrolling (#82)
* fix(slider): prevent default on touchstart to avoid page scrolling

* docs(changelog)
2021-06-12 12:38:43 +08:00
07akioni
7ed844047d 2.11.6 2021-06-11 18:48:51 +08:00
07akioni
42b700d698
Merge pull request #79 from TuSimple/feat
chore: merge feat into main
2021-06-11 18:40:38 +08:00
07akioni
5b75311075
fix(color-picker): change modes not working (#78)
* fix(color-picker): change modes not working

* docs(changelog): add issue url
2021-06-11 18:39:39 +08:00