vanilla-jui 1.5.29 → 1.5.31
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/dist/index.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/modal.ts +5 -3
- package/src/css/avatar.css +4 -0
- package/src/css/editor.css +9 -6
- package/src/css/icon.css +3 -5
- package/src/css/themes/default/avatar.css +2 -2
- package/src/locales/index.ts +2 -0
package/package.json
CHANGED
package/src/components/modal.ts
CHANGED
|
@@ -179,9 +179,11 @@ const MODAL_TEXT_RULE = {
|
|
|
179
179
|
const text = (isPlainObject(value) ? value : {}) as ModalTextInput;
|
|
180
180
|
return {
|
|
181
181
|
...text,
|
|
182
|
-
title: typeof text.title === 'string' ? text.title : 'Tip',
|
|
183
|
-
confirm:
|
|
184
|
-
|
|
182
|
+
title: typeof text.title === 'string' ? text.title : translate('Tip'),
|
|
183
|
+
confirm:
|
|
184
|
+
typeof text.confirm === 'string' ? text.confirm : translate('Confirm'),
|
|
185
|
+
cancel:
|
|
186
|
+
typeof text.cancel === 'string' ? text.cancel : translate('Cancel'),
|
|
185
187
|
};
|
|
186
188
|
},
|
|
187
189
|
};
|
package/src/css/avatar.css
CHANGED
package/src/css/editor.css
CHANGED
|
@@ -535,7 +535,6 @@
|
|
|
535
535
|
.j-editor img {
|
|
536
536
|
max-width: 100%;
|
|
537
537
|
height: auto;
|
|
538
|
-
border-radius: var(--radius-lg);
|
|
539
538
|
}
|
|
540
539
|
|
|
541
540
|
.j-editor figure {
|
|
@@ -581,17 +580,21 @@
|
|
|
581
580
|
}
|
|
582
581
|
|
|
583
582
|
/* ============================================
|
|
584
|
-
|
|
585
|
-
|
|
583
|
+
Table - 表格
|
|
584
|
+
============================================ */
|
|
586
585
|
|
|
587
586
|
.j-editor table {
|
|
588
587
|
display: block;
|
|
589
|
-
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.j-editor table th,
|
|
591
|
+
.j-editor table td {
|
|
592
|
+
--table-cell-padding: 0.5rem 1rem;
|
|
590
593
|
}
|
|
591
594
|
|
|
592
595
|
/* ============================================
|
|
593
|
-
|
|
594
|
-
|
|
596
|
+
Horizontal Rule - 分割线
|
|
597
|
+
============================================ */
|
|
595
598
|
|
|
596
599
|
.j-editor hr {
|
|
597
600
|
margin: var(--editor-block-space) 0;
|
package/src/css/icon.css
CHANGED
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
transform: scale(1);
|
|
12
12
|
width: var(--font-size-xl);
|
|
13
13
|
height: var(--font-size-xl);
|
|
14
|
-
/* border: 1px solid; */
|
|
15
|
-
/* border-radius: 50%; */
|
|
16
14
|
color: inherit;
|
|
17
15
|
cursor: pointer;
|
|
18
16
|
}
|
|
@@ -47,12 +45,12 @@
|
|
|
47
45
|
background-color: var(--tone-subtle);
|
|
48
46
|
}
|
|
49
47
|
|
|
50
|
-
/* icon
|
|
51
|
-
.el-icon[data-action
|
|
48
|
+
/* icon status */
|
|
49
|
+
.el-icon[data-action='close'] {
|
|
52
50
|
cursor: pointer;
|
|
53
51
|
}
|
|
54
52
|
|
|
55
|
-
.el-icon[data-action
|
|
53
|
+
.el-icon[data-action='close']:active {
|
|
56
54
|
transform: scale(0.85);
|
|
57
55
|
}
|
|
58
56
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@layer themes {
|
|
2
2
|
.j-avatar {
|
|
3
3
|
--avatar-size: var(--el-height-md);
|
|
4
|
-
--avatar-border-radius: var(--radius-
|
|
4
|
+
--avatar-border-radius: var(--radius-sm);
|
|
5
5
|
--avatar-box-shadow: var(--shadow-sm);
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.j-avatar.is-round {
|
|
33
|
-
--avatar-border-radius:
|
|
33
|
+
--avatar-border-radius: var(--radius-lg);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.j-avatar.is-text {
|