@netang/quasar 0.0.106 → 0.1.8

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/utils/index.js CHANGED
@@ -1,61 +1,62 @@
1
- import $auth from './$auth'
2
- import $form from './$form'
3
- import $power from './$power'
4
- import $rule from './$rule'
5
- import $ruleValid from './$ruleValid'
6
- import $table from './$table'
7
- import $tree from './$tree'
8
-
9
- import alert from './alert'
10
- import area from './area'
11
- import arr from './arr'
12
- import bus from './bus'
13
- import config from './config'
14
- import confirm from './confirm'
15
- import copy from './copy'
16
- import dialog from './dialog'
17
- import dict from './dict'
18
- import dictOptions from './dictOptions'
19
- import getData from './getData'
20
- import getFile from './getFile'
21
- import getImage from './getImage'
22
- import getTime from './getTime'
23
- import loading from './loading'
24
- import notify from './notify'
25
- import previewImage from './previewImage'
26
- import price from './price'
27
- import timestamp from './timestamp'
28
- import toast from './toast'
29
- import uploader from './uploader'
30
-
31
- export default {
32
- $auth,
33
- $form,
34
- $power,
35
- $rule,
36
- $ruleValid,
37
- $table,
38
- $tree,
39
-
40
- alert,
41
- area,
42
- arr,
43
- bus,
44
- config,
45
- confirm,
46
- copy,
47
- dialog,
48
- dict,
49
- dictOptions,
50
- getData,
51
- getFile,
52
- getImage,
53
- getTime,
54
- loading,
55
- notify,
56
- previewImage,
57
- price,
58
- timestamp,
59
- toast,
60
- uploader,
61
- }
1
+ import $auth from './$auth'
2
+ import $form from './$form'
3
+ import $power from './$power'
4
+ import $render from './$render'
5
+ import $rule from './$rule'
6
+ import $ruleValid from './$ruleValid'
7
+ import $table from './$table'
8
+ import $tree from './$tree'
9
+
10
+ import alert from './alert'
11
+ import area from './area'
12
+ import arr from './arr'
13
+ import bus from './bus'
14
+ import config from './config'
15
+ import confirm from './confirm'
16
+ import copy from './copy'
17
+ import dialog from './dialog'
18
+ import dict from './dict'
19
+ import dictOptions from './dictOptions'
20
+ import getData from './getData'
21
+ import getFile from './getFile'
22
+ import getImage from './getImage'
23
+ import getTime from './getTime'
24
+ import loading from './loading'
25
+ import notify from './notify'
26
+ import previewImage from './previewImage'
27
+ import price from './price'
28
+ import timestamp from './timestamp'
29
+ import toast from './toast'
30
+ import uploader from './uploader'
31
+
32
+ export default {
33
+ $auth,
34
+ $form,
35
+ $power,
36
+ $rule,
37
+ $ruleValid,
38
+ $table,
39
+ $tree,
40
+
41
+ alert,
42
+ area,
43
+ arr,
44
+ bus,
45
+ config,
46
+ confirm,
47
+ copy,
48
+ dialog,
49
+ dict,
50
+ dictOptions,
51
+ getData,
52
+ getFile,
53
+ getImage,
54
+ getTime,
55
+ loading,
56
+ notify,
57
+ previewImage,
58
+ price,
59
+ timestamp,
60
+ toast,
61
+ uploader,
62
+ }
@@ -1,18 +1,18 @@
1
- import { stateTimeDiff } from '../store'
2
-
3
- /**
4
- * 获取当前时间戳
5
- */
6
- export default function timestamp(isMicro = false) {
7
-
8
- // 获取当前时间戳(毫秒)
9
- const nowTime = Date.now()
10
-
11
- // 如果是毫秒
12
- if (isMicro) {
13
- return nowTime - (stateTimeDiff.value * 1000)
14
- }
15
-
16
- // 否则是秒
17
- return Math.floor(nowTime / 1000) - stateTimeDiff.value
18
- }
1
+ import { stateTimeDiff } from '../store'
2
+
3
+ /**
4
+ * 获取当前时间戳
5
+ */
6
+ export default function timestamp(isMicro = false) {
7
+
8
+ // 获取当前时间戳(毫秒)
9
+ const nowTime = Date.now()
10
+
11
+ // 如果是毫秒
12
+ if (isMicro) {
13
+ return nowTime - (stateTimeDiff.value * 1000)
14
+ }
15
+
16
+ // 否则是秒
17
+ return Math.floor(nowTime / 1000) - stateTimeDiff.value
18
+ }