JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 25
  • Score
    100M100P100Q21274F

a vue web component

Package Exports

  • cil-vue-web-component

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (cil-vue-web-component) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

cil-vue-web-component

a vue web component

How To Use

配置vux-loader

组件依赖了vux库,需要在build/webpack.base.conf.js增加配置,详情见vux-loader配置

const vuxLoader = require('vux-loader')
module.exports = vuxLoader.merge(webpackBaseConfig, {
    plugins: ['vux-ui]
})

安装依赖

npm install cil-vue-web-component -S
npm install axios -S

在main.js中引入组件

// 所有组件都会被注册为全局组件
import 'cil-vue-web-component'

直接使用即可

// 验证码组件使用
<template>
  <div id="app">
    <captcha :show.sync='isShow' :urls='captchaUrls'></captcha>
  </div>
</template>

For a detailed explanation on how things work, check out the guide and docs for vue-loader.