@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shijiu/jsview-vue",
3
- "version": "0.9.304-alpha.0",
3
+ "version": "0.9.312-alpha.0",
4
4
  "bin": {
5
5
  "jsview-post-build": "./scripts/jsview-post-build.js",
6
6
  "jsview-post-install": "./scripts/jsview-post-install.js",
@@ -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.name)
101
+ // console.log('node=', node)
102
102
 
103
- if(node.name === "import") {
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(/\n/g, " ");
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
@@ -38,7 +38,7 @@
38
38
  "./**/*.vue"
39
39
  ],
40
40
  "files": [
41
- "./utils/JsViewEngineTools/index.d.ts",
41
+ "./utils/JsViewEngineWidget/index.d.ts",
42
42
  "./utils/JsViewVueTools/index.d.ts"
43
43
  ],
44
44
  }
@@ -2,7 +2,7 @@
2
2
  * @Author: ChenChanghua
3
3
  * @Date: 2021-09-22 13:47:23
4
4
  * @LastEditors: ChenChanghua
5
- * @LastEditTime: 2021-10-18 14:05:24
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: 2021-12-28 15:27:20
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.data.id, {
66
+ this.widgetHandler.registerItemFunc(this.index, {
66
67
  onFocus: this.onFocus,
67
68
  onBlur: this.onBlur,
68
69
  onClick: this.onClick,