htui-yllkbz 1.2.5 → 1.2.9
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/lib/htui.common.js +4797 -65764
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.umd.js +4813 -65780
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +4 -19
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +2 -1
- package/src/App.vue +3 -2
- package/src/packages/SelectTable/index.ts +2 -1
- package/src/packages/SelectTable/index.vue +2 -3
- package/src/packages/index.ts +7 -4
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "htui-yllkbz",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.9",
|
|
4
4
|
"typings": "types/index.d.ts",
|
|
5
5
|
"main": "lib/htui.common.js",
|
|
6
6
|
"style": "lib/htui.css",
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"axios": "^0.21.0",
|
|
23
23
|
"core-js": "^3.6.5",
|
|
24
24
|
"element-ui": "^2.14.1",
|
|
25
|
+
"htui-yllkbz": "^1.2.6",
|
|
25
26
|
"vue": "^2.6.11",
|
|
26
27
|
"vue-class-component": "^7.2.3",
|
|
27
28
|
"vue-kst-auth": "^2.1.15",
|
package/src/App.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-15 14:41:40
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2021-
|
|
7
|
+
* @LastEditTime: 2021-12-01 11:04:11
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div id="app">
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
text:'name',
|
|
24
24
|
})"></SelectTable>
|
|
25
|
+
|
|
25
26
|
<router-view></router-view>
|
|
26
27
|
</div>
|
|
27
28
|
</template>
|
|
@@ -36,7 +37,7 @@ import SelectTable from "@/packages/SelectTable/index.vue";
|
|
|
36
37
|
export default class App extends Vue {
|
|
37
38
|
/** 生命周期 */
|
|
38
39
|
created() {
|
|
39
|
-
console.log("SelectTable", SelectTable.name);
|
|
40
|
+
//console.log("SelectTable", SelectTable.options.name, SelectTable.name);
|
|
40
41
|
// 动态加载引用文件
|
|
41
42
|
const files = this.$store.getters.getBaseData("files");
|
|
42
43
|
const filesKeys = Object.keys(files);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-15 15:00:57
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2021-11-30
|
|
7
|
+
* @LastEditTime: 2021-11-30 14:18:58
|
|
8
8
|
*/
|
|
9
9
|
import HtSelectTable from "./index.vue";
|
|
10
10
|
|
|
@@ -12,4 +12,5 @@ import HtSelectTable from "./index.vue";
|
|
|
12
12
|
|
|
13
13
|
Vue.component("HtSelectTable", HtSelectTable);
|
|
14
14
|
};
|
|
15
|
+
|
|
15
16
|
export default HtSelectTable;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-11 11:06:51
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2021-11-30
|
|
7
|
+
* @LastEditTime: 2021-11-30 14:15:32
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<el-popover placement="bottom"
|
|
@@ -45,8 +45,7 @@ import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
|
45
45
|
import CommonTable from "@/packages/SelectTable/CommonTable.vue";
|
|
46
46
|
import { ConfigProp } from "@/packages/type";
|
|
47
47
|
import "@/packages/style.scss";
|
|
48
|
-
|
|
49
|
-
Vue.use(ElementUI);
|
|
48
|
+
|
|
50
49
|
interface State {
|
|
51
50
|
/** 数据状态 */
|
|
52
51
|
loading: boolean;
|
package/src/packages/index.ts
CHANGED
|
@@ -4,24 +4,27 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-10-21 10:08:41
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2021-
|
|
7
|
+
* @LastEditTime: 2021-12-01 11:06:10
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
// 导入组件
|
|
11
|
+
import { VueConstructor } from 'vue'
|
|
11
12
|
import HtSelectTable from './SelectTable/index'
|
|
12
13
|
|
|
13
14
|
// 存储组件列表
|
|
14
15
|
const components = [
|
|
15
16
|
HtSelectTable
|
|
16
17
|
]
|
|
18
|
+
const comString = ["HtSelectTable"]
|
|
17
19
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
18
20
|
const install = function (Vue: any) {
|
|
19
21
|
// 判断是否安装
|
|
20
22
|
if ((install as any).installed) return
|
|
21
23
|
// 遍历注册全局组件
|
|
22
|
-
components.map(component => {
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
components.map((component: any, index) => {
|
|
25
|
+
// const data:VueConstructor
|
|
26
|
+
console.log('component', component.options);
|
|
27
|
+
return Vue.component(comString[index], component)
|
|
25
28
|
})
|
|
26
29
|
}
|
|
27
30
|
// 判断是否是直接引入文件
|