Skip to content

Latest commit

 

History

History
executable file
·
44 lines (31 loc) · 729 Bytes

use.md

File metadata and controls

executable file
·
44 lines (31 loc) · 729 Bytes

文档

文档地址

体验

h5体验地址

使用方式

需要在main.js引入

import App from './App'

// 引入varUI和css
import varUI from '/uni_modules/var-ui/index'
import '/uni_modules/var-ui/lib/css/index.css'

import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
    // 使用
    app.use(varUI)
  return {
    app
  }
}

配置组件引入

pages.json配置easycom规则后,自动按需引入,无需import组件,直接引用即可。

"easycom": {
	    "autoscan": true,
	    "custom": {
	      "^v-(.*)": "/components/var-ui/components/v-$1/v-$1.vue"
	    }
}