@shijiu/jsview-vue 0.9.304-alpha.0 → 0.9.312-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.
- package/package.json +1 -1
- package/patches/node_modules/@vue/compiler-sfc/dist/jsview-css-to-js.js +5 -3
- package/tsconfig.json +1 -1
- package/utils/JsViewEngineWidget/SimpleWidget/ContentView.vue +3 -2
- package/utils/JsViewEngineWidget/SimpleWidget/ItemView.vue +3 -2
- package/utils/JsViewEngineWidget/SimpleWidget/SimpleWidget.vue +210 -185
- package/utils/JsViewEngineWidget/TemplateParser.js +104 -243
- package/utils/JsViewVueWidget/JsvMarquee.vue +11 -0
- package/utils/JsViewVueWidget/JsvPosterDiv.vue +3 -5
- package/utils/JsViewVueWidget/JsvPosterImage.vue +5 -5
- package/utils/JsViewVueWidget/JsvSwiper/JsvSwiper.vue +22 -5
- package/utils/JsViewVueWidget/JsvSwiper3D/JsvSwiper.vue +25 -5
package/package.json
CHANGED
|
@@ -98,9 +98,11 @@ function compileCssToJs(sfc, options) {
|
|
|
98
98
|
|
|
99
99
|
const styleNodes = rawResult.result.root.nodes;
|
|
100
100
|
styleNodes.forEach(node => {
|
|
101
|
-
// console.log('node=', node
|
|
101
|
+
// console.log('node=', node)
|
|
102
102
|
|
|
103
|
-
if(node.
|
|
103
|
+
if (node.type === "comment") {
|
|
104
|
+
// DO NOTHING
|
|
105
|
+
} else if(node.name === "import") {
|
|
104
106
|
const styleInfo = compileImportNode(node);
|
|
105
107
|
// styleCodeContainer.add(styleCode);
|
|
106
108
|
|
|
@@ -274,7 +276,7 @@ function compileKeyframesNode(node) {
|
|
|
274
276
|
// console.log('jsview-css-to-js.compileKeyframesNode() \n', startOffset, endOffset, content);
|
|
275
277
|
|
|
276
278
|
let styleContent = "'" + node.params + "':'";
|
|
277
|
-
styleContent += content.replace(
|
|
279
|
+
styleContent += content.replace(/(\r|\n|\r\n)/g, " ");
|
|
278
280
|
styleContent += "',";
|
|
279
281
|
|
|
280
282
|
// console.log('jsview-css-to-js.compileKeyframesNode() return ' + styleContent);
|
package/tsconfig.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: ChenChanghua
|
|
3
3
|
* @Date: 2021-09-22 13:47:23
|
|
4
4
|
* @LastEditors: ChenChanghua
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2022-01-13 10:22:18
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
@@ -31,8 +31,9 @@ export default {
|
|
|
31
31
|
|
|
32
32
|
<template>
|
|
33
33
|
<item-view
|
|
34
|
-
v-for="item in data.data"
|
|
34
|
+
v-for="(item, index) in data.data"
|
|
35
35
|
:key="item.id"
|
|
36
|
+
:index="index"
|
|
36
37
|
:data="item.data"
|
|
37
38
|
:loadAll="loadAll"
|
|
38
39
|
:enableTouch="enableTouch"
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: ChenChanghua
|
|
3
3
|
* @Date: 2021-09-18 14:34:20
|
|
4
4
|
* @LastEditors: ChenChanghua
|
|
5
|
-
* @LastEditTime:
|
|
5
|
+
* @LastEditTime: 2022-01-13 10:22:08
|
|
6
6
|
* @Description: file content
|
|
7
7
|
-->
|
|
8
8
|
<script>
|
|
@@ -16,6 +16,7 @@ export default {
|
|
|
16
16
|
controlObj: Object,
|
|
17
17
|
onEdge: Function,
|
|
18
18
|
widgetHandler: Object,
|
|
19
|
+
index: Number,
|
|
19
20
|
},
|
|
20
21
|
setup(props) {
|
|
21
22
|
let element = {};
|
|
@@ -62,7 +63,7 @@ export default {
|
|
|
62
63
|
},
|
|
63
64
|
created() {
|
|
64
65
|
//export handlers
|
|
65
|
-
this.widgetHandler.registerItemFunc(this.
|
|
66
|
+
this.widgetHandler.registerItemFunc(this.index, {
|
|
66
67
|
onFocus: this.onFocus,
|
|
67
68
|
onBlur: this.onBlur,
|
|
68
69
|
onClick: this.onClick,
|