giime 0.1.22 → 0.2.0
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 +82 -51
- package/es/components/src/base/button/Button.vue2.mjs +31 -35
- package/es/components/src/base/button/Button.vue2.mjs.map +1 -1
- package/es/components/src/base/tabs/Tabs.vue.d.ts +6 -16
- package/es/components/src/base/tabs/Tabs.vue2.mjs +24 -86
- package/es/components/src/base/tabs/Tabs.vue2.mjs.map +1 -1
- package/es/components/src/base/tabs/index.d.ts +6 -25
- package/es/components/src/composite/searchForm/SearchForm.vue.mjs +1 -1
- package/es/components/src/composite/searchForm/SearchForm.vue2.mjs +169 -59
- package/es/components/src/composite/searchForm/SearchForm.vue2.mjs.map +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/cascader/SearchFormCascader.vue2.mjs +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/cascader/SearchFormCascader.vue2.mjs.map +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.mjs +5 -5
- package/es/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.mjs.map +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/input/SearchFormInput.vue2.mjs +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/input/SearchFormInput.vue2.mjs.map +1 -1
- package/es/components/src/composite/searchForm/searchFormItems/select/SearchFormSelect.vue2.mjs +5 -2
- package/es/components/src/composite/searchForm/searchFormItems/select/SearchFormSelect.vue2.mjs.map +1 -1
- package/es/components/src/composite/tablePro/tablePagination/TablePagination.vue.d.ts +9 -0
- package/es/components/src/composite/tablePro/tablePagination/TablePagination.vue.mjs +1 -1
- package/es/components/src/composite/tablePro/tablePagination/TablePagination.vue2.mjs +3 -2
- package/es/components/src/composite/tablePro/tablePagination/TablePagination.vue2.mjs.map +1 -1
- package/es/components/src/composite/tablePro/tablePagination/index.d.ts +9 -0
- package/es/components/src/composite/tablePro/tablePagination/tablePagination.d.ts +4 -0
- package/es/components/src/composite/tablePro/tablePagination/tablePagination.mjs +4 -0
- package/es/components/src/composite/tablePro/tablePagination/tablePagination.mjs.map +1 -1
- package/es/components/src/composite/tablePro/tableToolbar/TableToolbar.vue.d.ts +12 -0
- package/es/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.mjs +177 -134
- package/es/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.mjs.map +1 -1
- package/es/components/src/composite/tablePro/tableToolbar/index.d.ts +24 -0
- package/es/components/src/composite/tablePro/tableToolbar/tableToolbar.d.ts +12 -0
- package/es/components/src/composite/tablePro/tableToolbar/tableToolbar.mjs +12 -0
- package/es/components/src/composite/tablePro/tableToolbar/tableToolbar.mjs.map +1 -1
- package/es/giime/version.d.ts +1 -1
- package/es/giime/version.mjs +1 -1
- package/es/giime/version.mjs.map +1 -1
- package/es/index.css +82 -51
- package/lib/components/src/base/button/Button.vue2.js +31 -35
- package/lib/components/src/base/button/Button.vue2.js.map +1 -1
- package/lib/components/src/base/tabs/Tabs.vue.d.ts +6 -16
- package/lib/components/src/base/tabs/Tabs.vue2.js +23 -85
- package/lib/components/src/base/tabs/Tabs.vue2.js.map +1 -1
- package/lib/components/src/base/tabs/index.d.ts +6 -25
- package/lib/components/src/composite/searchForm/SearchForm.vue.js +1 -1
- package/lib/components/src/composite/searchForm/SearchForm.vue2.js +167 -57
- package/lib/components/src/composite/searchForm/SearchForm.vue2.js.map +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/cascader/SearchFormCascader.vue2.js +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/cascader/SearchFormCascader.vue2.js.map +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.js +4 -4
- package/lib/components/src/composite/searchForm/searchFormItems/datePicker/SearchFormDatePicker.vue2.js.map +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/input/SearchFormInput.vue2.js +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/input/SearchFormInput.vue2.js.map +1 -1
- package/lib/components/src/composite/searchForm/searchFormItems/select/SearchFormSelect.vue2.js +5 -2
- package/lib/components/src/composite/searchForm/searchFormItems/select/SearchFormSelect.vue2.js.map +1 -1
- package/lib/components/src/composite/tablePro/tablePagination/TablePagination.vue.d.ts +9 -0
- package/lib/components/src/composite/tablePro/tablePagination/TablePagination.vue.js +1 -1
- package/lib/components/src/composite/tablePro/tablePagination/TablePagination.vue2.js +3 -2
- package/lib/components/src/composite/tablePro/tablePagination/TablePagination.vue2.js.map +1 -1
- package/lib/components/src/composite/tablePro/tablePagination/index.d.ts +9 -0
- package/lib/components/src/composite/tablePro/tablePagination/tablePagination.d.ts +4 -0
- package/lib/components/src/composite/tablePro/tablePagination/tablePagination.js +4 -0
- package/lib/components/src/composite/tablePro/tablePagination/tablePagination.js.map +1 -1
- package/lib/components/src/composite/tablePro/tableToolbar/TableToolbar.vue.d.ts +12 -0
- package/lib/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.js +176 -133
- package/lib/components/src/composite/tablePro/tableToolbar/TableToolbar.vue2.js.map +1 -1
- package/lib/components/src/composite/tablePro/tableToolbar/index.d.ts +24 -0
- package/lib/components/src/composite/tablePro/tableToolbar/tableToolbar.d.ts +12 -0
- package/lib/components/src/composite/tablePro/tableToolbar/tableToolbar.js +12 -0
- package/lib/components/src/composite/tablePro/tableToolbar/tableToolbar.js.map +1 -1
- package/lib/giime/version.d.ts +1 -1
- package/lib/giime/version.js +1 -1
- package/lib/giime/version.js.map +1 -1
- package/lib/index.css +82 -51
- package/package.json +1 -1
package/es/index.css
CHANGED
|
@@ -1,3 +1,51 @@
|
|
|
1
|
+
|
|
2
|
+
.gm-range-number .el-form-item[data-v-11c39847] {
|
|
3
|
+
margin: 0;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.gm-flex-center[data-v-d1c6dac0] {
|
|
7
|
+
align-items: center;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.gm-flex-justify-between[data-v-d1c6dac0] {
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
}
|
|
13
|
+
[data-v-08f2c6ca] .gmSearchForm .el-form-item {
|
|
14
|
+
margin-right: 0;
|
|
15
|
+
margin-bottom: 4px;
|
|
16
|
+
}
|
|
17
|
+
[data-v-06213d16] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
18
|
+
border-right: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
[data-v-06213d16] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
22
|
+
height: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
[data-v-06213d16] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
26
|
+
height: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
[data-v-06213d16] .gmTableNoBorder.el-table--border:after {
|
|
30
|
+
height: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
[data-v-06213d16] .gmTableNoBorder.el-table--border:before {
|
|
34
|
+
height: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
[data-v-06213d16] .gmTableNoBorder .el-table__border-left-patch {
|
|
38
|
+
height: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.pagination-container[data-v-61e6554b] {
|
|
42
|
+
background: #fff;
|
|
43
|
+
padding: 32px 16px;
|
|
44
|
+
}
|
|
45
|
+
.pagination-container.hidden[data-v-61e6554b] {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
|
|
1
49
|
/*
|
|
2
50
|
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
|
|
3
51
|
*//*
|
|
@@ -492,12 +540,24 @@ video {
|
|
|
492
540
|
.gm-collapse {
|
|
493
541
|
visibility: collapse;
|
|
494
542
|
}
|
|
543
|
+
.gm-absolute {
|
|
544
|
+
position: absolute;
|
|
545
|
+
}
|
|
495
546
|
.gm-relative {
|
|
496
547
|
position: relative;
|
|
497
548
|
}
|
|
549
|
+
.gm-bottom-3 {
|
|
550
|
+
bottom: 0.75rem;
|
|
551
|
+
}
|
|
552
|
+
.gm-right-0 {
|
|
553
|
+
right: 0px;
|
|
554
|
+
}
|
|
498
555
|
.gm-top-\[1px\] {
|
|
499
556
|
top: 1px;
|
|
500
557
|
}
|
|
558
|
+
.-gm-z-10 {
|
|
559
|
+
z-index: -10;
|
|
560
|
+
}
|
|
501
561
|
.gm-m-2 {
|
|
502
562
|
margin: 0.5rem;
|
|
503
563
|
}
|
|
@@ -511,6 +571,9 @@ video {
|
|
|
511
571
|
.gm-mb-4 {
|
|
512
572
|
margin-bottom: 1rem;
|
|
513
573
|
}
|
|
574
|
+
.gm-mb-5 {
|
|
575
|
+
margin-bottom: 1.25rem;
|
|
576
|
+
}
|
|
514
577
|
.gm-ml-2 {
|
|
515
578
|
margin-left: 0.5rem;
|
|
516
579
|
}
|
|
@@ -544,12 +607,18 @@ video {
|
|
|
544
607
|
.gm-table-column {
|
|
545
608
|
display: table-column;
|
|
546
609
|
}
|
|
610
|
+
.gm-grid {
|
|
611
|
+
display: grid;
|
|
612
|
+
}
|
|
547
613
|
.gm-hidden {
|
|
548
614
|
display: none;
|
|
549
615
|
}
|
|
550
616
|
.gm-h-1 {
|
|
551
617
|
height: 0.25rem;
|
|
552
618
|
}
|
|
619
|
+
.gm-h-\[36px\] {
|
|
620
|
+
height: 36px;
|
|
621
|
+
}
|
|
553
622
|
.gm-h-\[600px\] {
|
|
554
623
|
height: 600px;
|
|
555
624
|
}
|
|
@@ -562,15 +631,15 @@ video {
|
|
|
562
631
|
.gm-w-\[120px\] {
|
|
563
632
|
width: 120px;
|
|
564
633
|
}
|
|
565
|
-
.gm-w-\[180px\] {
|
|
566
|
-
width: 180px;
|
|
567
|
-
}
|
|
568
634
|
.gm-w-full {
|
|
569
635
|
width: 100%;
|
|
570
636
|
}
|
|
571
637
|
.gm-min-w-\[200px\] {
|
|
572
638
|
min-width: 200px;
|
|
573
639
|
}
|
|
640
|
+
.gm-min-w-\[20px\] {
|
|
641
|
+
min-width: 20px;
|
|
642
|
+
}
|
|
574
643
|
.gm-flex-1 {
|
|
575
644
|
flex: 1 1 0%;
|
|
576
645
|
}
|
|
@@ -587,6 +656,9 @@ video {
|
|
|
587
656
|
.gm-items-center {
|
|
588
657
|
align-items: center;
|
|
589
658
|
}
|
|
659
|
+
.gm-justify-end {
|
|
660
|
+
justify-content: flex-end;
|
|
661
|
+
}
|
|
590
662
|
.gm-justify-center {
|
|
591
663
|
justify-content: center;
|
|
592
664
|
}
|
|
@@ -596,6 +668,9 @@ video {
|
|
|
596
668
|
.gm-gap-2 {
|
|
597
669
|
gap: 0.5rem;
|
|
598
670
|
}
|
|
671
|
+
.gm-overflow-hidden {
|
|
672
|
+
overflow: hidden;
|
|
673
|
+
}
|
|
599
674
|
.gm-rounded {
|
|
600
675
|
border-radius: 0.25rem;
|
|
601
676
|
}
|
|
@@ -649,6 +724,9 @@ video {
|
|
|
649
724
|
.gm-font-bold {
|
|
650
725
|
font-weight: 700;
|
|
651
726
|
}
|
|
727
|
+
.gm-leading-\[32px\] {
|
|
728
|
+
line-height: 32px;
|
|
729
|
+
}
|
|
652
730
|
.gm-leading-\[40px\] {
|
|
653
731
|
line-height: 40px;
|
|
654
732
|
}
|
|
@@ -686,51 +764,4 @@ video {
|
|
|
686
764
|
}
|
|
687
765
|
.gm-group:hover .group-hover\:gm-block {
|
|
688
766
|
display: block;
|
|
689
|
-
}
|
|
690
|
-
|
|
691
|
-
.gm-range-number .el-form-item[data-v-11c39847] {
|
|
692
|
-
margin: 0;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
.gm-flex-center[data-v-d1c6dac0] {
|
|
696
|
-
align-items: center;
|
|
697
|
-
}
|
|
698
|
-
|
|
699
|
-
.gm-flex-justify-between[data-v-d1c6dac0] {
|
|
700
|
-
justify-content: space-between;
|
|
701
|
-
}
|
|
702
|
-
[data-v-512cf874] .gmSearchForm .el-form-item {
|
|
703
|
-
margin-right: 8px;
|
|
704
|
-
margin-bottom: 8px;
|
|
705
|
-
}
|
|
706
|
-
[data-v-06213d16] .gmTableNoBorder .el-table__body .el-table__cell {
|
|
707
|
-
border-right: none;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
[data-v-06213d16] .gmTableNoBorder .el-table__inner-wrapper:before {
|
|
711
|
-
height: 0;
|
|
712
|
-
}
|
|
713
|
-
|
|
714
|
-
[data-v-06213d16] .gmTableNoBorder.el-table--border .el-table__inner-wrapper:after {
|
|
715
|
-
height: 0;
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
[data-v-06213d16] .gmTableNoBorder.el-table--border:after {
|
|
719
|
-
height: 0;
|
|
720
|
-
}
|
|
721
|
-
|
|
722
|
-
[data-v-06213d16] .gmTableNoBorder.el-table--border:before {
|
|
723
|
-
height: 0;
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
[data-v-06213d16] .gmTableNoBorder .el-table__border-left-patch {
|
|
727
|
-
height: 0;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
.pagination-container[data-v-8a95ba6d] {
|
|
731
|
-
background: #fff;
|
|
732
|
-
padding: 32px 16px;
|
|
733
|
-
}
|
|
734
|
-
.pagination-container.hidden[data-v-8a95ba6d] {
|
|
735
|
-
display: none;
|
|
736
|
-
}
|
|
767
|
+
}
|
|
@@ -26,41 +26,37 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
});
|
|
27
27
|
return (_ctx, _cache) => {
|
|
28
28
|
const _component_el_button = vue.resolveComponent("el-button");
|
|
29
|
-
return vue.openBlock(), vue.createBlock(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
]),
|
|
61
|
-
1040
|
|
62
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
63
|
-
);
|
|
29
|
+
return vue.openBlock(), vue.createBlock(_component_el_button, vue.mergeProps({
|
|
30
|
+
ref_key: "elRef",
|
|
31
|
+
ref: elRef
|
|
32
|
+
}, props, {
|
|
33
|
+
type: _ctx.disabled ? "info" : _ctx.type
|
|
34
|
+
}, vue.toHandlers(vue.unref(elEvents))), vue.createSlots({
|
|
35
|
+
_: 2
|
|
36
|
+
/* DYNAMIC */
|
|
37
|
+
}, [
|
|
38
|
+
vue.unref(slots).loading ? {
|
|
39
|
+
name: "loading",
|
|
40
|
+
fn: vue.withCtx((slotValue) => [
|
|
41
|
+
vue.renderSlot(_ctx.$slots, "loading", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
|
|
42
|
+
]),
|
|
43
|
+
key: "0"
|
|
44
|
+
} : void 0,
|
|
45
|
+
vue.unref(slots).default ? {
|
|
46
|
+
name: "default",
|
|
47
|
+
fn: vue.withCtx(() => [
|
|
48
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
49
|
+
]),
|
|
50
|
+
key: "1"
|
|
51
|
+
} : void 0,
|
|
52
|
+
vue.unref(slots).icon ? {
|
|
53
|
+
name: "icon",
|
|
54
|
+
fn: vue.withCtx((slotValue) => [
|
|
55
|
+
vue.renderSlot(_ctx.$slots, "icon", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
|
|
56
|
+
]),
|
|
57
|
+
key: "2"
|
|
58
|
+
} : void 0
|
|
59
|
+
]), 1040, ["type"]);
|
|
64
60
|
};
|
|
65
61
|
}
|
|
66
62
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue2.js","sources":["../../../../../../../packages/components/src/base/button/Button.vue"],"sourcesContent":["<template>\r\n <el-button ref=\"elRef\" v-bind=\"props\" v-on=\"elEvents\">\r\n <template v-if=\"slots.loading\" #loading=\"slotValue\">\r\n <slot name=\"loading\" v-bind=\"slotValue\" />\r\n </template>\r\n <template v-if=\"slots.default\" #default>\r\n <slot />\r\n </template>\r\n <template v-if=\"slots.icon\" #icon=\"slotValue\">\r\n <slot name=\"icon\" v-bind=\"slotValue\" />\r\n </template>\r\n </el-button>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { ref, useSlots } from 'vue';\r\nimport { getGmEvent } from '@giime/utils';\r\nimport { buttonEmits as elButtonEmits } from 'element-plus';\r\nimport { buttonEmits, buttonProps } from './button';\r\nimport type { ButtonInstance } from 'element-plus';\r\n\r\ndefineOptions({\r\n name: 'GmButton',\r\n});\r\nconst slots = useSlots();\r\nconst props = defineProps(buttonProps);\r\nconst emit = defineEmits(buttonEmits);\r\n// 重发el的事件\r\nconst elEvents = getGmEvent(elButtonEmits, emit);\r\n\r\nconst elRef = ref<ButtonInstance>();\r\ndefineExpose({\r\n elRef,\r\n});\r\n</script>\r\n"],"names":["useSlots","getGmEvent","elButtonEmits","ref"],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AACvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAWC,gBAAW,CAAAC,uBAAA,EAAe,IAAI,CAAA,CAAA;AAE/C,IAAA,MAAM,QAAQC,OAAoB,EAAA,CAAA;AAClC,IAAa,QAAA,CAAA;AAAA,MACX,KAAA;AAAA,KACD,CAAA,CAAA
|
|
1
|
+
{"version":3,"file":"Button.vue2.js","sources":["../../../../../../../packages/components/src/base/button/Button.vue"],"sourcesContent":["<template>\r\n <el-button ref=\"elRef\" v-bind=\"props\" :type=\"disabled ? 'info' : type\" v-on=\"elEvents\">\r\n <template v-if=\"slots.loading\" #loading=\"slotValue\">\r\n <slot name=\"loading\" v-bind=\"slotValue\" />\r\n </template>\r\n <template v-if=\"slots.default\" #default>\r\n <slot />\r\n </template>\r\n <template v-if=\"slots.icon\" #icon=\"slotValue\">\r\n <slot name=\"icon\" v-bind=\"slotValue\" />\r\n </template>\r\n </el-button>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { ref, useSlots } from 'vue';\r\nimport { getGmEvent } from '@giime/utils';\r\nimport { buttonEmits as elButtonEmits } from 'element-plus';\r\nimport { buttonEmits, buttonProps } from './button';\r\nimport type { ButtonInstance } from 'element-plus';\r\n\r\ndefineOptions({\r\n name: 'GmButton',\r\n});\r\nconst slots = useSlots();\r\nconst props = defineProps(buttonProps);\r\nconst emit = defineEmits(buttonEmits);\r\n// 重发el的事件\r\nconst elEvents = getGmEvent(elButtonEmits, emit);\r\n\r\nconst elRef = ref<ButtonInstance>();\r\ndefineExpose({\r\n elRef,\r\n});\r\n</script>\r\n"],"names":["useSlots","getGmEvent","elButtonEmits","ref"],"mappings":";;;;;;;;;;;;;;;;;;AAuBA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AACvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAWC,gBAAW,CAAAC,uBAAA,EAAe,IAAI,CAAA,CAAA;AAE/C,IAAA,MAAM,QAAQC,OAAoB,EAAA,CAAA;AAClC,IAAa,QAAA,CAAA;AAAA,MACX,KAAA;AAAA,KACD,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
import type { TabsInstance } from 'element-plus';
|
|
2
|
-
import type { Slot, VNode } from 'vue';
|
|
3
|
-
type TabPaneVNode = VNode & {
|
|
4
|
-
children: {
|
|
5
|
-
[name: string]: Slot;
|
|
6
|
-
} | null;
|
|
7
|
-
};
|
|
8
1
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
9
2
|
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "card" | "border-card", unknown, "", boolean>;
|
|
10
3
|
closable: BooleanConstructor;
|
|
@@ -27,14 +20,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
27
20
|
readonly prototype: any;
|
|
28
21
|
})[], unknown, unknown, () => true, boolean>;
|
|
29
22
|
stretch: BooleanConstructor;
|
|
30
|
-
}, {
|
|
31
|
-
elRef: import("vue").Ref<TabsInstance | undefined>;
|
|
32
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
33
24
|
"update:modelValue": (name: import("element-plus").TabPaneName) => void;
|
|
34
25
|
tabClick: (pane: {
|
|
35
26
|
uid: number;
|
|
36
27
|
slots: Readonly<{
|
|
37
|
-
[name: string]: Slot<any> | undefined;
|
|
28
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
38
29
|
}>;
|
|
39
30
|
props: {
|
|
40
31
|
readonly closable: boolean;
|
|
@@ -79,7 +70,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
79
70
|
onTabClick?: ((pane: {
|
|
80
71
|
uid: number;
|
|
81
72
|
slots: Readonly<{
|
|
82
|
-
[name: string]: Slot<any> | undefined;
|
|
73
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
83
74
|
}>;
|
|
84
75
|
props: {
|
|
85
76
|
readonly closable: boolean;
|
|
@@ -105,10 +96,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
105
96
|
addable: boolean;
|
|
106
97
|
tabPosition: import("element-plus/es/utils").EpPropMergeType<StringConstructor, "top" | "bottom" | "right" | "left", unknown>;
|
|
107
98
|
stretch: boolean;
|
|
108
|
-
}, {}>,
|
|
109
|
-
default
|
|
110
|
-
}
|
|
111
|
-
default?: (() => TabPaneVNode[]) | undefined;
|
|
99
|
+
}, {}>, {
|
|
100
|
+
default?(_: any): any;
|
|
101
|
+
"add-icon"?(_: {}): any;
|
|
112
102
|
}>;
|
|
113
103
|
export default _default;
|
|
114
104
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
require('../../../../utils/index.js');
|
|
7
7
|
var elementPlus = require('element-plus');
|
|
8
|
-
var VNodeRenderer = require('../../common/VNodeRenderer.js');
|
|
9
8
|
var tabs = require('./tabs.js');
|
|
10
9
|
var event = require('../../../../utils/src/elementPlus/event.js');
|
|
11
10
|
|
|
12
|
-
const _hoisted_1 = { key: 0 };
|
|
13
11
|
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
14
12
|
...{
|
|
15
13
|
name: "GmTabs"
|
|
@@ -17,97 +15,37 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
17
15
|
__name: "Tabs",
|
|
18
16
|
props: tabs.tabsProps,
|
|
19
17
|
emits: tabs.tabsEmits,
|
|
20
|
-
setup(__props, {
|
|
18
|
+
setup(__props, { emit: __emit }) {
|
|
21
19
|
const slots = vue.useSlots();
|
|
22
20
|
const props = __props;
|
|
23
21
|
const emit = __emit;
|
|
24
22
|
const elEvents = event.getGmEvent(elementPlus.tabsEmits, emit);
|
|
25
|
-
const gmTabPaneList = vue.computed(() => {
|
|
26
|
-
const nodeList = [];
|
|
27
|
-
slots.default?.().forEach((node) => {
|
|
28
|
-
const item = recursionHandle(node);
|
|
29
|
-
if (item) {
|
|
30
|
-
nodeList.push(...item);
|
|
31
|
-
}
|
|
32
|
-
});
|
|
33
|
-
return nodeList;
|
|
34
|
-
});
|
|
35
|
-
const recursionHandle = (item) => {
|
|
36
|
-
const items = [];
|
|
37
|
-
if (typeof item.type === "symbol") {
|
|
38
|
-
return recursionHandle(item.children);
|
|
39
|
-
} else {
|
|
40
|
-
if (Array.isArray(item)) {
|
|
41
|
-
item.forEach((node) => {
|
|
42
|
-
if (node.type?.name === "GmTabPane") {
|
|
43
|
-
items.push(node);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
} else {
|
|
47
|
-
if (item.type?.name === "GmTabPane") {
|
|
48
|
-
items.push(item);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
return items;
|
|
53
|
-
};
|
|
54
|
-
const elRef = vue.ref();
|
|
55
|
-
__expose({
|
|
56
|
-
elRef
|
|
57
|
-
});
|
|
58
23
|
return (_ctx, _cache) => {
|
|
59
|
-
const _component_el_tab_pane = vue.resolveComponent("el-tab-pane");
|
|
60
24
|
const _component_el_tabs = vue.resolveComponent("el-tabs");
|
|
61
25
|
return vue.openBlock(), vue.createBlock(
|
|
62
26
|
_component_el_tabs,
|
|
63
|
-
vue.mergeProps({
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
/* DYNAMIC */
|
|
86
|
-
}, [
|
|
87
|
-
item.children?.label ? {
|
|
88
|
-
name: "label",
|
|
89
|
-
fn: vue.withCtx(() => [
|
|
90
|
-
vue.createVNode(vue.unref(VNodeRenderer.default), {
|
|
91
|
-
vnode: item.children?.label()
|
|
92
|
-
}, null, 8, ["vnode"])
|
|
93
|
-
]),
|
|
94
|
-
key: "0"
|
|
95
|
-
} : void 0
|
|
96
|
-
]),
|
|
97
|
-
1040
|
|
98
|
-
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
99
|
-
);
|
|
100
|
-
}),
|
|
101
|
-
128
|
|
102
|
-
/* KEYED_FRAGMENT */
|
|
103
|
-
))
|
|
104
|
-
])) : vue.createCommentVNode("v-if", true)
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
/* STABLE */
|
|
108
|
-
},
|
|
109
|
-
16
|
|
110
|
-
/* FULL_PROPS */
|
|
27
|
+
vue.mergeProps({ ref: "elRef" }, props, vue.toHandlers(vue.unref(elEvents))),
|
|
28
|
+
vue.createSlots({
|
|
29
|
+
_: 2
|
|
30
|
+
/* DYNAMIC */
|
|
31
|
+
}, [
|
|
32
|
+
vue.unref(slots).default ? {
|
|
33
|
+
name: "default",
|
|
34
|
+
fn: vue.withCtx((slotValue) => [
|
|
35
|
+
vue.renderSlot(_ctx.$slots, "default", vue.normalizeProps(vue.guardReactiveProps(slotValue)))
|
|
36
|
+
]),
|
|
37
|
+
key: "0"
|
|
38
|
+
} : void 0,
|
|
39
|
+
vue.unref(slots)["add-icon"] ? {
|
|
40
|
+
name: "add-icon",
|
|
41
|
+
fn: vue.withCtx(() => [
|
|
42
|
+
vue.renderSlot(_ctx.$slots, "add-icon")
|
|
43
|
+
]),
|
|
44
|
+
key: "1"
|
|
45
|
+
} : void 0
|
|
46
|
+
]),
|
|
47
|
+
1040
|
|
48
|
+
/* FULL_PROPS, DYNAMIC_SLOTS */
|
|
111
49
|
);
|
|
112
50
|
};
|
|
113
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.vue2.js","sources":["../../../../../../../packages/components/src/base/tabs/Tabs.vue"],"sourcesContent":["<template>\r\n <el-tabs ref=\"elRef\" v-bind=\"props\" v-on=\"elEvents\">\r\n <template v-if=\"slots.default\"
|
|
1
|
+
{"version":3,"file":"Tabs.vue2.js","sources":["../../../../../../../packages/components/src/base/tabs/Tabs.vue"],"sourcesContent":["<template>\r\n <el-tabs ref=\"elRef\" v-bind=\"props\" v-on=\"elEvents\">\r\n <template v-if=\"slots.default\" #default=\"slotValue\">\r\n <slot v-bind=\"slotValue\" />\r\n </template>\r\n <template v-if=\"slots['add-icon']\" #add-icon>\r\n <slot name=\"add-icon\" />\r\n </template>\r\n </el-tabs>\r\n</template>\r\n<script lang=\"ts\" setup>\r\nimport { useSlots } from 'vue';\r\nimport { getGmEvent } from '@giime/utils';\r\nimport { tabsEmits as elTabsEmits } from 'element-plus';\r\nimport { tabsEmits, tabsProps } from './tabs';\r\n\r\ndefineOptions({\r\n name: 'GmTabs',\r\n});\r\n\r\nconst slots = useSlots();\r\n\r\nconst props = defineProps(tabsProps);\r\nconst emit = defineEmits(tabsEmits);\r\n// 重发el的事件\r\nconst elEvents = getGmEvent(elTabsEmits, emit);\r\n</script>\r\n"],"names":["useSlots","getGmEvent","elTabsEmits"],"mappings":";;;;;;;;;;;;;;;;;;AAoBA,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AACd,IAAA,MAAM,IAAO,GAAA,MAAA,CAAA;AAEb,IAAM,MAAA,QAAA,GAAWC,gBAAW,CAAAC,qBAAA,EAAa,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -45,9 +45,7 @@ export declare const GmTabs: import("../../../../utils").SFCWithInstall<{
|
|
|
45
45
|
onEdit?: ((paneName: import("element-plus").TabPaneName | undefined, action: "add" | "remove") => any) | undefined;
|
|
46
46
|
onTabRemove?: ((name: import("element-plus").TabPaneName) => any) | undefined;
|
|
47
47
|
onTabAdd?: (() => any) | undefined;
|
|
48
|
-
}, {
|
|
49
|
-
elRef: import("vue").Ref<import("element-plus").TabsInstance | undefined>;
|
|
50
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
49
|
"update:modelValue": (name: import("element-plus").TabPaneName) => void;
|
|
52
50
|
tabClick: (pane: {
|
|
53
51
|
uid: number;
|
|
@@ -175,9 +173,7 @@ export declare const GmTabs: import("../../../../utils").SFCWithInstall<{
|
|
|
175
173
|
onEdit?: ((paneName: import("element-plus").TabPaneName | undefined, action: "add" | "remove") => any) | undefined;
|
|
176
174
|
onTabRemove?: ((name: import("element-plus").TabPaneName) => any) | undefined;
|
|
177
175
|
onTabAdd?: (() => any) | undefined;
|
|
178
|
-
}, {
|
|
179
|
-
elRef: import("vue").Ref<import("element-plus").TabsInstance | undefined>;
|
|
180
|
-
}, {}, {}, {}, {
|
|
176
|
+
}, {}, {}, {}, {}, {
|
|
181
177
|
type: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "" | "card" | "border-card", unknown>;
|
|
182
178
|
closable: boolean;
|
|
183
179
|
editable: boolean;
|
|
@@ -234,9 +230,7 @@ export declare const GmTabs: import("../../../../utils").SFCWithInstall<{
|
|
|
234
230
|
onEdit?: ((paneName: import("element-plus").TabPaneName | undefined, action: "add" | "remove") => any) | undefined;
|
|
235
231
|
onTabRemove?: ((name: import("element-plus").TabPaneName) => any) | undefined;
|
|
236
232
|
onTabAdd?: (() => any) | undefined;
|
|
237
|
-
}, {
|
|
238
|
-
elRef: import("vue").Ref<import("element-plus").TabsInstance | undefined>;
|
|
239
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
233
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
240
234
|
"update:modelValue": (name: import("element-plus").TabPaneName) => void;
|
|
241
235
|
tabClick: (pane: {
|
|
242
236
|
uid: number;
|
|
@@ -268,22 +262,9 @@ export declare const GmTabs: import("../../../../utils").SFCWithInstall<{
|
|
|
268
262
|
tabPosition: import("element-plus/es/utils/index.js").EpPropMergeType<StringConstructor, "top" | "bottom" | "right" | "left", unknown>;
|
|
269
263
|
stretch: boolean;
|
|
270
264
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
271
|
-
$slots:
|
|
272
|
-
default
|
|
273
|
-
|
|
274
|
-
}> & {
|
|
275
|
-
children: {
|
|
276
|
-
[name: string]: import("vue").Slot;
|
|
277
|
-
} | null;
|
|
278
|
-
})[]) | undefined;
|
|
279
|
-
}> & {
|
|
280
|
-
default?: (() => (import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
281
|
-
[key: string]: any;
|
|
282
|
-
}> & {
|
|
283
|
-
children: {
|
|
284
|
-
[name: string]: import("vue").Slot;
|
|
285
|
-
} | null;
|
|
286
|
-
})[]) | undefined;
|
|
265
|
+
$slots: {
|
|
266
|
+
default?(_: any): any;
|
|
267
|
+
"add-icon"?(_: {}): any;
|
|
287
268
|
};
|
|
288
269
|
})> & Record<string, any>;
|
|
289
270
|
export type TabsInstance = InstanceType<typeof Tabs>;
|
|
@@ -6,7 +6,7 @@ var SearchForm_vue_vue_type_script_setup_true_lang = require('./SearchForm.vue2.
|
|
|
6
6
|
require('./SearchForm.vue3.js');
|
|
7
7
|
var _pluginVue_exportHelper = require('../../../../_virtual/_plugin-vue_export-helper.js');
|
|
8
8
|
|
|
9
|
-
var SearchForm = /* @__PURE__ */ _pluginVue_exportHelper.default(SearchForm_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-
|
|
9
|
+
var SearchForm = /* @__PURE__ */ _pluginVue_exportHelper.default(SearchForm_vue_vue_type_script_setup_true_lang.default, [["__scopeId", "data-v-08f2c6ca"], ["__file", "SearchForm.vue"]]);
|
|
10
10
|
|
|
11
11
|
exports.default = SearchForm;
|
|
12
12
|
//# sourceMappingURL=SearchForm.vue.js.map
|