Skip to content

Commit 8d3533b

Browse files
committed
feat: 修复驼峰属性解析时驼峰性质丢失问题
1 parent ca02004 commit 8d3533b

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ VCC(Vue Compontent Creator)是 Low Code Generator 中独立的 Vue 组件代码
88
99
#### 使用示例
1010

11-
请移步至使用Demo:[https://github.com/sahadev/vcc3-use-demo](https://github.com/sahadev/vcc3-use-demo)
11+
请移步至使用 Demo:[https://github.com/sahadev/vcc3-use-demo](https://github.com/sahadev/vcc3-use-demo)
12+
1213
## 本地如何运行此项目
1314

1415
首先进行安装:
@@ -32,11 +33,17 @@ npm run dev
3233
[【LCG 近期功能更新介绍-哔哩哔哩】https://b23.tv/SAHwVq](https://b23.tv/SAHwVq)
3334

3435
### 说明文档
36+
3537
[https://vcc3-docs.surge.sh/#/](https://vcc3-docs.surge.sh/#/)
3638

3739
### 功能更新日志
38-
- 2022年03月16日 支持生成单页Html,支持Vue2以及Vue3,并支持一键部署至VCC服务器。
39-
- 2023年12月06日 更新Element组件库版本、更新Vue框架版本。
40+
41+
- 2022 年 03 月 16 日 支持生成单页 Html,支持 Vue2 以及 Vue3,并支持一键部署至 VCC 服务器。
42+
- 2023 年 12 月 06 日 更新 Element 组件库版本、更新 Vue 框架版本。
43+
44+
### 核心仓库
45+
46+
VCC 依赖于一个核心的代码转换库:[vue-component-code-creater](https://github.com/sahadev/vue-component-code-creater),通过这个库来完成 Vue 文件的解析和 Vue 文件的生成。如果需要更改核心实现,可通过此库提供的源码进行修改。
4047

4148
## 贡献
4249

@@ -60,4 +67,4 @@ npm run dev
6067

6168
或者加群和大家一起讨论吧! 可以加我微信:SAHADEV-smile,我拉你入群。加我微信时请备注 VCC。
6269

63-
另外我也特别希望可以和大家一起做这个项目。这个项目目前主要面对的是前端开发者。后期可以面向后端开发者与产品与 UE。
70+
另外我也特别希望可以和大家一起做这个项目。这个项目目前主要面对的是前端开发者。后期可以面向后端开发者与产品与 UE。

src/libs/bundle-html2json-common.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,21 @@ function parseHtml(htmlData) {
5656
lastAccessStack.pop();
5757
currentAccessObject = lastAccessStack[lastAccessStack.length - 1];
5858
},
59-
onend(){
59+
onend() {
6060
resolve(root);
6161
},
6262

6363
onerror(error) {
6464
reject(error);
6565
}
66+
}, {
67+
lowerCaseAttributeNames: false,
68+
lowerCaseTags: false,
6669
});
6770
parser.write(
6871
htmlData
6972
);
73+
7074
parser.end();
7175
})
7276
}

src/libs/bundle-html2json-esm.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,16 @@ function parseHtml(htmlData) {
5151
lastAccessStack.pop();
5252
currentAccessObject = lastAccessStack[lastAccessStack.length - 1];
5353
},
54-
onend(){
54+
onend() {
5555
resolve(root);
5656
},
5757

5858
onerror(error) {
5959
reject(error);
6060
}
61+
}, {
62+
lowerCaseAttributeNames: false,
63+
lowerCaseTags: false,
6164
});
6265
parser.write(
6366
htmlData

0 commit comments

Comments
 (0)