unify-external-plugin-platform 0.0.2-6 → 0.0.2-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/vue.config.js +1 -1
- package/docs/.vuepress/config.js +0 -46
- package/docs/README.md +0 -15
- package/docs/guide/changelog.md +0 -1
- package/docs/guide/installation.md +0 -10
- package/docs/guide/quickstart.md +0 -26
- package/docs/plugin/README.md +0 -1
- package/docs/plugin/empty.md +0 -1
- package/packages/id-card-reader-demo/index.ts +0 -9
- package/packages/index.js +0 -29
- package/packages/scanner-high-camera-jieyu/images/img_blank_empty.png +0 -0
- package/packages/scanner-high-camera-jieyu/index.ts +0 -14
- package/packages/zs-empty/index.ts +0 -9
package/package.json
CHANGED
package/vue.config.js
CHANGED
package/docs/.vuepress/config.js
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @author: lvcy
|
3
|
-
* @date: 2022-12-30
|
4
|
-
* @description:config
|
5
|
-
*/
|
6
|
-
module.exports = {
|
7
|
-
// 网站的一些基本配置
|
8
|
-
// base:配置部署站点的基础路径,后续再介绍
|
9
|
-
title: '统一对外插件平台', // 网站的标题
|
10
|
-
description: '统一对外插件平台-测试', // 网站的描述,它将会以 <meta> 标签渲染到当前页面的 HTML 中。
|
11
|
-
head: [
|
12
|
-
['link', { rel: 'icon', href: '/logo.png' }] // 需要被注入到当前页面的 HTML <head> 中的标签
|
13
|
-
],
|
14
|
-
themeConfig: {
|
15
|
-
logo: '/logo.png',
|
16
|
-
nav: [
|
17
|
-
{ text: '首页', link: '/' },
|
18
|
-
{ text: '组件', link: '/guide/installation' },
|
19
|
-
],
|
20
|
-
// 设置自动生成侧边栏
|
21
|
-
sidebar: [
|
22
|
-
{
|
23
|
-
title: '更新日志',
|
24
|
-
path: '/guide/changelog',
|
25
|
-
collapsable: false,
|
26
|
-
sidebarDepth: 0,
|
27
|
-
},
|
28
|
-
{
|
29
|
-
title: '开发指南',
|
30
|
-
collapsable: false,
|
31
|
-
children: [
|
32
|
-
['/guide/installation', '安装'],
|
33
|
-
['/guide/quickstart', '快速上手'],
|
34
|
-
],
|
35
|
-
},
|
36
|
-
{
|
37
|
-
title: '组件',
|
38
|
-
collapsable: false,
|
39
|
-
children: [
|
40
|
-
['/plugin/empty', '空组件']
|
41
|
-
]
|
42
|
-
}
|
43
|
-
],
|
44
|
-
sidebarDepth: 2,
|
45
|
-
}
|
46
|
-
}
|
package/docs/README.md
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
home: true
|
3
|
-
heroImage: /logo.png
|
4
|
-
actionText: 快速上手 →
|
5
|
-
actionLink: /guide/installation
|
6
|
-
features:
|
7
|
-
- title: 简洁至上
|
8
|
-
details: 以 Markdown 为中心的项目结构,以最少的配置帮助你专注于写作。
|
9
|
-
- title: Vue驱动
|
10
|
-
details: 享受 Vue + webpack 的开发体验,在 Markdown 中使用 Vue 组件,同时可以使用 Vue 来开发自定义主题。
|
11
|
-
- title: 高性能
|
12
|
-
details: VuePress 为每个页面预渲染生成静态的 HTML,同时在页面被加载的时候,将作为 SPA 运行。
|
13
|
-
footer: MIT Licensed | Copyright © 2018-present Evan You
|
14
|
-
---
|
15
|
-
|
package/docs/guide/changelog.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
### 更新日志
|
package/docs/guide/quickstart.md
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
## 快速上手
|
2
|
-
|
3
|
-
本节将介绍如何在项目中使用 UnifyExternalPluginPlatform。
|
4
|
-
|
5
|
-
### 引入 UnifyExternalPluginPlatform
|
6
|
-
|
7
|
-
你可以引入整个 Element,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 UnifyExternalPluginPlatform。
|
8
|
-
|
9
|
-
#### 完整引入
|
10
|
-
|
11
|
-
在 main.js 中写入以下内容:
|
12
|
-
|
13
|
-
```javascript
|
14
|
-
import Vue from 'vue';
|
15
|
-
import App from './App.vue';
|
16
|
-
import UnifyExternalPluginPlatform from 'unify-external-plugin-platform';
|
17
|
-
|
18
|
-
Vue.use(UnifyExternalPluginPlatform);
|
19
|
-
|
20
|
-
new Vue({
|
21
|
-
el: '#app',
|
22
|
-
render: h => h(App)
|
23
|
-
});
|
24
|
-
```
|
25
|
-
|
26
|
-
以上代码便完成了 UnifyExternalPluginPlatform 的引入。
|
package/docs/plugin/README.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
### 统一插件平台
|
package/docs/plugin/empty.md
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
### Empty
|
package/packages/index.js
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
import ZSEmpty from "./zs-empty";
|
2
|
-
import IdCardReaderDemo from "./id-card-reader-demo";
|
3
|
-
import ScannerHighCameraJieyu from "./scanner-high-camera-jieyu";
|
4
|
-
|
5
|
-
|
6
|
-
// 组件列表
|
7
|
-
const components = [
|
8
|
-
ZSEmpty,
|
9
|
-
IdCardReaderDemo,
|
10
|
-
ScannerHighCameraJieyu
|
11
|
-
];
|
12
|
-
|
13
|
-
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
14
|
-
const install = Vue => {
|
15
|
-
// 判断是否安装
|
16
|
-
if (install.installed) return
|
17
|
-
// 遍历注册全局组件
|
18
|
-
components.map(component => Vue.component(component.name, component))
|
19
|
-
}
|
20
|
-
// 判断是否是直接引入文件
|
21
|
-
if (typeof window !== 'undefined' && window.Vue) {
|
22
|
-
install(window.Vue)
|
23
|
-
}
|
24
|
-
export default {
|
25
|
-
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
26
|
-
install,
|
27
|
-
//具体的组件列表
|
28
|
-
...components
|
29
|
-
};
|
Binary file
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @author: lvcy
|
3
|
-
* @date: 2023-01-09
|
4
|
-
* @description:index
|
5
|
-
*/
|
6
|
-
import ScannerHighCameraJieyu from './src/scanner-high-camera-jieyu.vue';
|
7
|
-
|
8
|
-
// 组件的install方法用于按需引入
|
9
|
-
// @ts-ignore
|
10
|
-
ScannerHighCameraJieyu.install = (Vue) => {
|
11
|
-
Vue.component(ScannerHighCameraJieyu.name, ScannerHighCameraJieyu)
|
12
|
-
};
|
13
|
-
|
14
|
-
export default ScannerHighCameraJieyu;
|