@lexiang/nova
TypeScript icon, indicating that this package has built-in type declarations

0.3.9 • Public • Published

Introduction

H5 UI Component For Vue

Install

yarn add @lexiang/nova

Usage

whole import

in you main js file

import Vue from 'vue';
import Nova from '@lexiang/nova';
import '@lexiang/nova/lib/index.css';

Vue.use(Nova);

be careful that you should import the style file separately

lazyload import

if you want to lazy load components, you can use @lexiang/babel-plugin-component

yarn add @lexiang/babel-plugin-component -D

.babelrc

{
  "plugins": [
    ["@lexiang/babel-plugin-component", {
      libraryName: "@lexiang/nova",
    }]
  ]
}

then if you want to lazy load partial components, like list

import { novaList } from '@lexiang/nova';

Vue.component(novaList);
// 或者
Vue.use(novaList);
// 或者在vue单文件组件中
export default {
  components: {
    novaList,
  },
};

demo

lazyload use in vue sigle file components

<template>
  <nova-loading></nova-loading>
</template>

<script>
import { novaLoading } from '@lexiang/nova';

export default {
  components: {
    novaLoading,
  },
};
</script>

Lists

available components and plugins lists

components

badgebread-crumbbuttoncarouselcellcheckboxcirclefieldlistloadingloadmoremodalon-offpopuppull-refreshradiorateresultrouter-listsearch-barselectsort-menuswitch-buttontabbartabstextarea

plugins

dialogtoast

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @lexiang/nova

Weekly Downloads

184

Version

0.3.9

License

MIT

Unpacked Size

1.31 MB

Total Files

266

Last publish

Collaborators

  • cattyhuang
  • lexiangla