-
+
@@ -199,6 +199,21 @@ const style_location_img_container = computed(() => {
const height = 32 - location_margin.margin_top - location_margin.margin_bottom;
return background_computer(style) + padding_computer(location_padding) + radius_computer(new_style.value.location_radius) + border + `height: ${height}px;line-height: ${height}px;`;
});
+
+const location_name_style = computed(() => {
+ let width = 0;
+ if (is_search_alone_row.value && is_icon_alone_row.value) {
+ width = 200;
+ } else if (is_search_alone_row.value || is_icon_alone_row.value) {
+ width = 100;
+ }
+ if (form.value.theme == '4') {
+ return `max-width: ${ 150 + width }px;`;
+ } else {
+ return `max-width: ${ 100 + width }px;`;
+ }
+});
+
// 文字样式
const text_style = computed(() => `font-weight:${new_style.value.header_background_title_typeface}; font-size: ${new_style.value.header_background_title_size}px; color: ${new_style.value.header_background_title_color};`);
const position_class = computed(() => (form.value?.indicator_location == 'center' ? `indicator-center` : ''));
@@ -230,8 +245,6 @@ const position_class = computed(() => (form.value?.indicator_location == 'center
.model-head-content {
height: 3.2rem;
.location-name {
- // line-height: 100%;
- max-width: 15rem;
width: 100%;
flex-basis: content;
flex-shrink: 1;
diff --git a/src/config/const/custom.ts b/src/config/const/custom.ts
index baa7513f..061660c5 100644
--- a/src/config/const/custom.ts
+++ b/src/config/const/custom.ts
@@ -99,6 +99,8 @@ interface defaultSearch {
indicator_size: number;
indicator_radius: radiusStyle;
data_style: object;
+ row_gap: number;
+ column_gap: number;
// 通用样式
common_style: object;
};
@@ -174,6 +176,8 @@ const defaultSearch: defaultSearch = {
margin_left: 0,
margin_right: 0,
},
+ row_gap: 0,
+ column_gap: 0,
common_style: {
...defaultCommon,
color_list: [{ color: 'rgb(244, 252, 255)', color_percentage: undefined }],