fast-vue-multi-pages 1.0.28 → 1.0.29
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.
@@ -12,6 +12,12 @@ export declare class FastVueMultiElement {
|
|
12
12
|
* @param callBack 回调
|
13
13
|
*/
|
14
14
|
static onChildrenChange(source: HTMLElement, callBack?: (event: MutationRecord) => void): MutationObserver | null;
|
15
|
+
/**
|
16
|
+
* 绑定当前节点子节点的宽高的监听
|
17
|
+
* @param source 节点对象
|
18
|
+
* @param callBack 回调
|
19
|
+
*/
|
20
|
+
static onResizeChange(source: HTMLElement, callBack?: (event: ResizeObserverEntry) => void): ResizeObserver | null;
|
15
21
|
/**
|
16
22
|
* 在目标节点后追加新的节点
|
17
23
|
* @param targetEl 目标节点
|
@@ -49,6 +49,25 @@ class FastVueMultiElement {
|
|
49
49
|
}
|
50
50
|
return null;
|
51
51
|
}
|
52
|
+
/**
|
53
|
+
* 绑定当前节点子节点的宽高的监听
|
54
|
+
* @param source 节点对象
|
55
|
+
* @param callBack 回调
|
56
|
+
*/
|
57
|
+
static onResizeChange(source, callBack) {
|
58
|
+
if (source) {
|
59
|
+
const observe = new ResizeObserver(mutationsList => {
|
60
|
+
mutationsList.forEach((item, index) => {
|
61
|
+
if (callBack) {
|
62
|
+
callBack(item);
|
63
|
+
}
|
64
|
+
});
|
65
|
+
});
|
66
|
+
observe.observe(source);
|
67
|
+
return observe;
|
68
|
+
}
|
69
|
+
return null;
|
70
|
+
}
|
52
71
|
/**
|
53
72
|
* 在目标节点后追加新的节点
|
54
73
|
* @param targetEl 目标节点
|
@@ -12,6 +12,12 @@ export declare class FastVueMultiElement {
|
|
12
12
|
* @param callBack 回调
|
13
13
|
*/
|
14
14
|
static onChildrenChange(source: HTMLElement, callBack?: (event: MutationRecord) => void): MutationObserver | null;
|
15
|
+
/**
|
16
|
+
* 绑定当前节点子节点的宽高的监听
|
17
|
+
* @param source 节点对象
|
18
|
+
* @param callBack 回调
|
19
|
+
*/
|
20
|
+
static onResizeChange(source: HTMLElement, callBack?: (event: ResizeObserverEntry) => void): ResizeObserver | null;
|
15
21
|
/**
|
16
22
|
* 在目标节点后追加新的节点
|
17
23
|
* @param targetEl 目标节点
|
@@ -51,6 +51,25 @@ define(["require", "exports", "tslib", "lodash"], function (require, exports, ts
|
|
51
51
|
}
|
52
52
|
return null;
|
53
53
|
};
|
54
|
+
/**
|
55
|
+
* 绑定当前节点子节点的宽高的监听
|
56
|
+
* @param source 节点对象
|
57
|
+
* @param callBack 回调
|
58
|
+
*/
|
59
|
+
FastVueMultiElement.onResizeChange = function (source, callBack) {
|
60
|
+
if (source) {
|
61
|
+
var observe = new ResizeObserver(function (mutationsList) {
|
62
|
+
mutationsList.forEach(function (item, index) {
|
63
|
+
if (callBack) {
|
64
|
+
callBack(item);
|
65
|
+
}
|
66
|
+
});
|
67
|
+
});
|
68
|
+
observe.observe(source);
|
69
|
+
return observe;
|
70
|
+
}
|
71
|
+
return null;
|
72
|
+
};
|
54
73
|
/**
|
55
74
|
* 在目标节点后追加新的节点
|
56
75
|
* @param targetEl 目标节点
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "fast-vue-multi-pages",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.29",
|
4
4
|
"author": "janesen",
|
5
5
|
"description": "快速搭建VUE项目工具类的基本库,主要用于每个功能页面独立生成html",
|
6
6
|
"main": "./dist/cjs/index.js",
|
@@ -37,7 +37,8 @@
|
|
37
37
|
"crypto-js": "^4.2.0",
|
38
38
|
"vue": "^3.2.13",
|
39
39
|
"js-cookie": "^3.0.5",
|
40
|
-
"animejs": "^3.2.2"
|
40
|
+
"animejs": "^3.2.2",
|
41
|
+
"wavesurfer.js": "^7.9.4"
|
41
42
|
},
|
42
43
|
"devDependencies": {
|
43
44
|
"@typescript-eslint/eslint-plugin": "^7.16.0",
|
package/vue/FastPages.js
CHANGED
@@ -136,8 +136,7 @@ export default defineComponent({
|
|
136
136
|
else {
|
137
137
|
options = new FastBuildOption_1.FastBuildOption();
|
138
138
|
}
|
139
|
-
let
|
140
|
-
let baseDir = path.join(dirName, projectPagesDir, "index");
|
139
|
+
let baseDir = path.join(dirName, "_auto", "index");
|
141
140
|
if (!fs.existsSync(baseDir)) {
|
142
141
|
fs.mkdirSync(baseDir);
|
143
142
|
}
|