@dt-frames/ui 2.0.0 → 2.0.2
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/es/assets/data/icons/actions.d.ts +1 -0
- package/es/assets/data/icons/actions.ts +423 -0
- package/es/assets/data/icons/code.d.ts +1 -0
- package/es/assets/data/icons/code.ts +10 -0
- package/es/assets/data/icons/commuticate.d.ts +1 -0
- package/es/assets/data/icons/commuticate.ts +182 -0
- package/es/assets/data/icons/currency.d.ts +1 -0
- package/es/assets/data/icons/currency.ts +44 -0
- package/es/assets/data/icons/devices.d.ts +1 -0
- package/es/assets/data/icons/devices.ts +126 -0
- package/es/assets/data/icons/edit.d.ts +1 -0
- package/es/assets/data/icons/edit.ts +163 -0
- package/es/assets/data/icons/file.d.ts +1 -0
- package/es/assets/data/icons/file.ts +99 -0
- package/es/assets/data/icons/math.d.ts +1 -0
- package/es/assets/data/icons/math.ts +53 -0
- package/es/assets/data/icons/message.d.ts +1 -0
- package/es/assets/data/icons/message.ts +68 -0
- package/es/assets/data/icons/navigate.d.ts +1 -0
- package/es/assets/data/icons/navigate.ts +181 -0
- package/es/assets/data/icons/other.d.ts +1 -0
- package/es/assets/data/icons/other.ts +324 -0
- package/es/assets/data/index.d.ts +4 -0
- package/es/assets/data/index.ts +58 -0
- package/es/assets/icons/iconfont.css +7266 -0
- package/es/assets/icons/iconfont.eot +0 -0
- package/es/assets/icons/iconfont.svg +5445 -0
- package/es/assets/icons/iconfont.ttf +0 -0
- package/es/assets/icons/iconfont.woff +0 -0
- package/es/assets/icons/iconfont.woff2 +0 -0
- package/es/assets/imgs/header/avatar.png +0 -0
- package/es/assets/imgs/logo/logo.png +0 -0
- package/es/assets/imgs/table/empty.png +0 -0
- package/es/assets/locales/en.d.ts +101 -0
- package/es/assets/locales/en.ts +101 -0
- package/es/assets/locales/index.d.ts +2 -0
- package/es/assets/locales/index.ts +5 -0
- package/es/assets/locales/zh.d.ts +103 -0
- package/es/assets/locales/zh.ts +103 -0
- package/es/components/container/index.d.ts +93 -0
- package/es/components/container/index.js +288 -0
- package/es/components/container/index.less +64 -0
- package/es/components/container/src/components/bar.d.ts +14 -0
- package/es/components/container/src/components/scroll-bar.d.ts +70 -0
- package/es/components/container/src/hooks/scroll.d.ts +10 -0
- package/es/components/container/src/scroll-container.d.ts +76 -0
- package/es/components/container/src/slot-container.d.ts +18 -0
- package/es/components/container/src/types/scroll.type.d.ts +22 -0
- package/es/components/container/src/utils/scroll.d.ts +5 -0
- package/es/components/curd/index.d.ts +2 -0
- package/es/components/curd/index.js +3098 -0
- package/es/components/curd/src/components/Curd.d.ts +1451 -0
- package/es/components/curd/src/hooks/useCurd.d.ts +112 -0
- package/es/components/curd/src/props.d.ts +188 -0
- package/es/components/curd/src/types/curd.type.d.ts +19 -0
- package/es/components/drawer/index.d.ts +8041 -0
- package/es/components/drawer/index.js +837 -0
- package/es/components/drawer/index.less +10 -0
- package/es/components/drawer/src/components/DrawerFooter.d.ts +139 -0
- package/es/components/drawer/src/components/DrawerHeader.d.ts +13 -0
- package/es/components/drawer/src/hooks/useDrawer.d.ts +3 -0
- package/es/components/drawer/src/index.d.ts +8043 -0
- package/es/components/drawer/src/props.d.ts +64 -0
- package/es/components/drawer/src/types/index.type.d.ts +48 -0
- package/es/components/form/index.d.ts +3367 -0
- package/es/components/form/index.js +1895 -0
- package/es/components/form/index.less +141 -0
- package/es/components/form/src/components/FormButtons.d.ts +88 -0
- package/es/components/form/src/components/FormItem.d.ts +313 -0
- package/es/components/form/src/components/componentMap.d.ts +4 -0
- package/es/components/form/src/components/formIcon.d.ts +1231 -0
- package/es/components/form/src/components/formInputUseDialog.d.ts +911 -0
- package/es/components/form/src/components/index.d.ts +4 -0
- package/es/components/form/src/components/radioButton.d.ts +34 -0
- package/es/components/form/src/enums/index.d.ts +7 -0
- package/es/components/form/src/hooks/helper.d.ts +14 -0
- package/es/components/form/src/hooks/useForm.d.ts +6 -0
- package/es/components/form/src/hooks/useFormActions.d.ts +12 -0
- package/es/components/form/src/hooks/useFormEvent.d.ts +25 -0
- package/es/components/form/src/hooks/useFormValue.d.ts +3 -0
- package/es/components/form/src/hooks/useFormValues.d.ts +11 -0
- package/es/components/form/src/hooks/useLabelWidth.d.ts +22 -0
- package/es/components/form/src/index.d.ts +3113 -0
- package/es/components/form/src/props.d.ts +133 -0
- package/es/components/form/src/types/actions.type.d.ts +15 -0
- package/es/components/form/src/types/form.type.d.ts +70 -0
- package/es/components/icons/index.d.ts +3 -0
- package/es/components/icons/index.js +1969 -0
- package/es/components/icons/index.less +42 -0
- package/es/components/icons/src/pick-icon.d.ts +455 -0
- package/es/components/icons/src/svg-icon.d.ts +44 -0
- package/es/components/modal/index.d.ts +3 -0
- package/es/components/modal/index.js +1192 -0
- package/es/components/modal/index.less +54 -0
- package/es/components/modal/src/components/CloseIcon.d.ts +40 -0
- package/es/components/modal/src/components/Modal.d.ts +215 -0
- package/es/components/modal/src/components/ModalFooter.d.ts +139 -0
- package/es/components/modal/src/components/ModalWrap.d.ts +153 -0
- package/es/components/modal/src/hooks/useDrag.d.ts +7 -0
- package/es/components/modal/src/hooks/useFullScreen.d.ts +6 -0
- package/es/components/modal/src/hooks/useModal.d.ts +5 -0
- package/es/components/modal/src/index.d.ts +881 -0
- package/es/components/modal/src/props.d.ts +100 -0
- package/es/components/modal/src/types/modal.type.d.ts +17 -0
- package/es/components/source/hooks/useDownload.d.ts +8 -0
- package/es/components/source/hooks/useSource.d.ts +40 -0
- package/es/components/source/index.d.ts +2 -0
- package/es/components/source/index.js +331 -0
- package/es/components/source/types/source.type.d.ts +37 -0
- package/es/components/source/utils/index.d.ts +8 -0
- package/es/components/table/index.d.ts +3 -0
- package/es/components/table/index.js +4414 -0
- package/es/components/table/index.less +183 -0
- package/es/components/table/src/components/TableAction.d.ts +70 -0
- package/es/components/table/src/components/TableHeader.d.ts +1243 -0
- package/es/components/table/src/components/TableRender.d.ts +13 -0
- package/es/components/table/src/components/editTable/CellComponent.d.ts +22 -0
- package/es/components/table/src/components/editTable/EditTableCell.d.ts +93 -0
- package/es/components/table/src/components/editTable/componentMap.d.ts +4 -0
- package/es/components/table/src/components/editTable/index.d.ts +9 -0
- package/es/components/table/src/components/editTable/props.d.ts +27 -0
- package/es/components/table/src/components/tableSetting/Column.d.ts +69 -0
- package/es/components/table/src/components/tableSetting/Download.d.ts +1029 -0
- package/es/components/table/src/components/tableSetting/DownloadCtrl.d.ts +995 -0
- package/es/components/table/src/components/tableSetting/Fullscreen.d.ts +22 -0
- package/es/components/table/src/components/tableSetting/index.d.ts +1137 -0
- package/es/components/table/src/hooks/useColumns.d.ts +14 -0
- package/es/components/table/src/hooks/useCustomRow.d.ts +20 -0
- package/es/components/table/src/hooks/useDataSource.d.ts +16 -0
- package/es/components/table/src/hooks/useHeader.d.ts +8 -0
- package/es/components/table/src/hooks/useHeaderCode.d.ts +3 -0
- package/es/components/table/src/hooks/useLoading.d.ts +6 -0
- package/es/components/table/src/hooks/usePagination.d.ts +122 -0
- package/es/components/table/src/hooks/useRow.d.ts +5 -0
- package/es/components/table/src/hooks/useRowSelection.d.ts +12 -0
- package/es/components/table/src/hooks/useTable.d.ts +9 -0
- package/es/components/table/src/hooks/useTableInstance.d.ts +16 -0
- package/es/components/table/src/hooks/useTableScroll.d.ts +13 -0
- package/es/components/table/src/index.d.ts +990 -0
- package/es/components/table/src/props.d.ts +244 -0
- package/es/components/table/src/types/actions.type.d.ts +22 -0
- package/es/components/table/src/types/header.type.d.ts +23 -0
- package/es/components/table/src/types/table.type.d.ts +92 -0
- package/es/directives/icon.d.ts +2 -0
- package/es/directives/index.d.ts +7 -0
- package/es/directives/index.js +2015 -0
- package/es/directives/permission.d.ts +2 -0
- package/es/global.d.ts +7 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +3242 -0
- package/es/theme/index.d.ts +10 -0
- package/es/theme/index.js +3242 -0
- package/es/theme/index.less +603 -0
- package/es/theme/src/components/content/index.d.ts +27 -0
- package/es/theme/src/components/feature/back-top.d.ts +5 -0
- package/es/theme/src/components/feature/index.d.ts +7 -0
- package/es/theme/src/components/footer/index.d.ts +31 -0
- package/es/theme/src/components/header/components/bread-crumb.d.ts +6 -0
- package/es/theme/src/components/header/components/fullscreen.d.ts +5 -0
- package/es/theme/src/components/header/components/index.d.ts +11 -0
- package/es/theme/src/components/header/components/lang-picker.d.ts +23 -0
- package/es/theme/src/components/header/components/logo.d.ts +36 -0
- package/es/theme/src/components/header/components/menu-filter.d.ts +22 -0
- package/es/theme/src/components/header/components/notify.d.ts +23 -0
- package/es/theme/src/components/header/components/setting-theme.d.ts +222 -0
- package/es/theme/src/components/header/components/size.d.ts +282 -0
- package/es/theme/src/components/header/components/theme-drawer/feature.d.ts +138 -0
- package/es/theme/src/components/header/components/theme-drawer/index.d.ts +3 -0
- package/es/theme/src/components/header/components/theme-drawer/menu-type.d.ts +16 -0
- package/es/theme/src/components/header/components/theme-drawer/select.d.ts +58 -0
- package/es/theme/src/components/header/components/theme-drawer/switch.d.ts +49 -0
- package/es/theme/src/components/header/components/trigger.d.ts +10 -0
- package/es/theme/src/components/header/components/user-info.d.ts +36 -0
- package/es/theme/src/components/header/helper/change-theme.d.ts +13 -0
- package/es/theme/src/components/header/helper/menu-tree.d.ts +3 -0
- package/es/theme/src/components/header/index.d.ts +698 -0
- package/es/theme/src/components/header/multiple-header.d.ts +787 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu-item.d.ts +62 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-menu.d.ts +207 -0
- package/es/theme/src/components/sider/components/basic-menu/basic-sub-menu-item.d.ts +127 -0
- package/es/theme/src/components/sider/components/basic-menu/menu-item-content.d.ts +26 -0
- package/es/theme/src/components/sider/components/drag-bar.d.ts +14 -0
- package/es/theme/src/components/sider/components/layout-menu.d.ts +22 -0
- package/es/theme/src/components/sider/components/props.d.ts +69 -0
- package/es/theme/src/components/sider/components/sider-trigger.d.ts +18 -0
- package/es/theme/src/components/sider/helper/sider.d.ts +12 -0
- package/es/theme/src/components/sider/helper/split-menu.d.ts +10 -0
- package/es/theme/src/components/sider/index.d.ts +70 -0
- package/es/theme/src/components/tabs/components/TabContent.d.ts +6 -0
- package/es/theme/src/components/tabs/components/TabRedo.d.ts +21 -0
- package/es/theme/src/components/tabs/components/index.d.ts +3 -0
- package/es/theme/src/components/tabs/hooks/useMultifyTabs.d.ts +7 -0
- package/es/theme/src/components/tabs/hooks/useTabDropdown.d.ts +6 -0
- package/es/theme/src/components/tabs/index.d.ts +63 -0
- package/es/theme/src/components/tabs/types/tabs.type.d.ts +7 -0
- package/es/theme/src/enums/index.d.ts +1 -0
- package/es/theme/src/enums/theme.enum.d.ts +33 -0
- package/es/theme/src/hooks/index.d.ts +6 -0
- package/es/theme/src/hooks/useDragLine.d.ts +2 -0
- package/es/theme/src/hooks/useHeader.d.ts +25 -0
- package/es/theme/src/hooks/useMenu.d.ts +27 -0
- package/es/theme/src/hooks/useMultifyTab.d.ts +7 -0
- package/es/theme/src/hooks/useOpenKeys.d.ts +7 -0
- package/es/theme/src/hooks/useTheme.d.ts +9 -0
- package/es/theme/src/index.d.ts +1644 -0
- package/es/theme/src/setting/theme.setting.d.ts +2 -0
- package/es/theme/src/stores/index.d.ts +3 -0
- package/es/theme/src/stores/routeReuse.store.d.ts +23 -0
- package/es/theme/src/stores/theme.store.d.ts +15 -0
- package/es/theme/src/types/index.d.ts +3 -0
- package/es/theme/src/types/menu.type.d.ts +15 -0
- package/es/theme/src/types/theme.type.d.ts +60 -0
- package/es/utils/withInstall.d.ts +4 -0
- package/index.d.ts +10 -0
- package/index.js +34 -0
- package/package.json +1 -5
- package/tailwind.config.cjs +11 -0
- package/tsconfig.json +41 -0
- package/tsconfig.node.json +9 -0
- package/vite.config.ts +78 -0
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
@import '../components/container/index.less';
|
|
2
|
+
|
|
3
|
+
@primary-color: #269ac1;
|
|
4
|
+
@header-bg-color: #fff;
|
|
5
|
+
@header-bg-dark-color: #3c4252; // #001529
|
|
6
|
+
@header-light-bottom-border-color: #eee;
|
|
7
|
+
@header-height: 48px;
|
|
8
|
+
@logo-width: 32px;
|
|
9
|
+
@logo-height: 32px;
|
|
10
|
+
|
|
11
|
+
@text-color-base: #333;
|
|
12
|
+
@menu-bg-color: #001529;
|
|
13
|
+
@menu-sub-bg-color: #00061a;
|
|
14
|
+
@menu-mix-bg-color: #fff;
|
|
15
|
+
@menu-mix-sub-bg-color: #fff;
|
|
16
|
+
@menu-mix-select-bg-color: #269ac112;
|
|
17
|
+
@menu-item-height: 44px;
|
|
18
|
+
|
|
19
|
+
@border-color-base: #d9d9d9;
|
|
20
|
+
|
|
21
|
+
@page-bg-color: #f0f2f5;
|
|
22
|
+
@content-bg: #f4f7f9;
|
|
23
|
+
|
|
24
|
+
@white: #fff;
|
|
25
|
+
|
|
26
|
+
@side-drag-z-index: 20;
|
|
27
|
+
|
|
28
|
+
// 路由复用
|
|
29
|
+
@multiple-height: 30px;
|
|
30
|
+
@tabs-background: #fff;
|
|
31
|
+
|
|
32
|
+
// 滚动条边框
|
|
33
|
+
@border-color-dark: #b6b7b9;
|
|
34
|
+
|
|
35
|
+
/* 滚动条美化 */
|
|
36
|
+
::-webkit-scrollbar {
|
|
37
|
+
width: 7px;
|
|
38
|
+
height: 8px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
::-webkit-scrollbar-track {
|
|
42
|
+
background-color: rgb(0 0 0 / 5%);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
::-webkit-scrollbar-thumb {
|
|
46
|
+
background-color: rgb(144 147 153 / 30%);
|
|
47
|
+
border-radius: 2px;
|
|
48
|
+
box-shadow: inset 0 0 6px rgb(0 0 0 / 20%);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
::-webkit-scrollbar-thumb:hover {
|
|
52
|
+
background-color: @border-color-dark;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
.ant-btn.ant-btn-sm,
|
|
57
|
+
.ant-input-search-small .ant-btn.ant-btn-sm{
|
|
58
|
+
font-size: 13px;
|
|
59
|
+
height: 30px;
|
|
60
|
+
display: flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
justify-content: center;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.dt-theme{
|
|
66
|
+
.ant-input-sm{
|
|
67
|
+
height: 30px;
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.dt-theme-main {
|
|
72
|
+
background-color: @content-bg;
|
|
73
|
+
.ant-layout-content{
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.dt-page{
|
|
79
|
+
background: @page-bg-color;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.dt-header{
|
|
83
|
+
height: 48px;
|
|
84
|
+
line-height: 48px;
|
|
85
|
+
padding: 0;
|
|
86
|
+
|
|
87
|
+
&--light {
|
|
88
|
+
background-color: @header-bg-color !important;
|
|
89
|
+
border-bottom: 1px solid @header-light-bottom-border-color;
|
|
90
|
+
color: @text-color-base;
|
|
91
|
+
.dt_header_icon:hover{
|
|
92
|
+
background-color: rgba(175, 178, 184, 0.25)
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
&--dark {
|
|
97
|
+
background-color: @header-bg-dark-color !important;
|
|
98
|
+
.ant-menu-dark{
|
|
99
|
+
background-color: @header-bg-dark-color;
|
|
100
|
+
}
|
|
101
|
+
i.i, span{
|
|
102
|
+
color: @white;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.dt-sideBar{
|
|
108
|
+
background: @menu-bg-color;
|
|
109
|
+
|
|
110
|
+
.ant-layout-sider-children {
|
|
111
|
+
display: flex;
|
|
112
|
+
flex-direction: column;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.ant-menu{
|
|
116
|
+
background: @menu-bg-color;
|
|
117
|
+
|
|
118
|
+
.ant-menu-sub{
|
|
119
|
+
background: @menu-sub-bg-color;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.ant-menu-item, .ant-menu-submenu-title{
|
|
123
|
+
margin: 0;
|
|
124
|
+
height: @menu-item-height !important;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
&--fixed{
|
|
129
|
+
position: fixed;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&--mix{
|
|
133
|
+
height: calc(100% - @header-height);
|
|
134
|
+
top: @header-height;
|
|
135
|
+
background: @menu-mix-bg-color;
|
|
136
|
+
border-right: 1px solid #f0f0f0;
|
|
137
|
+
|
|
138
|
+
.ant-menu{
|
|
139
|
+
background: @menu-mix-bg-color;
|
|
140
|
+
border-right: none;
|
|
141
|
+
.ant-menu-sub{
|
|
142
|
+
background: @menu-mix-sub-bg-color;
|
|
143
|
+
}
|
|
144
|
+
.ant-menu-item-selected{
|
|
145
|
+
background: @menu-mix-select-bg-color;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.ant-layout-sider-trigger{
|
|
151
|
+
background: @menu-mix-bg-color;
|
|
152
|
+
border-right: 1px solid #f0f0f0;
|
|
153
|
+
border-top: 1px solid #f0f0f0;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.dt-menu-item{
|
|
157
|
+
display: flex;
|
|
158
|
+
align-items: center;
|
|
159
|
+
height: @menu-item-height;
|
|
160
|
+
font-size: 13px;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
&.ant-layout-sider-collapsed{
|
|
164
|
+
.dt-menu-item > span{
|
|
165
|
+
opacity: 0;
|
|
166
|
+
}
|
|
167
|
+
.menu-icon{
|
|
168
|
+
font-size: 18px;
|
|
169
|
+
height: 18px;
|
|
170
|
+
line-height: 18px;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.dt-darg-bar{
|
|
175
|
+
position: fixed;
|
|
176
|
+
top: 0;
|
|
177
|
+
z-index: @side-drag-z-index;
|
|
178
|
+
width: 2px;
|
|
179
|
+
height: 100%;
|
|
180
|
+
cursor: col-resize;
|
|
181
|
+
border-top: none;
|
|
182
|
+
border-bottom: none;
|
|
183
|
+
|
|
184
|
+
&--hide {
|
|
185
|
+
display: none;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
&:hover {
|
|
189
|
+
background-color: @primary-color;
|
|
190
|
+
box-shadow: 0 0 4px 0 rgb(28 36 56 / 15%);
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.dt-menu-item{
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
font-size: 13px;
|
|
200
|
+
.menu-icon {
|
|
201
|
+
margin-right: 6px;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.dt-sideBar .ant-menu-inline .ant-menu-item, .dt-sideBar .ant-menu-inline .ant-menu-submenu-title {
|
|
206
|
+
width: 100%;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.ant-layout-sider-dark, .ant-menu-dark{
|
|
210
|
+
.ant-menu-item-active > span > span,
|
|
211
|
+
.ant-menu-item-selected > span > span,
|
|
212
|
+
.ant-menu-submenu-active > div > span > span,
|
|
213
|
+
.ant-menu-submenu-selected > div > span > span,
|
|
214
|
+
.ant-menu-submenu-selected > span > span{
|
|
215
|
+
&>.menu-icon {
|
|
216
|
+
color: #fff !important;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.ant-menu-submenu-selected.ant-menu-submenu-horizontal {
|
|
221
|
+
background: none;
|
|
222
|
+
&::after{
|
|
223
|
+
bottom: 4px;
|
|
224
|
+
border-bottom: 4px solid @primary-color;
|
|
225
|
+
border-radius: 1px;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.dt-menu-item {
|
|
230
|
+
display: flex;
|
|
231
|
+
span{
|
|
232
|
+
font-size: 13px;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
.menu-icon{
|
|
236
|
+
color: rgba(255,255,255,0.65);
|
|
237
|
+
padding: 0;
|
|
238
|
+
margin-right: 6px;
|
|
239
|
+
height: 40px;
|
|
240
|
+
width: 28px;
|
|
241
|
+
text-align: center;
|
|
242
|
+
font-size: 16px;
|
|
243
|
+
height: 16px;
|
|
244
|
+
line-height: 18px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.dt-split-menu.ant-menu-horizontal .ant-menu-item-selected {
|
|
249
|
+
background-color: @primary-color;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.dt-header{
|
|
253
|
+
height: @header-height;
|
|
254
|
+
line-height: @header-height;
|
|
255
|
+
color: @white;
|
|
256
|
+
|
|
257
|
+
.i{
|
|
258
|
+
font-size: 1.125rem;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.dt-logo{
|
|
263
|
+
height: @header-height;
|
|
264
|
+
flex: 0 0 @header-height;
|
|
265
|
+
&.light {
|
|
266
|
+
border-bottom: 1px solid @border-color-base;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&.light &__title {
|
|
270
|
+
color: @primary-color;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
&.dark &__title {
|
|
274
|
+
color: @white;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
img{
|
|
278
|
+
width: @logo-width;
|
|
279
|
+
height: @logo-height;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.dt-menu-filter{
|
|
284
|
+
input{
|
|
285
|
+
border-top-left-radius: 16px;
|
|
286
|
+
border-bottom-left-radius: 16px;
|
|
287
|
+
padding-left: 14px;
|
|
288
|
+
font-size: 13px;
|
|
289
|
+
width: 150px !important;
|
|
290
|
+
border-right: none;
|
|
291
|
+
}
|
|
292
|
+
.ant-btn{
|
|
293
|
+
border-left: none;
|
|
294
|
+
border-top-right-radius: 16px !important;
|
|
295
|
+
border-bottom-right-radius: 16px !important;
|
|
296
|
+
padding-right: 10px;
|
|
297
|
+
padding-left: 5px;
|
|
298
|
+
width: 30px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.ant-input:focus,
|
|
302
|
+
.ant-input:hover,
|
|
303
|
+
.ant-btn:focus,
|
|
304
|
+
.ant-btn:hover{
|
|
305
|
+
border-color: #d9d9d9;
|
|
306
|
+
box-shadow: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.ant-empty-image{
|
|
310
|
+
height: 40px;
|
|
311
|
+
svg{
|
|
312
|
+
width: 100%;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.ant-input-group-addon {
|
|
317
|
+
background-color: inherit;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&__popover .ant-popover-inner-content{
|
|
321
|
+
width: 180px;
|
|
322
|
+
max-height: 400px;
|
|
323
|
+
height: 220px;
|
|
324
|
+
padding: 0;
|
|
325
|
+
overflow-y: auto;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
&__popover .ant-empty-description{
|
|
329
|
+
font-size: 13px;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
.dt-setting-theme{
|
|
334
|
+
&__tips {
|
|
335
|
+
border: 1px solid @primary-color;
|
|
336
|
+
color: @primary-color;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
.dt-lang-picker{
|
|
341
|
+
&__popover .ant-popover-inner-content{
|
|
342
|
+
width: 120px;
|
|
343
|
+
padding: 4px 0;
|
|
344
|
+
|
|
345
|
+
.active{
|
|
346
|
+
color: @primary-color;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.dt-notify{
|
|
352
|
+
&__popover .ant-popover-inner-content {
|
|
353
|
+
width: 350px;
|
|
354
|
+
padding: 10px 0 0 0;
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
.dt-size {
|
|
359
|
+
&__popover .ant-popover-inner-content {
|
|
360
|
+
width: 120px;
|
|
361
|
+
padding: 4px 0;
|
|
362
|
+
|
|
363
|
+
.active{
|
|
364
|
+
color: @primary-color;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.dt-user-info{
|
|
370
|
+
&__popover .ant-popover-inner-content {
|
|
371
|
+
width: 120px;
|
|
372
|
+
padding: 4px 0;
|
|
373
|
+
|
|
374
|
+
.active{
|
|
375
|
+
color: @primary-color;
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.dt-menu-type {
|
|
381
|
+
&__list:hover{
|
|
382
|
+
border: 2px solid @primary-color;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
&__item {
|
|
386
|
+
&::before{
|
|
387
|
+
position: absolute;
|
|
388
|
+
content: "";
|
|
389
|
+
top: 0;
|
|
390
|
+
left: 0;
|
|
391
|
+
z-index: 1;
|
|
392
|
+
width: 33%;
|
|
393
|
+
height: 100%;
|
|
394
|
+
background-color: #273352;
|
|
395
|
+
}
|
|
396
|
+
&::after{
|
|
397
|
+
position: absolute;
|
|
398
|
+
content: "";
|
|
399
|
+
top: 0;
|
|
400
|
+
left: 0;
|
|
401
|
+
width: 100%;
|
|
402
|
+
height: 25%;
|
|
403
|
+
background-color: #fff;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
&__item--top-menu &__item {
|
|
408
|
+
&::before{
|
|
409
|
+
width: 0;
|
|
410
|
+
}
|
|
411
|
+
&::after{
|
|
412
|
+
background-color: #273352;
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
&__item--mix &__item {
|
|
417
|
+
&::before{
|
|
418
|
+
top: 25%;
|
|
419
|
+
height: 75%;
|
|
420
|
+
background-color: #fff;
|
|
421
|
+
}
|
|
422
|
+
&::after{
|
|
423
|
+
background-color: #273352;
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
&__item--active {
|
|
428
|
+
border: 2px solid @primary-color;
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
.dt-reuse-tabs {
|
|
434
|
+
.ant-tabs-small {
|
|
435
|
+
height: calc(@multiple-height + 2px);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
.ant-tabs-card{
|
|
439
|
+
.ant-tabs-nav{
|
|
440
|
+
padding-top: 2px;
|
|
441
|
+
height: calc(@multiple-height + 2px);
|
|
442
|
+
margin: 0;
|
|
443
|
+
background-color: @tabs-background;
|
|
444
|
+
border: 0;
|
|
445
|
+
box-shadow: none;
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
&::before{
|
|
449
|
+
border: none;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
.ant-tabs-nav-container {
|
|
453
|
+
height: @multiple-height;
|
|
454
|
+
padding-top: 2px;
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
.ant-tabs-card > .ant-tabs-nav .ant-tabs-tab{
|
|
459
|
+
height: calc(@multiple-height - 2px);
|
|
460
|
+
padding-right: 12px;
|
|
461
|
+
line-height: calc(@multiple-height - 2px);
|
|
462
|
+
color: @text-color-base;
|
|
463
|
+
background-color: @tabs-background;
|
|
464
|
+
transition: none;
|
|
465
|
+
|
|
466
|
+
span{
|
|
467
|
+
font-size: 12px;
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
&:hover {
|
|
471
|
+
.ant-tabs-tab-remove {
|
|
472
|
+
opacity: 1;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.ant-tabs-tab-remove{
|
|
477
|
+
width: 8px;
|
|
478
|
+
height: 10px;
|
|
479
|
+
font-size: 12px;
|
|
480
|
+
color: inherit;
|
|
481
|
+
opacity: 1;
|
|
482
|
+
transition: none;
|
|
483
|
+
margin-left: 8px;
|
|
484
|
+
margin-right: -9px;
|
|
485
|
+
align-items: center;
|
|
486
|
+
|
|
487
|
+
span{
|
|
488
|
+
display: block;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
&:hover {
|
|
492
|
+
svg {
|
|
493
|
+
width: 0.8em !important;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
svg {
|
|
498
|
+
fill: @text-color-base;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
|
|
502
|
+
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
|
503
|
+
&:hover {
|
|
504
|
+
color: @primary-color;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.ant-tabs-tab-active {
|
|
510
|
+
position: relative;
|
|
511
|
+
padding-left: 18px;
|
|
512
|
+
background: @primary-color !important;
|
|
513
|
+
border: 0;
|
|
514
|
+
transition: none;
|
|
515
|
+
|
|
516
|
+
span {
|
|
517
|
+
color: @white !important;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
.ant-tabs-tab-remove {
|
|
521
|
+
opacity: 1;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
svg {
|
|
525
|
+
width: 0.7em;
|
|
526
|
+
fill: @white !important;
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.ant-tabs-nav > div:nth-child(1) {
|
|
531
|
+
padding: 0 6px;
|
|
532
|
+
|
|
533
|
+
.ant-tabs-tab {
|
|
534
|
+
margin-right: 3px !important;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.ant-tabs-tab:not(.ant-tabs-tab-active) {
|
|
539
|
+
border: 1px solid #d9d9d9 !important;
|
|
540
|
+
.anticon-close {
|
|
541
|
+
font-size: 12px;
|
|
542
|
+
|
|
543
|
+
svg {
|
|
544
|
+
width: 0.6em;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
&--hide-close {
|
|
550
|
+
.ant-tabs-tab-remove {
|
|
551
|
+
opacity: 0 !important;
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
&__dropdown .ant-dropdown-content li > span{
|
|
556
|
+
display: flex;
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
.ant-message-custom-content{
|
|
561
|
+
display: flex;
|
|
562
|
+
align-items: center;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
.text-2xl{
|
|
566
|
+
font-size: 1.5rem;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.text-xl{
|
|
570
|
+
font-size: 1.25rem;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.text-base{
|
|
574
|
+
font-size: 1rem;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.text-sm{
|
|
578
|
+
font-size: 0.875rem;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
.ant-modal-confirm-btns {
|
|
582
|
+
display: flex;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.dt-message-icon{
|
|
586
|
+
font-size: 24px;
|
|
587
|
+
&.warning{
|
|
588
|
+
color: #faad14;
|
|
589
|
+
}
|
|
590
|
+
&.success{
|
|
591
|
+
color: #52c41a;
|
|
592
|
+
}
|
|
593
|
+
&.error{
|
|
594
|
+
color: #ed6f6f;
|
|
595
|
+
}
|
|
596
|
+
&.info{
|
|
597
|
+
color: #1890ff;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
.ant-modal-confirm-body .ant-modal-confirm-content{
|
|
602
|
+
color: #909399;
|
|
603
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { RouteRecordRaw } from 'vue-router';
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
3
|
+
getTransitionMode: import("vue").ComputedRef<import("@dt-frames/core").RouterTransition>;
|
|
4
|
+
getLayoutContentMode: import("vue").ComputedRef<import("../../enums").ContentMode>;
|
|
5
|
+
getPageLoading: boolean;
|
|
6
|
+
getOpenPageLoading: import("vue").ComputedRef<boolean>;
|
|
7
|
+
getCanCache: import("vue").ComputedRef<boolean>;
|
|
8
|
+
tabStore: import("pinia").Store<"route-reuse", import("../../stores/routeReuse.store").RouteReuseState, {
|
|
9
|
+
getTabList(): import("vue-router").RouteLocationNormalized[];
|
|
10
|
+
getCachedTabList(): string[];
|
|
11
|
+
getLastDragEndIndex(): number;
|
|
12
|
+
}, {
|
|
13
|
+
addTab(route: import("vue-router").RouteLocationNormalized): Promise<void>;
|
|
14
|
+
closeTab(path: string, router: import("vue-router").Router): void;
|
|
15
|
+
closeAllTab(currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>, router: import("vue-router").Router): void;
|
|
16
|
+
closeLeftTabs(path: string): void;
|
|
17
|
+
closeRightTabs(path: string): void;
|
|
18
|
+
closeOtherTabs(path: string): void;
|
|
19
|
+
bulkCloseTabs(pathList: string[]): void;
|
|
20
|
+
updateCacheTab(): void;
|
|
21
|
+
refreshPage(router: import("vue-router").Router): Promise<void>;
|
|
22
|
+
sortTabs(oldIndex: number, newIndex: number): void;
|
|
23
|
+
}>;
|
|
24
|
+
getTransitionName: (route: RouteRecordRaw) => string | undefined;
|
|
25
|
+
getCaches: import("vue").ComputedRef<string[]>;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
27
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
getTarget: () => HTMLElement;
|
|
3
|
+
getShowBackToTop: import("vue").ComputedRef<boolean>;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
DtBackTop: import("vue").DefineComponent<{}, {
|
|
3
|
+
getTarget: () => HTMLElement;
|
|
4
|
+
getShowBackToTop: import("vue").ComputedRef<boolean>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
7
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
getFooter: import("vue").ComputedRef<import("../../types/theme.type").FooterOptions>;
|
|
3
|
+
title: any;
|
|
4
|
+
subTitle: any;
|
|
5
|
+
height: any;
|
|
6
|
+
footerOptions: import("vue").ComputedRef<{
|
|
7
|
+
lineHeight: string;
|
|
8
|
+
height: string;
|
|
9
|
+
padding: string;
|
|
10
|
+
width: string;
|
|
11
|
+
color: string;
|
|
12
|
+
}>;
|
|
13
|
+
readonly LayoutFooter: import("vue").DefineComponent<{
|
|
14
|
+
prefixCls: StringConstructor;
|
|
15
|
+
hasSider: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: any;
|
|
18
|
+
};
|
|
19
|
+
tagName: StringConstructor;
|
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
prefixCls: StringConstructor;
|
|
22
|
+
hasSider: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: any;
|
|
25
|
+
};
|
|
26
|
+
tagName: StringConstructor;
|
|
27
|
+
}>>, {
|
|
28
|
+
hasSider: boolean;
|
|
29
|
+
}>;
|
|
30
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
31
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
getIsZH: import("vue").ComputedRef<boolean>;
|
|
3
|
+
routes: import("vue").Ref<any[]>;
|
|
4
|
+
currentRoute: import("vue").Ref<import("vue-router").RouteLocationNormalizedLoaded>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
6
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _sfc_main: import("vue").DefineComponent<{}, {
|
|
2
|
+
toggle: () => Promise<void>;
|
|
3
|
+
isFullscreen: import("vue").Ref<boolean>;
|
|
4
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
5
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as DtFullScreen } from "./fullscreen";
|
|
2
|
+
import { default as DtLogo } from "./logo";
|
|
3
|
+
import { default as DtTrigger } from "./trigger";
|
|
4
|
+
import { default as DtBreadCrumb } from "./bread-crumb";
|
|
5
|
+
import { default as DtMenuFilter } from "./menu-filter";
|
|
6
|
+
import { default as DtLangPicker } from "./lang-picker";
|
|
7
|
+
import { default as DtNotify } from "./notify";
|
|
8
|
+
import { default as DtSize } from "./size";
|
|
9
|
+
import { default as DtUserInfo } from "./user-info";
|
|
10
|
+
import { default as DtSettingTheme } from "./setting-theme";
|
|
11
|
+
export { DtFullScreen, DtLogo, DtTrigger, DtBreadCrumb, DtMenuFilter, DtLangPicker, DtNotify, DtSize, DtUserInfo, DtSettingTheme };
|