-
{{ item.title }}
+
{{ item.title }}
{{ item.add_time_date }}
@@ -96,6 +96,14 @@ const form = computed(() => props.value?.content || {});
const new_style = computed(() => props.value?.style || {});
// 选择的风格
const theme = computed(() => form.value.theme);
+const get_title_line = computed(() => {
+ const line = form.value.title_display_method;
+ if (line == '0') {
+ return '';
+ } else {
+ return line == '1' ? 'text-line-1' : 'text-line-2'
+ }
+});
// 最外层不同风格下的显示
const outer_class = computed(() => {
const flex = ['0', '2'].includes(theme.value) ? 'flex-col ' : 'container ';
@@ -211,7 +219,7 @@ const trends_config = (key: string, type?: string) => {
};
// 根据传递的值,显示不同的内容
const style_config = (typeface: string, size: number, color: string | object, type?: string) => {
- let style = `font-weight:${typeface}; font-size: ${size}px;color: ${color};`;
+ let style = `font-weight:${typeface}; font-size: ${size}px;color: ${color};line-height: 1.5;`;
return style;
};
// 不同风格下的样式
diff --git a/src/components/model-ask/model-ask-content.vue b/src/components/model-ask/model-ask-content.vue
index f91076a0..5cb60494 100644
--- a/src/components/model-ask/model-ask-content.vue
+++ b/src/components/model-ask/model-ask-content.vue
@@ -33,6 +33,11 @@
{{ item.name }}
+
+
+ {{ item.name }}
+
+
@@ -92,6 +97,11 @@ const base_list = reactive({
{ name: '未回', value: '0' },
{ name: '已回', value: '1' },
],
+ display_method: [
+ { name: '自动', value: '0' },
+ { name: '一行', value: '1' },
+ { name: '两行', value: '2' },
+ ],
});
// 移除
diff --git a/src/config/const/ask-tabs.ts b/src/config/const/ask-tabs.ts
index b091c5ee..383a08b0 100644
--- a/src/config/const/ask-tabs.ts
+++ b/src/config/const/ask-tabs.ts
@@ -45,6 +45,7 @@ interface defaultRealstore {
keywords: string;
is_reply: string;
is_show: string[],
+ title_display_method: string,
};
style: {
tabs_one_theme: string;
@@ -165,6 +166,7 @@ const defaultRealstore: defaultRealstore = {
keywords: '',
is_reply: '',
is_show: ['time', 'page_view', 'reply_status', 'ranking'],
+ title_display_method: '0',
},
style: {
// 选中样式风格
diff --git a/src/config/const/ask.ts b/src/config/const/ask.ts
index 15cb431c..5b159e41 100644
--- a/src/config/const/ask.ts
+++ b/src/config/const/ask.ts
@@ -18,6 +18,7 @@ interface defaultRealstore {
keywords: string;
is_reply: string;
is_show: string[],
+ title_display_method: string;
};
style: {
ask_color_list: color_list[];
@@ -77,6 +78,7 @@ const defaultRealstore: defaultRealstore = {
keywords: '',
is_reply: '',
is_show: ['time', 'page_view', 'reply_status', 'ranking'],
+ title_display_method: '0',
},
style: {
ask_color_list: [{ color: '#fff', color_percentage: undefined }],