@ganwei-web/gw-base-components-plus 1.0.56 → 1.0.57

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.
@@ -1,12 +1,8 @@
1
1
  <template>
2
2
  <span class="file-preview">
3
3
  <span class="file-name">{{ showFileName ? filename : $t("login.framePro.label.attachment") }}</span>
4
- <el-button v-if="isPreview" type="primary" link @click="handlePreview">
5
- {{$t("login.framePro.label.preview")}}
6
- </el-button>
7
- <el-button v-if="isDownload" type="primary" link @click="handleDownload">
8
- {{$t("login.framePro.label.download")}}
9
- </el-button>
4
+ <span v-if="isPreview" class="file-action" @click="handlePreview">{{ $t("login.framePro.label.preview") }}</span>
5
+ <span v-if="isDownload" class="file-action" @click="handleDownload">{{ $t("login.framePro.label.download") }}</span>
10
6
  </span>
11
7
  </template>
12
8
 
@@ -108,4 +104,13 @@ export default {
108
104
  margin-right: 12px;
109
105
  line-height: 16px;
110
106
  }
107
+
108
+ .file-action {
109
+ cursor: pointer;
110
+ color: var(--gw-color-primary);
111
+ white-space: nowrap;
112
+ &+.file-action {
113
+ margin-left: 6px;
114
+ }
115
+ }
111
116
  </style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ganwei-web/gw-base-components-plus",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "components",
5
5
  "main": "./dist/index.es.js",
6
6
  "dependencies": {