k-view-next

vue3 ui library
4,926 1
Install
npm install k-view-next
Latest Version:1.0.5
Vue:3
License:MIT
Last Updated:Jan 16, 2023
Links: GitHub  ·  npm
Maintainer: cgj

[[toc]]

K-View-Next

npm version build status install size npm downloads LICENSE

Quick Start

Installation


npm i -S k-view-next

Fully import


import KView from 'k-view-next'
import 'k-view-next/lib/style'

export default (app) => {
    app.use(KView)
    return app
}


Import on Demand

k-view-next supports tree shaking of ES modules, so using import { Button } from 'k-view-next'; would drop js code you didn't use.

  • we can import individual components on demand:

import Button from 'k-view-next/lib/button'
import 'k-view-next/lib/button/style'

  • We strongly recommend using babel-plugin-import, which can convert the following code to the 'k-view-next/lib/xxx' way:

import { Button } from 'k-view-next'

Scripts

dev

Component development and debugging

# Debug button component

yarn dev ./components/button

docs

Documentation site preview


yarn docs

compile

Component compilation


yarn compile

gen

Script to quickly create component code


yarn gen

site preview

image%{width=1000}%

image%{width=1000}%

Important

The link anchor jump will be abnormal on the github io page. For private deployment, please modify the configuration items in .env.production.

# PUBLIC_PATH='./'
# VUE_APP_MODE='UMD_PREVIEW'
PUBLIC_PATH='/'
VUE_APP_MODE='CMD_PREVIEW'

Related Packages

@fe6/water

An enterprise-class UI design language and Vue components implementation.

5,714 10
iep-ui

An enterprise-class UI design language and Vue-based implementation

44,715
ui-vue-antd

An enterprise-class UI design language and Vue-based implementation

16,788

Version History

Version Released Vue License
1.0.5 ^3.2.27 MIT
1.0.3 ^3.2.27 MIT
1.0.0 ^3.2.27 MIT
Pre-releases (17)
Version Released Vue License
1.0.4-alpha.4 ^3.2.27 MIT
1.0.4-alpha.3 ^3.2.27 MIT
1.0.4-alpha.2 ^3.2.27 MIT
1.0.4-alpha.1 ^3.2.27 MIT
1.0.4-alpha.0 ^3.2.27 MIT