feat: add table border style setting
This commit is contained in:
@@ -122,6 +122,25 @@ spec:
|
|||||||
placeholder: "calc(var(--size-theme-font) * 0.0625)"
|
placeholder: "calc(var(--size-theme-font) * 0.0625)"
|
||||||
help: 控制表格边线宽度, 留空使用主题默认值
|
help: 控制表格边线宽度, 留空使用主题默认值
|
||||||
|
|
||||||
|
- $formkit: select
|
||||||
|
label: 表格边线样式
|
||||||
|
name: table_border_style
|
||||||
|
value: ""
|
||||||
|
help: 控制表格边线样式, 留空使用主题默认值
|
||||||
|
options:
|
||||||
|
- label: "default"
|
||||||
|
value: ""
|
||||||
|
- label: "solid"
|
||||||
|
value: "solid"
|
||||||
|
- label: "dashed"
|
||||||
|
value: "dashed"
|
||||||
|
- label: "dotted"
|
||||||
|
value: "dotted"
|
||||||
|
- label: "double"
|
||||||
|
value: "double"
|
||||||
|
- label: "none"
|
||||||
|
value: "none"
|
||||||
|
|
||||||
- $formkit: checkbox
|
- $formkit: checkbox
|
||||||
label: 使用系统字体
|
label: 使用系统字体
|
||||||
name: system_font_enable
|
name: system_font_enable
|
||||||
|
|||||||
@@ -173,6 +173,11 @@
|
|||||||
--width-theme-table-border: [(${theme.config.style.table_border_width})];
|
--width-theme-table-border: [(${theme.config.style.table_border_width})];
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<style no-pjax th:if="${not #strings.isEmpty(theme.config.style.table_border_style)}" th:inline="css">
|
||||||
|
:root {
|
||||||
|
--style-theme-table-border: [(${theme.config.style.table_border_style})];
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<script no-pjax>
|
<script no-pjax>
|
||||||
window.TerminalTheme?.applyCustomCss?.();
|
window.TerminalTheme?.applyCustomCss?.();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user