giime 0.0.3 → 0.0.4
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/dist/index.css +118 -118
- package/es/components/src/base/carousel/Carousel.vue.d.ts +5 -4
- package/es/components/src/base/carousel/index.d.ts +13 -12
- package/es/components/src/base/table/Table.vue.d.ts +3 -2
- package/es/components/src/base/table/index.d.ts +7 -6
- package/es/giime/version.d.ts +1 -1
- package/es/hooks/store/useOrgUserList/index.d.ts +96 -6
- package/es/index.css +118 -118
- package/es/packages/components/src/business/loginDialog/LoginDialog.vue2.mjs +22 -20
- package/es/packages/components/src/business/loginDialog/LoginDialog.vue2.mjs.map +1 -1
- package/es/packages/giime/version.mjs +1 -1
- package/es/packages/giime/version.mjs.map +1 -1
- package/es/packages/hooks/store/useOrgUserList/index.mjs +16 -4
- package/es/packages/hooks/store/useOrgUserList/index.mjs.map +1 -1
- package/es/packages/utils/src/http/createAxios.mjs +2 -1
- package/es/packages/utils/src/http/createAxios.mjs.map +1 -1
- package/lib/components/src/base/carousel/Carousel.vue.d.ts +5 -4
- package/lib/components/src/base/carousel/index.d.ts +13 -12
- package/lib/components/src/base/table/Table.vue.d.ts +3 -2
- package/lib/components/src/base/table/index.d.ts +7 -6
- package/lib/giime/version.d.ts +1 -1
- package/lib/hooks/store/useOrgUserList/index.d.ts +96 -6
- package/lib/index.css +118 -118
- package/lib/packages/components/src/business/loginDialog/LoginDialog.vue2.js +22 -20
- package/lib/packages/components/src/business/loginDialog/LoginDialog.vue2.js.map +1 -1
- package/lib/packages/giime/version.js +1 -1
- package/lib/packages/giime/version.js.map +1 -1
- package/lib/packages/hooks/store/useOrgUserList/index.js +16 -4
- package/lib/packages/hooks/store/useOrgUserList/index.js.map +1 -1
- package/lib/packages/utils/src/http/createAxios.js +2 -1
- package/lib/packages/utils/src/http/createAxios.js.map +1 -1
- package/package.json +6 -2
package/es/index.css
CHANGED
|
@@ -1,3 +1,121 @@
|
|
|
1
|
+
#table-page[data-v-5341bce5] [data-v-5341bce5] .cell {
|
|
2
|
+
white-space: pre-line !important;
|
|
3
|
+
}
|
|
4
|
+
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-tooltip {
|
|
5
|
+
white-space: nowrap !important;
|
|
6
|
+
}
|
|
7
|
+
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-scrollbar__bar.is-horizontal {
|
|
8
|
+
height: 12px;
|
|
9
|
+
border-radius: 12px;
|
|
10
|
+
}
|
|
11
|
+
#table-page[data-v-5341bce5] .operate-wrap[data-v-5341bce5] {
|
|
12
|
+
text-align: center;
|
|
13
|
+
}
|
|
14
|
+
#table-page[data-v-5341bce5] .el-button[data-v-5341bce5] {
|
|
15
|
+
margin: 0 3px !important;
|
|
16
|
+
}
|
|
17
|
+
@charset "UTF-8";
|
|
18
|
+
.drawer-title[data-v-2ca1bc9b] {
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
border-bottom: 2px solid #f2f2f2;
|
|
21
|
+
margin: 0 -20px;
|
|
22
|
+
padding: 0 20px 20px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#column-group[data-v-2ca1bc9b] {
|
|
26
|
+
height: calc(100vh - 265px);
|
|
27
|
+
overflow-y: auto;
|
|
28
|
+
}
|
|
29
|
+
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar {
|
|
30
|
+
/*滚动条整体样式*/
|
|
31
|
+
width: 4px;
|
|
32
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
33
|
+
height: 1px;
|
|
34
|
+
}
|
|
35
|
+
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-thumb {
|
|
36
|
+
/*滚动条里面小方块*/
|
|
37
|
+
border-radius: 10px;
|
|
38
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
39
|
+
background: #999;
|
|
40
|
+
}
|
|
41
|
+
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-track {
|
|
42
|
+
/*滚动条里面轨道*/
|
|
43
|
+
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
44
|
+
border-radius: 10px;
|
|
45
|
+
background: #eee;
|
|
46
|
+
}
|
|
47
|
+
#column-group[data-v-2ca1bc9b] .column-checked[data-v-2ca1bc9b] {
|
|
48
|
+
margin-left: -36px;
|
|
49
|
+
}
|
|
50
|
+
#column-group[data-v-2ca1bc9b] [data-v-2ca1bc9b] .el-input__wrapper {
|
|
51
|
+
box-shadow: none;
|
|
52
|
+
}
|
|
53
|
+
#column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
54
|
+
border-bottom: 1px solid #e5e7eb;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.column-class[data-v-2ca1bc9b] > ul[data-v-2ca1bc9b]:first-child {
|
|
58
|
+
padding-right: 4px;
|
|
59
|
+
}
|
|
60
|
+
.column-class[data-v-2ca1bc9b] #column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
61
|
+
border-bottom: none;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.drawer-footer-btn[data-v-2ca1bc9b] {
|
|
65
|
+
margin: 15px -20px -20px;
|
|
66
|
+
padding: 15px 20px;
|
|
67
|
+
}
|
|
68
|
+
@charset "UTF-8";
|
|
69
|
+
.drawer-title[data-v-75e95cd1] {
|
|
70
|
+
font-size: 14px;
|
|
71
|
+
border-bottom: 2px solid #f2f2f2;
|
|
72
|
+
margin: 0 -20px;
|
|
73
|
+
padding: 0 20px 20px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
#column-group[data-v-75e95cd1] {
|
|
77
|
+
height: calc(100vh - 265px);
|
|
78
|
+
overflow-y: auto;
|
|
79
|
+
}
|
|
80
|
+
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar {
|
|
81
|
+
/*滚动条整体样式*/
|
|
82
|
+
width: 4px;
|
|
83
|
+
/*高宽分别对应横竖滚动条的尺寸*/
|
|
84
|
+
height: 1px;
|
|
85
|
+
}
|
|
86
|
+
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-thumb {
|
|
87
|
+
/*滚动条里面小方块*/
|
|
88
|
+
border-radius: 10px;
|
|
89
|
+
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
90
|
+
background: #999;
|
|
91
|
+
}
|
|
92
|
+
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-track {
|
|
93
|
+
/*滚动条里面轨道*/
|
|
94
|
+
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
95
|
+
border-radius: 10px;
|
|
96
|
+
background: #eee;
|
|
97
|
+
}
|
|
98
|
+
#column-group[data-v-75e95cd1] .column-checked[data-v-75e95cd1] {
|
|
99
|
+
margin-left: -36px;
|
|
100
|
+
}
|
|
101
|
+
#column-group[data-v-75e95cd1] [data-v-75e95cd1] .el-input__wrapper {
|
|
102
|
+
box-shadow: none;
|
|
103
|
+
}
|
|
104
|
+
#column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
105
|
+
border-bottom: 1px solid #e5e7eb;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.column-class[data-v-75e95cd1] > ul[data-v-75e95cd1]:first-child {
|
|
109
|
+
padding-right: 4px;
|
|
110
|
+
}
|
|
111
|
+
.column-class[data-v-75e95cd1] #column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
112
|
+
border-bottom: none;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.drawer-footer-btn[data-v-75e95cd1] {
|
|
116
|
+
margin: 15px -20px -20px;
|
|
117
|
+
padding: 15px 20px;
|
|
118
|
+
}
|
|
1
119
|
/*
|
|
2
120
|
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
|
|
3
121
|
*//*
|
|
@@ -484,122 +602,4 @@ video {
|
|
|
484
602
|
--tw-backdrop-opacity: ;
|
|
485
603
|
--tw-backdrop-saturate: ;
|
|
486
604
|
--tw-backdrop-sepia: ;
|
|
487
|
-
}
|
|
488
|
-
#table-page[data-v-5341bce5] [data-v-5341bce5] .cell {
|
|
489
|
-
white-space: pre-line !important;
|
|
490
|
-
}
|
|
491
|
-
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-tooltip {
|
|
492
|
-
white-space: nowrap !important;
|
|
493
|
-
}
|
|
494
|
-
#table-page[data-v-5341bce5] [data-v-5341bce5] .el-scrollbar__bar.is-horizontal {
|
|
495
|
-
height: 12px;
|
|
496
|
-
border-radius: 12px;
|
|
497
|
-
}
|
|
498
|
-
#table-page[data-v-5341bce5] .operate-wrap[data-v-5341bce5] {
|
|
499
|
-
text-align: center;
|
|
500
|
-
}
|
|
501
|
-
#table-page[data-v-5341bce5] .el-button[data-v-5341bce5] {
|
|
502
|
-
margin: 0 3px !important;
|
|
503
|
-
}
|
|
504
|
-
@charset "UTF-8";
|
|
505
|
-
.drawer-title[data-v-2ca1bc9b] {
|
|
506
|
-
font-size: 14px;
|
|
507
|
-
border-bottom: 2px solid #f2f2f2;
|
|
508
|
-
margin: 0 -20px;
|
|
509
|
-
padding: 0 20px 20px;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
#column-group[data-v-2ca1bc9b] {
|
|
513
|
-
height: calc(100vh - 265px);
|
|
514
|
-
overflow-y: auto;
|
|
515
|
-
}
|
|
516
|
-
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar {
|
|
517
|
-
/*滚动条整体样式*/
|
|
518
|
-
width: 4px;
|
|
519
|
-
/*高宽分别对应横竖滚动条的尺寸*/
|
|
520
|
-
height: 1px;
|
|
521
|
-
}
|
|
522
|
-
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-thumb {
|
|
523
|
-
/*滚动条里面小方块*/
|
|
524
|
-
border-radius: 10px;
|
|
525
|
-
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
526
|
-
background: #999;
|
|
527
|
-
}
|
|
528
|
-
#column-group[data-v-2ca1bc9b][data-v-2ca1bc9b]::-webkit-scrollbar-track {
|
|
529
|
-
/*滚动条里面轨道*/
|
|
530
|
-
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
531
|
-
border-radius: 10px;
|
|
532
|
-
background: #eee;
|
|
533
|
-
}
|
|
534
|
-
#column-group[data-v-2ca1bc9b] .column-checked[data-v-2ca1bc9b] {
|
|
535
|
-
margin-left: -36px;
|
|
536
|
-
}
|
|
537
|
-
#column-group[data-v-2ca1bc9b] [data-v-2ca1bc9b] .el-input__wrapper {
|
|
538
|
-
box-shadow: none;
|
|
539
|
-
}
|
|
540
|
-
#column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
541
|
-
border-bottom: 1px solid #e5e7eb;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.column-class[data-v-2ca1bc9b] > ul[data-v-2ca1bc9b]:first-child {
|
|
545
|
-
padding-right: 4px;
|
|
546
|
-
}
|
|
547
|
-
.column-class[data-v-2ca1bc9b] #column-group[data-v-2ca1bc9b] ul[data-v-2ca1bc9b]:last-child {
|
|
548
|
-
border-bottom: none;
|
|
549
|
-
}
|
|
550
|
-
|
|
551
|
-
.drawer-footer-btn[data-v-2ca1bc9b] {
|
|
552
|
-
margin: 15px -20px -20px;
|
|
553
|
-
padding: 15px 20px;
|
|
554
|
-
}
|
|
555
|
-
@charset "UTF-8";
|
|
556
|
-
.drawer-title[data-v-75e95cd1] {
|
|
557
|
-
font-size: 14px;
|
|
558
|
-
border-bottom: 2px solid #f2f2f2;
|
|
559
|
-
margin: 0 -20px;
|
|
560
|
-
padding: 0 20px 20px;
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
#column-group[data-v-75e95cd1] {
|
|
564
|
-
height: calc(100vh - 265px);
|
|
565
|
-
overflow-y: auto;
|
|
566
|
-
}
|
|
567
|
-
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar {
|
|
568
|
-
/*滚动条整体样式*/
|
|
569
|
-
width: 4px;
|
|
570
|
-
/*高宽分别对应横竖滚动条的尺寸*/
|
|
571
|
-
height: 1px;
|
|
572
|
-
}
|
|
573
|
-
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-thumb {
|
|
574
|
-
/*滚动条里面小方块*/
|
|
575
|
-
border-radius: 10px;
|
|
576
|
-
box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
|
|
577
|
-
background: #999;
|
|
578
|
-
}
|
|
579
|
-
#column-group[data-v-75e95cd1][data-v-75e95cd1]::-webkit-scrollbar-track {
|
|
580
|
-
/*滚动条里面轨道*/
|
|
581
|
-
box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.1);
|
|
582
|
-
border-radius: 10px;
|
|
583
|
-
background: #eee;
|
|
584
|
-
}
|
|
585
|
-
#column-group[data-v-75e95cd1] .column-checked[data-v-75e95cd1] {
|
|
586
|
-
margin-left: -36px;
|
|
587
|
-
}
|
|
588
|
-
#column-group[data-v-75e95cd1] [data-v-75e95cd1] .el-input__wrapper {
|
|
589
|
-
box-shadow: none;
|
|
590
|
-
}
|
|
591
|
-
#column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
592
|
-
border-bottom: 1px solid #e5e7eb;
|
|
593
|
-
}
|
|
594
|
-
|
|
595
|
-
.column-class[data-v-75e95cd1] > ul[data-v-75e95cd1]:first-child {
|
|
596
|
-
padding-right: 4px;
|
|
597
|
-
}
|
|
598
|
-
.column-class[data-v-75e95cd1] #column-group[data-v-75e95cd1] ul[data-v-75e95cd1]:last-child {
|
|
599
|
-
border-bottom: none;
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
.drawer-footer-btn[data-v-75e95cd1] {
|
|
603
|
-
margin: 15px -20px -20px;
|
|
604
|
-
padding: 15px 20px;
|
|
605
605
|
}
|
|
@@ -37,7 +37,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
37
37
|
const host = window.location.host;
|
|
38
38
|
const myPath = window.location.pathname;
|
|
39
39
|
loginUrl.value = `${originLoginUrl}?_system=${props.system}`;
|
|
40
|
-
if (route.value && props.needScanningRouteNames.includes(route.value
|
|
40
|
+
if (route.value && props.needScanningRouteNames.includes(route.value?.name?.toString() ?? "")) {
|
|
41
41
|
loginUrl.value += "&is_dashboard=1";
|
|
42
42
|
}
|
|
43
43
|
loginUrl.value += `&_url=${protocol}//${host}${myPath}`;
|
|
@@ -52,25 +52,27 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
);
|
|
54
54
|
const reloadTimer = ref();
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
55
|
+
if (route.value) {
|
|
56
|
+
watch(route, (newValue, oldValue) => {
|
|
57
|
+
if (!oldValue || !newValue) {
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (oldValue.name && props.needScanningRouteNames.includes(oldValue.name.toString())) {
|
|
61
|
+
window.clearInterval(reloadTimer.value);
|
|
62
|
+
}
|
|
63
|
+
if (newValue.name && props.needScanningRouteNames.includes(newValue.name.toString())) {
|
|
64
|
+
reloadTimer.value = window.setInterval(
|
|
65
|
+
() => {
|
|
66
|
+
if (!loginStore.showLogin) {
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
window.location.reload();
|
|
70
|
+
},
|
|
71
|
+
3 * 60 * 1e3
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
}
|
|
74
76
|
onMounted(() => {
|
|
75
77
|
if (loginStore.showLogin) {
|
|
76
78
|
login();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoginDialog.vue2.mjs","sources":["../../../../../../../../packages/components/src/business/loginDialog/LoginDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nconst loginEnvKey = 'VITE_GIIME_LOGIN_URL'\n</script>\n<template>\r\n <el-dialog v-model=\"loginStore.showLogin\" width=\"80%\" append-to-body>\r\n <iframe v-if=\"loginStore.showLogin\" class=\"gm-h-[600px] gm-w-full\" :src=\"loginUrl\" />\r\n </el-dialog>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, onUnmounted, ref, unref, watch } from 'vue';\r\nimport { ElDialog } from 'element-plus';\r\nimport Cookies from 'js-cookie';\r\n// import router from 'vue-router';\r\nimport { useLoginStore } from '@giime/hooks';\r\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\r\nimport { isString } from '@giime/utils';\r\nimport { loginDialogProps } from './loginDialog';\r\n\r\nconst props = defineProps(loginDialogProps);\r\nconst router = useGlobalConfig('router');\r\n// const router = useRouter();\r\nconst route = computed(() => (router.value ? unref(router.value.currentRoute) : undefined));\r\nconst loginStore = useLoginStore();\r\nconst loginUrl = ref('');\r\nconst viteModes = [\r\n { mode: 'development', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'test', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'production', loginUrl: 'https://gsso.giikin.com/admin/login/logout.html' },\r\n];\r\n\r\n\r\nconst importMetaEnv = useGlobalConfig('env');\r\nlet originLoginUrl = ``;\r\nif (isString(importMetaEnv.value[loginEnvKey])) {\r\n originLoginUrl = importMetaEnv.value[loginEnvKey];\r\n} else {\r\n const curMode = viteModes.find(item => item.mode == importMetaEnv.value.MODE);\r\n originLoginUrl = curMode?.loginUrl ?? 'https://gsso.giikin.com/admin/login/logout.html';\r\n}\r\nconst login = () => {\r\n const protocol = window.location.protocol;\r\n const host = window.location.host;\r\n const myPath = window.location.pathname;\r\n loginUrl.value = `${originLoginUrl}?_system=${props.system}`;\r\n if (route.value && props.needScanningRouteNames.includes(route.value
|
|
1
|
+
{"version":3,"file":"LoginDialog.vue2.mjs","sources":["../../../../../../../../packages/components/src/business/loginDialog/LoginDialog.vue"],"sourcesContent":["<script lang=\"ts\">\nconst loginEnvKey = 'VITE_GIIME_LOGIN_URL'\n</script>\n<template>\r\n <el-dialog v-model=\"loginStore.showLogin\" width=\"80%\" append-to-body>\r\n <iframe v-if=\"loginStore.showLogin\" class=\"gm-h-[600px] gm-w-full\" :src=\"loginUrl\" />\r\n </el-dialog>\r\n</template>\r\n<script setup lang=\"ts\">\r\nimport { computed, onMounted, onUnmounted, ref, unref, watch } from 'vue';\r\nimport { ElDialog } from 'element-plus';\r\nimport Cookies from 'js-cookie';\r\n// import router from 'vue-router';\r\nimport { useLoginStore } from '@giime/hooks';\r\nimport { useGlobalConfig } from '@giime/hooks/base/useGlobalConfig';\r\nimport { isString } from '@giime/utils';\r\nimport { loginDialogProps } from './loginDialog';\r\n\r\nconst props = defineProps(loginDialogProps);\r\nconst router = useGlobalConfig('router');\r\n// const router = useRouter();\r\nconst route = computed(() => (router.value ? unref(router.value.currentRoute) : undefined));\r\nconst loginStore = useLoginStore();\r\nconst loginUrl = ref('');\r\nconst viteModes = [\r\n { mode: 'development', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'test', loginUrl: 'http://sso-dev.giikin.cn/admin/login/index.html' },\r\n { mode: 'production', loginUrl: 'https://gsso.giikin.com/admin/login/logout.html' },\r\n];\r\n\r\n\r\nconst importMetaEnv = useGlobalConfig('env');\r\nlet originLoginUrl = ``;\r\nif (isString(importMetaEnv.value[loginEnvKey])) {\r\n originLoginUrl = importMetaEnv.value[loginEnvKey];\r\n} else {\r\n const curMode = viteModes.find(item => item.mode == importMetaEnv.value.MODE);\r\n originLoginUrl = curMode?.loginUrl ?? 'https://gsso.giikin.com/admin/login/logout.html';\r\n}\r\nconst login = () => {\r\n const protocol = window.location.protocol;\r\n const host = window.location.host;\r\n const myPath = window.location.pathname;\r\n loginUrl.value = `${originLoginUrl}?_system=${props.system}`;\r\n if (route.value && props.needScanningRouteNames.includes(route.value?.name?.toString() ?? '')) {\r\n loginUrl.value += '&is_dashboard=1';\r\n }\r\n loginUrl.value += `&_url=${protocol}//${host}${myPath}`;\r\n\r\n // eslint-disable-next-line no-console\r\n console.log(loginUrl.value);\r\n};\r\nwatch(\r\n () => loginStore.showLogin,\r\n value => {\r\n if (value) {\r\n login();\r\n }\r\n },\r\n);\r\n// 超过5分钟没扫码 会不能扫码 定时没登录的话3分钟刷新次\r\nconst reloadTimer = ref<number>();\r\nif (route.value) {\r\n watch(route, (newValue, oldValue) => {\r\n if (!oldValue || !newValue) {\r\n return;\r\n }\r\n if (oldValue.name && props.needScanningRouteNames.includes(oldValue.name.toString())) {\r\n window.clearInterval(reloadTimer.value);\r\n }\r\n if (newValue.name && props.needScanningRouteNames.includes(newValue.name.toString())) {\r\n reloadTimer.value = window.setInterval(\r\n () => {\r\n if (!loginStore.showLogin) {\r\n return;\r\n }\r\n // 登录超时后 3分钟刷新次页面\r\n window.location.reload();\r\n },\r\n 3 * 60 * 1000,\r\n );\r\n }\r\n });\r\n}\r\n\r\nonMounted(() => {\r\n if (loginStore.showLogin) {\r\n login();\r\n }\r\n // iframe事件监听\r\n window.addEventListener('message', e => {\r\n // 刷新登陆状态\r\n if (e.data.type == 'giikin-Logged') {\r\n // eslint-disable-next-line no-console\r\n console.log(e.data);\r\n const token = Cookies.get('token');\r\n if (\r\n // 测试环境 但是需要登陆的情况\r\n (importMetaEnv.value.MODE !== 'production' && e.data?.data?.token) ||\r\n // 正式环境 登录成功 但是服务器token设置失败\r\n (importMetaEnv.value.MODE === 'production' && !token && e.data?.data?.token)\r\n ) {\r\n const now = new Date();\r\n let time = now.getTime();\r\n time += 8 * 60 * 60 * 1000; // 8 小时之后的时间(单位:毫秒)\r\n now.setTime(time);\r\n Cookies.set('token', e.data.data.token, { expires: now, domain: importMetaEnv.value.MODE === 'production' ? '.giikin.com' : undefined });\r\n if (!Cookies.get('sso_user_id') && e.data.data.userId) {\r\n Cookies.set('sso_user_id', e.data.data.userId, {\r\n expires: now,\r\n domain: importMetaEnv.value.MODE === 'production' ? '.giikin.com' : undefined,\r\n });\r\n }\r\n }\r\n // 触发登录成功监听\r\n if (e.data?.data?.token) {\r\n loginStore.triggerLoginResult(e.data.data);\r\n }\r\n // ElMessage.success('登录成功,请关闭弹窗');\r\n loginStore.showLogin = false;\r\n if (route.value && props.needRealodRouteNames.includes(route.value.name?.toString() ?? '')) {\r\n window.location.reload();\r\n }\r\n }\r\n });\r\n});\r\nonUnmounted(() => {\r\n window.clearInterval(reloadTimer.value);\r\n});\r\n</script>\r\n"],"names":[],"mappings":";;;;;;;;;;;AACA,MAAM,WAAc,GAAA,sBAAA,CAAA;;;;;AAiBpB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAM,MAAA,MAAA,GAAS,gBAAgB,QAAQ,CAAA,CAAA;AAEvC,IAAM,MAAA,KAAA,GAAQ,QAAS,CAAA,MAAO,MAAO,CAAA,KAAA,GAAQ,MAAM,MAAO,CAAA,KAAA,CAAM,YAAY,CAAA,GAAI,KAAU,CAAA,CAAA,CAAA;AAC1F,IAAA,MAAM,aAAa,aAAc,EAAA,CAAA;AACjC,IAAM,MAAA,QAAA,GAAW,IAAI,EAAE,CAAA,CAAA;AACvB,IAAA,MAAM,SAAY,GAAA;AAAA,MAChB,EAAE,IAAA,EAAM,aAAe,EAAA,QAAA,EAAU,iDAAkD,EAAA;AAAA,MACnF,EAAE,IAAA,EAAM,MAAQ,EAAA,QAAA,EAAU,iDAAkD,EAAA;AAAA,MAC5E,EAAE,IAAA,EAAM,YAAc,EAAA,QAAA,EAAU,iDAAkD,EAAA;AAAA,KACpF,CAAA;AAGA,IAAM,MAAA,aAAA,GAAgB,gBAA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,WAC3C;AAEA,UAAA,UAAA,CAAW,SAAY,GAAA,KAAA,CAAA;AACvB,UAAI,IAAA,KAAA,CAAM,KAAS,IAAA,KAAA,CAAM,oBAAqB,CAAA,QAAA,CAAS,KAAM,CAAA,KAAA,CAAM,IAAM,EAAA,QAAA,EAAc,IAAA,EAAE,CAAG,EAAA;AAC1F,YAAA,MAAA,CAAO,SAAS,MAAO,EAAA,CAAA;AAAA,WACzB;AAAA,SACF;AAAA,OACD,CAAA,CAAA;AAAA,KACF,CAAA,CAAA;AACD,IAAA,WAAA,CAAY,MAAM;AAChB,MAAO,MAAA,CAAA,aAAA,CAAc,YAAY,KAAK,CAAA,CAAA;AAAA,KACvC,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../../../packages/giime/version.ts"],"sourcesContent":["export const version = '0.0.3';\n"],"names":[],"mappings":"AAAO,MAAM,OAAU,GAAA;;;;"}
|
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
import { computed, onMounted } from 'vue';
|
|
2
2
|
import { defineStore } from 'pinia';
|
|
3
3
|
import '../../../api/gatewayApi/controller/index.mjs';
|
|
4
|
+
import { groupBy } from 'lodash-es';
|
|
4
5
|
import { usePostPubGetOrgUser } from '../../../api/gatewayApi/controller/default/usePostPubGetOrgUser.mjs';
|
|
5
6
|
|
|
6
7
|
const useOrgUserListStore = defineStore("gmOrgUserList", () => {
|
|
7
8
|
const { isLoading, exec, data: userListData } = usePostPubGetOrgUser();
|
|
8
|
-
const
|
|
9
|
+
const userList = computed(() => userListData.value?.data || []);
|
|
10
|
+
const orgUserList = computed(() => {
|
|
11
|
+
const familyGroup = groupBy(userList.value, "family_code");
|
|
12
|
+
return Object.keys(familyGroup).map((familyCode) => {
|
|
13
|
+
return {
|
|
14
|
+
label: familyGroup[familyCode][0].family_name,
|
|
15
|
+
value: familyCode,
|
|
16
|
+
children: familyGroup[familyCode].map((it) => ({ label: it.user_name, value: it.user_id }))
|
|
17
|
+
};
|
|
18
|
+
});
|
|
19
|
+
});
|
|
9
20
|
const getOrgUserList = async () => {
|
|
10
|
-
if (
|
|
21
|
+
if (userList.value.length !== 0 || isLoading.value) {
|
|
11
22
|
return;
|
|
12
23
|
}
|
|
13
|
-
exec();
|
|
24
|
+
return exec();
|
|
14
25
|
};
|
|
15
26
|
onMounted(() => {
|
|
16
27
|
getOrgUserList();
|
|
17
28
|
});
|
|
18
29
|
return {
|
|
19
|
-
|
|
30
|
+
userList,
|
|
20
31
|
isLoading,
|
|
32
|
+
orgUserList,
|
|
21
33
|
getOrgUserList
|
|
22
34
|
};
|
|
23
35
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useOrgUserList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { usePostPubGetOrgUser } from '@giime/api/gatewayApi/controller';\r\n\r\n/**用户-家族列表 */\r\nexport const useOrgUserListStore = defineStore('gmOrgUserList', () => {\r\n const { isLoading, exec, data: userListData } = usePostPubGetOrgUser();\r\n const
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../../../packages/hooks/store/useOrgUserList/index.ts"],"sourcesContent":["import { computed, onMounted } from 'vue';\r\nimport { defineStore } from 'pinia';\r\nimport { usePostPubGetOrgUser } from '@giime/api/gatewayApi/controller';\r\nimport { groupBy } from 'lodash-es';\r\n\r\n/**用户-家族列表 */\r\nexport const useOrgUserListStore = defineStore('gmOrgUserList', () => {\r\n const { isLoading, exec, data: userListData } = usePostPubGetOrgUser();\r\n const userList = computed(() => userListData.value?.data || []);\r\n const orgUserList = computed(() => {\r\n const familyGroup = groupBy(userList.value, 'family_code');\r\n return Object.keys(familyGroup).map(familyCode => {\r\n return {\r\n label: familyGroup[familyCode][0].family_name,\r\n value: familyCode,\r\n children: familyGroup[familyCode].map(it => ({ label: it.user_name, value: it.user_id })),\r\n };\r\n });\r\n });\r\n const getOrgUserList = async () => {\r\n if (userList.value.length !== 0 || isLoading.value) {\r\n return;\r\n }\r\n return exec();\r\n };\r\n onMounted(() => {\r\n getOrgUserList();\r\n });\r\n return {\r\n userList,\r\n isLoading,\r\n orgUserList,\r\n getOrgUserList,\r\n };\r\n});\r\n"],"names":[],"mappings":";;;;;;AAMa,MAAA,mBAAA,GAAsB,WAAY,CAAA,eAAA,EAAiB,MAAM;AACpE,EAAA,MAAM,EAAE,SAAW,EAAA,IAAA,EAAM,IAAM,EAAA,YAAA,KAAiB,oBAAqB,EAAA,CAAA;AACrE,EAAA,MAAM,WAAW,QAAS,CAAA,MAAM,aAAa,KAAO,EAAA,IAAA,IAAQ,EAAE,CAAA,CAAA;AAC9D,EAAM,MAAA,WAAA,GAAc,SAAS,MAAM;AACjC,IAAA,MAAM,WAAc,GAAA,OAAA,CAAQ,QAAS,CAAA,KAAA,EAAO,aAAa,CAAA,CAAA;AACzD,IAAA,OAAO,MAAO,CAAA,IAAA,CAAK,WAAW,CAAA,CAAE,IAAI,CAAc,UAAA,KAAA;AAChD,MAAO,OAAA;AAAA,QACL,KAAO,EAAA,WAAA,CAAY,UAAU,CAAA,CAAE,CAAC,CAAE,CAAA,WAAA;AAAA,QAClC,KAAO,EAAA,UAAA;AAAA,QACP,QAAU,EAAA,WAAA,CAAY,UAAU,CAAA,CAAE,GAAI,CAAA,CAAA,EAAA,MAAO,EAAE,KAAA,EAAO,EAAG,CAAA,SAAA,EAAW,KAAO,EAAA,EAAA,CAAG,SAAU,CAAA,CAAA;AAAA,OAC1F,CAAA;AAAA,KACD,CAAA,CAAA;AAAA,GACF,CAAA,CAAA;AACD,EAAA,MAAM,iBAAiB,YAAY;AACjC,IAAA,IAAI,QAAS,CAAA,KAAA,CAAM,MAAW,KAAA,CAAA,IAAK,UAAU,KAAO,EAAA;AAClD,MAAA,OAAA;AAAA,KACF;AACA,IAAA,OAAO,IAAK,EAAA,CAAA;AAAA,GACd,CAAA;AACA,EAAA,SAAA,CAAU,MAAM;AACd,IAAe,cAAA,EAAA,CAAA;AAAA,GAChB,CAAA,CAAA;AACD,EAAO,OAAA;AAAA,IACL,QAAA;AAAA,IACA,SAAA;AAAA,IACA,WAAA;AAAA,IACA,cAAA;AAAA,GACF,CAAA;AACF,CAAC;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAxios.mjs","sources":["../../../../../../../packages/utils/src/http/createAxios.ts"],"sourcesContent":["import axios from 'axios';\r\nimport { ElMessage } from 'element-plus';\r\nimport Cookies from 'js-cookie';\r\nimport { res401Interceptors } from './interceptors';\r\nimport { responseErrorMessage } from './errorMessage';\r\nimport type { AxiosError, CreateAxiosDefaults } from 'axios';\r\nexport interface CreateAxiosConfig extends CreateAxiosDefaults {\r\n baseURL: string;\r\n /**服务器调用成功的code 一般是 0 或 200 */\r\n successCode: number;\r\n}\r\n\r\nexport const createAxios = (config: CreateAxiosConfig) => {\r\n const successCode = config.successCode ?? 0;\r\n const service = axios.create({\r\n withCredentials: true, // send cookies when cross-domain requests\r\n timeout: 120_000,\r\n headers: {\r\n 'content-type': 'application/json',\r\n },\r\n ...config,\r\n });\r\n\r\n // 请求拦截器\r\n service.interceptors.request.use(\r\n config => {\r\n const _token = Cookies.get('token');\r\n const _user = Cookies.get('sso_user_id');\r\n if (!config.params) {\r\n config.params = {};\r\n }\r\n config.params = {\r\n ...config.params,\r\n _token,\r\n _user,\r\n };\r\n config.headers.Authorization = `Bearer ${_token}`;\r\n return config;\r\n },\r\n error => {\r\n console.error('请求错误', error); // for debug\r\n return Promise.reject(error);\r\n },\r\n );\r\n // 添加响应拦截器\r\n service.interceptors.response.use(\r\n response => {\r\n // 对响应数据做点什么\r\n const res = response.data;\r\n if (!res?.code) {\r\n return response;\r\n }\r\n if (res.code === 401) {\r\n res401Interceptors();\r\n return response;\r\n } else if (res.code !== successCode && res.errCode !== successCode) {\r\n ElMessage({\r\n message: res.comment ?? res.message ?? res.errMsg,\r\n type: 'error',\r\n grouping: true,\r\n duration: 5 * 1000,\r\n });\r\n }\r\n return response;\r\n },\r\n (err: AxiosError) => {\r\n console.error(err);\r\n if (err?.response?.status === 401 && !err.message.includes('timeout')) {\r\n res401Interceptors();\r\n } else {\r\n // 对响应错误做点什么\r\n responseErrorMessage(err);\r\n return Promise.reject(err);\r\n }\r\n },\r\n );\r\n\r\n return {\r\n service,\r\n };\r\n};\r\n"],"names":["config"],"mappings":";;;;;;AAYa,MAAA,WAAA,GAAc,CAAC,MAA8B,KAAA;AACxD,EAAM,MAAA,WAAA,GAAc,OAAO,WAAe,IAAA,CAAA,CAAA;AAC1C,EAAM,MAAA,OAAA,GAAU,MAAM,MAAO,CAAA;AAAA,IAC3B,eAAiB,EAAA,IAAA;AAAA;AAAA,IACjB,OAAS,EAAA,IAAA;AAAA,IACT,OAAS,EAAA;AAAA,MACP,cAAgB,EAAA,kBAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"createAxios.mjs","sources":["../../../../../../../packages/utils/src/http/createAxios.ts"],"sourcesContent":["import axios from 'axios';\r\nimport { ElMessage } from 'element-plus';\r\nimport Cookies from 'js-cookie';\r\nimport { res401Interceptors } from './interceptors';\r\nimport { responseErrorMessage } from './errorMessage';\r\nimport type { AxiosError, CreateAxiosDefaults } from 'axios';\r\nexport interface CreateAxiosConfig extends CreateAxiosDefaults {\r\n baseURL: string;\r\n /**服务器调用成功的code 一般是 0 或 200 */\r\n successCode: number;\r\n}\r\n\r\nexport const createAxios = (config: CreateAxiosConfig) => {\r\n const successCode = config.successCode ?? 0;\r\n const service = axios.create({\r\n withCredentials: true, // send cookies when cross-domain requests\r\n timeout: 120_000,\r\n headers: {\r\n 'content-type': 'application/json',\r\n Accept: '*/*',\r\n },\r\n ...config,\r\n });\r\n\r\n // 请求拦截器\r\n service.interceptors.request.use(\r\n config => {\r\n const _token = Cookies.get('token');\r\n const _user = Cookies.get('sso_user_id');\r\n if (!config.params) {\r\n config.params = {};\r\n }\r\n config.params = {\r\n ...config.params,\r\n _token,\r\n _user,\r\n };\r\n config.headers.Authorization = `Bearer ${_token}`;\r\n return config;\r\n },\r\n error => {\r\n console.error('请求错误', error); // for debug\r\n return Promise.reject(error);\r\n },\r\n );\r\n // 添加响应拦截器\r\n service.interceptors.response.use(\r\n response => {\r\n // 对响应数据做点什么\r\n const res = response.data;\r\n if (!res?.code) {\r\n return response;\r\n }\r\n if (res.code === 401) {\r\n res401Interceptors();\r\n return response;\r\n } else if (res.code !== successCode && res.errCode !== successCode) {\r\n ElMessage({\r\n message: res.comment ?? res.message ?? res.errMsg,\r\n type: 'error',\r\n grouping: true,\r\n duration: 5 * 1000,\r\n });\r\n }\r\n return response;\r\n },\r\n (err: AxiosError) => {\r\n console.error(err);\r\n if (err?.response?.status === 401 && !err.message.includes('timeout')) {\r\n res401Interceptors();\r\n } else {\r\n // 对响应错误做点什么\r\n responseErrorMessage(err);\r\n return Promise.reject(err);\r\n }\r\n },\r\n );\r\n\r\n return {\r\n service,\r\n };\r\n};\r\n"],"names":["config"],"mappings":";;;;;;AAYa,MAAA,WAAA,GAAc,CAAC,MAA8B,KAAA;AACxD,EAAM,MAAA,WAAA,GAAc,OAAO,WAAe,IAAA,CAAA,CAAA;AAC1C,EAAM,MAAA,OAAA,GAAU,MAAM,MAAO,CAAA;AAAA,IAC3B,eAAiB,EAAA,IAAA;AAAA;AAAA,IACjB,OAAS,EAAA,IAAA;AAAA,IACT,OAAS,EAAA;AAAA,MACP,cAAgB,EAAA,kBAAA;AAAA,MAChB,MAAQ,EAAA,KAAA;AAAA,KACV;AAAA,IACA,GAAG,MAAA;AAAA,GACJ,CAAA,CAAA;AAGD,EAAA,OAAA,CAAQ,aAAa,OAAQ,CAAA,GAAA;AAAA,IAC3B,CAAAA,OAAU,KAAA;AACR,MAAM,MAAA,MAAA,GAAS,OA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CAAI,GAAA,GAAA;AAAA,SACf,CAAA,CAAA;AAAA,OACH;AACA,MAAO,OAAA,QAAA,CAAA;AAAA,KACT;AAAA,IACA,CAAC,GAAoB,KAAA;AACnB,MAAA,OAAA,CAAQ,MAAM,GAAG,CAAA,CAAA;AACjB,MAAI,IAAA,GAAA,EAAK,UAAU,MAAW,KAAA,GAAA,IAAO,CAAC,GAAI,CAAA,OAAA,CAAQ,QAAS,CAAA,SAAS,CAAG,EAAA;AACrE,QAAmB,kBAAA,EAAA,CAAA;AAAA,OACd,MAAA;AAEL,QAAA,oBAAA,CAAqB,GAAG,CAAA,CAAA;AACxB,QAAO,OAAA,OAAA,CAAQ,OAAO,GAAG,CAAA,CAAA;AAAA,OAC3B;AAAA,KACF;AAAA,GACF,CAAA;AAEA,EAAO,OAAA;AAAA,IACL,OAAA;AAAA,GACF,CAAA;AACF;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
3
|
initialIndex: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 0, boolean>;
|
|
3
4
|
height: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
@@ -79,8 +80,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
79
80
|
$stable?: boolean | undefined;
|
|
80
81
|
} | import("element-plus/es/utils").VNodeChildAtom)[] | null;
|
|
81
82
|
isTwoLengthShow: (index: number) => boolean;
|
|
82
|
-
throttledArrowClick: import("lodash
|
|
83
|
-
throttledIndicatorHover: import("lodash
|
|
83
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
84
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
84
85
|
ns: {
|
|
85
86
|
namespace: import("vue").ComputedRef<string>;
|
|
86
87
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -269,8 +270,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
269
270
|
$stable?: boolean | undefined;
|
|
270
271
|
} | import("element-plus/es/utils").VNodeChildAtom)[] | null;
|
|
271
272
|
isTwoLengthShow: (index: number) => boolean;
|
|
272
|
-
throttledArrowClick: import("lodash
|
|
273
|
-
throttledIndicatorHover: import("lodash
|
|
273
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
274
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
274
275
|
ns: {
|
|
275
276
|
namespace: import("vue").ComputedRef<string>;
|
|
276
277
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import Carousel from './Carousel.vue';
|
|
2
3
|
export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
3
4
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -83,8 +84,8 @@ export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
|
83
84
|
$stable?: boolean | undefined;
|
|
84
85
|
} | import("element-plus/es/utils/index.js").VNodeChildAtom)[] | null;
|
|
85
86
|
isTwoLengthShow: (index: number) => boolean;
|
|
86
|
-
throttledArrowClick: import("lodash
|
|
87
|
-
throttledIndicatorHover: import("lodash
|
|
87
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
88
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
88
89
|
ns: {
|
|
89
90
|
namespace: import("vue").ComputedRef<string>;
|
|
90
91
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -273,8 +274,8 @@ export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
|
273
274
|
$stable?: boolean | undefined;
|
|
274
275
|
} | import("element-plus/es/utils/index.js").VNodeChildAtom)[] | null;
|
|
275
276
|
isTwoLengthShow: (index: number) => boolean;
|
|
276
|
-
throttledArrowClick: import("lodash
|
|
277
|
-
throttledIndicatorHover: import("lodash
|
|
277
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
278
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
278
279
|
ns: {
|
|
279
280
|
namespace: import("vue").ComputedRef<string>;
|
|
280
281
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -496,8 +497,8 @@ export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
|
496
497
|
$stable?: boolean | undefined;
|
|
497
498
|
} | import("element-plus/es/utils/index.js").VNodeChildAtom)[] | null;
|
|
498
499
|
isTwoLengthShow: (index: number) => boolean;
|
|
499
|
-
throttledArrowClick: import("lodash
|
|
500
|
-
throttledIndicatorHover: import("lodash
|
|
500
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
501
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
501
502
|
ns: {
|
|
502
503
|
namespace: import("vue").ComputedRef<string>;
|
|
503
504
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -686,8 +687,8 @@ export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
|
686
687
|
$stable?: boolean | undefined;
|
|
687
688
|
} | import("element-plus/es/utils/index.js").VNodeChildAtom)[] | null;
|
|
688
689
|
isTwoLengthShow: (index: number) => boolean;
|
|
689
|
-
throttledArrowClick: import("lodash
|
|
690
|
-
throttledIndicatorHover: import("lodash
|
|
690
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
691
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
691
692
|
ns: {
|
|
692
693
|
namespace: import("vue").ComputedRef<string>;
|
|
693
694
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -889,8 +890,8 @@ export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
|
889
890
|
$stable?: boolean | undefined;
|
|
890
891
|
} | import("element-plus/es/utils/index.js").VNodeChildAtom)[] | null;
|
|
891
892
|
isTwoLengthShow: (index: number) => boolean;
|
|
892
|
-
throttledArrowClick: import("lodash
|
|
893
|
-
throttledIndicatorHover: import("lodash
|
|
893
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
894
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
894
895
|
ns: {
|
|
895
896
|
namespace: import("vue").ComputedRef<string>;
|
|
896
897
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -1079,8 +1080,8 @@ export declare const GmCarousel: import("../../../../utils").SFCWithInstall<{
|
|
|
1079
1080
|
$stable?: boolean | undefined;
|
|
1080
1081
|
} | import("element-plus/es/utils/index.js").VNodeChildAtom)[] | null;
|
|
1081
1082
|
isTwoLengthShow: (index: number) => boolean;
|
|
1082
|
-
throttledArrowClick: import("lodash
|
|
1083
|
-
throttledIndicatorHover: import("lodash
|
|
1083
|
+
throttledArrowClick: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
1084
|
+
throttledIndicatorHover: import("lodash").DebouncedFunc<(index: number) => void>;
|
|
1084
1085
|
ns: {
|
|
1085
1086
|
namespace: import("vue").ComputedRef<string>;
|
|
1086
1087
|
b: (blockSuffix?: string | undefined) => string;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
2
3
|
data: {
|
|
3
4
|
type: import("vue").PropType<any[]>;
|
|
@@ -251,7 +252,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
251
252
|
width: string;
|
|
252
253
|
height: string;
|
|
253
254
|
} | null>;
|
|
254
|
-
debouncedUpdateLayout: import("lodash
|
|
255
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
255
256
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
256
257
|
setCurrentRow: (row: any) => void;
|
|
257
258
|
getSelectionRows: () => any;
|
|
@@ -582,7 +583,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
582
583
|
width: string;
|
|
583
584
|
height: string;
|
|
584
585
|
} | null>;
|
|
585
|
-
debouncedUpdateLayout: import("lodash
|
|
586
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
586
587
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
587
588
|
setCurrentRow: (row: any) => void;
|
|
588
589
|
getSelectionRows: () => any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="lodash" />
|
|
1
2
|
import Table from './Table.vue';
|
|
2
3
|
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
|
|
3
4
|
export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
@@ -273,7 +274,7 @@ export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
|
273
274
|
width: string;
|
|
274
275
|
height: string;
|
|
275
276
|
} | null>;
|
|
276
|
-
debouncedUpdateLayout: import("lodash
|
|
277
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
277
278
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
278
279
|
setCurrentRow: (row: any) => void;
|
|
279
280
|
getSelectionRows: () => any;
|
|
@@ -604,7 +605,7 @@ export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
|
604
605
|
width: string;
|
|
605
606
|
height: string;
|
|
606
607
|
} | null>;
|
|
607
|
-
debouncedUpdateLayout: import("lodash
|
|
608
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
608
609
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
609
610
|
setCurrentRow: (row: any) => void;
|
|
610
611
|
getSelectionRows: () => any;
|
|
@@ -1098,7 +1099,7 @@ export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
|
1098
1099
|
width: string;
|
|
1099
1100
|
height: string;
|
|
1100
1101
|
} | null>;
|
|
1101
|
-
debouncedUpdateLayout: import("lodash
|
|
1102
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
1102
1103
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
1103
1104
|
setCurrentRow: (row: any) => void;
|
|
1104
1105
|
getSelectionRows: () => any;
|
|
@@ -1429,7 +1430,7 @@ export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
|
1429
1430
|
width: string;
|
|
1430
1431
|
height: string;
|
|
1431
1432
|
} | null>;
|
|
1432
|
-
debouncedUpdateLayout: import("lodash
|
|
1433
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
1433
1434
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
1434
1435
|
setCurrentRow: (row: any) => void;
|
|
1435
1436
|
getSelectionRows: () => any;
|
|
@@ -1794,7 +1795,7 @@ export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
|
1794
1795
|
width: string;
|
|
1795
1796
|
height: string;
|
|
1796
1797
|
} | null>;
|
|
1797
|
-
debouncedUpdateLayout: import("lodash
|
|
1798
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
1798
1799
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
1799
1800
|
setCurrentRow: (row: any) => void;
|
|
1800
1801
|
getSelectionRows: () => any;
|
|
@@ -2125,7 +2126,7 @@ export declare const GmTable: import("../../../../utils").SFCWithInstall<{
|
|
|
2125
2126
|
width: string;
|
|
2126
2127
|
height: string;
|
|
2127
2128
|
} | null>;
|
|
2128
|
-
debouncedUpdateLayout: import("lodash
|
|
2129
|
+
debouncedUpdateLayout: import("lodash").DebouncedFunc<() => void>;
|
|
2129
2130
|
handleFixedMousewheel: (event: any, data: any) => void;
|
|
2130
2131
|
setCurrentRow: (row: any) => void;
|
|
2131
2132
|
getSelectionRows: () => any;
|
package/lib/giime/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "0.0.
|
|
1
|
+
export declare const version = "0.0.4";
|