@netang/quasar 0.1.59 → 0.1.61

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.
@@ -83,6 +83,9 @@
83
83
  :height="toPx(currentSize)"
84
84
  fit="fill"
85
85
  >
86
+ <!-- 如果是外链 -->
87
+ <span class="n-uploader-query__item__net" v-if="fileItem.isNet">链接</span>
88
+
86
89
  <!-- 内容 -->
87
90
  <div
88
91
  class="n-uploader-query__item__inner absolute-full flex flex-center no-padding transparent"
@@ -151,6 +154,7 @@
151
154
  v-if="! noDelete && ! disable && ! readonly"
152
155
  />
153
156
  </div>
157
+
154
158
  </n-img>
155
159
  </div>
156
160
 
@@ -202,6 +206,9 @@
202
206
  @dragenter="dragEnter($event, fileItemIndex)"
203
207
  @dragend="dragEnd"
204
208
  >
209
+ <!-- 如果是外链 -->
210
+ <span class="n-uploader-query__item__net" v-if="fileItem.isNet">链接</span>
211
+
205
212
  <!-- 图标 -->
206
213
  <div
207
214
  class="n-uploader-query__item__icon"
@@ -661,6 +668,19 @@ export default {
661
668
  }
662
669
  }
663
670
 
671
+ // 外链
672
+ &__net {
673
+ position: absolute;
674
+ bottom: -1px;
675
+ right: -1px;
676
+ color: #ffffff;
677
+ padding: 1px 3px;
678
+ border-radius: 3px;
679
+ background-color: var(--q-primary);
680
+ transform: scale(0.7);
681
+ pointer-events: none;
682
+ }
683
+
664
684
  //操作
665
685
  &__settings {
666
686
  position: absolute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.1.59",
3
+ "version": "0.1.61",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"