@jetlinks-web/components 2.0.5 → 2.0.7
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/FullPage/FullPage.js +1 -1
- package/es/ProLayout/Basic/BasicLayout.js +144 -43
- package/es/ProLayout/PageContainer/index.js +0 -1
- package/es/ProLayout/SiderMenu/SiderMenu.js +44 -9
- package/es/ProLayout/SiderMenu/index.less +226 -212
- package/es/ProLayout/defaultSettings.js +38 -1
- package/es/ProLayout/index.js +2 -1
- package/es/ProTable/style/index.css +69 -0
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/style/index.css +12 -0
- package/es/style/variable.css +4 -0
- package/es/style/variable.less +4 -2
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/ProLayout/Basic/BasicLayout.js +142 -41
- package/lib/ProLayout/PageContainer/index.js +0 -1
- package/lib/ProLayout/SiderMenu/SiderMenu.js +41 -6
- package/lib/ProLayout/SiderMenu/index.less +226 -212
- package/lib/ProLayout/defaultSettings.js +40 -2
- package/lib/ProLayout/index.js +7 -0
- package/lib/ProTable/style/index.css +69 -0
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/style/components.less +3 -0
- package/lib/style/index.css +12 -0
- package/lib/style/variable.css +4 -0
- package/lib/style/variable.less +4 -2
- package/package.json +3 -3
|
@@ -1,212 +1,226 @@
|
|
|
1
|
-
@import '../style/default.less';
|
|
2
|
-
|
|
3
|
-
@pro-layout-sider-menu-prefix-cls: ~'@{ant-prefix}-pro-sider';
|
|
4
|
-
|
|
5
|
-
@nav-header-height: @pro-layout-header-height;
|
|
6
|
-
|
|
7
|
-
.@{pro-layout-sider-menu-prefix-cls} {
|
|
8
|
-
position: relative;
|
|
9
|
-
background-color: @layout-sider-background;
|
|
10
|
-
border-right: 0;
|
|
11
|
-
// FIXME: 临时修正(可能不会做兼容)
|
|
12
|
-
z-index: 20;
|
|
13
|
-
|
|
14
|
-
// 这里关掉了动画,不然使用无法兼容
|
|
15
|
-
.@{ant-prefix}-menu {
|
|
16
|
-
background: transparent;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&.@{ant-prefix}-layout-sider-light {
|
|
20
|
-
.@{ant-prefix}-menu-item a {
|
|
21
|
-
color: @heading-color;
|
|
22
|
-
}
|
|
23
|
-
.@{ant-prefix}-menu-item-selected a,
|
|
24
|
-
.@{ant-prefix}-menu-item a:hover {
|
|
25
|
-
color: @primary-color;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
&-logo {
|
|
30
|
-
position: relative;
|
|
31
|
-
display: flex;
|
|
32
|
-
align-items: center;
|
|
33
|
-
padding: 16px 16px;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
36
|
-
|
|
37
|
-
> a {
|
|
38
|
-
display: flex;
|
|
39
|
-
align-items: center;
|
|
40
|
-
justify-content: center;
|
|
41
|
-
min-height: 32px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
img {
|
|
45
|
-
display: inline-block;
|
|
46
|
-
height: 32px;
|
|
47
|
-
vertical-align: middle;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
h1 {
|
|
51
|
-
display: inline-block;
|
|
52
|
-
height: 32px;
|
|
53
|
-
margin: 0 0 0 12px;
|
|
54
|
-
color: white;
|
|
55
|
-
font-weight: 600;
|
|
56
|
-
font-size: 18px;
|
|
57
|
-
line-height: 32px;
|
|
58
|
-
vertical-align: middle;
|
|
59
|
-
animation: pro-layout-title-hide 0.3s;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
&-extra {
|
|
64
|
-
margin-bottom: 16px;
|
|
65
|
-
padding: 0 16px;
|
|
66
|
-
&-no-logo {
|
|
67
|
-
margin-top: 16px;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&-menu {
|
|
72
|
-
position: relative;
|
|
73
|
-
z-index: 10;
|
|
74
|
-
min-height: 100%;
|
|
75
|
-
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.@{ant-prefix}-layout-sider-children {
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-direction: column;
|
|
81
|
-
height: 100%;
|
|
82
|
-
|
|
83
|
-
::-webkit-scrollbar {
|
|
84
|
-
width: 6px;
|
|
85
|
-
height: 6px;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
::-webkit-scrollbar-track {
|
|
89
|
-
background: rgba(255, 255, 255, 0.15);
|
|
90
|
-
border-radius: 3px;
|
|
91
|
-
box-shadow: inset 0 0 5px rgba(37, 37, 37, 0.05);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
/* 滚动条滑块 */
|
|
95
|
-
::-webkit-scrollbar-thumb {
|
|
96
|
-
background: rgba(255, 255, 255, 0.2);
|
|
97
|
-
border-radius: 3px;
|
|
98
|
-
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&.@{ant-prefix}-layout-sider-collapsed {
|
|
103
|
-
.@{ant-prefix}-menu-inline-collapsed {
|
|
104
|
-
width: 48px;
|
|
105
|
-
}
|
|
106
|
-
.@{pro-layout-sider-menu-prefix-cls} {
|
|
107
|
-
&-logo {
|
|
108
|
-
padding: 16px 8px;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
&.@{ant-prefix}-layout-sider.@{pro-layout-sider-menu-prefix-cls}-fixed {
|
|
114
|
-
position: fixed;
|
|
115
|
-
top: 0;
|
|
116
|
-
left: 0;
|
|
117
|
-
z-index: 99; // react pro-components: z-index: 100;
|
|
118
|
-
height: 100%;
|
|
119
|
-
overflow: auto;
|
|
120
|
-
overflow-x: hidden;
|
|
121
|
-
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
|
|
122
|
-
> .@{ant-prefix}-menu-root {
|
|
123
|
-
:not(.@{pro-layout-sider-menu-prefix-cls}-link-menu) {
|
|
124
|
-
height: ~'calc(100vh - @{nav-header-height})';
|
|
125
|
-
overflow-y: auto;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
&-light {
|
|
131
|
-
background-color: @component-background;
|
|
132
|
-
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
|
|
133
|
-
|
|
134
|
-
.@{ant-prefix}-layout-sider-children {
|
|
135
|
-
::-webkit-scrollbar-track {
|
|
136
|
-
background: rgba(0, 0, 0, 0.06);
|
|
137
|
-
border-radius: 3px;
|
|
138
|
-
box-shadow: inset 0 0 5px rgba(0, 21, 41, 0.05);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/* 滚动条滑块 */
|
|
142
|
-
::-webkit-scrollbar-thumb {
|
|
143
|
-
background: rgba(0, 0, 0, 0.12);
|
|
144
|
-
border-radius: 3px;
|
|
145
|
-
box-shadow: inset 0 0 5px rgba(0, 21, 41, 0.05);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.@{pro-layout-sider-menu-prefix-cls}-logo {
|
|
150
|
-
h1 {
|
|
151
|
-
color: @primary-color;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
.@{ant-prefix}-menu-light {
|
|
155
|
-
border-right-color: transparent;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
.@{pro-layout-sider-menu-prefix-cls}-collapsed-button {
|
|
159
|
-
border-top: @border-width-base @border-style-base
|
|
160
|
-
@border-color-split;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
&-icon {
|
|
165
|
-
width: 14px;
|
|
166
|
-
vertical-align: baseline;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
&-links {
|
|
170
|
-
width: 100%;
|
|
171
|
-
ul.@{ant-prefix}-menu-root {
|
|
172
|
-
height: auto;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&-collapsed-button {
|
|
177
|
-
border-top: @border-width-base @border-style-base rgba(0, 0, 0, 0.25);
|
|
178
|
-
.anticon {
|
|
179
|
-
font-size: 16px;
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.top-nav-menu li.@{ant-prefix}-menu-item {
|
|
184
|
-
height: 100%;
|
|
185
|
-
line-height: 1;
|
|
186
|
-
}
|
|
187
|
-
.drawer .drawer-content {
|
|
188
|
-
background: @layout-sider-background;
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
// 修正菜单 collapsed 时,icon 与 title 的间距
|
|
193
|
-
.@{ant-prefix}-pro-menu-item {
|
|
194
|
-
.anticon + .@{ant-prefix}-pro-menu-item-title {
|
|
195
|
-
margin-left: 10px;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
1
|
+
@import '../style/default.less';
|
|
2
|
+
|
|
3
|
+
@pro-layout-sider-menu-prefix-cls: ~'@{ant-prefix}-pro-sider';
|
|
4
|
+
|
|
5
|
+
@nav-header-height: @pro-layout-header-height;
|
|
6
|
+
|
|
7
|
+
.@{pro-layout-sider-menu-prefix-cls} {
|
|
8
|
+
position: relative;
|
|
9
|
+
background-color: @layout-sider-background;
|
|
10
|
+
border-right: 0;
|
|
11
|
+
// FIXME: 临时修正(可能不会做兼容)
|
|
12
|
+
z-index: 20;
|
|
13
|
+
|
|
14
|
+
// 这里关掉了动画,不然使用无法兼容
|
|
15
|
+
.@{ant-prefix}-menu {
|
|
16
|
+
background: transparent;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.@{ant-prefix}-layout-sider-light {
|
|
20
|
+
.@{ant-prefix}-menu-item a {
|
|
21
|
+
color: @heading-color;
|
|
22
|
+
}
|
|
23
|
+
.@{ant-prefix}-menu-item-selected a,
|
|
24
|
+
.@{ant-prefix}-menu-item a:hover {
|
|
25
|
+
color: @primary-color;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&-logo {
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
padding: 16px 16px;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
36
|
+
|
|
37
|
+
> a {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
min-height: 32px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
img {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
height: 32px;
|
|
47
|
+
vertical-align: middle;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
h1 {
|
|
51
|
+
display: inline-block;
|
|
52
|
+
height: 32px;
|
|
53
|
+
margin: 0 0 0 12px;
|
|
54
|
+
color: white;
|
|
55
|
+
font-weight: 600;
|
|
56
|
+
font-size: 18px;
|
|
57
|
+
line-height: 32px;
|
|
58
|
+
vertical-align: middle;
|
|
59
|
+
animation: pro-layout-title-hide 0.3s;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&-extra {
|
|
64
|
+
margin-bottom: 16px;
|
|
65
|
+
padding: 0 16px;
|
|
66
|
+
&-no-logo {
|
|
67
|
+
margin-top: 16px;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&-menu {
|
|
72
|
+
position: relative;
|
|
73
|
+
z-index: 10;
|
|
74
|
+
min-height: 100%;
|
|
75
|
+
box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.@{ant-prefix}-layout-sider-children {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
height: 100%;
|
|
82
|
+
|
|
83
|
+
::-webkit-scrollbar {
|
|
84
|
+
width: 6px;
|
|
85
|
+
height: 6px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
::-webkit-scrollbar-track {
|
|
89
|
+
background: rgba(255, 255, 255, 0.15);
|
|
90
|
+
border-radius: 3px;
|
|
91
|
+
box-shadow: inset 0 0 5px rgba(37, 37, 37, 0.05);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/* 滚动条滑块 */
|
|
95
|
+
::-webkit-scrollbar-thumb {
|
|
96
|
+
background: rgba(255, 255, 255, 0.2);
|
|
97
|
+
border-radius: 3px;
|
|
98
|
+
box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&.@{ant-prefix}-layout-sider-collapsed {
|
|
103
|
+
.@{ant-prefix}-menu-inline-collapsed {
|
|
104
|
+
width: 48px;
|
|
105
|
+
}
|
|
106
|
+
.@{pro-layout-sider-menu-prefix-cls} {
|
|
107
|
+
&-logo {
|
|
108
|
+
padding: 16px 8px;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
&.@{ant-prefix}-layout-sider.@{pro-layout-sider-menu-prefix-cls}-fixed {
|
|
114
|
+
position: fixed;
|
|
115
|
+
top: 0;
|
|
116
|
+
left: 0;
|
|
117
|
+
z-index: 99; // react pro-components: z-index: 100;
|
|
118
|
+
height: 100%;
|
|
119
|
+
overflow: auto;
|
|
120
|
+
overflow-x: hidden;
|
|
121
|
+
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
|
|
122
|
+
> .@{ant-prefix}-menu-root {
|
|
123
|
+
:not(.@{pro-layout-sider-menu-prefix-cls}-link-menu) {
|
|
124
|
+
height: ~'calc(100vh - @{nav-header-height})';
|
|
125
|
+
overflow-y: auto;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
&-light {
|
|
131
|
+
background-color: @component-background;
|
|
132
|
+
box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
|
|
133
|
+
|
|
134
|
+
.@{ant-prefix}-layout-sider-children {
|
|
135
|
+
::-webkit-scrollbar-track {
|
|
136
|
+
background: rgba(0, 0, 0, 0.06);
|
|
137
|
+
border-radius: 3px;
|
|
138
|
+
box-shadow: inset 0 0 5px rgba(0, 21, 41, 0.05);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* 滚动条滑块 */
|
|
142
|
+
::-webkit-scrollbar-thumb {
|
|
143
|
+
background: rgba(0, 0, 0, 0.12);
|
|
144
|
+
border-radius: 3px;
|
|
145
|
+
box-shadow: inset 0 0 5px rgba(0, 21, 41, 0.05);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.@{pro-layout-sider-menu-prefix-cls}-logo {
|
|
150
|
+
h1 {
|
|
151
|
+
color: @primary-color;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
.@{ant-prefix}-menu-light {
|
|
155
|
+
border-right-color: transparent;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.@{pro-layout-sider-menu-prefix-cls}-collapsed-button {
|
|
159
|
+
border-top: @border-width-base @border-style-base
|
|
160
|
+
@border-color-split;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
&-icon {
|
|
165
|
+
width: 14px;
|
|
166
|
+
vertical-align: baseline;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&-links {
|
|
170
|
+
width: 100%;
|
|
171
|
+
ul.@{ant-prefix}-menu-root {
|
|
172
|
+
height: auto;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&-collapsed-button {
|
|
177
|
+
border-top: @border-width-base @border-style-base rgba(0, 0, 0, 0.25);
|
|
178
|
+
.anticon {
|
|
179
|
+
font-size: 16px;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.top-nav-menu li.@{ant-prefix}-menu-item {
|
|
184
|
+
height: 100%;
|
|
185
|
+
line-height: 1;
|
|
186
|
+
}
|
|
187
|
+
.drawer .drawer-content {
|
|
188
|
+
background: @layout-sider-background;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
// 修正菜单 collapsed 时,icon 与 title 的间距
|
|
193
|
+
.@{ant-prefix}-pro-menu-item {
|
|
194
|
+
.anticon + .@{ant-prefix}-pro-menu-item-title {
|
|
195
|
+
margin-left: 10px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.sider-app-menus {
|
|
200
|
+
width: 100px;
|
|
201
|
+
background-color: #fff;
|
|
202
|
+
cursor: pointer;
|
|
203
|
+
padding: 6px;
|
|
204
|
+
transition: all .3s;
|
|
205
|
+
border-radius: 4px;
|
|
206
|
+
color: #333;
|
|
207
|
+
|
|
208
|
+
&:hover {
|
|
209
|
+
background-color: #efefef;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@keyframes pro-layout-title-hide {
|
|
214
|
+
0% {
|
|
215
|
+
display: none;
|
|
216
|
+
opacity: 0;
|
|
217
|
+
}
|
|
218
|
+
80% {
|
|
219
|
+
display: none;
|
|
220
|
+
opacity: 0;
|
|
221
|
+
}
|
|
222
|
+
100% {
|
|
223
|
+
display: unset;
|
|
224
|
+
opacity: 1;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import "vue";
|
|
2
|
+
import PropTypes from "ant-design-vue/es/_util/vue-types";
|
|
1
3
|
export var defaultSettings = {
|
|
2
4
|
theme: 'light',
|
|
3
5
|
layout: 'mix',
|
|
@@ -12,6 +14,10 @@ export var defaultSettings = {
|
|
|
12
14
|
iconfontUrl: '',
|
|
13
15
|
primaryColor: '#315EFB'
|
|
14
16
|
};
|
|
17
|
+
export var LayoutType = {
|
|
18
|
+
CARD: 'card',
|
|
19
|
+
LIST: 'list'
|
|
20
|
+
};
|
|
15
21
|
export var defaultSettingProps = {
|
|
16
22
|
theme: {
|
|
17
23
|
type: String,
|
|
@@ -62,5 +68,36 @@ export var defaultSettingProps = {
|
|
|
62
68
|
default: function _default() {
|
|
63
69
|
return defaultSettings.primaryColor;
|
|
64
70
|
}
|
|
65
|
-
}
|
|
71
|
+
},
|
|
72
|
+
layoutType: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: LayoutType.LIST
|
|
75
|
+
},
|
|
76
|
+
cardSiderWidth: {
|
|
77
|
+
type: Number,
|
|
78
|
+
default: 60
|
|
79
|
+
},
|
|
80
|
+
historyRoutes: {
|
|
81
|
+
type: Array,
|
|
82
|
+
default: function _default() {
|
|
83
|
+
return [];
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
historyActive: {
|
|
87
|
+
type: String,
|
|
88
|
+
default: undefined
|
|
89
|
+
},
|
|
90
|
+
pageFooterStyle: {
|
|
91
|
+
type: Object,
|
|
92
|
+
default: function _default() {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
apps: {
|
|
97
|
+
type: Array,
|
|
98
|
+
default: function _default() {
|
|
99
|
+
return [];
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
onAppMenuClick: PropTypes.func
|
|
66
103
|
};
|
package/es/ProLayout/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import ProLayout from './Basic/BasicLayout';
|
|
2
2
|
import PageContainer from './PageContainer';
|
|
3
|
+
import { LayoutType } from './defaultSettings';
|
|
3
4
|
ProLayout.install = function (app) {
|
|
4
5
|
app.component(ProLayout.name, ProLayout);
|
|
5
6
|
};
|
|
6
|
-
export { PageContainer };
|
|
7
|
+
export { PageContainer, LayoutType };
|
|
7
8
|
export default ProLayout;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
|
|
2
|
+
/* stylelint-disable no-duplicate-selectors */
|
|
3
|
+
/* stylelint-disable */
|
|
4
|
+
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
|
|
5
|
+
.jtable-body-spin {
|
|
6
|
+
min-height: 100%;
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 16px 24px 24px;
|
|
9
|
+
background-color: #fff;
|
|
10
|
+
}
|
|
11
|
+
.jtable-body-spin .ant-spin-nested-loading {
|
|
12
|
+
height: 100%;
|
|
13
|
+
}
|
|
14
|
+
.jtable-body-spin .ant-spin-nested-loading .ant-spin-container {
|
|
15
|
+
height: 100%;
|
|
16
|
+
}
|
|
17
|
+
.jtable-body-spin .jtable-body {
|
|
18
|
+
width: 100%;
|
|
19
|
+
box-sizing: border-box;
|
|
20
|
+
height: 100%;
|
|
21
|
+
display: flex;
|
|
22
|
+
flex-direction: column;
|
|
23
|
+
}
|
|
24
|
+
.jtable-body-spin .jtable-body .jtable-body-header {
|
|
25
|
+
display: flex;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
align-items: center;
|
|
28
|
+
}
|
|
29
|
+
.jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right {
|
|
30
|
+
display: flex;
|
|
31
|
+
gap: 8px;
|
|
32
|
+
align-items: center;
|
|
33
|
+
}
|
|
34
|
+
.jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .right-button-icon {
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
color: #d9d9d9;
|
|
37
|
+
}
|
|
38
|
+
.jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper {
|
|
39
|
+
padding: 0 8px;
|
|
40
|
+
}
|
|
41
|
+
.jtable-body-spin .jtable-body .jtable-body-header .jtable-body-header-right .jtable-body-header-right-button .ant-radio-button-wrapper-checked .right-button-icon {
|
|
42
|
+
color: #1890ff;
|
|
43
|
+
}
|
|
44
|
+
.jtable-body-spin .jtable-body .jtable-content {
|
|
45
|
+
flex: 1;
|
|
46
|
+
padding: 16px 0;
|
|
47
|
+
}
|
|
48
|
+
.jtable-body-spin .jtable-body .jtable-content .jtable-alert {
|
|
49
|
+
margin-bottom: 16px;
|
|
50
|
+
}
|
|
51
|
+
.jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items {
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-gap: 26px;
|
|
54
|
+
}
|
|
55
|
+
.jtable-body-spin .jtable-body .jtable-content .jtable-card .jtable-card-items .jtable-card-item {
|
|
56
|
+
display: flex;
|
|
57
|
+
min-width: 0;
|
|
58
|
+
}
|
|
59
|
+
.jtable-body-spin .jtable-body .jtable-pagination {
|
|
60
|
+
width: 100%;
|
|
61
|
+
display: flex;
|
|
62
|
+
justify-content: flex-end;
|
|
63
|
+
}
|
|
64
|
+
.jtable-body-spin .jtable-body .j-table-empty {
|
|
65
|
+
display: flex;
|
|
66
|
+
justify-content: center;
|
|
67
|
+
align-items: center;
|
|
68
|
+
margin: 10% 0;
|
|
69
|
+
}
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
} */
|
|
22
22
|
import { defineComponent as _defineComponent } from 'vue';
|
|
23
23
|
import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
24
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
24
|
+
const _withScopeId = n => (_pushScopeId("data-v-1713344578909"), n = n(), _popScopeId(), n);
|
|
25
25
|
const _hoisted_1 = {
|
|
26
26
|
key: 0,
|
|
27
27
|
style: { "width": "240px" }
|
package/es/Search/Item.js
CHANGED
|
@@ -78,7 +78,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
78
78
|
} */
|
|
79
79
|
import { defineComponent as _defineComponent } from 'vue';
|
|
80
80
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
81
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
81
|
+
const _withScopeId = n => (_pushScopeId("data-v-1713344576919"), n = n(), _popScopeId(), n);
|
|
82
82
|
const _hoisted_1 = { class: "JSearch-item" };
|
|
83
83
|
const _hoisted_2 = {
|
|
84
84
|
key: 0,
|
package/es/Search/Search.js
CHANGED
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
} */
|
|
37
37
|
import { defineComponent as _defineComponent } from 'vue';
|
|
38
38
|
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createVNode as _createVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
39
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
39
|
+
const _withScopeId = n => (_pushScopeId("data-v-1713344577405"), n = n(), _popScopeId(), n);
|
|
40
40
|
const _hoisted_1 = { class: "JSearch-content simple" };
|
|
41
41
|
const _hoisted_2 = { class: "JSearch-items" };
|
|
42
42
|
import { Button, Row, Col, Form, FormItemRest, } from 'ant-design-vue';
|
package/es/style/index.css
CHANGED
|
@@ -322,6 +322,18 @@
|
|
|
322
322
|
.ant-pro-menu-item .anticon + .ant-pro-menu-item-title {
|
|
323
323
|
margin-left: 10px;
|
|
324
324
|
}
|
|
325
|
+
.sider-app-menus {
|
|
326
|
+
width: 100px;
|
|
327
|
+
background-color: #fff;
|
|
328
|
+
cursor: pointer;
|
|
329
|
+
padding: 6px;
|
|
330
|
+
transition: all 0.3s;
|
|
331
|
+
border-radius: 4px;
|
|
332
|
+
color: #333;
|
|
333
|
+
}
|
|
334
|
+
.sider-app-menus:hover {
|
|
335
|
+
background-color: #efefef;
|
|
336
|
+
}
|
|
325
337
|
@keyframes pro-layout-title-hide {
|
|
326
338
|
0% {
|
|
327
339
|
display: none;
|
package/es/style/variable.css
CHANGED
package/es/style/variable.less
CHANGED
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
} */
|
|
7
7
|
import { defineComponent as _defineComponent } from 'vue';
|
|
8
8
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
9
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
9
|
+
const _withScopeId = n => (_pushScopeId("data-v-1713344574962"), n = n(), _popScopeId(), n);
|
|
10
10
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
11
11
|
import { ref } from 'vue';
|
|
12
12
|
import { useElementBounding } from '@vueuse/core';
|