Go to file
songwanli2025@163.com c4d7068f8d Merge branch 'develop' of ***REMOVED*** into develop
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2019-08-08 10:41:55 +08:00
build refactor(doc, select): a naive loader, detach select to body 2019-07-17 18:27:13 +08:00
demo Merge branch 'develop' of ***REMOVED*** into develop 2019-08-07 19:26:58 +08:00
doc feat(button): deal with costum icon 2019-07-22 12:57:15 +08:00
packages Merge branch 'develop' of ***REMOVED*** into develop 2019-08-08 10:41:55 +08:00
styles Merge branch 'develop' of ***REMOVED*** into develop 2019-08-08 10:41:55 +08:00
test test(select): add some test case for v-model 2019-07-11 13:41:10 +08:00
.eslintignore chore: style lint! 2019-06-28 15:08:31 +08:00
.eslintrc.js style: .vue style fix 2019-06-04 12:09:02 +08:00
.gitignore chore(.gitignore): remove .vscode... 2019-07-29 17:07:57 +08:00
.npmignore feat: ci & doc! 2019-06-23 15:47:39 +08:00
.stylelintrc.js chore: style-lint 2019-06-28 15:41:29 +08:00
babel.config.js test(select) 2019-07-02 18:08:59 +08:00
index.html feat: checkbox & round button 2019-06-14 10:59:06 +08:00
index.js merge 2019-08-07 16:14:29 +08:00
package.json release: 0.2.82 2019-08-07 16:54:22 +08:00
README.md fix: some icon releated style and move button margin 2019-08-07 14:52:24 +08:00
think.md feat(steps): basic usable steps 2019-08-01 18:19:03 +08:00

naive-ui

TuSimple Vue-Based Frontend Component Library

Documentation

http://REMOVED/#/start

Repository

https://REMOVED/naive-ui/tree/develop

Develop Guidelines

Git Commit Message Style

You MUST follow Angular Commit Format.

If you want see some example, see Angular Commits on Github.

Code Styles

Javascript Style

You MUST follow Standard JS.

SCSS Style

Run npm run lint-style to check styles.

Check Both

Run npm run lint You MUST fix all lint warnings and errors before you push your branch.

Unit test

If you create a component, you MUST add unit test for it.

Run npm run test to test all components. Run npm run test-cov to test all components and see detailed test coverage report.

Want to see how component works

  1. Run npm run dev
  2. Open http://localhost:8086/ in browser.

Want to add your own component

There is no guideline for now. If you want to know how to do it, you can explore by yourself or ask lecong.zhang@tusimple.ai.

Publish a new version

  1. You MUST change your version according to semver
  2. npm run release
  3. You MAY publish documentation by running npm run release-doc

Installation & Usage

First install it.

npm install --save-dev naive-ui

Then add the following lines in you entry point js file.

...
import naiveUi from 'naive-ui'
import 'naive-ui/dist/lib/index.css

Vue.use(naiveUi)
...

Component Develop Status

Component Develop status Unit Test Note
Alert 😍
Button 😍 🆗
Checkbox 😍 🆗
DatePicker 😍
GradientText 😍 🆗
Icon 😍 🆗
Input 😍 🆗
Message 😍 Code clean in need
Modal 😍 Code clean in need
Notification 😍 Code clean in need
Pagination 😍 🆗 Unit test is not enough
Select 😍 🆗 Multiple search is not done
Switch 😍
FormItem 🚧
Form 🚧
Table 🚧 Function is not fulfilled
Tooltip 😍
Popover 😍
InputNumber 😍
Radio 😍
Tab 🚧
Breadcrumb 🚧
Badge 😍
Steps 😍
Tag 🚧
Divider 🚧
Statistic 🚧
PopConfirm 🚧
Anchor 🚧
BackTop 🚧
Progress 🚧
Timeline 🚧
Card 🚧
Collapse 🚧
Cascader 🚧
  1. Z-index management on Select & Tooltip & Modal(Low Priority)
  2. Full featured table component(Medium Priority)
  3. Form component(Medium Priority)
  4. FormItem component(High Priority)
  5. Complete unit test for all existing components(High Priority)
  6. Create a Markdown webpack loader to convert documentation(Low Priority)
  7. Refactor documentation page(for code clairity)
  8. Code refactor for some 😢 messy code(which is my bad...)
  9. Refactor CSS use mixins(which means I should learn SCSS hard...)