@wfrog/vc-ui 1.3.0 → 1.4.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/es/chunk/{CCmEeM7D.mjs → B3GxuXVE.mjs} +6 -6
- package/dist/es/chunk/BL8WhaLp.mjs +427 -0
- package/dist/es/chunk/{BiHWk71g.mjs → BPqrpkTb.mjs} +4 -4
- package/dist/es/chunk/{C_7t9blX.mjs → BZ1uhZQF.mjs} +1 -1
- package/dist/es/chunk/{-ga82G_B.mjs → BdVq9mV6.mjs} +1 -1
- package/dist/es/chunk/{DGGhWn1A.mjs → BfjuZmry.mjs} +6 -5
- package/dist/es/chunk/{BLLKi_0v.mjs → Bu3XHP55.mjs} +1 -1
- package/dist/es/chunk/{DEiqPcuO.mjs → BvNFaD5d.mjs} +3 -3
- package/dist/es/chunk/BxibBO68.mjs +5741 -0
- package/dist/es/chunk/{DO-mBaf5.mjs → By7FMB3I.mjs} +1 -43
- package/dist/es/chunk/{DATKTbFj.mjs → CGhekNBa.mjs} +5 -5
- package/dist/es/chunk/{plK2vnjp.mjs → CJ0afvkJ.mjs} +1 -1
- package/dist/es/chunk/{CtYp4FB7.mjs → CK5Bluh4.mjs} +2 -2
- package/dist/es/chunk/{Vv8g5_A1.mjs → CKZGL4_3.mjs} +9 -8
- package/dist/es/chunk/CNEMJL35.mjs +69 -0
- package/dist/es/chunk/{C9ldJ8Hh.mjs → CPCieLBG.mjs} +1 -1
- package/dist/es/chunk/{C50_dziC.mjs → CQz3lhyS.mjs} +2 -1
- package/dist/es/chunk/{Cekqdlxf.mjs → CbYM6R_O.mjs} +12 -77
- package/dist/es/chunk/{CQbpo0im.mjs → CboHfRXN.mjs} +5 -6
- package/dist/es/chunk/{BambM7zX.mjs → Cdh3HNZa.mjs} +2 -2
- package/dist/es/chunk/{aX4SRHmD.mjs → Cg-Krnly.mjs} +2 -1
- package/dist/es/chunk/{9qQNa4bM.mjs → Cjp0Czyu.mjs} +1 -1
- package/dist/es/chunk/Cmb_E8Ip.mjs +184 -0
- package/dist/es/chunk/{BIK5Djc_.mjs → Co77DVCw.mjs} +2 -2
- package/dist/es/chunk/CqTa_Vd-.mjs +375 -0
- package/dist/es/{components/dual-pane/dual-pane.mjs → chunk/CsjEhAYY.mjs} +11 -91
- package/dist/es/chunk/{BQyZW57B.mjs → CwXV7M2F.mjs} +3 -3
- package/dist/es/chunk/{b9dx0jdT.mjs → D1MHFKtN.mjs} +3 -3
- package/dist/es/chunk/{DskGUrkJ.mjs → D6m3vWpc.mjs} +2 -1
- package/dist/es/chunk/{4F1xxyju.mjs → D6nWUATi.mjs} +48 -2117
- package/dist/es/chunk/{C6bIuBQg.mjs → D7CQDxqy.mjs} +3 -3
- package/dist/es/chunk/{Dqk3gyUk.mjs → D9Lr0Bzb.mjs} +1 -374
- package/dist/es/chunk/{Xk5kfdyT.mjs → DAIuzoFs.mjs} +2 -1
- package/dist/es/chunk/{OVbHCQoq.mjs → DCS0eqqM.mjs} +3 -101
- package/dist/es/chunk/{BJTCqgn1.mjs → DDR6UjaC.mjs} +1 -1
- package/dist/es/chunk/{BKmk2ptO.mjs → DNsAO9iB.mjs} +2 -2
- package/dist/es/chunk/{-_x5oKYF.mjs → DQK0ezHm.mjs} +5 -4
- package/dist/es/chunk/{BQHHM_Gw.mjs → DQi1QPak.mjs} +30 -70
- package/dist/es/chunk/{BaqDgAvL.mjs → DSt2uDNE.mjs} +22 -434
- package/dist/es/chunk/DSw4GnC6.mjs +44 -0
- package/dist/es/chunk/DTbnchOm.mjs +94 -0
- package/dist/es/chunk/DViraU6I.mjs +45 -0
- package/dist/es/chunk/{C540ZOUa.mjs → DX84QR5M.mjs} +10 -9
- package/dist/es/chunk/DYKOYbzT.mjs +2003 -0
- package/dist/es/chunk/{D1PKXAql.mjs → D_F7nIja.mjs} +3 -4
- package/dist/es/chunk/{DcTh6n4x.mjs → D_Mvdscy.mjs} +5 -4
- package/dist/es/chunk/DhGOsWxx.mjs +6 -0
- package/dist/es/chunk/{DFxeI_lP.mjs → DhGcJR5p.mjs} +6 -6
- package/dist/es/chunk/DxxbB5jY.mjs +34 -0
- package/dist/es/chunk/EMeQxUfH.mjs +49 -0
- package/dist/es/chunk/{eN6VJ63C.mjs → F2ph6lWu.mjs} +9 -8
- package/dist/es/chunk/{Dn-BFXcJ.mjs → dN0VcQc2.mjs} +1 -1
- package/dist/es/chunk/{DTpr71Gd.mjs → e5i7OJY-.mjs} +4 -4
- package/dist/es/chunk/fueZ9sVu.mjs +890 -0
- package/dist/es/chunk/{CV2NA_2e.mjs → ipA7n6-J.mjs} +1 -1
- package/dist/es/chunk/{Dw-yyl2m.mjs → q2jRgbir.mjs} +2 -2
- package/dist/es/chunk/{C72pWnuz.mjs → w7VqVeWU.mjs} +5 -4
- package/dist/es/chunk/{DWcIzeMM.mjs → ytiKcA3H.mjs} +108 -10
- package/dist/es/chunk/{DFHjl3eL.mjs → yuIXvUxc.mjs} +1 -1
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.d.ts +2 -1
- package/dist/es/components/button/button.mjs +68 -17
- package/dist/es/components/button/button.vue.d.ts +4 -1
- package/dist/es/components/choice/choice.mjs +3 -2
- package/dist/es/components/color-switcher/color-switcher.d.ts +15 -0
- package/dist/es/components/color-switcher/color-switcher.mjs +1215 -0
- package/dist/es/components/color-switcher/color-switcher.vue.d.ts +122 -0
- package/dist/es/components/color-switcher/index.css +5 -0
- package/dist/es/components/color-switcher/index.d.ts +4 -0
- package/dist/es/components/color-switcher/index.mjs +6 -0
- package/dist/es/components/cropper/cropper.mjs +12 -11
- package/dist/es/components/cropper/cropper.vue.d.ts +2 -2
- package/dist/es/components/currency/currency.mjs +7 -7
- package/dist/es/components/dark-switcher/dark-switcher.d.ts +10 -0
- package/dist/es/components/dark-switcher/dark-switcher.mjs +87 -0
- package/dist/es/components/dark-switcher/dark-switcher.vue.d.ts +12 -0
- package/dist/es/components/dark-switcher/index.css +11 -0
- package/dist/es/components/dark-switcher/index.d.ts +4 -0
- package/dist/es/components/dark-switcher/index.mjs +6 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +21 -20
- package/dist/es/components/dialog/dialog.d.ts +1 -1
- package/dist/es/components/dialog/dialog.mjs +46 -61
- package/dist/es/components/dialog/dialog.vue.d.ts +1 -3
- package/dist/es/components/dialog/index.css +31 -32
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +12 -12
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -5
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -13
- package/dist/es/components/document.vue.d.ts +14 -0
- package/dist/es/components/drag-verify/drag-verify.mjs +14 -14
- package/dist/es/components/drag-verify/index.css +11 -11
- package/dist/es/components/drawer/drawer.mjs +14 -14
- package/dist/es/components/drawer/index.css +16 -15
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/example-wrapper.vue.d.ts +19 -0
- package/dist/es/components/explorer/docs/data.d.ts +13 -0
- package/dist/es/components/explorer/explorer.d.ts +12 -0
- package/dist/es/components/explorer/explorer.mjs +64 -0
- package/dist/es/components/explorer/explorer.vue.d.ts +183 -0
- package/dist/es/components/explorer/explorer2.mjs +6 -0
- package/dist/es/components/explorer/index.css +14 -0
- package/dist/es/components/explorer/index.d.ts +4 -0
- package/dist/es/components/explorer/index.mjs +6 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.d.ts +23 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +2948 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1486 -0
- package/dist/es/components/explorer-column-table/index.css +49 -0
- package/dist/es/components/explorer-column-table/index.d.ts +4 -0
- package/dist/es/components/explorer-column-table/index.mjs +6 -0
- package/dist/es/components/explorer-filter/explorer-filter.d.ts +12 -0
- package/dist/es/components/explorer-filter/explorer-filter.mjs +81 -0
- package/dist/es/components/explorer-filter/explorer-filter.vue.d.ts +14 -0
- package/dist/es/components/explorer-filter/index.css +7 -0
- package/dist/es/components/explorer-filter/index.d.ts +4 -0
- package/dist/es/components/explorer-filter/index.mjs +6 -0
- package/dist/es/components/explorer-footer/explorer-footer.d.ts +5 -0
- package/dist/es/components/explorer-footer/explorer-footer.mjs +92 -0
- package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +21 -0
- package/dist/es/components/explorer-footer/index.css +7 -0
- package/dist/es/components/explorer-footer/index.d.ts +4 -0
- package/dist/es/components/explorer-footer/index.mjs +6 -0
- package/dist/es/components/explorer-list/explorer-list.d.ts +23 -0
- package/dist/es/components/explorer-list/explorer-list.mjs +157 -0
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +38 -0
- package/dist/es/components/explorer-list/index.css +47 -0
- package/dist/es/components/explorer-list/index.d.ts +4 -0
- package/dist/es/components/explorer-list/index.mjs +6 -0
- package/dist/es/components/explorer-panel/explorer-panel.d.ts +14 -0
- package/dist/es/components/explorer-panel/explorer-panel.mjs +77 -0
- package/dist/es/components/explorer-panel/explorer-panel.vue.d.ts +253 -0
- package/dist/es/components/explorer-panel/explorer-panel2.mjs +6 -0
- package/dist/es/components/explorer-panel/index.css +12 -0
- package/dist/es/components/explorer-panel/index.d.ts +4 -0
- package/dist/es/components/explorer-panel/index.mjs +6 -0
- package/dist/es/components/explorer-query/explorer-query.d.ts +11 -0
- package/dist/es/components/explorer-query/explorer-query.mjs +2376 -0
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +396 -0
- package/dist/es/components/explorer-query/index.css +36 -0
- package/dist/es/components/explorer-query/index.d.ts +4 -0
- package/dist/es/components/explorer-query/index.mjs +6 -0
- package/dist/es/components/explorer-table/explorer-table.d.ts +11 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +116 -0
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +25 -0
- package/dist/es/components/explorer-table/index.css +18 -0
- package/dist/es/components/explorer-table/index.d.ts +4 -0
- package/dist/es/components/explorer-table/index.mjs +6 -0
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +3028 -0
- package/dist/es/components/explorer-tools/explorer-tools.d.ts +35 -0
- package/dist/es/components/explorer-tools/explorer-tools.mjs +585 -0
- package/dist/es/components/explorer-tools/explorer-tools.vue.d.ts +43 -0
- package/dist/es/components/explorer-tools/index.css +60 -0
- package/dist/es/components/explorer-tools/index.d.ts +4 -0
- package/dist/es/components/explorer-tools/index.mjs +6 -0
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +22 -0
- package/dist/es/components/explorer-tree/explorer-tree.mjs +174 -0
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2055 -0
- package/dist/es/components/explorer-tree/index.css +55 -0
- package/dist/es/components/explorer-tree/index.d.ts +4 -0
- package/dist/es/components/explorer-tree/index.mjs +6 -0
- package/dist/es/components/icon/icon2.mjs +2 -2
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +242 -196
- package/dist/es/components/icon-picker/icon-picker.mjs +38 -921
- package/dist/es/components/icon-picker/index.css +31 -29
- package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/image/image.vue.d.ts +7 -7
- package/dist/es/components/input/index.css +4 -5
- package/dist/es/components/input/input.mjs +7 -7
- package/dist/es/components/input/input.vue.d.ts +3 -3
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/components/c.vue.d.ts +3 -3
- package/dist/es/components/pca-picker/index.css +4 -4
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -209
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +10 -10
- package/dist/es/components/screenfull/screenfull.mjs +4 -4
- package/dist/es/components/scrollbar/index.css +6 -5
- package/dist/es/components/scrollbar/scrollbar.d.ts +2 -0
- package/dist/es/components/scrollbar/scrollbar.mjs +17 -12
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +156 -134
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/index.css +11 -11
- package/dist/es/components/single-player/single-player.mjs +20 -19
- package/dist/es/components/splitter/index.d.ts +4 -0
- package/dist/es/components/splitter/index.mjs +6 -0
- package/dist/es/components/splitter/splitter.d.ts +4 -0
- package/dist/es/components/splitter/splitter.mjs +28 -0
- package/dist/es/components/{dual-pane/dual-pane.vue.d.ts → splitter/splitter.vue.d.ts} +3 -5
- package/dist/es/components/splitter-panel/index.css +5 -0
- package/dist/es/components/splitter-panel/index.d.ts +4 -0
- package/dist/es/components/splitter-panel/index.mjs +6 -0
- package/dist/es/components/splitter-panel/splitter-panel.d.ts +3 -0
- package/dist/es/components/splitter-panel/splitter-panel.mjs +49 -0
- package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +20 -0
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +12 -11
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -8
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +20 -11
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -10
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +10 -10
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +14 -1
- package/dist/es/index.mjs +69 -39
- package/dist/es/use/usePersistentModel/index.d.ts +4 -0
- package/dist/es/use/usePersistentModel/index.mjs +19 -0
- package/dist/global.d.ts +14 -1
- package/dist/index.css +450 -123
- package/package.json +4 -1
- package/dist/es/chunk/DVNTpOBR.mjs +0 -4
- package/dist/es/components/dual-pane/dual-pane.d.ts +0 -8
- package/dist/es/components/dual-pane/index.css +0 -8
- package/dist/es/components/dual-pane/index.d.ts +0 -4
- package/dist/es/components/dual-pane/index.mjs +0 -6
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* source: src/components/explorer-column-table/explorer-column-table.vue */
|
|
2
|
+
.el-table-column--selection .cell{padding-left:14px;padding-right:14px}.el-table-filter{background-color:#ffffff;border:1px solid var(--el-border-color-lighter);border-radius:2px;box-shadow:var(--el-box-shadow-light);box-sizing:border-box}.el-table-filter__list{list-style:none;margin:0;min-width:100px;outline:none;padding:5px 0}.el-table-filter__list-item{cursor:pointer;font-size:var(--el-font-size-base);line-height:36px;outline:none;padding:0 10px}.el-table-filter__list-item:focus,.el-table-filter__list-item:hover{background-color:var(--el-color-primary-light-9);color:var(--el-color-primary)}.el-table-filter__list-item.is-active{background-color:var(--el-color-primary);color:#ffffff}.el-table-filter__multiple{outline:none}.el-table-filter__content{min-width:100px}.el-table-filter__bottom{border-top:1px solid var(--el-border-color-lighter);padding:8px}.el-table-filter__bottom button{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent;border:none;border-radius:var(--el-border-radius-base);cursor:pointer;margin:0;outline:none;padding:0;transition:transform var(--el-transition-duration-fast) ease-in-out}.el-table-filter__bottom button:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-table-filter__bottom button{color:var(--el-text-color-regular);font-size:var(--el-font-size-small);padding:0 3px}.el-table-filter__bottom button:hover{color:var(--el-color-primary)}.el-table-filter__bottom button.is-disabled{color:var(--el-disabled-text-color);cursor:not-allowed}.el-table-filter__wrap{max-height:280px}.el-table-filter__checkbox-group{padding:10px}.el-table-filter__checkbox-group label.el-checkbox{align-items:center;display:flex;height:unset;margin-bottom:12px;margin-left:5px;margin-right:5px}.el-table-filter__checkbox-group .el-checkbox:last-child{margin-bottom:0}._table_ysja6_1 {
|
|
3
|
+
flex-grow: 1;
|
|
4
|
+
height: 100px;
|
|
5
|
+
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
6
|
+
--el-table-row-hover-bg-color: var(--el-color-primary-light-9);
|
|
7
|
+
}
|
|
8
|
+
._label_ysja6_8 {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
width: 100%;
|
|
11
|
+
}
|
|
12
|
+
._label_ysja6_8 .el-checkbox {
|
|
13
|
+
width: 100%;
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: center;
|
|
16
|
+
cursor: move;
|
|
17
|
+
}
|
|
18
|
+
._label_ysja6_8 .el-checkbox > span {
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
height: 100%;
|
|
22
|
+
}
|
|
23
|
+
._label_ysja6_8 .el-checkbox__label {
|
|
24
|
+
min-width: 0;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
._item-container_ysja6_31 {
|
|
31
|
+
display: inline-flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
column-gap: 4px;
|
|
34
|
+
padding: 1px 0;
|
|
35
|
+
line-height: 0;
|
|
36
|
+
vertical-align: middle;
|
|
37
|
+
}
|
|
38
|
+
._item-container_ysja6_31 > div {
|
|
39
|
+
vertical-align: middle;
|
|
40
|
+
}
|
|
41
|
+
._truncate_ysja6_43 {
|
|
42
|
+
padding: 0 9px !important;
|
|
43
|
+
}
|
|
44
|
+
._truncate_ysja6_43.el-checkbox--small {
|
|
45
|
+
padding: 0 7px !important;
|
|
46
|
+
}
|
|
47
|
+
._truncate_ysja6_43.el-checkbox--large {
|
|
48
|
+
padding: 0 11px !important;
|
|
49
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface IExplorerFilterProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
clearable?: boolean;
|
|
4
|
+
paddingBottom?: number;
|
|
5
|
+
create?: boolean;
|
|
6
|
+
debounce?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface IExplorerFilterEmits {
|
|
10
|
+
(e: 'filter', keyword: string): void;
|
|
11
|
+
(e: 'create'): void;
|
|
12
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
import { E as ElButton } from '../../chunk/CqTa_Vd-.mjs';
|
|
4
|
+
import { E as ElInput } from '../../chunk/CKZGL4_3.mjs';
|
|
5
|
+
import { defineComponent, useCssVars, ref, createElementBlock, openBlock, normalizeClass, createVNode, createBlock, createCommentVNode, unref, withKeys, isRef } from 'vue';
|
|
6
|
+
import { Search, Plus } from '@element-plus/icons-vue';
|
|
7
|
+
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
8
|
+
import { d as debounce } from '../../chunk/Cdh3HNZa.mjs';
|
|
9
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
10
|
+
|
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
|
+
__name: "explorer-filter",
|
|
13
|
+
props: {
|
|
14
|
+
placeholder: { default: "查询" },
|
|
15
|
+
clearable: { type: Boolean, default: true },
|
|
16
|
+
paddingBottom: { default: 8 },
|
|
17
|
+
create: { type: Boolean },
|
|
18
|
+
debounce: { default: 300 },
|
|
19
|
+
disabled: { type: Boolean }
|
|
20
|
+
},
|
|
21
|
+
emits: ["filter", "create"],
|
|
22
|
+
setup(__props, { emit: __emit }) {
|
|
23
|
+
useCssVars((_ctx) => ({
|
|
24
|
+
"b224534e": `${_ctx.paddingBottom}px`
|
|
25
|
+
}));
|
|
26
|
+
const props = __props;
|
|
27
|
+
const emits = __emit;
|
|
28
|
+
const { filterKeyword } = injectExplorerPanelState();
|
|
29
|
+
const keyword = ref("");
|
|
30
|
+
function handleFilter() {
|
|
31
|
+
if (filterKeyword.value === keyword.value) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
filterKeyword.value = keyword.value;
|
|
35
|
+
emits("filter", keyword.value);
|
|
36
|
+
}
|
|
37
|
+
const keywordChange = debounce(() => handleFilter(), props.debounce);
|
|
38
|
+
return (_ctx, _cache) => {
|
|
39
|
+
const _component_ElInput = ElInput;
|
|
40
|
+
const _component_ElButton = ElButton;
|
|
41
|
+
return openBlock(), createElementBlock("div", {
|
|
42
|
+
class: normalizeClass(_ctx.$style["explorer-filter"])
|
|
43
|
+
}, [
|
|
44
|
+
createVNode(_component_ElInput, {
|
|
45
|
+
modelValue: unref(keyword),
|
|
46
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(keyword) ? keyword.value = $event : null),
|
|
47
|
+
placeholder: __props.placeholder,
|
|
48
|
+
clearable: __props.clearable,
|
|
49
|
+
"prefix-icon": unref(Search),
|
|
50
|
+
disabled: __props.disabled,
|
|
51
|
+
onKeydown: withKeys(handleFilter, ["enter"]),
|
|
52
|
+
onClear: handleFilter,
|
|
53
|
+
onChange: handleFilter,
|
|
54
|
+
onInput: unref(keywordChange)
|
|
55
|
+
}, null, 8, ["modelValue", "placeholder", "clearable", "prefix-icon", "disabled", "onInput"]),
|
|
56
|
+
__props.create ? (openBlock(), createBlock(_component_ElButton, {
|
|
57
|
+
key: 0,
|
|
58
|
+
icon: unref(Plus),
|
|
59
|
+
disabled: __props.disabled,
|
|
60
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emits("create"))
|
|
61
|
+
}, null, 8, ["icon", "disabled"])) : createCommentVNode("", true)
|
|
62
|
+
], 2);
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
/* unplugin-vue-components disabled */const style0 = {
|
|
68
|
+
"explorer-filter": "_explorer-filter_1l5g5_1"
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
const cssModules = {
|
|
72
|
+
"$style": style0
|
|
73
|
+
};
|
|
74
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
75
|
+
|
|
76
|
+
const __vite_glob_0_21 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
77
|
+
__proto__: null,
|
|
78
|
+
default: Component
|
|
79
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
80
|
+
|
|
81
|
+
export { Component as C, __vite_glob_0_21 as _ };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IExplorerFilterProps } from './explorer-filter';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IExplorerFilterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
filter: (keyword: string) => any;
|
|
4
|
+
create: () => any;
|
|
5
|
+
}, string, import('vue').PublicProps, Readonly<IExplorerFilterProps> & Readonly<{
|
|
6
|
+
onFilter?: ((keyword: string) => any) | undefined;
|
|
7
|
+
onCreate?: (() => any) | undefined;
|
|
8
|
+
}>, {
|
|
9
|
+
placeholder: string;
|
|
10
|
+
clearable: boolean;
|
|
11
|
+
debounce: number;
|
|
12
|
+
paddingBottom: number;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
import { E as ElPagination } from '../../chunk/fueZ9sVu.mjs';
|
|
4
|
+
/* empty css */
|
|
5
|
+
import '../../chunk/DQi1QPak.mjs';
|
|
6
|
+
import '../../chunk/D_Mvdscy.mjs';
|
|
7
|
+
import '../../chunk/BfjuZmry.mjs';
|
|
8
|
+
import '../../chunk/CKZGL4_3.mjs';
|
|
9
|
+
import { defineComponent, useCssVars, createElementBlock, openBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, renderSlot, unref, mergeProps } from 'vue';
|
|
10
|
+
import { i as isObjectLike, b as baseGetTag } from '../../chunk/ytiKcA3H.mjs';
|
|
11
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
12
|
+
|
|
13
|
+
/** `Object#toString` result references. */
|
|
14
|
+
var numberTag = '[object Number]';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Checks if `value` is classified as a `Number` primitive or object.
|
|
18
|
+
*
|
|
19
|
+
* **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
|
|
20
|
+
* classified as numbers, use the `_.isFinite` method.
|
|
21
|
+
*
|
|
22
|
+
* @static
|
|
23
|
+
* @memberOf _
|
|
24
|
+
* @since 0.1.0
|
|
25
|
+
* @category Lang
|
|
26
|
+
* @param {*} value The value to check.
|
|
27
|
+
* @returns {boolean} Returns `true` if `value` is a number, else `false`.
|
|
28
|
+
* @example
|
|
29
|
+
*
|
|
30
|
+
* _.isNumber(3);
|
|
31
|
+
* // => true
|
|
32
|
+
*
|
|
33
|
+
* _.isNumber(Number.MIN_VALUE);
|
|
34
|
+
* // => true
|
|
35
|
+
*
|
|
36
|
+
* _.isNumber(Infinity);
|
|
37
|
+
* // => true
|
|
38
|
+
*
|
|
39
|
+
* _.isNumber('3');
|
|
40
|
+
* // => false
|
|
41
|
+
*/
|
|
42
|
+
function isNumber(value) {
|
|
43
|
+
return typeof value == 'number' ||
|
|
44
|
+
(isObjectLike(value) && baseGetTag(value) == numberTag);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
48
|
+
__name: "explorer-footer",
|
|
49
|
+
props: {
|
|
50
|
+
paddingTop: { default: 8 },
|
|
51
|
+
layout: { default: "total, prev, pager, next" },
|
|
52
|
+
total: {}
|
|
53
|
+
},
|
|
54
|
+
setup(__props) {
|
|
55
|
+
useCssVars((_ctx) => ({
|
|
56
|
+
"v2844fd33": `${_ctx.paddingTop}px`
|
|
57
|
+
}));
|
|
58
|
+
const props = __props;
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
const _component_ElPagination = ElPagination;
|
|
61
|
+
return openBlock(), createElementBlock("div", {
|
|
62
|
+
class: normalizeClass(_ctx.$style["explorer-footer"])
|
|
63
|
+
}, [
|
|
64
|
+
createElementVNode("div", null, [
|
|
65
|
+
renderSlot(_ctx.$slots, "default")
|
|
66
|
+
]),
|
|
67
|
+
unref(isNumber)(props.total) ? (openBlock(), createBlock(_component_ElPagination, mergeProps({
|
|
68
|
+
key: 0,
|
|
69
|
+
background: "",
|
|
70
|
+
layout: __props.layout,
|
|
71
|
+
total: __props.total
|
|
72
|
+
}, _ctx.$attrs), null, 16, ["layout", "total"])) : createCommentVNode("", true)
|
|
73
|
+
], 2);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
|
|
78
|
+
/* unplugin-vue-components disabled */const style0 = {
|
|
79
|
+
"explorer-footer": "_explorer-footer_1szke_1"
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
const cssModules = {
|
|
83
|
+
"$style": style0
|
|
84
|
+
};
|
|
85
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
86
|
+
|
|
87
|
+
const __vite_glob_0_22 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
88
|
+
__proto__: null,
|
|
89
|
+
default: Component
|
|
90
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
91
|
+
|
|
92
|
+
export { Component as C, __vite_glob_0_22 as _ };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { IExplorerFooterProps } from './explorer-footer';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {}): any;
|
|
6
|
+
};
|
|
7
|
+
refs: {};
|
|
8
|
+
rootEl: HTMLDivElement;
|
|
9
|
+
};
|
|
10
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
11
|
+
declare const __VLS_component: import('vue').DefineComponent<IExplorerFooterProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IExplorerFooterProps> & Readonly<{}>, {
|
|
12
|
+
layout: string;
|
|
13
|
+
paddingTop: number;
|
|
14
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IButtonProps } from '../button/button';
|
|
2
|
+
export interface IExplorerListItem<T = any> {
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: string;
|
|
5
|
+
value: string | number;
|
|
6
|
+
original?: T;
|
|
7
|
+
}
|
|
8
|
+
export interface IExplorerListProps {
|
|
9
|
+
data?: IExplorerListItem[];
|
|
10
|
+
actions?: ('create' | 'modify' | 'remove')[];
|
|
11
|
+
filterMethod?: (keyword: string, item: IExplorerListItem) => boolean;
|
|
12
|
+
emptyText?: string;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
loadingText?: string;
|
|
15
|
+
highlightCurrent?: boolean;
|
|
16
|
+
confirmParams?: (item: IExplorerListItem) => IButtonProps['confirm'];
|
|
17
|
+
}
|
|
18
|
+
export interface IExplorerListEmits {
|
|
19
|
+
(e: 'itemClick', value: string | number, item: IExplorerListItem, event: MouseEvent): void;
|
|
20
|
+
(e: 'create', value: string | number, item: IExplorerListItem): void;
|
|
21
|
+
(e: 'modify', value: string | number, item: IExplorerListItem): void;
|
|
22
|
+
(e: 'remove', value: string | number, item: IExplorerListItem): void;
|
|
23
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
import { defineComponent, ref, computed, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, Fragment, renderList, unref, normalizeClass, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode } from 'vue';
|
|
4
|
+
import { Loading } from '@element-plus/icons-vue';
|
|
5
|
+
import { C as Component$3 } from '../button/button.mjs';
|
|
6
|
+
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
7
|
+
import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
|
|
8
|
+
import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
|
|
9
|
+
import { E as ElIcon } from '../../chunk/D1MHFKtN.mjs';
|
|
10
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
11
|
+
|
|
12
|
+
const _hoisted_1 = ["onClick"];
|
|
13
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "explorer-list",
|
|
15
|
+
props: {
|
|
16
|
+
data: { default: () => [] },
|
|
17
|
+
actions: { default: () => [] },
|
|
18
|
+
filterMethod: {},
|
|
19
|
+
emptyText: { default: "没有数据" },
|
|
20
|
+
loading: { type: Boolean },
|
|
21
|
+
loadingText: { default: "数据加载中..." },
|
|
22
|
+
highlightCurrent: { type: Boolean, default: true },
|
|
23
|
+
confirmParams: { type: Function, default: (item) => {
|
|
24
|
+
return { msg: `确定要删除 ${item.label} 吗?` };
|
|
25
|
+
} }
|
|
26
|
+
},
|
|
27
|
+
emits: ["itemClick", "create", "modify", "remove"],
|
|
28
|
+
setup(__props, { emit: __emit }) {
|
|
29
|
+
const props = __props;
|
|
30
|
+
const emits = __emit;
|
|
31
|
+
const { filterKeyword } = injectExplorerPanelState();
|
|
32
|
+
const actived = ref();
|
|
33
|
+
const filterMethod = props.filterMethod || ((keyword, item) => {
|
|
34
|
+
return item.label.toLowerCase().includes(keyword.toLowerCase());
|
|
35
|
+
});
|
|
36
|
+
const myData = computed(() => {
|
|
37
|
+
return filterKeyword.value ? props.data.filter((item) => filterMethod(filterKeyword.value, item)) : props.data;
|
|
38
|
+
});
|
|
39
|
+
const isEmpty = computed(() => myData.value.length === 0);
|
|
40
|
+
function handleClick(item, e) {
|
|
41
|
+
if (!props.highlightCurrent) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
actived.value = item.value;
|
|
45
|
+
emits("itemClick", item.value, item, e);
|
|
46
|
+
}
|
|
47
|
+
return (_ctx, _cache) => {
|
|
48
|
+
const _component_ElIcon = ElIcon;
|
|
49
|
+
return openBlock(), createBlock(Component$1, { always: "" }, {
|
|
50
|
+
default: withCtx(() => [
|
|
51
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(unref(myData), (item, index) => {
|
|
52
|
+
return openBlock(), createElementBlock("div", {
|
|
53
|
+
key: item.value,
|
|
54
|
+
class: normalizeClass([_ctx.$style.item, { [_ctx.$style.active]: unref(actived) === item.value }]),
|
|
55
|
+
onClick: (e) => handleClick(item, e)
|
|
56
|
+
}, [
|
|
57
|
+
createElementVNode("div", {
|
|
58
|
+
class: normalizeClass(_ctx.$style.label)
|
|
59
|
+
}, [
|
|
60
|
+
renderSlot(_ctx.$slots, "default", {
|
|
61
|
+
data: item,
|
|
62
|
+
index
|
|
63
|
+
}, () => [
|
|
64
|
+
item.icon ? (openBlock(), createBlock(Component$2, {
|
|
65
|
+
key: 0,
|
|
66
|
+
name: item.icon,
|
|
67
|
+
class: normalizeClass(_ctx.$style.icon)
|
|
68
|
+
}, null, 8, ["name", "class"])) : createCommentVNode("", true),
|
|
69
|
+
createTextVNode(toDisplayString(item.label), 1)
|
|
70
|
+
])
|
|
71
|
+
], 2),
|
|
72
|
+
__props.actions.length ? (openBlock(), createElementBlock("div", {
|
|
73
|
+
key: 0,
|
|
74
|
+
class: normalizeClass(_ctx.$style.actions)
|
|
75
|
+
}, [
|
|
76
|
+
__props.actions.includes("create") ? (openBlock(), createBlock(Component$3, {
|
|
77
|
+
key: 0,
|
|
78
|
+
title: "新增",
|
|
79
|
+
type: "success",
|
|
80
|
+
link: "",
|
|
81
|
+
icon: { type: "el", name: "Plus" },
|
|
82
|
+
stop: "",
|
|
83
|
+
onClick: ($event) => emits("create", item.value, item)
|
|
84
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
85
|
+
__props.actions.includes("modify") ? (openBlock(), createBlock(Component$3, {
|
|
86
|
+
key: 1,
|
|
87
|
+
title: "修改",
|
|
88
|
+
type: "primary",
|
|
89
|
+
link: "",
|
|
90
|
+
icon: { type: "el", name: "Edit" },
|
|
91
|
+
stop: "",
|
|
92
|
+
onClick: ($event) => emits("modify", item.value, item)
|
|
93
|
+
}, null, 8, ["onClick"])) : createCommentVNode("", true),
|
|
94
|
+
__props.actions.includes("remove") ? (openBlock(), createBlock(Component$3, {
|
|
95
|
+
key: 2,
|
|
96
|
+
title: "删除",
|
|
97
|
+
type: "danger",
|
|
98
|
+
link: "",
|
|
99
|
+
icon: { type: "el", name: "Delete" },
|
|
100
|
+
confirm: __props.confirmParams(item),
|
|
101
|
+
stop: "",
|
|
102
|
+
onClick: ($event) => emits("remove", item.value, item)
|
|
103
|
+
}, null, 8, ["confirm", "onClick"])) : createCommentVNode("", true)
|
|
104
|
+
], 2)) : createCommentVNode("", true)
|
|
105
|
+
], 10, _hoisted_1);
|
|
106
|
+
}), 128)),
|
|
107
|
+
unref(isEmpty) && !__props.loading ? (openBlock(), createElementBlock("div", {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: normalizeClass(_ctx.$style.empty)
|
|
110
|
+
}, toDisplayString(__props.emptyText), 3)) : createCommentVNode("", true),
|
|
111
|
+
__props.loading ? (openBlock(), createElementBlock("div", {
|
|
112
|
+
key: 1,
|
|
113
|
+
class: normalizeClass(_ctx.$style.loading)
|
|
114
|
+
}, [
|
|
115
|
+
createVNode(_component_ElIcon, { class: "is-loading" }, {
|
|
116
|
+
default: withCtx(() => [
|
|
117
|
+
createVNode(unref(Loading))
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
}),
|
|
121
|
+
createTextVNode(toDisplayString(__props.loadingText), 1)
|
|
122
|
+
], 2)) : createCommentVNode("", true)
|
|
123
|
+
]),
|
|
124
|
+
_: 3
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
|
|
130
|
+
/* unplugin-vue-components disabled */const item = "_item_1nz9u_1";
|
|
131
|
+
const actions = "_actions_1nz9u_15";
|
|
132
|
+
const active = "_active_1nz9u_19";
|
|
133
|
+
const label = "_label_1nz9u_24";
|
|
134
|
+
const icon = "_icon_1nz9u_30";
|
|
135
|
+
const empty = "_empty_1nz9u_43";
|
|
136
|
+
const loading = "_loading_1nz9u_44";
|
|
137
|
+
const style0 = {
|
|
138
|
+
item: item,
|
|
139
|
+
actions: actions,
|
|
140
|
+
active: active,
|
|
141
|
+
label: label,
|
|
142
|
+
icon: icon,
|
|
143
|
+
empty: empty,
|
|
144
|
+
loading: loading
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const cssModules = {
|
|
148
|
+
"$style": style0
|
|
149
|
+
};
|
|
150
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
151
|
+
|
|
152
|
+
const __vite_glob_0_23 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
153
|
+
__proto__: null,
|
|
154
|
+
default: Component
|
|
155
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
156
|
+
|
|
157
|
+
export { Component as C, __vite_glob_0_23 as _ };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { IExplorerListItem, IExplorerListProps } from './explorer-list';
|
|
2
|
+
declare function __VLS_template(): {
|
|
3
|
+
attrs: Partial<{}>;
|
|
4
|
+
slots: {
|
|
5
|
+
default?(_: {
|
|
6
|
+
data: IExplorerListItem<any>;
|
|
7
|
+
index: number;
|
|
8
|
+
}): any;
|
|
9
|
+
};
|
|
10
|
+
refs: {};
|
|
11
|
+
rootEl: any;
|
|
12
|
+
};
|
|
13
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
14
|
+
declare const __VLS_component: import('vue').DefineComponent<IExplorerListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
15
|
+
create: (value: string | number, item: IExplorerListItem<any>) => any;
|
|
16
|
+
modify: (value: string | number, item: IExplorerListItem<any>) => any;
|
|
17
|
+
remove: (value: string | number, item: IExplorerListItem<any>) => any;
|
|
18
|
+
itemClick: (value: string | number, item: IExplorerListItem<any>, event: MouseEvent) => any;
|
|
19
|
+
}, string, import('vue').PublicProps, Readonly<IExplorerListProps> & Readonly<{
|
|
20
|
+
onCreate?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
|
|
21
|
+
onModify?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
|
|
22
|
+
onRemove?: ((value: string | number, item: IExplorerListItem<any>) => any) | undefined;
|
|
23
|
+
onItemClick?: ((value: string | number, item: IExplorerListItem<any>, event: MouseEvent) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
data: IExplorerListItem[];
|
|
26
|
+
loadingText: string;
|
|
27
|
+
emptyText: string;
|
|
28
|
+
highlightCurrent: boolean;
|
|
29
|
+
actions: ("create" | "modify" | "remove")[];
|
|
30
|
+
confirmParams: (item: IExplorerListItem) => import('../button/button').IButtonProps["confirm"];
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
32
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/* source: src/components/explorer-list/explorer-list.vue */
|
|
2
|
+
._item_1nz9u_1 {
|
|
3
|
+
padding: 4px 8px;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-between;
|
|
7
|
+
align-items: center;
|
|
8
|
+
font-size: var(--el-font-size-base);
|
|
9
|
+
color: var(--el-text-color-regular);
|
|
10
|
+
min-height: 32px;
|
|
11
|
+
box-sizing: border-box;
|
|
12
|
+
}
|
|
13
|
+
._item_1nz9u_1:hover {
|
|
14
|
+
background-color: var(--el-color-primary-light-9);
|
|
15
|
+
}
|
|
16
|
+
._item_1nz9u_1:hover ._actions_1nz9u_15 {
|
|
17
|
+
display: inline-flex;
|
|
18
|
+
align-items: flex-start;
|
|
19
|
+
}
|
|
20
|
+
._item_1nz9u_1._active_1nz9u_19 {
|
|
21
|
+
color: var(--el-color-primary);
|
|
22
|
+
background-color: var(--el-color-primary-light-9);
|
|
23
|
+
}
|
|
24
|
+
._label_1nz9u_24 {
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
}
|
|
29
|
+
._icon_1nz9u_30 {
|
|
30
|
+
margin-right: 4px;
|
|
31
|
+
}
|
|
32
|
+
._actions_1nz9u_15 {
|
|
33
|
+
display: none;
|
|
34
|
+
column-gap: 4px;
|
|
35
|
+
}
|
|
36
|
+
._actions_1nz9u_15 > button {
|
|
37
|
+
margin-left: 0 !important;
|
|
38
|
+
font-size: 1.2em;
|
|
39
|
+
}
|
|
40
|
+
._empty_1nz9u_43,
|
|
41
|
+
._loading_1nz9u_44 {
|
|
42
|
+
padding: 4px 8px;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
column-gap: 4px;
|
|
46
|
+
color: var(--el-text-color-secondary);
|
|
47
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Reactive, Ref } from 'vue';
|
|
2
|
+
import { IColumnConfig } from '../explorer-column-table/explorer-column-table';
|
|
3
|
+
export interface IExplorerPanelProps {
|
|
4
|
+
resizable?: boolean;
|
|
5
|
+
padding?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface IExplorerPanelState {
|
|
8
|
+
fullscreenTarget: Ref<HTMLElement>;
|
|
9
|
+
columnConfig: Ref<IColumnConfig[]>;
|
|
10
|
+
filterKeyword: Ref<string>;
|
|
11
|
+
actions: Reactive<Record<string, () => void>>;
|
|
12
|
+
}
|
|
13
|
+
export declare const KEY_NAME: unique symbol;
|
|
14
|
+
export declare const injectExplorerPanelState: () => IExplorerPanelState;
|