doway-coms 2.0.7 → 2.0.9
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 +1 -1
- package/packages/utils/msg.js +44 -4
package/package.json
CHANGED
package/packages/utils/msg.js
CHANGED
|
@@ -7,12 +7,32 @@ export function successMsg(msg, desc){
|
|
|
7
7
|
{
|
|
8
8
|
message: h => {
|
|
9
9
|
return h("div", null, [
|
|
10
|
-
h("
|
|
10
|
+
h("div", {
|
|
11
|
+
domProps: { innerHTML: msg },
|
|
12
|
+
style: {
|
|
13
|
+
'white-space': 'pre-wrap', /* 保持空白符格式,允许正常的换行 */
|
|
14
|
+
'overflow-wrap': 'break-word', /* 允许单词在边界内断开 */
|
|
15
|
+
'word-wrap': 'break-word', /* 旧版浏览器的兼容性写法 */
|
|
16
|
+
'overflow-y': 'auto',
|
|
17
|
+
'max-width': '260px', /* 你想要的任何最大宽度 */
|
|
18
|
+
'max-height': '500px',
|
|
19
|
+
}
|
|
20
|
+
}, null),
|
|
11
21
|
])
|
|
12
22
|
},
|
|
13
23
|
description: h => {
|
|
14
24
|
return h("div", null, [
|
|
15
|
-
h("
|
|
25
|
+
h("div", {
|
|
26
|
+
domProps: { innerHTML: desc },
|
|
27
|
+
style: {
|
|
28
|
+
'white-space': 'pre-wrap',
|
|
29
|
+
'overflow-wrap': 'break-word',
|
|
30
|
+
'word-wrap': 'break-word',
|
|
31
|
+
'overflow-y': 'auto',
|
|
32
|
+
'max-width': '260px',
|
|
33
|
+
'max-height': '500px',
|
|
34
|
+
}
|
|
35
|
+
}, null),
|
|
16
36
|
])
|
|
17
37
|
},
|
|
18
38
|
top: '100px'
|
|
@@ -24,12 +44,32 @@ export function successMsg(msg, desc){
|
|
|
24
44
|
{
|
|
25
45
|
message: h => {
|
|
26
46
|
return h("div", null, [
|
|
27
|
-
h("
|
|
47
|
+
h("div", {
|
|
48
|
+
domProps: { innerHTML: msg },
|
|
49
|
+
style: {
|
|
50
|
+
'white-space': 'pre-wrap', /* 保持空白符格式,允许正常的换行 */
|
|
51
|
+
'overflow-wrap': 'break-word', /* 允许单词在边界内断开 */
|
|
52
|
+
'word-wrap': 'break-word', /* 旧版浏览器的兼容性写法 */
|
|
53
|
+
'overflow-y': 'auto',
|
|
54
|
+
'max-width': '260px', /* 你想要的任何最大宽度 */
|
|
55
|
+
'max-height': '500px',
|
|
56
|
+
}
|
|
57
|
+
}, null),
|
|
28
58
|
])
|
|
29
59
|
},
|
|
30
60
|
description: h => {
|
|
31
61
|
return h("div", null, [
|
|
32
|
-
h("
|
|
62
|
+
h("div", {
|
|
63
|
+
domProps: { innerHTML: desc },
|
|
64
|
+
style: {
|
|
65
|
+
'white-space': 'pre-wrap',
|
|
66
|
+
'overflow-wrap': 'break-word',
|
|
67
|
+
'word-wrap': 'break-word',
|
|
68
|
+
'overflow-y': 'auto',
|
|
69
|
+
'max-width': '260px',
|
|
70
|
+
'max-height': '500px',
|
|
71
|
+
}
|
|
72
|
+
}, null),
|
|
33
73
|
])
|
|
34
74
|
},
|
|
35
75
|
top: '100px'
|