@tarojs/components 3.6.13 → 3.6.14-alpha.0
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.
|
@@ -9,7 +9,7 @@ function initVue2Components(components = {}) {
|
|
|
9
9
|
}
|
|
10
10
|
Vue.use(index.Plugin);
|
|
11
11
|
Object.entries(components).forEach(([name, definition]) => {
|
|
12
|
-
if (typeof
|
|
12
|
+
if (typeof definition === 'function') {
|
|
13
13
|
const tagName = 'taro' + name.replace(new RegExp('([A-Z])', 'g'), '-$1').toLowerCase();
|
|
14
14
|
const comp = Vue.extend(definition);
|
|
15
15
|
Vue.component(tagName, comp);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components-loader.js","sources":["../../../taro-components-library-vue2/src/components-loader.ts"],"sourcesContent":["import Vue from 'vue'\nimport Fragment from 'vue-fragment'\n\nexport function initVue2Components (components: Record<string, any> = {}) {\n const ignoredElements = [/^taro-/, 'root', 'block']\n if (!Vue.config.ignoredElements?.includes(ignoredElements[0])) {\n Vue.config.ignoredElements = [...Vue.config.ignoredElements, ...ignoredElements]\n }\n\n Vue.use(Fragment.Plugin)\n Object.entries(components).forEach(([name, definition]) => {\n if (typeof definition
|
|
1
|
+
{"version":3,"file":"components-loader.js","sources":["../../../taro-components-library-vue2/src/components-loader.ts"],"sourcesContent":["import Vue from 'vue'\nimport Fragment from 'vue-fragment'\n\nexport function initVue2Components (components: Record<string, any> = {}) {\n const ignoredElements = [/^taro-/, 'root', 'block']\n if (!Vue.config.ignoredElements?.includes(ignoredElements[0])) {\n Vue.config.ignoredElements = [...Vue.config.ignoredElements, ...ignoredElements]\n }\n\n Vue.use(Fragment.Plugin)\n Object.entries(components).forEach(([name, definition]) => {\n if (typeof definition === 'function') {\n const tagName = 'taro' + name.replace(new RegExp('([A-Z])', 'g'), '-$1').toLowerCase()\n const comp = Vue.extend(definition)\n Vue.component(tagName, comp)\n }\n })\n}\n"],"names":["Fragment"],"mappings":";;;AAGgB,SAAA,kBAAkB,CAAE,UAAA,GAAkC,EAAE,EAAA;;IACtE,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,CAAA;AACnD,IAAA,IAAI,EAAC,CAAA,EAAA,GAAA,GAAG,CAAC,MAAM,CAAC,eAAe,MAAE,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,KAAA,CAAA,GAAA,EAAA,CAAA,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAA,EAAE;AAC7D,QAAA,GAAG,CAAC,MAAM,CAAC,eAAe,GAAG,CAAC,GAAG,GAAG,CAAC,MAAM,CAAC,eAAe,EAAE,GAAG,eAAe,CAAC,CAAA;AACjF,KAAA;AAED,IAAA,GAAG,CAAC,GAAG,CAACA,KAAQ,CAAC,MAAM,CAAC,CAAA;AACxB,IAAA,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,KAAI;AACxD,QAAA,IAAI,OAAO,UAAU,KAAK,UAAU,EAAE;YACpC,MAAM,OAAO,GAAG,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,SAAS,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,WAAW,EAAE,CAAA;YACtF,MAAM,IAAI,GAAG,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAA;AACnC,YAAA,GAAG,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;AAC7B,SAAA;AACH,KAAC,CAAC,CAAA;AACJ;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tarojs/components",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.14-alpha.0",
|
|
4
4
|
"description": "Taro 组件库",
|
|
5
5
|
"browser": "dist/index.js",
|
|
6
6
|
"main:h5": "dist/index.js",
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"resolve-pathname": "^3.0.0",
|
|
38
38
|
"swiper": "6.8.0",
|
|
39
39
|
"weui": "^1.1.2",
|
|
40
|
-
"@tarojs/components-advanced": "3.6.
|
|
41
|
-
"@tarojs/router": "3.6.
|
|
42
|
-
"@tarojs/taro": "3.6.
|
|
40
|
+
"@tarojs/components-advanced": "3.6.14-alpha.0",
|
|
41
|
+
"@tarojs/router": "3.6.14-alpha.0",
|
|
42
|
+
"@tarojs/taro": "3.6.14-alpha.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/generator": "^7.20.0",
|