Skip to content

Latest commit

 

History

History
86 lines (61 loc) · 3.72 KB

README.en-US.md

File metadata and controls

86 lines (61 loc) · 3.72 KB

X Naive-UI

NPM Version NPM Download License

An extension to the Naive-UI component library.

Enables slots and template style for DataTable / Dropdown / Menu / Select / Tree.

简体中文 | English


Introduction

Naive-UI is a popular Vue 3 component library.

Due to the maintainability, the official team does not provide slots or template style APIs for DataTable, Dropdown, Menu, Select, Cascader, Tree, TreeSelect etc..

Here are some related issues on GitHub:

This project is aimed to provide a solution for these issues above.


Features

  • Almost the same API to Naive-UI. You just need to add x- before the original component name (example: <n-data-table><x-n-data-table>).
  • DataTable: Scoped slots for columns, cells, expandable rows.
  • DataTable: Template style API for columns.
  • Dropdown: Template style API for options.
  • Menu: Template style API for options.
  • Select: Template style API for options, option groups.
  • Select: Scoped slots for options, tags.
  • Cascader: Scoped slots for options.
  • Tree: Scoped slots for options, switcher icon.
  • TreeSelect: Scoped slots for options, tags, switcher icon.

Documentation

Click here to view.


Demo

You can run the demo to view more details.

> pnpm install    # install dependencies
> pnpm run build  # build
> pnpm run demo   # run demo, then visit http://localhost:8888/

Road Map

  • DataTable
  • Dropdown
  • Menu
  • Select
  • Cascader
  • Tree
  • TreeSelect