n20-common-lib 1.3.91 → 1.3.93
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* 审批按钮组 */
|
|
2
2
|
<template>
|
|
3
3
|
<div>
|
|
4
|
-
<el-form label-position="right" label-width="5em">
|
|
4
|
+
<el-form label-position="right" :label-width="_lang === 'zh' ? '5em' : '10em'">
|
|
5
5
|
<div v-if="taskId && showBtn" class="flex-box">
|
|
6
6
|
<div v-if="authList.includes('isCarboncopy')" class="flex-1">
|
|
7
7
|
<el-form-item :label="'抄送' | $lc" class="m-b">
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<el-dropdown trigger="click" placement="bottom-start" @command="commandFn">
|
|
3
|
-
<
|
|
3
|
+
<slot name="import-btn"
|
|
4
|
+
><el-button size="mini" type="primary">{{ '导入' | $lc }}</el-button></slot
|
|
5
|
+
>
|
|
4
6
|
<el-dropdown-menu slot="dropdown">
|
|
5
7
|
<el-dropdown-item command="import">{{ '导入数据' | $lc }}</el-dropdown-item>
|
|
6
8
|
<el-dropdown-item command="down">{{ '模板下载' | $lc }}</el-dropdown-item>
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
<h3 class="login-logo-text">{{ loginLogoText | $l }}</h3>
|
|
16
16
|
</div>
|
|
17
17
|
<!-- eslint-disable-next-line vue/no-v-html -->
|
|
18
|
-
<div doc="登录页标语" v-html="
|
|
18
|
+
<div doc="登录页标语" v-html="loginSloganHtml"></div>
|
|
19
19
|
<loginForm
|
|
20
20
|
v-if="operateType === 'login'"
|
|
21
21
|
:login-types="loginTypes"
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
loginLogoHeight: 'auto',
|
|
86
86
|
loginLogoText: undefined,
|
|
87
87
|
loginCopyright: undefined,
|
|
88
|
-
|
|
88
|
+
loginSloganHtml: undefined
|
|
89
89
|
},
|
|
90
90
|
pageData: {
|
|
91
91
|
LOGIN_MODE: undefined, // 登录方式
|
|
@@ -126,8 +126,8 @@ export default {
|
|
|
126
126
|
loginCopyright() {
|
|
127
127
|
return this.jsonData.loginCopyright || ''
|
|
128
128
|
},
|
|
129
|
-
|
|
130
|
-
return this.jsonData.
|
|
129
|
+
loginSloganHtml() {
|
|
130
|
+
return this.jsonData.loginSloganHtml || ''
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
133
|
created() {
|
|
@@ -94,9 +94,13 @@ export default function (ElementUI) {
|
|
|
94
94
|
if (!column.minWidth) {
|
|
95
95
|
if (!column.width) {
|
|
96
96
|
let label = column.label || ''
|
|
97
|
+
let labels = label.match(/./gu) || []
|
|
98
|
+
let labelW = 0
|
|
99
|
+
labels.forEach((s) => (labelW += ASCII_W[s] || 14))
|
|
100
|
+
|
|
97
101
|
let sortable = column.sortable ? 24 : 0
|
|
98
102
|
let filters = column.filters ? 16 : 0
|
|
99
|
-
column.minWidth = Math.max(80,
|
|
103
|
+
column.minWidth = Math.max(80, labelW + 22 + sortable + filters)
|
|
100
104
|
} else {
|
|
101
105
|
column.minWidth = 80
|
|
102
106
|
}
|
|
@@ -143,3 +147,101 @@ export default function (ElementUI) {
|
|
|
143
147
|
})
|
|
144
148
|
}
|
|
145
149
|
}
|
|
150
|
+
|
|
151
|
+
const ASCII_W = {
|
|
152
|
+
' ': 4.125,
|
|
153
|
+
0: 8.21875,
|
|
154
|
+
1: 8.21875,
|
|
155
|
+
2: 8.21875,
|
|
156
|
+
3: 8.21875,
|
|
157
|
+
4: 8.21875,
|
|
158
|
+
5: 8.21875,
|
|
159
|
+
6: 8.21875,
|
|
160
|
+
7: 8.21875,
|
|
161
|
+
8: 8.21875,
|
|
162
|
+
9: 8.21875,
|
|
163
|
+
'!': 4.375,
|
|
164
|
+
'"': 6.109375,
|
|
165
|
+
'#': 8.9375,
|
|
166
|
+
$: 8.21875,
|
|
167
|
+
'%': 12.46875,
|
|
168
|
+
'&': 12.1875,
|
|
169
|
+
"'": 3.59375,
|
|
170
|
+
'(': 4.6875,
|
|
171
|
+
')': 4.6875,
|
|
172
|
+
'*': 6.375,
|
|
173
|
+
'+': 10.390625,
|
|
174
|
+
',': 3.375,
|
|
175
|
+
'-': 6.0625,
|
|
176
|
+
'.': 3.375,
|
|
177
|
+
'/': 5.984375,
|
|
178
|
+
':': 3.375,
|
|
179
|
+
';': 3.375,
|
|
180
|
+
'<': 10.390625,
|
|
181
|
+
'=': 10.390625,
|
|
182
|
+
'>': 10.390625,
|
|
183
|
+
'?': 6.765625,
|
|
184
|
+
'@': 14.4375,
|
|
185
|
+
A: 9.859375,
|
|
186
|
+
B: 8.796875,
|
|
187
|
+
C: 9.375,
|
|
188
|
+
D: 10.671875,
|
|
189
|
+
E: 7.703125,
|
|
190
|
+
F: 7.4375,
|
|
191
|
+
G: 10.421875,
|
|
192
|
+
H: 10.828125,
|
|
193
|
+
I: 4.125,
|
|
194
|
+
J: 5.546875,
|
|
195
|
+
K: 8.890625,
|
|
196
|
+
L: 7.1875,
|
|
197
|
+
M: 13.6875,
|
|
198
|
+
N: 11.390625,
|
|
199
|
+
O: 11.421875,
|
|
200
|
+
P: 8.578125,
|
|
201
|
+
Q: 11.421875,
|
|
202
|
+
R: 9.140625,
|
|
203
|
+
S: 8.09375,
|
|
204
|
+
T: 8.03125,
|
|
205
|
+
U: 10.453125,
|
|
206
|
+
V: 9.46875,
|
|
207
|
+
W: 14.25,
|
|
208
|
+
X: 9.03125,
|
|
209
|
+
Y: 8.453125,
|
|
210
|
+
Z: 8.6875,
|
|
211
|
+
'[': 4.6875,
|
|
212
|
+
'\\': 5.828125,
|
|
213
|
+
']': 4.6875,
|
|
214
|
+
'^': 10.390625,
|
|
215
|
+
_: 6.28125,
|
|
216
|
+
'`': 4.140625,
|
|
217
|
+
a: 7.75,
|
|
218
|
+
b: 8.953125,
|
|
219
|
+
c: 7.03125,
|
|
220
|
+
d: 8.96875,
|
|
221
|
+
e: 7.953125,
|
|
222
|
+
f: 4.859375,
|
|
223
|
+
g: 8.96875,
|
|
224
|
+
h: 8.625,
|
|
225
|
+
i: 3.734375,
|
|
226
|
+
j: 3.75,
|
|
227
|
+
k: 7.625,
|
|
228
|
+
l: 3.734375,
|
|
229
|
+
m: 13.125,
|
|
230
|
+
n: 8.640625,
|
|
231
|
+
o: 8.90625,
|
|
232
|
+
p: 8.953125,
|
|
233
|
+
q: 8.96875,
|
|
234
|
+
r: 5.40625,
|
|
235
|
+
s: 6.546875,
|
|
236
|
+
t: 5.21875,
|
|
237
|
+
u: 8.640625,
|
|
238
|
+
v: 7.359375,
|
|
239
|
+
w: 11.0625,
|
|
240
|
+
x: 7.109375,
|
|
241
|
+
y: 7.421875,
|
|
242
|
+
z: 6.890625,
|
|
243
|
+
'{': 4.6875,
|
|
244
|
+
'|': 3.78125,
|
|
245
|
+
'}': 4.6875,
|
|
246
|
+
'~': 10.390625
|
|
247
|
+
}
|