New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cgj/k-view

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cgj/k-view

``` npm i @cgj/k-view ```

  • 1.21.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
114
decreased by-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

| A high quality UI Toolkit built on Vue.js

npm version build status install size npm downloads LICENSE

Install

  npm i @cgj/k-view -S

Quick Start

import KView from '@cgj/k-view'
import '@cgj/k-view/lib/kview/style.css'
Vue.use(KView);

// or
import {
  Loading,
  Tree
  // ...
} from '@cgj/k-view'

Vue.use(Loading);
Vue.use(Tree);

Language Support

<template>
  <k-provider :locale="locale">
    <router-view />
  </k-provider>
</template>

<script>
  import Vue from "vue"
  import Provider from  "@cgj/k-view/lib/provider"
  Vue.use(Provider)
  
  // import enUS from "@cgj/k-view/lib/locale/lang/en-US"; //  Use by default
  import zhCN from "@cgj/k-view/lib/locale/lang/zh-CN"; 
  
  export default{
    data(){
      return {
        locale:zhCN
      }
    }
  }

<script>

On demand

With the help of babel-plugin-kimport, we can import components we actually need, making the project smaller than otherwise.

First, install babel-plugin-kimport:


  npm i -D babel-plugin-kimport

Then edit babel.config.js:


module.exports = {
  [
    [
      'kimport',
      {
        libraryName: '@cgj/k-view',
        camel2DashComponentName: true,
      },
      'k-view'
    ],
  ],
};

Browser Support

Modern browsers and Internet Explorer 10+.

Development

Skip this part if you just want to use K-VIEW.

Changelog

Detailed changes for each release are documented in the release notes.

LICENSE

MIT

Keywords

FAQs

Package last updated on 07 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc