@netang/quasar 0.0.82 → 0.0.84

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,6 +1,10 @@
1
1
  <template>
2
- <div class="q-pa-lg column flex-center absolute-full q-gutter-sm">
3
-
2
+ <div
3
+ class="q-pa-lg column flex-center q-gutter-sm"
4
+ :class="{
5
+ 'absolute-full': fit,
6
+ }"
7
+ >
4
8
  <!-- 图标 -->
5
9
  <q-icon
6
10
  :name="icon"
@@ -47,6 +51,8 @@ export default {
47
51
  },
48
52
  // 描述文字
49
53
  description: String,
54
+ // 撑满全屏
55
+ fit: Boolean,
50
56
  },
51
57
 
52
58
  /**
@@ -3,6 +3,7 @@
3
3
  <!-- 空数据 -->
4
4
  <n-empty
5
5
  :description="emptyDescription"
6
+ fit
6
7
  v-if="pageStatus === false"
7
8
  />
8
9
  <!-- 插槽 -->
@@ -19,6 +20,7 @@
19
20
  <!-- 空数据 -->
20
21
  <n-empty
21
22
  :description="emptyDescription"
23
+ fit
22
24
  v-if="pageStatus === false"
23
25
  />
24
26
  <!-- 插槽 -->
@@ -69,6 +69,7 @@
69
69
  <!-- 空状态 -->
70
70
  <n-empty
71
71
  :description="renderDescription"
72
+ fit
72
73
  v-else
73
74
  />
74
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.0.82",
3
+ "version": "0.0.84",
4
4
  "description": "netang-quasar",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -19,7 +19,6 @@
19
19
  },
20
20
  "homepage": "https://github.com/netangsoft/netang-quasar#readme",
21
21
  "dependencies": {
22
- "axios": "^1.3.2",
23
22
  "spark-md5": "^3.0.2"
24
23
  }
25
24
  }
package/utils/copy.js CHANGED
@@ -1,4 +1,4 @@
1
- import $n_copy from '@netang/utils/copy'
1
+ import { copyToClipboard } from 'quasar'
2
2
 
3
3
  import $n_toast from './toast'
4
4
 
@@ -6,13 +6,22 @@ import $n_toast from './toast'
6
6
  * 复制
7
7
  */
8
8
  export default function copy(text, message) {
9
+
10
+ // 提示
9
11
  if (message) {
12
+
13
+ if (message === true) {
14
+ message = `复制【${text}】成功`
15
+ }
16
+
10
17
  // 轻提示
11
18
  $n_toast({
12
19
  type: 'positive',
13
20
  message,
14
21
  })
15
22
  }
23
+
16
24
  // 复制
17
- $n_copy(text)
25
+ copyToClipboard(text)
26
+ .finally()
18
27
  }