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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vanilla-jui",
3
- "version": "1.5.30",
3
+ "version": "1.5.31",
4
4
  "private": false,
5
5
  "description": "A lightweight, reactive, and fully customizable vanilla JS UI library.",
6
6
  "keywords": [
@@ -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: typeof text.confirm === 'string' ? text.confirm : 'Confirm',
184
- cancel: typeof text.cancel === 'string' ? text.cancel : 'Cancel',
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
  };
@@ -580,17 +580,21 @@
580
580
  }
581
581
 
582
582
  /* ============================================
583
- Table - 表格
584
- ============================================ */
583
+ Table - 表格
584
+ ============================================ */
585
585
 
586
586
  .j-editor table {
587
587
  display: block;
588
- margin-block: var(--editor-block-space);
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
- Horizontal Rule - 分割线
593
- ============================================ */
596
+ Horizontal Rule - 分割线
597
+ ============================================ */
594
598
 
595
599
  .j-editor hr {
596
600
  margin: var(--editor-block-space) 0;
@@ -39,8 +39,10 @@ export default {
39
39
  Light: '浅色',
40
40
  Dark: '深色',
41
41
  Auto: '自动',
42
+ Tip: '提示',
42
43
  Close: '关闭',
43
44
  Confirm: '确认',
45
+ Cancel: '取消',
44
46
  Upgrade: '升级',
45
47
  wn: '您的浏览器版本过低,存在安全风险。请升级浏览器后再访问本站。',
46
48
  Submit: '提交',