【文件属性】:
文件名称:vue-create-api:通过API调用Vue组件
文件大小:156KB
文件格式:ZIP
更新时间:2021-05-02 16:12:48
JavaScript
vue-create-api
一个Vue插件,可通过API调用Vue组件。
正在安装
使用npm
$ npm install vue-create-api
使用cdn
[removed][removed]
用法
import CreateAPI from 'vue-create-api'
Vue . use ( CreateAPI )
// or with options.
Vue . use ( CreateAPI , {
componentPrefix : 'cube-'
apiPrefix : '$create-'
} )
// then the Vue constructor will have the createAPI function
【文件预览】:
vue-create-api-master
----.gitignore(241B)
----README.md(7KB)
----test()
--------unit()
----examples()
--------server.js(674B)
--------webpack.test.js(298B)
--------dialog()
--------global.css(325B)
--------index.html(311B)
--------webpack.config.js(1KB)
----LICENSE(1KB)
----package.json(3KB)
----dist()
--------vue-create-api.min.js(4KB)
--------vue-create-api.js(10KB)
--------vue-create-api.esm.js(9KB)
----src()
--------creator.js(5KB)
--------util.js(687B)
--------debug.js(278B)
--------index.js(1KB)
--------parse.js(604B)
--------instantiate.js(1KB)
----.babelrc(243B)
----build()
--------build.js(2KB)
--------configs.js(1KB)
----README_zh-CN.md(8KB)
----types()
--------tsconfig.json(224B)
--------index.d.ts(1KB)
----.eslintignore(44B)
----.travis.yml(328B)
----.editorconfig(147B)
----.eslintrc.js(476B)
----package-lock.json(606KB)