unify-external-plugin-platform 0.0.2-24 → 0.0.2-26
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/.browserslistrc +3 -3
- package/README.md +49 -49
- package/babel.config.js +5 -5
- package/dist/external-plugin.common.js +2 -4
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.umd.js +2 -4
- package/dist/external-plugin.umd.js.map +1 -1
- package/dist/external-plugin.umd.min.js +2 -2
- package/dist/external-plugin.umd.min.js.map +1 -1
- package/package.json +4 -2
- package/tsconfig.json +42 -42
- package/vue.config.js +0 -31
package/.browserslistrc
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
> 1%
|
2
|
-
last 2 versions
|
3
|
-
not dead
|
1
|
+
> 1%
|
2
|
+
last 2 versions
|
3
|
+
not dead
|
package/README.md
CHANGED
@@ -1,49 +1,49 @@
|
|
1
|
-
# unify-external-plugin-platform
|
2
|
-
|
3
|
-
# 目录说明
|
4
|
-
```
|
5
|
-
* unify-external-plugin-platform
|
6
|
-
* node_modules 依赖包
|
7
|
-
* packages 插件组件目录(插件组件大驼峰命名)
|
8
|
-
* ZSEmpty 空组件(demo)
|
9
|
-
* src 插件内容
|
10
|
-
* index.ts 单个插件导出文件,以便单个引入
|
11
|
-
* ......
|
12
|
-
* index.js 整体导出
|
13
|
-
* public
|
14
|
-
* src 业务代码
|
15
|
-
|
16
|
-
```
|
17
|
-
|
18
|
-
# 运行
|
19
|
-
### 文档
|
20
|
-
```shell
|
21
|
-
npm run docs:dev
|
22
|
-
```
|
23
|
-
|
24
|
-
### Demo
|
25
|
-
```shell
|
26
|
-
npm run serve
|
27
|
-
```
|
28
|
-
|
29
|
-
|
30
|
-
# 使用
|
31
|
-
1. 安装
|
32
|
-
```
|
33
|
-
npm i unify-external-plugin-platform
|
34
|
-
```
|
35
|
-
|
36
|
-
3. 引入:
|
37
|
-
```javascript
|
38
|
-
// 在main.js中
|
39
|
-
import unifyExternalPluginPlatform from 'unify-external-plugin-platform';
|
40
|
-
Vue.use(unifyExternalPluginPlatform);
|
41
|
-
```
|
42
|
-
|
43
|
-
3. 使用:
|
44
|
-
```vue
|
45
|
-
<z-s-empty empty-tip="暂无数据组件"></z-s-empty>
|
46
|
-
```
|
47
|
-
|
48
|
-
|
49
|
-
|
1
|
+
# unify-external-plugin-platform
|
2
|
+
|
3
|
+
# 目录说明
|
4
|
+
```
|
5
|
+
* unify-external-plugin-platform
|
6
|
+
* node_modules 依赖包
|
7
|
+
* packages 插件组件目录(插件组件大驼峰命名)
|
8
|
+
* ZSEmpty 空组件(demo)
|
9
|
+
* src 插件内容
|
10
|
+
* index.ts 单个插件导出文件,以便单个引入
|
11
|
+
* ......
|
12
|
+
* index.js 整体导出
|
13
|
+
* public
|
14
|
+
* src 业务代码
|
15
|
+
|
16
|
+
```
|
17
|
+
|
18
|
+
# 运行
|
19
|
+
### 文档
|
20
|
+
```shell
|
21
|
+
npm run docs:dev
|
22
|
+
```
|
23
|
+
|
24
|
+
### Demo
|
25
|
+
```shell
|
26
|
+
npm run serve
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
# 使用
|
31
|
+
1. 安装
|
32
|
+
```
|
33
|
+
npm i unify-external-plugin-platform
|
34
|
+
```
|
35
|
+
|
36
|
+
3. 引入:
|
37
|
+
```javascript
|
38
|
+
// 在main.js中
|
39
|
+
import unifyExternalPluginPlatform from 'unify-external-plugin-platform';
|
40
|
+
Vue.use(unifyExternalPluginPlatform);
|
41
|
+
```
|
42
|
+
|
43
|
+
3. 使用:
|
44
|
+
```vue
|
45
|
+
<z-s-empty empty-tip="暂无数据组件"></z-s-empty>
|
46
|
+
```
|
47
|
+
|
48
|
+
|
49
|
+
|
package/babel.config.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
module.exports = {
|
2
|
-
presets: [
|
3
|
-
'@vue/cli-plugin-babel/preset'
|
4
|
-
]
|
5
|
-
}
|
1
|
+
module.exports = {
|
2
|
+
presets: [
|
3
|
+
'@vue/cli-plugin-babel/preset'
|
4
|
+
]
|
5
|
+
}
|
@@ -82075,6 +82075,7 @@ if (typeof window !== 'undefined') {
|
|
82075
82075
|
|
82076
82076
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
82077
82077
|
var element_ui_common = __webpack_require__(4720);
|
82078
|
+
var element_ui_common_default = /*#__PURE__*/__webpack_require__.n(element_ui_common);
|
82078
82079
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/zs-empty/src/zs-empty.vue?vue&type=template&id=52cf5f01&scoped=true&
|
82079
82080
|
var render = function render() {
|
82080
82081
|
var _vm = this,
|
@@ -83480,14 +83481,11 @@ scanner_high_camera_jieyu.install = Vue => {
|
|
83480
83481
|
|
83481
83482
|
|
83482
83483
|
|
83483
|
-
const elementComponents = [element_ui_common.Button, element_ui_common.Tooltip, element_ui_common.Select, element_ui_common.Dialog, element_ui_common.Option];
|
83484
83484
|
// 组件列表
|
83485
83485
|
const components = [packages_zs_empty, packages_id_card_reader_demo, packages_scanner_high_camera_jieyu];
|
83486
83486
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
83487
83487
|
const install = Vue => {
|
83488
|
-
|
83489
|
-
Vue.component(component.name, component);
|
83490
|
-
});
|
83488
|
+
Vue.use((element_ui_common_default()));
|
83491
83489
|
// 判断是否安装
|
83492
83490
|
// if (install.installed) return
|
83493
83491
|
// 遍历注册全局组件
|