vanilla-jui 1.5.30 → 1.5.32
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/editor.css +9 -4
- 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/editor.css
CHANGED
|
@@ -580,17 +580,22 @@
|
|
|
580
580
|
}
|
|
581
581
|
|
|
582
582
|
/* ============================================
|
|
583
|
-
|
|
584
|
-
|
|
583
|
+
Table - 表格
|
|
584
|
+
============================================ */
|
|
585
585
|
|
|
586
586
|
.j-editor table {
|
|
587
587
|
display: block;
|
|
588
588
|
margin-block: var(--editor-block-space);
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
+
.j-editor table th,
|
|
592
|
+
.j-editor table td {
|
|
593
|
+
--table-cell-padding: 0.5rem 1rem;
|
|
594
|
+
}
|
|
595
|
+
|
|
591
596
|
/* ============================================
|
|
592
|
-
|
|
593
|
-
|
|
597
|
+
Horizontal Rule - 分割线
|
|
598
|
+
============================================ */
|
|
594
599
|
|
|
595
600
|
.j-editor hr {
|
|
596
601
|
margin: var(--editor-block-space) 0;
|