cloud-web-corejs 1.0.54-dev.376 → 1.0.54-dev.378

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,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.376",
4
+ "version": "1.0.54-dev.378",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -1,36 +1,34 @@
1
1
  <template>
2
2
  <span>
3
- <el-tooltip :content="title" placement="top">
4
- <a @click="showDialog = true" class="tips-icon"
5
- ><i class="el-icon-view el-icon-question"></i
6
- ></a>
3
+ <el-tooltip :content="content" placement="top">
4
+ <a @click="showDialog=true" class="tips-icon"><i class="el-icon-view el-icon-question"></i></a>
7
5
  </el-tooltip>
8
- <scriptDescriptionDialog
9
- :path="path"
10
- v-if="showDialog"
11
- :visiable.sync="showDialog"
12
- ></scriptDescriptionDialog>
6
+ <scriptDescriptionDialog :path="path" v-if="showDialog"
7
+ :visiable.sync="showDialog"></scriptDescriptionDialog>
13
8
  </span>
14
9
  </template>
15
10
  <script>
11
+
16
12
  export default {
17
13
  name: "scriptDescriptionButton",
18
- components: {
19
- scriptDescriptionDialog: () => import("../../components/scriptDescription/dialog"),
20
- },
14
+ components: {scriptDescriptionDialog:() => import('../../components/scriptDescription/dialog')},
21
15
  props: {
22
16
  path: String,
23
- title: {
24
- type: String,
25
- default: () => this.$t2("脚本说明", "components.scriptDescription.title"),
17
+ title: String
18
+ },
19
+ computed: {
20
+ content() {
21
+ return this.title || this.$t2('脚本说明', 'components.scriptDescription.title');
26
22
  },
27
23
  },
28
24
  data() {
29
25
  return {
30
- showDialog: false,
31
- };
32
- },
33
- };
26
+ showDialog: false
27
+ }
28
+ }
29
+ }
34
30
  </script>
35
31
 
36
- <style scoped></style>
32
+ <style scoped>
33
+
34
+ </style>