@netang/quasar 0.2.51 → 0.2.53

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.
@@ -32,7 +32,7 @@ import $n_sleep from '@netang/utils/sleep'
32
32
  import $n_percentValue from '@netang/utils/percentValue'
33
33
  import $n_pxValue from '@netang/utils/pxValue'
34
34
 
35
- import { layoutKey, emptyRenderFn } from 'quasar/src/utils/private/symbols.js'
35
+ import { layoutKey, emptyRenderFn } from 'quasar/src/utils/private/symbols'
36
36
 
37
37
  import { NPowerKey } from '../../utils/symbols'
38
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netang/quasar",
3
- "version": "0.2.51",
3
+ "version": "0.2.53",
4
4
 
5
5
  "description": "netang-quasar",
6
6
  "scripts": {
@@ -19,6 +19,9 @@
19
19
  "url": "https://github.com/netangsoft/netang-quasar/issues"
20
20
  },
21
21
  "homepage": "https://github.com/netangsoft/netang-quasar#readme",
22
+ "publishConfig": {
23
+ "registry": "https://registry.npmjs.org"
24
+ },
22
25
  "dependencies": {
23
26
  "spark-md5": "^3.0.2"
24
27
  }
@@ -0,0 +1,25 @@
1
+ import $n_copyImage from '@netang/utils/copyImage'
2
+
3
+ import $n_toast from './toast'
4
+
5
+ /**
6
+ * 复制图片
7
+ */
8
+ export default function copyImage(src) {
9
+
10
+ $n_copyImage(src)
11
+ .then(function () {
12
+ // 轻提示
13
+ $n_toast({
14
+ type: 'positive',
15
+ message: '复制图片成功',
16
+ })
17
+ })
18
+ .catch(function (e) {
19
+ // 轻提示
20
+ $n_toast({
21
+ type: 'negative',
22
+ message: '复制图片失败:' + e,
23
+ })
24
+ })
25
+ }
package/utils/index.js CHANGED
@@ -15,6 +15,7 @@ import bus from './bus'
15
15
  import config from './config'
16
16
  import confirm from './confirm'
17
17
  import copy from './copy'
18
+ import copyImage from './copyImage'
18
19
  import dialog from './dialog'
19
20
  import dict from './dict'
20
21
  import dictOptions from './dictOptions'
@@ -49,6 +50,7 @@ export default {
49
50
  config,
50
51
  confirm,
51
52
  copy,
53
+ copyImage,
52
54
  dialog,
53
55
  dict,
54
56
  dictOptions,