@tarojs/components 3.5.0-alpha.10 → 3.5.0-alpha.11
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/dist-h5/vue3/index.js +10 -9
- package/package.json +3 -3
package/dist-h5/vue3/index.js
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
1
2
|
import * as components from './components';
|
|
2
|
-
export * from './components';
|
|
3
3
|
export function initVue3Components(app) {
|
|
4
4
|
app.config.isCustomElement = function (tag) {
|
|
5
5
|
return /^taro-/.test(tag) || tag === 'root' || tag === 'block';
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
-
Object.
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
Object.entries(components).forEach(function (_ref) {
|
|
9
|
+
var _ref2 = _slicedToArray(_ref, 2),
|
|
10
|
+
name = _ref2[0],
|
|
11
|
+
component = _ref2[1];
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
if (component) {
|
|
14
|
+
var tagName = 'taro-' + name.replace(/(?<=[a-z])([A-Z])/g, '-$1').toLowerCase();
|
|
15
|
+
app.component(tagName, component);
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
|
-
}
|
|
18
|
+
}
|
|
19
|
+
export * from './components';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.5.0-alpha.
|
|
3
|
+
"version": "3.5.0-alpha.11",
|
|
4
4
|
"description": "",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@stencil/core": "~2.13.0",
|
|
43
43
|
"@stencil/sass": "1.5.2",
|
|
44
|
-
"@tarojs/taro": "3.5.0-alpha.
|
|
44
|
+
"@tarojs/taro": "3.5.0-alpha.11",
|
|
45
45
|
"better-scroll": "^1.14.1",
|
|
46
46
|
"classnames": "^2.2.5",
|
|
47
47
|
"hls.js": "^1.1.5",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"optional": true
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "76bf76f1e10cf758c5ccada90ddea8674eb69aac"
|
|
72
72
|
}
|