@lambo-design/shared 1.0.0-beta.5 → 1.0.0-beta.51
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/config/config.js +12 -0
- package/config/themes/atrovirens/atrovirens.css +243 -0
- package/config/themes/atrovirens/atrovirens.css.map +1 -0
- package/config/themes/atrovirens/atrovirens.less +320 -0
- package/config/themes/atrovirens/var.less +314 -0
- package/config/themes/default/default.css +243 -241
- package/config/themes/default/default.css.map +1 -0
- package/config/themes/default/default.less +75 -74
- package/config/themes/default/var.less +4 -4
- package/config/themes/gold/default.css +243 -241
- package/config/themes/gold/default.css.map +1 -0
- package/config/themes/gold/default.less +75 -74
- package/config/themes/gold/var.less +4 -4
- package/config/themes/index.js +8 -2
- package/config/themes/lime/default.css +243 -241
- package/config/themes/lime/default.css.map +1 -0
- package/config/themes/lime/default.less +75 -74
- package/config/themes/lime/var.less +4 -4
- package/config/themes/orange/orange.css +243 -0
- package/config/themes/orange/orange.css.map +1 -0
- package/config/themes/orange/orange.less +320 -0
- package/config/themes/orange/var.less +314 -0
- package/config/themes/red/red.css +243 -0
- package/config/themes/red/red.css.map +1 -0
- package/config/themes/red/red.less +320 -0
- package/config/themes/red/var.less +314 -0
- package/config/themes/theme-atrovirens.js +253 -0
- package/config/themes/theme-default.js +241 -240
- package/config/themes/theme-gold.js +9 -8
- package/config/themes/theme-lime.js +9 -8
- package/config/themes/theme-orange.js +255 -0
- package/config/themes/theme-red.js +256 -0
- package/directives/index.js +23 -0
- package/directives/module/draggable.js +56 -0
- package/directives/module/permission.js +49 -0
- package/index.js +2 -1
- package/package.json +6 -4
- package/utils/ajax/interceptors.js +97 -90
- package/utils/assist.js +88 -79
- package/utils/excel.js +25 -15
- package/utils/menu/before-close.js +17 -0
- package/utils/menu/index.js +35 -2
- package/utils/platform.js +84 -8
- package/utils/theme.js +1 -1
- package/utils/vxetable/index.js +25 -0
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
key: "orange",
|
|
3
|
+
title: "魅力橙",
|
|
4
|
+
primaryColor: "#ee5414",
|
|
5
|
+
//自定义主题相关颜色覆盖
|
|
6
|
+
vars: `
|
|
7
|
+
--primary-color: #ee5414;
|
|
8
|
+
--primary-color-tint-20: #f17643;
|
|
9
|
+
--primary-color-tint-90: #fdeee8;
|
|
10
|
+
--primary-color-tint-80: #fcddd0;
|
|
11
|
+
--primary-color-tint-5: #ef5d20;
|
|
12
|
+
--primary-color-tint-95-fade-50: rgba(254, 246, 243, 0.5);
|
|
13
|
+
--primary-color-fade-20: rgba(238, 84, 20, 0.2);
|
|
14
|
+
--primary-color-shade-5: #e25013;
|
|
15
|
+
--info-color: #2db7f5;
|
|
16
|
+
--info-color-tint-20: #57c5f7;
|
|
17
|
+
--info-color-tint-90: #eaf8fe;
|
|
18
|
+
--info-color-tint-80: #d5f1fd;
|
|
19
|
+
--info-color-tint-5: #38bbf6;
|
|
20
|
+
--info-color-tint-95-fade-50: rgba(245, 251, 254, 0.5);
|
|
21
|
+
--info-color-fade-20: rgba(45, 183, 245, 0.2);
|
|
22
|
+
--info-color-shade-5: #2baee9;
|
|
23
|
+
--success-color: #19be6b;
|
|
24
|
+
--success-color-tint-20: #47cb89;
|
|
25
|
+
--success-color-tint-90: #e8f9f0;
|
|
26
|
+
--success-color-tint-80: #d1f2e1;
|
|
27
|
+
--success-color-tint-5: #25c172;
|
|
28
|
+
--success-color-tint-95-fade-50: rgba(244, 252, 248, 0.5);
|
|
29
|
+
--success-color-fade-20: rgba(25, 190, 107, 0.2);
|
|
30
|
+
--success-color-shade-5: #18b566;
|
|
31
|
+
--processing-color: #ee5414;
|
|
32
|
+
--warning-color: #ff9900;
|
|
33
|
+
--warning-color-tint-20: #ffad33;
|
|
34
|
+
--warning-color-tint-90: #fff5e6;
|
|
35
|
+
--warning-color-tint-5: #ff9e0d;
|
|
36
|
+
--warning-color-tint-80: #ffebcc;
|
|
37
|
+
--warning-color-tint-95-fade-50: rgba(255, 250, 242, 0.5);
|
|
38
|
+
--warning-color-fade-20: rgba(255, 153, 0, 0.2);
|
|
39
|
+
--warning-color-shade-5: #f29100;
|
|
40
|
+
--error-color: #ed4014;
|
|
41
|
+
--error-color-tint-20: #f16643;
|
|
42
|
+
--error-color-tint-90: #fdece8;
|
|
43
|
+
--error-color-tint-5: #ee4a20;
|
|
44
|
+
--error-color-tint-80: #fbd9d0;
|
|
45
|
+
--error-color-tint-95-fade-50: rgba(254, 245, 243, 0.5);
|
|
46
|
+
--error-color-fade-20: rgba(237, 64, 20, 0.2);
|
|
47
|
+
--error-color-shade-5: #e13d13;
|
|
48
|
+
--normal-color: #e6ebf1;
|
|
49
|
+
--link-color: #ee5414;
|
|
50
|
+
--link-hover-color: #f17643;
|
|
51
|
+
--link-active-color: #e25013;
|
|
52
|
+
--selected-color: rgba(238, 84, 20, 0.9);
|
|
53
|
+
--selected-color-shade-10: rgba(210, 74, 18, 0.91);
|
|
54
|
+
--tooltip-color: #fff;
|
|
55
|
+
--subsidiary-color: #808695;
|
|
56
|
+
--rate-star-color: #f5a623;
|
|
57
|
+
--rate-star-color-tint-20: #f7b84f;
|
|
58
|
+
--white: #fff;
|
|
59
|
+
--black: #000;
|
|
60
|
+
--body-background: #fff;
|
|
61
|
+
--component-background: #fff;
|
|
62
|
+
--font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
63
|
+
--code-family: Consolas, Menlo, Courier, monospace;
|
|
64
|
+
--title-color: #17233d;
|
|
65
|
+
--text-color: #515a6e;
|
|
66
|
+
--text-color-secondary: rgba(0, 0, 0, 0.45);
|
|
67
|
+
--heading-color: rgba(0, 0, 0, 0.85);
|
|
68
|
+
--heading-color-dark: #ffffff;
|
|
69
|
+
--font-size-base: 14px;
|
|
70
|
+
--font-size-small: 12px;
|
|
71
|
+
--font-size-large: 16px;
|
|
72
|
+
--line-height-base: 1.5;
|
|
73
|
+
--line-height-computed: 21px;
|
|
74
|
+
--border-radius-base: 6px;
|
|
75
|
+
--border-radius-small: 4px;
|
|
76
|
+
--cursor-disabled: not-allowed;
|
|
77
|
+
--padding-lg: 24px;
|
|
78
|
+
--padding-md: 16px;
|
|
79
|
+
--padding-sm: 12px;
|
|
80
|
+
--padding-xs: 8px;
|
|
81
|
+
--border-color-base: #dcdee2;
|
|
82
|
+
--border-color-split: #e8eaec;
|
|
83
|
+
--border-width-base: 1px;
|
|
84
|
+
--border-style-base: solid;
|
|
85
|
+
--background-color-base: #f7f7f7;
|
|
86
|
+
--background-color-select-hover: #f3f3f3;
|
|
87
|
+
--tooltip-bg: rgba(70, 76, 91, 0.9);
|
|
88
|
+
--head-bg: #f9fafc;
|
|
89
|
+
--table-thead-bg: #f8f8f9;
|
|
90
|
+
--table-td-stripe-bg: #f8f8f9;
|
|
91
|
+
--table-td-hover-bg: #ebf7ff;
|
|
92
|
+
--table-td-highlight-bg: #ebf7ff;
|
|
93
|
+
--menu-dark-title: #333333;
|
|
94
|
+
--menu-dark-active-bg: #363e4f;
|
|
95
|
+
--menu-dark-subsidiary-color: rgba(255, 255, 255, 0.7);
|
|
96
|
+
--menu-dark-group-title-color: rgba(255, 255, 255, 0.36);
|
|
97
|
+
--date-picker-cell-hover-bg: rgba(238, 84, 20, 0.3);
|
|
98
|
+
--shadow-color: rgba(0, 0, 0, 0.2);
|
|
99
|
+
--shadow-base: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
100
|
+
--shadow-card: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
|
|
101
|
+
--shadow-up: 0 -1px 6px rgba(0, 0, 0, 0.2);
|
|
102
|
+
--shadow-down: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
103
|
+
--shadow-left: -1px 0 6px rgba(0, 0, 0, 0.2);
|
|
104
|
+
--shadow-right: 1px 0 6px rgba(0, 0, 0, 0.2);
|
|
105
|
+
--btn-height-base: 32px;
|
|
106
|
+
--btn-height-large: 40px;
|
|
107
|
+
--btn-height-small: 24px;
|
|
108
|
+
--btn-padding-base: 0 15px;
|
|
109
|
+
--btn-padding-large: 0 15px;
|
|
110
|
+
--btn-padding-small: 0 7px;
|
|
111
|
+
--btn-font-weight: normal;
|
|
112
|
+
--btn-padding-base-icon: 5px 15px 6px;
|
|
113
|
+
--btn-padding-large-icon: 6px 15px 6px 15px;
|
|
114
|
+
--btn-padding-small-icon: 1px 7px 2px;
|
|
115
|
+
--btn-font-size: 14px;
|
|
116
|
+
--btn-font-size-large: 16px;
|
|
117
|
+
--btn-font-size-small: 14px;
|
|
118
|
+
--btn-border-radius: 4px;
|
|
119
|
+
--btn-border-radius-small: 3px;
|
|
120
|
+
--btn-group-border: #e25013;
|
|
121
|
+
--btn-disable-color: #c5c8ce;
|
|
122
|
+
--btn-disable-bg: #f7f7f7;
|
|
123
|
+
--btn-disable-border: #dcdee2;
|
|
124
|
+
--btn-default-color: #515a6e;
|
|
125
|
+
--btn-default-color-tint-20: #747b8b;
|
|
126
|
+
--btn-default-color-shade-5: #4d5669;
|
|
127
|
+
--btn-default-bg: #fff;
|
|
128
|
+
--btn-default-bg-tint-20: #ffffff;
|
|
129
|
+
--btn-default-bg-shade-5: #f2f2f2;
|
|
130
|
+
--btn-default-border: #dcdee2;
|
|
131
|
+
--btn-default-border-tint-20: #e3e5e8;
|
|
132
|
+
--btn-default-border-shade-5: #d1d3d7;
|
|
133
|
+
--btn-primary-color: #fff;
|
|
134
|
+
--btn-primary-color-tint-20: #ffffff;
|
|
135
|
+
--btn-primary-color-tint-5: #ffffff;
|
|
136
|
+
--btn-primary-color-shade-5: #f2f2f2;
|
|
137
|
+
--btn-primary-bg: #ee5414;
|
|
138
|
+
--btn-primary-bg-tint-20: #f17643;
|
|
139
|
+
--btn-primary-bg-tint-5: #ef5d20;
|
|
140
|
+
--btn-primary-bg-shade-5: #e25013;
|
|
141
|
+
--btn-ghost-color: #515a6e;
|
|
142
|
+
--btn-ghost-color-tint-20: #747b8b;
|
|
143
|
+
--btn-ghost-color-shade-5: #4d5669;
|
|
144
|
+
--btn-ghost-bg: #fff;
|
|
145
|
+
--btn-ghost-bg-tint-20: #ffffff;
|
|
146
|
+
--btn-ghost-bg-shade-5: #f2f2f2;
|
|
147
|
+
--btn-ghost-border: #dcdee2;
|
|
148
|
+
--btn-ghost-border-tint-20: #e3e5e8;
|
|
149
|
+
--btn-ghost-border-shade-5: #d1d3d7;
|
|
150
|
+
--btn-circle-size: 32px;
|
|
151
|
+
--btn-circle-size-large: 40px;
|
|
152
|
+
--btn-circle-size-small: 24px;
|
|
153
|
+
--btn-square-size: 32px;
|
|
154
|
+
--btn-square-size-large: 40px;
|
|
155
|
+
--btn-square-size-small: 24px;
|
|
156
|
+
--grid-columns: 24;
|
|
157
|
+
--grid-gutter-width: 0;
|
|
158
|
+
--layout-body-background: #f5f7f9;
|
|
159
|
+
--layout-header-background: #333333;
|
|
160
|
+
--layout-header-height: 64px;
|
|
161
|
+
--layout-header-padding: 0 50px;
|
|
162
|
+
--layout-footer-padding: 24px 50px;
|
|
163
|
+
--layout-footer-background: #f5f7f9;
|
|
164
|
+
--layout-sider-background: #333333;
|
|
165
|
+
--layout-sider-background-tint-10: #474747;
|
|
166
|
+
--layout-trigger-height: 48px;
|
|
167
|
+
--layout-trigger-color: #fff;
|
|
168
|
+
--layout-zero-trigger-width: 36px;
|
|
169
|
+
--layout-zero-trigger-height: 42px;
|
|
170
|
+
--legend-color: #999;
|
|
171
|
+
--input-height-base: 32px;
|
|
172
|
+
--input-height-large: 40px;
|
|
173
|
+
--input-height-small: 24px;
|
|
174
|
+
--input-padding-horizontal: 7px;
|
|
175
|
+
--input-padding-vertical-base: 4px;
|
|
176
|
+
--input-padding-vertical-small: 1px;
|
|
177
|
+
--input-padding-vertical-large: 6px;
|
|
178
|
+
--input-placeholder-color: #c5c8ce;
|
|
179
|
+
--input-color: #515a6e;
|
|
180
|
+
--input-border-color: #dcdee2;
|
|
181
|
+
--input-border-color-tint-20: #e3e5e8;
|
|
182
|
+
--input-bg: #fff;
|
|
183
|
+
--input-group-bg: #f8f8f9;
|
|
184
|
+
--input-hover-border-color: #ee5414;
|
|
185
|
+
--input-hover-border-color-tint-20: #f17643;
|
|
186
|
+
--input-hover-border-color-fade-20: rgba(238, 84, 20, 0.2);
|
|
187
|
+
--input-focus-border-color: #ee5414;
|
|
188
|
+
--input-disabled-bg: #f3f3f3;
|
|
189
|
+
--tag-font-size: 12px;
|
|
190
|
+
--screen-xs: 480px;
|
|
191
|
+
--screen-xs-min: 480px;
|
|
192
|
+
--screen-xs-max: 479px;
|
|
193
|
+
--screen-sm: 576px;
|
|
194
|
+
--screen-sm-min: 576px;
|
|
195
|
+
--screen-sm-max: 575px;
|
|
196
|
+
--screen-md: 768px;
|
|
197
|
+
--screen-md-min: 768px;
|
|
198
|
+
--screen-md-max: 767px;
|
|
199
|
+
--screen-lg: 992px;
|
|
200
|
+
--screen-lg-min: 992px;
|
|
201
|
+
--screen-lg-max: 991px;
|
|
202
|
+
--screen-xl: 1200px;
|
|
203
|
+
--screen-xl-min: 1200px;
|
|
204
|
+
--screen-xl-max: 1199px;
|
|
205
|
+
--screen-xxl: 1600px;
|
|
206
|
+
--screen-xxl-min: 1600px;
|
|
207
|
+
--screen-xxl-max: 1599px;
|
|
208
|
+
--zindex-spin: 8;
|
|
209
|
+
--zindex-affix: 10;
|
|
210
|
+
--zindex-back-top: 10;
|
|
211
|
+
--zindex-select: 900;
|
|
212
|
+
--zindex-modal: 1000;
|
|
213
|
+
--zindex-drawer: 1000;
|
|
214
|
+
--zindex-message: 1010;
|
|
215
|
+
--zindex-notification: 1010;
|
|
216
|
+
--zindex-tooltip: 1060;
|
|
217
|
+
--zindex-transfer: 1060;
|
|
218
|
+
--zindex-loading-bar: 2000;
|
|
219
|
+
--zindex-spin-fullscreen: 2010;
|
|
220
|
+
--animation-time: 0.3s;
|
|
221
|
+
--animation-time-quick: 0.15s;
|
|
222
|
+
--transition-time: 0.2s;
|
|
223
|
+
--ease-in-out: ease-in-out;
|
|
224
|
+
--slider-color: #f17643;
|
|
225
|
+
--slider-height: 4px;
|
|
226
|
+
--slider-margin: 16px 0;
|
|
227
|
+
--slider-button-wrap-size: 18px;
|
|
228
|
+
--slider-button-wrap-offset: -5px;
|
|
229
|
+
--slider-disabled-color: #ccc;
|
|
230
|
+
--avatar-size-base: 32px;
|
|
231
|
+
--avatar-size-lg: 40px;
|
|
232
|
+
--avatar-size-sm: 24px;
|
|
233
|
+
--avatar-font-size-base: 18px;
|
|
234
|
+
--avatar-font-size-lg: 24px;
|
|
235
|
+
--avatar-font-size-sm: 14px;
|
|
236
|
+
--avatar-bg: #ccc;
|
|
237
|
+
--avatar-color: #fff;
|
|
238
|
+
--avatar-border-radius: 4px;
|
|
239
|
+
--anchor-border-width: 2px;
|
|
240
|
+
--list-header-background: transparent;
|
|
241
|
+
--list-footer-background: transparent;
|
|
242
|
+
--list-empty-text-padding: 16px;
|
|
243
|
+
--list-item-padding: 12px 0;
|
|
244
|
+
--list-item-meta-margin-bottom: 16px;
|
|
245
|
+
--list-item-meta-avatar-margin-right: 16px;
|
|
246
|
+
--list-item-meta-title-margin-bottom: 12px;
|
|
247
|
+
`,
|
|
248
|
+
style:
|
|
249
|
+
`
|
|
250
|
+
html {
|
|
251
|
+
padding:0;
|
|
252
|
+
margin:0;
|
|
253
|
+
}
|
|
254
|
+
`
|
|
255
|
+
};
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
key: "read",
|
|
3
|
+
title: "发财红",
|
|
4
|
+
primaryColor: "#ff3457",
|
|
5
|
+
//自定义主题相关颜色覆盖
|
|
6
|
+
vars:
|
|
7
|
+
`
|
|
8
|
+
--primary-color: #ff3457;
|
|
9
|
+
--primary-color-tint-20: #ff5d79;
|
|
10
|
+
--primary-color-tint-90: #ffebee;
|
|
11
|
+
--primary-color-tint-80: #ffd6dd;
|
|
12
|
+
--primary-color-tint-5: #ff3e5f;
|
|
13
|
+
--primary-color-tint-95-fade-50: rgba(255, 245, 247, 0.5);
|
|
14
|
+
--primary-color-fade-20: rgba(255, 52, 87, 0.2);
|
|
15
|
+
--primary-color-shade-5: #f23153;
|
|
16
|
+
--info-color: #2db7f5;
|
|
17
|
+
--info-color-tint-20: #57c5f7;
|
|
18
|
+
--info-color-tint-90: #eaf8fe;
|
|
19
|
+
--info-color-tint-80: #d5f1fd;
|
|
20
|
+
--info-color-tint-5: #38bbf6;
|
|
21
|
+
--info-color-tint-95-fade-50: rgba(245, 251, 254, 0.5);
|
|
22
|
+
--info-color-fade-20: rgba(45, 183, 245, 0.2);
|
|
23
|
+
--info-color-shade-5: #2baee9;
|
|
24
|
+
--success-color: #19be6b;
|
|
25
|
+
--success-color-tint-20: #47cb89;
|
|
26
|
+
--success-color-tint-90: #e8f9f0;
|
|
27
|
+
--success-color-tint-80: #d1f2e1;
|
|
28
|
+
--success-color-tint-5: #25c172;
|
|
29
|
+
--success-color-tint-95-fade-50: rgba(244, 252, 248, 0.5);
|
|
30
|
+
--success-color-fade-20: rgba(25, 190, 107, 0.2);
|
|
31
|
+
--success-color-shade-5: #18b566;
|
|
32
|
+
--processing-color: #ff3457;
|
|
33
|
+
--warning-color: #ff9900;
|
|
34
|
+
--warning-color-tint-20: #ffad33;
|
|
35
|
+
--warning-color-tint-90: #fff5e6;
|
|
36
|
+
--warning-color-tint-5: #ff9e0d;
|
|
37
|
+
--warning-color-tint-80: #ffebcc;
|
|
38
|
+
--warning-color-tint-95-fade-50: rgba(255, 250, 242, 0.5);
|
|
39
|
+
--warning-color-fade-20: rgba(255, 153, 0, 0.2);
|
|
40
|
+
--warning-color-shade-5: #f29100;
|
|
41
|
+
--error-color: #ed4014;
|
|
42
|
+
--error-color-tint-20: #f16643;
|
|
43
|
+
--error-color-tint-90: #fdece8;
|
|
44
|
+
--error-color-tint-5: #ee4a20;
|
|
45
|
+
--error-color-tint-80: #fbd9d0;
|
|
46
|
+
--error-color-tint-95-fade-50: rgba(254, 245, 243, 0.5);
|
|
47
|
+
--error-color-fade-20: rgba(237, 64, 20, 0.2);
|
|
48
|
+
--error-color-shade-5: #e13d13;
|
|
49
|
+
--normal-color: rgba(255, 245, 247, 0);
|
|
50
|
+
--link-color: #ff3457;
|
|
51
|
+
--link-hover-color: #ff5d79;
|
|
52
|
+
--link-active-color: #f23153;
|
|
53
|
+
--selected-color: rgba(255, 52, 87, 0.9);
|
|
54
|
+
--selected-color-shade-10: rgba(225, 46, 77, 0.91);
|
|
55
|
+
--tooltip-color: #fff;
|
|
56
|
+
--subsidiary-color: #808695;
|
|
57
|
+
--rate-star-color: #f5a623;
|
|
58
|
+
--rate-star-color-tint-20: #f7b84f;
|
|
59
|
+
--white: #fff;
|
|
60
|
+
--black: #000;
|
|
61
|
+
--body-background: #fff;
|
|
62
|
+
--component-background: #fff;
|
|
63
|
+
--font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
|
|
64
|
+
--code-family: Consolas, Menlo, Courier, monospace;
|
|
65
|
+
--title-color: #17233d;
|
|
66
|
+
--text-color: #515a6e;
|
|
67
|
+
--text-color-secondary: rgba(0, 0, 0, 0.45);
|
|
68
|
+
--heading-color: rgba(0, 0, 0, 0.85);
|
|
69
|
+
--heading-color-dark: #ffffff;
|
|
70
|
+
--font-size-base: 14px;
|
|
71
|
+
--font-size-small: 12px;
|
|
72
|
+
--font-size-large: 16px;
|
|
73
|
+
--line-height-base: 1.5;
|
|
74
|
+
--line-height-computed: 21px;
|
|
75
|
+
--border-radius-base: 6px;
|
|
76
|
+
--border-radius-small: 4px;
|
|
77
|
+
--cursor-disabled: not-allowed;
|
|
78
|
+
--padding-lg: 24px;
|
|
79
|
+
--padding-md: 16px;
|
|
80
|
+
--padding-sm: 12px;
|
|
81
|
+
--padding-xs: 8px;
|
|
82
|
+
--border-color-base: #dcdee2;
|
|
83
|
+
--border-color-split: #e8eaec;
|
|
84
|
+
--border-width-base: 1px;
|
|
85
|
+
--border-style-base: solid;
|
|
86
|
+
--background-color-base: #f7f7f7;
|
|
87
|
+
--background-color-select-hover: #f3f3f3;
|
|
88
|
+
--tooltip-bg: rgba(70, 76, 91, 0.9);
|
|
89
|
+
--head-bg: #f9fafc;
|
|
90
|
+
--table-thead-bg: #f8f8f9;
|
|
91
|
+
--table-td-stripe-bg: #f8f8f9;
|
|
92
|
+
--table-td-hover-bg: #ebf7ff;
|
|
93
|
+
--table-td-highlight-bg: #ebf7ff;
|
|
94
|
+
--menu-dark-title: #333333;
|
|
95
|
+
--menu-dark-active-bg: #363e4f;
|
|
96
|
+
--menu-dark-subsidiary-color: rgba(255, 255, 255, 0.7);
|
|
97
|
+
--menu-dark-group-title-color: rgba(255, 255, 255, 0.36);
|
|
98
|
+
--date-picker-cell-hover-bg: rgba(255, 52, 87, 0.3);
|
|
99
|
+
--shadow-color: rgba(0, 0, 0, 0.2);
|
|
100
|
+
--shadow-base: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
101
|
+
--shadow-card: 0 1px 1px 0 rgba(0, 0, 0, 0.1);
|
|
102
|
+
--shadow-up: 0 -1px 6px rgba(0, 0, 0, 0.2);
|
|
103
|
+
--shadow-down: 0 1px 6px rgba(0, 0, 0, 0.2);
|
|
104
|
+
--shadow-left: -1px 0 6px rgba(0, 0, 0, 0.2);
|
|
105
|
+
--shadow-right: 1px 0 6px rgba(0, 0, 0, 0.2);
|
|
106
|
+
--btn-height-base: 32px;
|
|
107
|
+
--btn-height-large: 40px;
|
|
108
|
+
--btn-height-small: 24px;
|
|
109
|
+
--btn-padding-base: 0 15px;
|
|
110
|
+
--btn-padding-large: 0 15px;
|
|
111
|
+
--btn-padding-small: 0 7px;
|
|
112
|
+
--btn-font-weight: normal;
|
|
113
|
+
--btn-padding-base-icon: 5px 15px 6px;
|
|
114
|
+
--btn-padding-large-icon: 6px 15px 6px 15px;
|
|
115
|
+
--btn-padding-small-icon: 1px 7px 2px;
|
|
116
|
+
--btn-font-size: 14px;
|
|
117
|
+
--btn-font-size-large: 16px;
|
|
118
|
+
--btn-font-size-small: 14px;
|
|
119
|
+
--btn-border-radius: 4px;
|
|
120
|
+
--btn-border-radius-small: 3px;
|
|
121
|
+
--btn-group-border: #f23153;
|
|
122
|
+
--btn-disable-color: #c5c8ce;
|
|
123
|
+
--btn-disable-bg: #f7f7f7;
|
|
124
|
+
--btn-disable-border: #dcdee2;
|
|
125
|
+
--btn-default-color: #515a6e;
|
|
126
|
+
--btn-default-color-tint-20: #747b8b;
|
|
127
|
+
--btn-default-color-shade-5: #4d5669;
|
|
128
|
+
--btn-default-bg: #fff;
|
|
129
|
+
--btn-default-bg-tint-20: #ffffff;
|
|
130
|
+
--btn-default-bg-shade-5: #f2f2f2;
|
|
131
|
+
--btn-default-border: #dcdee2;
|
|
132
|
+
--btn-default-border-tint-20: #e3e5e8;
|
|
133
|
+
--btn-default-border-shade-5: #d1d3d7;
|
|
134
|
+
--btn-primary-color: #fff;
|
|
135
|
+
--btn-primary-color-tint-20: #ffffff;
|
|
136
|
+
--btn-primary-color-tint-5: #ffffff;
|
|
137
|
+
--btn-primary-color-shade-5: #f2f2f2;
|
|
138
|
+
--btn-primary-bg: #ff3457;
|
|
139
|
+
--btn-primary-bg-tint-20: #ff5d79;
|
|
140
|
+
--btn-primary-bg-tint-5: #ff3e5f;
|
|
141
|
+
--btn-primary-bg-shade-5: #f23153;
|
|
142
|
+
--btn-ghost-color: #515a6e;
|
|
143
|
+
--btn-ghost-color-tint-20: #747b8b;
|
|
144
|
+
--btn-ghost-color-shade-5: #4d5669;
|
|
145
|
+
--btn-ghost-bg: #fff;
|
|
146
|
+
--btn-ghost-bg-tint-20: #ffffff;
|
|
147
|
+
--btn-ghost-bg-shade-5: #f2f2f2;
|
|
148
|
+
--btn-ghost-border: #dcdee2;
|
|
149
|
+
--btn-ghost-border-tint-20: #e3e5e8;
|
|
150
|
+
--btn-ghost-border-shade-5: #d1d3d7;
|
|
151
|
+
--btn-circle-size: 32px;
|
|
152
|
+
--btn-circle-size-large: 40px;
|
|
153
|
+
--btn-circle-size-small: 24px;
|
|
154
|
+
--btn-square-size: 32px;
|
|
155
|
+
--btn-square-size-large: 40px;
|
|
156
|
+
--btn-square-size-small: 24px;
|
|
157
|
+
--grid-columns: 24;
|
|
158
|
+
--grid-gutter-width: 0;
|
|
159
|
+
--layout-body-background: #f5f7f9;
|
|
160
|
+
--layout-header-background: #333333;
|
|
161
|
+
--layout-header-height: 64px;
|
|
162
|
+
--layout-header-padding: 0 50px;
|
|
163
|
+
--layout-footer-padding: 24px 50px;
|
|
164
|
+
--layout-footer-background: #f5f7f9;
|
|
165
|
+
--layout-sider-background: #333333;
|
|
166
|
+
--layout-sider-background-tint-10: #474747;
|
|
167
|
+
--layout-trigger-height: 48px;
|
|
168
|
+
--layout-trigger-color: #fff;
|
|
169
|
+
--layout-zero-trigger-width: 36px;
|
|
170
|
+
--layout-zero-trigger-height: 42px;
|
|
171
|
+
--legend-color: #999;
|
|
172
|
+
--input-height-base: 32px;
|
|
173
|
+
--input-height-large: 40px;
|
|
174
|
+
--input-height-small: 24px;
|
|
175
|
+
--input-padding-horizontal: 7px;
|
|
176
|
+
--input-padding-vertical-base: 4px;
|
|
177
|
+
--input-padding-vertical-small: 1px;
|
|
178
|
+
--input-padding-vertical-large: 6px;
|
|
179
|
+
--input-placeholder-color: #c5c8ce;
|
|
180
|
+
--input-color: #515a6e;
|
|
181
|
+
--input-border-color: #dcdee2;
|
|
182
|
+
--input-border-color-tint-20: #e3e5e8;
|
|
183
|
+
--input-bg: #fff;
|
|
184
|
+
--input-group-bg: #f8f8f9;
|
|
185
|
+
--input-hover-border-color: #ff3457;
|
|
186
|
+
--input-hover-border-color-tint-20: #ff5d79;
|
|
187
|
+
--input-hover-border-color-fade-20: rgba(255, 52, 87, 0.2);
|
|
188
|
+
--input-focus-border-color: #ff3457;
|
|
189
|
+
--input-disabled-bg: #f3f3f3;
|
|
190
|
+
--tag-font-size: 12px;
|
|
191
|
+
--screen-xs: 480px;
|
|
192
|
+
--screen-xs-min: 480px;
|
|
193
|
+
--screen-xs-max: 479px;
|
|
194
|
+
--screen-sm: 576px;
|
|
195
|
+
--screen-sm-min: 576px;
|
|
196
|
+
--screen-sm-max: 575px;
|
|
197
|
+
--screen-md: 768px;
|
|
198
|
+
--screen-md-min: 768px;
|
|
199
|
+
--screen-md-max: 767px;
|
|
200
|
+
--screen-lg: 992px;
|
|
201
|
+
--screen-lg-min: 992px;
|
|
202
|
+
--screen-lg-max: 991px;
|
|
203
|
+
--screen-xl: 1200px;
|
|
204
|
+
--screen-xl-min: 1200px;
|
|
205
|
+
--screen-xl-max: 1199px;
|
|
206
|
+
--screen-xxl: 1600px;
|
|
207
|
+
--screen-xxl-min: 1600px;
|
|
208
|
+
--screen-xxl-max: 1599px;
|
|
209
|
+
--zindex-spin: 8;
|
|
210
|
+
--zindex-affix: 10;
|
|
211
|
+
--zindex-back-top: 10;
|
|
212
|
+
--zindex-select: 900;
|
|
213
|
+
--zindex-modal: 1000;
|
|
214
|
+
--zindex-drawer: 1000;
|
|
215
|
+
--zindex-message: 1010;
|
|
216
|
+
--zindex-notification: 1010;
|
|
217
|
+
--zindex-tooltip: 1060;
|
|
218
|
+
--zindex-transfer: 1060;
|
|
219
|
+
--zindex-loading-bar: 2000;
|
|
220
|
+
--zindex-spin-fullscreen: 2010;
|
|
221
|
+
--animation-time: 0.3s;
|
|
222
|
+
--animation-time-quick: 0.15s;
|
|
223
|
+
--transition-time: 0.2s;
|
|
224
|
+
--ease-in-out: ease-in-out;
|
|
225
|
+
--slider-color: #ff5d79;
|
|
226
|
+
--slider-height: 4px;
|
|
227
|
+
--slider-margin: 16px 0;
|
|
228
|
+
--slider-button-wrap-size: 18px;
|
|
229
|
+
--slider-button-wrap-offset: -5px;
|
|
230
|
+
--slider-disabled-color: #ccc;
|
|
231
|
+
--avatar-size-base: 32px;
|
|
232
|
+
--avatar-size-lg: 40px;
|
|
233
|
+
--avatar-size-sm: 24px;
|
|
234
|
+
--avatar-font-size-base: 18px;
|
|
235
|
+
--avatar-font-size-lg: 24px;
|
|
236
|
+
--avatar-font-size-sm: 14px;
|
|
237
|
+
--avatar-bg: #ccc;
|
|
238
|
+
--avatar-color: #fff;
|
|
239
|
+
--avatar-border-radius: 4px;
|
|
240
|
+
--anchor-border-width: 2px;
|
|
241
|
+
--list-header-background: transparent;
|
|
242
|
+
--list-footer-background: transparent;
|
|
243
|
+
--list-empty-text-padding: 16px;
|
|
244
|
+
--list-item-padding: 12px 0;
|
|
245
|
+
--list-item-meta-margin-bottom: 16px;
|
|
246
|
+
--list-item-meta-avatar-margin-right: 16px;
|
|
247
|
+
--list-item-meta-title-margin-bottom: 12px;
|
|
248
|
+
`,
|
|
249
|
+
style:
|
|
250
|
+
`
|
|
251
|
+
html {
|
|
252
|
+
padding:0;
|
|
253
|
+
margin:0;
|
|
254
|
+
}
|
|
255
|
+
`
|
|
256
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const importDirective = Vue => {
|
|
2
|
+
const requireDirective = require.context(
|
|
3
|
+
// 其组件目录的相对路径
|
|
4
|
+
'./module',
|
|
5
|
+
// 是否查询其子目录
|
|
6
|
+
false,
|
|
7
|
+
// 匹配基础组件文件名的正则表达式
|
|
8
|
+
/[a-zA-Z]\w+\.(vue|js)$/
|
|
9
|
+
)
|
|
10
|
+
requireDirective.keys().forEach(fileName => {
|
|
11
|
+
// 获取组件配置
|
|
12
|
+
const directiveConfig = requireDirective(fileName)
|
|
13
|
+
|
|
14
|
+
// 获取组件的 PascalCase 命名
|
|
15
|
+
const directiveName = fileName
|
|
16
|
+
.split('/')
|
|
17
|
+
.pop()
|
|
18
|
+
.replace(/\.\w+$/, '')
|
|
19
|
+
Vue.directive(directiveName.toLowerCase(), directiveConfig.default || directiveConfig);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export default importDirective
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import {on} from '../../utils/dom'
|
|
2
|
+
/**
|
|
3
|
+
* 拖拽指令 v-draggable="options"
|
|
4
|
+
* options = {
|
|
5
|
+
* trigger: /这里传入作为拖拽触发器的CSS选择器/,
|
|
6
|
+
* body: /这里传入需要移动容器的CSS选择器/,
|
|
7
|
+
* recover: /拖动结束之后是否恢复到原来的位置/
|
|
8
|
+
* }
|
|
9
|
+
*/
|
|
10
|
+
export default {
|
|
11
|
+
inserted: (el, binding, vnode) => {
|
|
12
|
+
let triggerDom = document.querySelector(binding.value.trigger)
|
|
13
|
+
triggerDom.style.cursor = 'move'
|
|
14
|
+
let bodyDom = document.querySelector(binding.value.body)
|
|
15
|
+
let pageX = 0
|
|
16
|
+
let pageY = 0
|
|
17
|
+
let transformX = 0
|
|
18
|
+
let transformY = 0
|
|
19
|
+
let canMove = false
|
|
20
|
+
const handleMousedown = e => {
|
|
21
|
+
let transform = /\(.*\)/.exec(bodyDom.style.transform)
|
|
22
|
+
if (transform) {
|
|
23
|
+
transform = transform[0].slice(1, transform[0].length - 1)
|
|
24
|
+
let splitxy = transform.split('px, ')
|
|
25
|
+
transformX = parseFloat(splitxy[0])
|
|
26
|
+
transformY = parseFloat(splitxy[1].split('px')[0])
|
|
27
|
+
}
|
|
28
|
+
pageX = e.pageX
|
|
29
|
+
pageY = e.pageY
|
|
30
|
+
canMove = true
|
|
31
|
+
}
|
|
32
|
+
const handleMousemove = e => {
|
|
33
|
+
let xOffset = e.pageX - pageX + transformX
|
|
34
|
+
let yOffset = e.pageY - pageY + transformY
|
|
35
|
+
/*if (e.pageX <= 0) {
|
|
36
|
+
xOffset = pageX
|
|
37
|
+
}*/
|
|
38
|
+
if (e.pageY <= 0) {
|
|
39
|
+
yOffset = transformY - pageY
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
if (canMove) bodyDom.style.transform = `translate(${xOffset}px, ${yOffset}px)`
|
|
43
|
+
}
|
|
44
|
+
const handleMouseup = e => {
|
|
45
|
+
canMove = false
|
|
46
|
+
}
|
|
47
|
+
on(triggerDom, 'mousedown', handleMousedown)
|
|
48
|
+
on(document, 'mousemove', handleMousemove)
|
|
49
|
+
on(document, 'mouseup', handleMouseup)
|
|
50
|
+
},
|
|
51
|
+
update: (el, binding, vnode) => {
|
|
52
|
+
if (!binding.value.recover) return
|
|
53
|
+
let bodyDom = document.querySelector(binding.value.body)
|
|
54
|
+
bodyDom.style.transform = ''
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import config from "../../config/config";
|
|
2
|
+
|
|
3
|
+
const checkPermission = function (el, binding) {
|
|
4
|
+
el.style.display = "none"
|
|
5
|
+
const value = binding.value
|
|
6
|
+
const permissionInStore = sessionStorage.getItem(config.routerBase + "-permission");
|
|
7
|
+
if (permissionInStore) {
|
|
8
|
+
const permissionObj = JSON.parse(permissionInStore);
|
|
9
|
+
//判断是否以'/'为开头结尾
|
|
10
|
+
if (/(^\/.*\/$)/.test(value)) {
|
|
11
|
+
//去掉开头结尾的'/'
|
|
12
|
+
let regexStr = value.replace(/(^\/)|(\/$)/g,"");
|
|
13
|
+
|
|
14
|
+
regExCheck(el, permissionObj, regexStr)
|
|
15
|
+
} else {
|
|
16
|
+
normalCheck(el, permissionObj, value)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const regExCheck = function (el, permissionObj, value) {
|
|
22
|
+
let regex = new RegExp(value,"i");
|
|
23
|
+
for (const item of permissionObj) {
|
|
24
|
+
if (item.permissionValue) {
|
|
25
|
+
if(regex.test(item.permissionValue)){
|
|
26
|
+
console.log(item.permissionValue)
|
|
27
|
+
el.style.display = '';
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const normalCheck = function (el, permissionObj, value) {
|
|
34
|
+
let permission = {};
|
|
35
|
+
for (const item of permissionObj) {
|
|
36
|
+
if (item.permissionValue) {
|
|
37
|
+
permission[item.permissionValue] = true;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
const have = permission[value]
|
|
41
|
+
if (have || value === "all") {
|
|
42
|
+
el.style.display = '';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export default {
|
|
47
|
+
bind: checkPermission,
|
|
48
|
+
update: checkPermission
|
|
49
|
+
}
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/shared",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.51",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {},
|
|
7
7
|
"author": "lambo",
|
|
8
8
|
"license": "ISC",
|
|
9
9
|
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
10
|
+
"access": "public",
|
|
11
|
+
"registry": "https://registry.npmjs.org/"
|
|
11
12
|
},
|
|
12
13
|
"dependencies": {
|
|
13
14
|
"axios": "^0.24.0",
|
|
14
15
|
"axios-cache-plugin": "^0.1.0",
|
|
15
16
|
"qs": "^6.11.0",
|
|
16
|
-
"xlsx": "http://
|
|
17
|
+
"xlsx": "http://cicd.lambo.top/package/cdn/xlsx-0.19.1.tgz",
|
|
17
18
|
"classnames": "^2.3.1",
|
|
18
|
-
"xlsx-style": "^0.8.13"
|
|
19
|
+
"xlsx-style": "^0.8.13",
|
|
20
|
+
"moment": "2.29.4"
|
|
19
21
|
}
|
|
20
22
|
}
|