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