cloudcc-cli 0.9.9 → 1.0.2

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/README.md CHANGED
@@ -1,3 +1,10 @@
1
+ # ReleaseV1.0.2
2
+ #### 发布日期:2022-3-24
3
+ #### 发布范围:全量
4
+ #### 发布内容
5
+ * 迭代
6
+ * 增加scoped,限制样式污染
7
+
1
8
  # ReleaseV0.9.9
2
9
  #### 发布日期:2022-3-9
3
10
  #### 发布范围:全量
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudcc-cli",
3
- "version": "0.9.9",
3
+ "version": "1.0.2",
4
4
  "description": "cloudcc-cli",
5
5
  "keywords": [
6
6
  "cloudcc",
@@ -88,6 +88,10 @@ class Builder {
88
88
  getVueValue(buildFileName) {
89
89
  let vueContent = fs.readFileSync(this.getVueContent(buildFileName), 'utf8');
90
90
  let vueData = vueContent + ""
91
+ // 添加scoped限制样式污染
92
+ if (!vueContent.includes("scoped")) {
93
+ vueData = vueData.replace("<style", "<style scoped")
94
+ }
91
95
  // 去除空格
92
96
  // vueData = vueData.replace(/\ +/g, "")
93
97
  // 去除换行
@@ -153,7 +157,7 @@ class Builder {
153
157
  "bizType": obj.bizType,
154
158
  "compDesc": obj.compDesc,
155
159
  "category": obj.category,
156
- "belongOrgFlag": this.options.devConsoleConfig.belongOrgFlag || "custom"
160
+ "belongOrgFlag": this.options.devConsoleConfig.belongOrgFlag || "custom" //belongOrgFlag: 所属单位标识,std:官方的组件(神州云动);custom:第三方的组件
157
161
  }
158
162
  let res = await post(this.options.devConsoleConfig.baseUrl + "/devconsole/custom/pc/1.0/post/insertCustomComp",
159
163
  body, header);
package/template/indexvue CHANGED
@@ -283,7 +283,7 @@ export default {
283
283
  },
284
284
  };
285
285
  </script>
286
- <style >
286
+ <style scoped>
287
287
  .dev-button {
288
288
  height: 100%;
289
289
  width: 100%;