feat: update theme and UI styles across components
- Refactored CSS variables for consistent theming, replacing hardcoded colors with CSS variables for better maintainability. - Updated various components including `AgentAvatar`, `AgentSelector`, and `AgentShareSettings` to utilize new theme variables for colors, backgrounds, and shadows. - Enhanced SVG icons to use `currentColor` for better adaptability to theme changes. - Improved overall UI consistency by aligning styles with the new theming approach, enhancing user experience across the application. These changes significantly improve the visual coherence and maintainability of the UI, ensuring a more seamless user experience.
This commit is contained in:
@@ -106,7 +106,7 @@ const letterStyle = computed(() => {
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
overflow: hidden;
|
||||
|
||||
&.agent-avatar-small {
|
||||
@@ -152,7 +152,7 @@ const letterStyle = computed(() => {
|
||||
.agent-avatar-letter {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
color: #fff;
|
||||
color: var(--td-text-color-anti);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
|
||||
@@ -569,7 +569,7 @@ watch(() => props.visible, (newVal) => {
|
||||
background: var(--td-brand-color-light, #eefdf5);
|
||||
|
||||
.agent-option-name {
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
@@ -641,13 +641,13 @@ watch(() => props.visible, (newVal) => {
|
||||
flex-shrink: 0;
|
||||
|
||||
&.normal {
|
||||
background: rgba(7, 192, 95, 0.1);
|
||||
color: #059669;
|
||||
background: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
|
||||
&.agent {
|
||||
background: rgba(124, 77, 255, 0.1);
|
||||
color: #7c4dff;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -695,7 +695,7 @@ watch(() => props.visible, (newVal) => {
|
||||
.check-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -743,7 +743,7 @@ watch(() => props.visible, (newVal) => {
|
||||
|
||||
.agent-tooltip-selected {
|
||||
font-size: 10px;
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
|
||||
@@ -247,8 +247,8 @@ defineExpose({ loadShares })
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.section-content { .section-header { margin-bottom: 20px; } .section-title { margin: 0 0 8px 0; font-size: 16px; font-weight: 600; } .section-desc { margin: 0; font-size: 14px; color: #00000066; } }
|
||||
.share-form { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f0f0f0; }
|
||||
.section-content { .section-header { margin-bottom: 20px; } .section-title { margin: 0 0 8px 0; font-size: 16px; font-weight: 600; } .section-desc { margin: 0; font-size: 14px; color: var(--td-text-color-disabled); } }
|
||||
.share-form { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--td-component-stroke); }
|
||||
.form-item {
|
||||
.form-label {
|
||||
display: block;
|
||||
@@ -274,14 +274,14 @@ defineExpose({ loadShares })
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
.shares-count {
|
||||
padding: 2px 8px;
|
||||
background: #f5f5f5;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 10px;
|
||||
font-size: 12px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
}
|
||||
}
|
||||
.shares-loading {
|
||||
@@ -290,7 +290,7 @@ defineExpose({ loadShares })
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 32px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
font-size: 14px;
|
||||
}
|
||||
.shares-empty {
|
||||
@@ -300,9 +300,9 @@ defineExpose({ loadShares })
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
padding: 40px 20px;
|
||||
background: #fafafa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 8px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
.empty-icon { font-size: 32px; opacity: 0.5; }
|
||||
}
|
||||
.shares-list {
|
||||
@@ -318,13 +318,13 @@ defineExpose({ loadShares })
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
background: #fafafa;
|
||||
border: 1px solid #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 8px;
|
||||
transition: background 0.2s ease, border-color 0.2s ease;
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
border-color: #e8e8e8;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-color: var(--td-component-stroke);
|
||||
}
|
||||
}
|
||||
.share-info {
|
||||
@@ -347,7 +347,7 @@ defineExpose({ loadShares })
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
.share-item-meta {
|
||||
@@ -355,19 +355,19 @@ defineExpose({ loadShares })
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
.org-meta-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 2px 6px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.org-meta-icon {
|
||||
flex-shrink: 0;
|
||||
vertical-align: middle;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
.org-meta-icon-user {
|
||||
font-size: 12px;
|
||||
@@ -393,20 +393,20 @@ defineExpose({ loadShares })
|
||||
.share-scope-block {
|
||||
margin-bottom: 24px;
|
||||
padding: 16px;
|
||||
background: #f8faf9;
|
||||
border: 1px solid #e8f5ed;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-success-color-focus);
|
||||
border-radius: 8px;
|
||||
}
|
||||
.share-scope-title {
|
||||
margin: 0 0 6px 0;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
.share-scope-desc {
|
||||
margin: 0 0 12px 0;
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@@ -421,7 +421,7 @@ defineExpose({ loadShares })
|
||||
}
|
||||
:deep(.t-select-option:hover),
|
||||
:deep(.t-select-option.t-is-selected) {
|
||||
background: #f0f7ff;
|
||||
background: var(--td-brand-color-light);
|
||||
}
|
||||
:deep(.t-select-option__content) {
|
||||
width: 100%;
|
||||
@@ -454,7 +454,7 @@ defineExpose({ loadShares })
|
||||
font-family: "PingFang SC";
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -465,21 +465,21 @@ defineExpose({ loadShares })
|
||||
gap: 6px;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 12px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
|
||||
.org-meta-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 0px 4px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.org-meta-icon {
|
||||
flex-shrink: 0;
|
||||
vertical-align: middle;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.org-meta-icon-user {
|
||||
@@ -505,7 +505,7 @@ defineExpose({ loadShares })
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
.org-select-dropdown-popup .t-select-option {
|
||||
height: auto;
|
||||
@@ -517,4 +517,10 @@ defineExpose({ loadShares })
|
||||
.org-select-dropdown-popup .t-select-option__content {
|
||||
width: 100%;
|
||||
}
|
||||
// Dark mode: invert black SVG icons loaded via <img> tag, match text opacity
|
||||
html[theme-mode="dark"] .org-meta-icon-kb,
|
||||
html[theme-mode="dark"] .org-meta-icon-agent {
|
||||
filter: invert(1);
|
||||
opacity: 0.55;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -166,9 +166,9 @@ watch(showTooltip, (newVal) => {
|
||||
max-width: 320px;
|
||||
min-width: 100px;
|
||||
padding: 10px 14px;
|
||||
background: #FFFFFF;
|
||||
color: #000000e6;
|
||||
border: 1px solid #e7ebf0;
|
||||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-primary);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.08);
|
||||
font-family: "PingFang SC";
|
||||
@@ -190,7 +190,7 @@ watch(showTooltip, (newVal) => {
|
||||
bottom: -10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-top-color: #e7ebf0;
|
||||
border-top-color: var(--td-component-stroke);
|
||||
}
|
||||
|
||||
&.placement-top::after {
|
||||
@@ -202,14 +202,14 @@ watch(showTooltip, (newVal) => {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 5px solid transparent;
|
||||
border-top-color: #FFFFFF;
|
||||
border-top-color: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
&.placement-bottom::before {
|
||||
top: -10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
border-bottom-color: #e7ebf0;
|
||||
border-bottom-color: var(--td-component-stroke);
|
||||
}
|
||||
|
||||
&.placement-bottom::after {
|
||||
@@ -221,14 +221,14 @@ watch(showTooltip, (newVal) => {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 5px solid transparent;
|
||||
border-bottom-color: #FFFFFF;
|
||||
border-bottom-color: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
&.placement-left::before {
|
||||
right: -10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
border-left-color: #e7ebf0;
|
||||
border-left-color: var(--td-component-stroke);
|
||||
}
|
||||
|
||||
&.placement-left::after {
|
||||
@@ -240,14 +240,14 @@ watch(showTooltip, (newVal) => {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 5px solid transparent;
|
||||
border-left-color: #FFFFFF;
|
||||
border-left-color: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
&.placement-right::before {
|
||||
left: -10px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
border-right-color: #e7ebf0;
|
||||
border-right-color: var(--td-component-stroke);
|
||||
}
|
||||
|
||||
&.placement-right::after {
|
||||
@@ -259,7 +259,7 @@ watch(showTooltip, (newVal) => {
|
||||
width: 0;
|
||||
height: 0;
|
||||
border: 5px solid transparent;
|
||||
border-right-color: #FFFFFF;
|
||||
border-right-color: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
// 所有类型使用统一的常规边框颜色
|
||||
@@ -272,7 +272,7 @@ watch(showTooltip, (newVal) => {
|
||||
}
|
||||
|
||||
.tooltip-content {
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
font-family: "PingFang SC";
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
|
||||
@@ -1625,14 +1625,14 @@ const showAgentNotReadyMessage = (agent: CustomAgent, reasons: string[]) => {
|
||||
const reasonsText = reasons.join('、')
|
||||
|
||||
const messageContent = h('div', { style: 'display: flex; flex-direction: column; gap: 8px; max-width: 320px;' }, [
|
||||
h('span', { style: 'color: #333; line-height: 1.5;' }, t('input.agentNotReadyDetail', { agentName: agent.name, reasons: reasonsText })),
|
||||
h('span', { style: 'color: var(--td-text-color-primary); line-height: 1.5;' }, t('input.agentNotReadyDetail', { agentName: agent.name, reasons: reasonsText })),
|
||||
h('a', {
|
||||
href: '#',
|
||||
onClick: (e: Event) => {
|
||||
e.preventDefault();
|
||||
router.push(`/platform/agents?edit=${agent.id}`);
|
||||
},
|
||||
style: 'color: #07C05F; text-decoration: none; font-weight: 500; cursor: pointer; align-self: flex-start;',
|
||||
style: 'color: var(--td-brand-color); text-decoration: none; font-weight: 500; cursor: pointer; align-self: flex-start;',
|
||||
onMouseenter: (e: Event) => {
|
||||
(e.target as HTMLElement).style.textDecoration = 'underline';
|
||||
},
|
||||
@@ -1662,14 +1662,14 @@ const toggleWebSearch = () => {
|
||||
|
||||
if (!isWebSearchConfigured.value) {
|
||||
const messageContent = h('div', { style: 'display: flex; flex-direction: column; gap: 6px; max-width: 280px;' }, [
|
||||
h('span', { style: 'color: #333; line-height: 1.5;' }, t('input.messages.webSearchNotConfigured')),
|
||||
h('span', { style: 'color: var(--td-text-color-primary); line-height: 1.5;' }, t('input.messages.webSearchNotConfigured')),
|
||||
h('a', {
|
||||
href: '#',
|
||||
onClick: (e: Event) => {
|
||||
e.preventDefault();
|
||||
handleGoToWebSearchSettings();
|
||||
},
|
||||
style: 'color: #07C05F; text-decoration: none; font-weight: 500; cursor: pointer; align-self: flex-start;',
|
||||
style: 'color: var(--td-brand-color); text-decoration: none; font-weight: 500; cursor: pointer; align-self: flex-start;',
|
||||
onMouseenter: (e: Event) => {
|
||||
(e.target as HTMLElement).style.textDecoration = 'underline';
|
||||
},
|
||||
@@ -2151,7 +2151,7 @@ const getImgSrc = (url: string) => {
|
||||
|
||||
.mention-chip--faq .mention-chip__icon-wrap {
|
||||
background: rgba(107, 114, 228, 0.12);
|
||||
color: #6366f1;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.mention-chip--faq:hover {
|
||||
@@ -2295,12 +2295,12 @@ const getImgSrc = (url: string) => {
|
||||
border-color: rgba(16, 185, 129, 0.35);
|
||||
|
||||
.agent-mode-text {
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dropdown-arrow {
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -2315,12 +2315,12 @@ const getImgSrc = (url: string) => {
|
||||
border-color: rgba(124, 77, 255, 0.35);
|
||||
|
||||
.agent-mode-text {
|
||||
color: #7c4dff;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dropdown-arrow {
|
||||
color: #7c4dff;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -2335,12 +2335,12 @@ const getImgSrc = (url: string) => {
|
||||
border-color: rgba(59, 130, 246, 0.35);
|
||||
|
||||
.agent-mode-text {
|
||||
color: #3b82f6;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.dropdown-arrow {
|
||||
color: #3b82f6;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -2367,12 +2367,12 @@ const getImgSrc = (url: string) => {
|
||||
|
||||
&.normal {
|
||||
background: rgba(7, 192, 95, 0.12);
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
|
||||
&.agent {
|
||||
background: rgba(124, 77, 255, 0.12);
|
||||
color: #7c4dff;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2397,7 +2397,7 @@ const getImgSrc = (url: string) => {
|
||||
|
||||
&.active {
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
&:hover {
|
||||
background: rgba(16, 185, 129, 0.15);
|
||||
@@ -2425,7 +2425,7 @@ const getImgSrc = (url: string) => {
|
||||
min-width: 16px;
|
||||
height: 16px;
|
||||
padding: 0 4px;
|
||||
background: #07C05F;
|
||||
background: var(--td-brand-color);
|
||||
color: white;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
@@ -2443,7 +2443,7 @@ const getImgSrc = (url: string) => {
|
||||
}
|
||||
|
||||
.kb-btn.active .kb-btn-text {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.websearch-btn {
|
||||
@@ -2460,7 +2460,7 @@ const getImgSrc = (url: string) => {
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
|
||||
.websearch-icon {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&:hover {
|
||||
@@ -2498,7 +2498,7 @@ const getImgSrc = (url: string) => {
|
||||
|
||||
:global(.input-field-tooltip) {
|
||||
.t-popup__content {
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
border: 1px solid var(--td-component-border, #e7e7e7);
|
||||
}
|
||||
}
|
||||
@@ -2513,7 +2513,7 @@ const getImgSrc = (url: string) => {
|
||||
}
|
||||
|
||||
:global(.tooltip-with-link a) {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
text-decoration: none;
|
||||
}
|
||||
@@ -2549,7 +2549,7 @@ const getImgSrc = (url: string) => {
|
||||
height: 28px;
|
||||
padding: 0;
|
||||
background: rgba(16, 185, 129, 0.08);
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
border: 1.5px solid rgba(16, 185, 129, 0.2);
|
||||
position: relative;
|
||||
display: flex;
|
||||
@@ -2558,7 +2558,7 @@ const getImgSrc = (url: string) => {
|
||||
|
||||
&:hover {
|
||||
background: rgba(16, 185, 129, 0.12);
|
||||
border-color: #07C05F;
|
||||
border-color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
@@ -2573,7 +2573,7 @@ const getImgSrc = (url: string) => {
|
||||
content: '';
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
background: #07C05F;
|
||||
background: var(--td-brand-color);
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
}
|
||||
@@ -2583,14 +2583,14 @@ const getImgSrc = (url: string) => {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
padding: 0;
|
||||
background-color: #07C05F;
|
||||
background-color: var(--td-brand-color);
|
||||
|
||||
&:hover:not(.disabled) {
|
||||
background-color: #059669;
|
||||
background-color: var(--td-brand-color-active);
|
||||
}
|
||||
|
||||
&.disabled {
|
||||
background-color: #b5eccf;
|
||||
background-color: var(--td-success-color-light);
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -2652,7 +2652,7 @@ const getImgSrc = (url: string) => {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -2661,7 +2661,7 @@ const getImgSrc = (url: string) => {
|
||||
.model-dropdown-arrow {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.12s;
|
||||
|
||||
@@ -2763,7 +2763,7 @@ const getImgSrc = (url: string) => {
|
||||
background: var(--td-brand-color-light, #eefdf5);
|
||||
|
||||
.model-option-name {
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
}
|
||||
@@ -2818,12 +2818,12 @@ const getImgSrc = (url: string) => {
|
||||
|
||||
.model-badge-remote {
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
}
|
||||
|
||||
.model-badge-local {
|
||||
background: rgba(139, 145, 150, 0.1);
|
||||
color: #52575a;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
/* Agent 模式选择下拉菜单 */
|
||||
@@ -2880,7 +2880,7 @@ const getImgSrc = (url: string) => {
|
||||
background: var(--td-brand-color-light, #eefdf5);
|
||||
|
||||
.agent-mode-option-name {
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
@@ -2911,7 +2911,7 @@ const getImgSrc = (url: string) => {
|
||||
.check-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
flex-shrink: 0;
|
||||
margin-left: 6px;
|
||||
}
|
||||
@@ -2922,7 +2922,7 @@ const getImgSrc = (url: string) => {
|
||||
margin-left: 6px;
|
||||
|
||||
.warning-icon {
|
||||
color: #ff9800;
|
||||
color: var(--td-warning-color);
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
@@ -2935,7 +2935,7 @@ const getImgSrc = (url: string) => {
|
||||
}
|
||||
|
||||
.agent-mode-link {
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
text-decoration: none;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
@@ -2945,7 +2945,7 @@ const getImgSrc = (url: string) => {
|
||||
transition: all 0.12s;
|
||||
|
||||
&:hover {
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -365,10 +365,10 @@ watch(() => props.visible, async (v) => {
|
||||
/* 下拉面板使用 fixed 定位,相对于视口 */
|
||||
.kb-dropdown {
|
||||
position: fixed !important;
|
||||
background: #fff;
|
||||
border: 1px solid #e7e9eb;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-border);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
overflow: hidden;
|
||||
animation: fadeIn 0.15s ease-out;
|
||||
z-index: 10000;
|
||||
@@ -382,21 +382,21 @@ watch(() => props.visible, async (v) => {
|
||||
/* 宽度由 JS 控制(dropdownWidth),这里只做内部样式 */
|
||||
.kb-search {
|
||||
padding: 8px 10px;
|
||||
border-bottom: 1px solid #f1f3f4;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
}
|
||||
.kb-search-input {
|
||||
width: 100%;
|
||||
padding: 6px 10px;
|
||||
font-size: 12px;
|
||||
border: 1px solid #eef1f2;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
background: #fbfdfc;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
outline: none;
|
||||
transition: border 0.12s;
|
||||
}
|
||||
.kb-search-input:focus {
|
||||
border-color: #10b981;
|
||||
background: #fff;
|
||||
border-color: var(--td-success-color);
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
.kb-list {
|
||||
@@ -422,9 +422,9 @@ watch(() => props.visible, async (v) => {
|
||||
.kb-item:last-child { margin-bottom: 0; }
|
||||
|
||||
.kb-item:hover,
|
||||
.kb-item.highlighted { background: #f6f8f7; }
|
||||
.kb-item.highlighted { background: var(--td-bg-color-secondarycontainer); }
|
||||
|
||||
.kb-item.selected { background: #eefdf5; }
|
||||
.kb-item.selected { background: var(--td-brand-color-light); }
|
||||
|
||||
.kb-item-left {
|
||||
display: flex;
|
||||
@@ -436,15 +436,15 @@ watch(() => props.visible, async (v) => {
|
||||
.checkbox {
|
||||
width: 16px; height: 16px;
|
||||
border-radius: 3px;
|
||||
border: 1.5px solid #d7dadd;
|
||||
border: 1.5px solid var(--td-component-border);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.checkbox.checked {
|
||||
background: #10b981;
|
||||
border-color: #10b981;
|
||||
background: var(--td-success-color);
|
||||
border-color: var(--td-success-color);
|
||||
}
|
||||
.checkbox.checked svg {
|
||||
width: 10px;
|
||||
@@ -457,40 +457,40 @@ watch(() => props.visible, async (v) => {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
|
||||
&.faq {
|
||||
color: #0052d9;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
.kb-name-wrap { display:flex; flex-direction: row; align-items: center; gap: 4px; min-width: 0; }
|
||||
.kb-name { font-size: 12px; color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
|
||||
.kb-docs { font-size: 11px; color: #8b9196; flex-shrink: 0; }
|
||||
.kb-name { font-size: 12px; color: var(--td-text-color-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
|
||||
.kb-docs { font-size: 11px; color: var(--td-text-color-placeholder); flex-shrink: 0; }
|
||||
|
||||
.kb-empty { padding: 20px 8px; text-align: center; color: #9aa0a6; font-size: 12px; }
|
||||
.kb-empty { padding: 20px 8px; text-align: center; color: var(--td-text-color-placeholder); font-size: 12px; }
|
||||
|
||||
.kb-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
padding: 8px 10px;
|
||||
border-top: 1px solid #f2f4f5;
|
||||
background: #fafcfc;
|
||||
border-top: 1px solid var(--td-component-stroke);
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
.kb-btn {
|
||||
flex: 1;
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid #e1e5e6;
|
||||
background: #fff;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
background: var(--td-bg-color-container);
|
||||
font-size: 12px;
|
||||
color: #52575a;
|
||||
color: var(--td-text-color-secondary);
|
||||
cursor: pointer;
|
||||
transition: all 0.12s;
|
||||
}
|
||||
.kb-btn:hover {
|
||||
border-color: #10b981;
|
||||
color: #10b981;
|
||||
background: #f0fdf6;
|
||||
border-color: var(--td-success-color);
|
||||
color: var(--td-success-color);
|
||||
background: var(--td-brand-color-light);
|
||||
}
|
||||
|
||||
@keyframes fadeIn {
|
||||
|
||||
@@ -301,7 +301,7 @@ onBeforeUnmount(() => {
|
||||
&:hover .resize-handle-line,
|
||||
.dragging & .resize-handle-line {
|
||||
opacity: 1;
|
||||
background: #07c05f;
|
||||
background: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ onBeforeUnmount(() => {
|
||||
width: 2px;
|
||||
height: 40px;
|
||||
border-radius: 1px;
|
||||
background: #c5cad1;
|
||||
background: var(--td-bg-color-component-disabled);
|
||||
opacity: 0.45;
|
||||
transition: opacity 0.2s ease, background 0.2s ease;
|
||||
}
|
||||
@@ -343,25 +343,25 @@ onBeforeUnmount(() => {
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
cursor: pointer;
|
||||
color: #6b7482;
|
||||
color: var(--td-text-color-secondary);
|
||||
transition: all 0.15s ease;
|
||||
flex-shrink: 0;
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa;
|
||||
color: #1d2129;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #eef9f2;
|
||||
color: #07c05f;
|
||||
background: var(--td-success-color-light);
|
||||
color: var(--td-brand-color);
|
||||
|
||||
&:hover {
|
||||
background: #e4f5ea;
|
||||
background: var(--td-success-color-light);
|
||||
}
|
||||
|
||||
.icon-label {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 520;
|
||||
}
|
||||
}
|
||||
@@ -376,7 +376,7 @@ onBeforeUnmount(() => {
|
||||
.icon-label {
|
||||
font-size: 10px;
|
||||
line-height: 1.2;
|
||||
color: #86909c;
|
||||
color: var(--td-text-color-secondary);
|
||||
max-width: 44px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -388,7 +388,7 @@ onBeforeUnmount(() => {
|
||||
.icon-strip-divider {
|
||||
width: 24px;
|
||||
height: 1px;
|
||||
background: #e7ebf0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
margin: 4px 0;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
@@ -404,7 +404,7 @@ onBeforeUnmount(() => {
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
scrollbar-width: none;
|
||||
border-right: 1px solid #eef1f5;
|
||||
border-right: 1px solid var(--td-component-stroke);
|
||||
|
||||
&::-webkit-scrollbar {
|
||||
display: none;
|
||||
@@ -418,7 +418,7 @@ onBeforeUnmount(() => {
|
||||
justify-content: space-between;
|
||||
padding: 8px 10px;
|
||||
border-radius: 7px;
|
||||
color: #3f4652;
|
||||
color: var(--td-text-color-primary);
|
||||
cursor: pointer;
|
||||
transition: all 0.15s ease;
|
||||
font-family: "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
@@ -435,7 +435,7 @@ onBeforeUnmount(() => {
|
||||
|
||||
.item-icon {
|
||||
flex-shrink: 0;
|
||||
color: #5c6470;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: 14px;
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
@@ -458,36 +458,36 @@ onBeforeUnmount(() => {
|
||||
|
||||
.item-count {
|
||||
font-size: 12px;
|
||||
color: #6b7482;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-weight: 500;
|
||||
padding: 2px 7px;
|
||||
border-radius: 8px;
|
||||
background: #f4f6f8;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
margin-left: 6px;
|
||||
flex-shrink: 0;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa;
|
||||
color: #1d2129;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
color: var(--td-text-color-primary);
|
||||
|
||||
.item-icon {
|
||||
color: #1d2129;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.item-count {
|
||||
background: #edf1f5;
|
||||
color: #1d2129;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
&.active {
|
||||
background: #eef9f2;
|
||||
color: #07c05f;
|
||||
background: var(--td-success-color-light);
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.item-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.item-label {
|
||||
@@ -495,13 +495,13 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.item-count {
|
||||
background: #e4f5ea;
|
||||
color: #2f9d67;
|
||||
background: var(--td-success-color-light);
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 520;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #e4f5ea;
|
||||
background: var(--td-success-color-light);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -509,11 +509,11 @@ onBeforeUnmount(() => {
|
||||
.sidebar-section {
|
||||
padding: 10px 8px 3px;
|
||||
margin-top: 2px;
|
||||
border-top: 1px solid #eef1f5;
|
||||
border-top: 1px solid var(--td-component-stroke);
|
||||
|
||||
.section-title {
|
||||
font-size: 12px;
|
||||
color: #86909c;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
@@ -486,11 +486,11 @@ const scrollToItem = (index: number) => {
|
||||
}
|
||||
.mention-detail-content .detail-type-badge.doc {
|
||||
background: rgba(16, 185, 129, 0.1);
|
||||
color: #10b981;
|
||||
color: var(--td-success-color);
|
||||
}
|
||||
.mention-detail-content .detail-type-badge.faq {
|
||||
background: rgba(0, 82, 217, 0.1);
|
||||
color: #0052d9;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
.mention-detail-content .detail-desc {
|
||||
margin: 0 0 8px;
|
||||
@@ -538,7 +538,7 @@ const scrollToItem = (index: number) => {
|
||||
vertical-align: middle;
|
||||
}
|
||||
.mention-detail-content .detail-kb .detail-icon {
|
||||
color: #17b03a;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 600;
|
||||
}
|
||||
.mention-detail-content .detail-icon-img {
|
||||
|
||||
@@ -1031,7 +1031,7 @@ const handleOverlayMouseUp = () => {
|
||||
width: 100%;
|
||||
max-width: 560px;
|
||||
max-height: 90vh;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-container);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
|
||||
display: flex;
|
||||
@@ -1053,20 +1053,20 @@ const handleOverlayMouseUp = () => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
transition: all 0.15s ease;
|
||||
z-index: 10;
|
||||
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
color: #333333;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
// 标题区域
|
||||
.modal-header {
|
||||
padding: 24px 24px 16px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -1074,13 +1074,13 @@ const handleOverlayMouseUp = () => {
|
||||
margin: 0 0 6px 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.modal-desc {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -1089,7 +1089,7 @@ const handleOverlayMouseUp = () => {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 24px;
|
||||
background: #ffffff;
|
||||
background: var(--td-bg-color-container);
|
||||
|
||||
// 自定义滚动条
|
||||
&::-webkit-scrollbar {
|
||||
@@ -1097,17 +1097,17 @@ const handleOverlayMouseUp = () => {
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-track {
|
||||
background: #f5f5f5;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #d0d0d0;
|
||||
background: var(--td-bg-color-component-disabled);
|
||||
border-radius: 3px;
|
||||
transition: background 0.15s;
|
||||
|
||||
&:hover {
|
||||
background: #b0b0b0;
|
||||
background: var(--td-bg-color-component-disabled);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1132,11 +1132,11 @@ const handleOverlayMouseUp = () => {
|
||||
margin-bottom: 8px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
|
||||
&.required::after {
|
||||
content: '*';
|
||||
color: #f56c6c;
|
||||
color: var(--td-error-color);
|
||||
margin-left: 4px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -1156,7 +1156,7 @@ const handleOverlayMouseUp = () => {
|
||||
textarea {
|
||||
font-size: 13px;
|
||||
border-radius: 6px;
|
||||
border-color: #d9d9d9;
|
||||
border-color: var(--td-component-stroke);
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
|
||||
@@ -1164,14 +1164,14 @@ const handleOverlayMouseUp = () => {
|
||||
&:hover .t-input__wrap,
|
||||
&:hover input,
|
||||
&:hover textarea {
|
||||
border-color: #b3b3b3;
|
||||
border-color: var(--td-component-stroke);
|
||||
}
|
||||
|
||||
&.t-is-focused .t-input__inner,
|
||||
&.t-is-focused .t-input__wrap,
|
||||
&.t-is-focused input,
|
||||
&.t-is-focused textarea {
|
||||
border-color: #07C05F;
|
||||
border-color: var(--td-brand-color);
|
||||
box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);
|
||||
}
|
||||
}
|
||||
@@ -1186,12 +1186,12 @@ const handleOverlayMouseUp = () => {
|
||||
.provider-name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.provider-desc {
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1206,19 +1206,19 @@ const handleOverlayMouseUp = () => {
|
||||
|
||||
&:hover {
|
||||
.t-radio__label {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.t-radio__label {
|
||||
font-size: 13px;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
transition: color 0.15s ease;
|
||||
}
|
||||
|
||||
.t-radio__input:checked + .t-radio__label {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -1229,19 +1229,19 @@ const handleOverlayMouseUp = () => {
|
||||
|
||||
.t-checkbox__label {
|
||||
font-size: 13px;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
// 底部按钮区域
|
||||
.modal-footer {
|
||||
padding: 16px 24px;
|
||||
border-top: 1px solid #e5e7eb;
|
||||
border-top: 1px solid var(--td-component-stroke);
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
flex-shrink: 0;
|
||||
background: #fafafa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
|
||||
:deep(.t-button) {
|
||||
min-width: 80px;
|
||||
@@ -1252,27 +1252,27 @@ const handleOverlayMouseUp = () => {
|
||||
transition: all 0.15s ease;
|
||||
|
||||
&.t-button--theme-primary {
|
||||
background: #07C05F;
|
||||
border-color: #07C05F;
|
||||
background: var(--td-brand-color);
|
||||
border-color: var(--td-brand-color);
|
||||
|
||||
&:hover {
|
||||
background: #06b04d;
|
||||
border-color: #06b04d;
|
||||
background: var(--td-brand-color);
|
||||
border-color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&:active {
|
||||
background: #059642;
|
||||
border-color: #059642;
|
||||
background: var(--td-brand-color-active);
|
||||
border-color: var(--td-brand-color-active);
|
||||
}
|
||||
}
|
||||
|
||||
&.t-button--variant-outline {
|
||||
color: #666666;
|
||||
border-color: #d9d9d9;
|
||||
color: var(--td-text-color-secondary);
|
||||
border-color: var(--td-component-stroke);
|
||||
|
||||
&:hover {
|
||||
border-color: #07C05F;
|
||||
color: #07C05F;
|
||||
border-color: var(--td-brand-color);
|
||||
color: var(--td-brand-color);
|
||||
background: rgba(7, 192, 95, 0.04);
|
||||
}
|
||||
}
|
||||
@@ -1311,11 +1311,11 @@ const handleOverlayMouseUp = () => {
|
||||
flex: 1;
|
||||
|
||||
&.success {
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
|
||||
&.error {
|
||||
color: #f56c6c;
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1332,11 +1332,11 @@ const handleOverlayMouseUp = () => {
|
||||
flex-shrink: 0;
|
||||
|
||||
&.available {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&.unavailable {
|
||||
color: #f56c6c;
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1351,31 +1351,31 @@ const handleOverlayMouseUp = () => {
|
||||
|
||||
.downloaded-icon {
|
||||
font-size: 14px;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.download-icon {
|
||||
font-size: 14px;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.model-name {
|
||||
flex: 1;
|
||||
font-size: 13px;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.model-size {
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
&.download {
|
||||
.model-name {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -1391,13 +1391,13 @@ const handleOverlayMouseUp = () => {
|
||||
.spinning {
|
||||
animation: spin 1s linear infinite;
|
||||
font-size: 14px;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.progress-text {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1449,11 +1449,11 @@ const handleOverlayMouseUp = () => {
|
||||
.refresh-btn {
|
||||
margin-top: 0;
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
flex-shrink: 0;
|
||||
|
||||
&:hover {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
background: rgba(7, 192, 95, 0.04);
|
||||
}
|
||||
}
|
||||
@@ -1483,10 +1483,10 @@ const handleOverlayMouseUp = () => {
|
||||
margin: 8px 0 0 0;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
color: #e34d59;
|
||||
color: var(--td-error-color);
|
||||
|
||||
&.success {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1497,41 +1497,41 @@ const handleOverlayMouseUp = () => {
|
||||
gap: 8px;
|
||||
margin-top: 12px;
|
||||
padding: 10px 12px;
|
||||
background: #fef2f2;
|
||||
border: 1px solid #fecaca;
|
||||
background: var(--td-error-color-light);
|
||||
border: 1px solid var(--td-error-color-focus);
|
||||
border-radius: 6px;
|
||||
font-size: 13px;
|
||||
|
||||
.tip-icon {
|
||||
color: #f56c6c;
|
||||
color: var(--td-error-color);
|
||||
font-size: 16px;
|
||||
flex-shrink: 0;
|
||||
margin-right: 2px;
|
||||
|
||||
&.info {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
.tip-text {
|
||||
color: #dc2626;
|
||||
color: var(--td-error-color);
|
||||
flex: 1;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
// ReRank提示使用主题绿色风格,与主页面保持一致
|
||||
&.rerank-tip {
|
||||
background: #f0fdf6;
|
||||
border: 1px solid #d1fae5;
|
||||
border-left: 3px solid #07C05F;
|
||||
background: var(--td-success-color-light);
|
||||
border: 1px solid var(--td-success-color-focus);
|
||||
border-left: 3px solid var(--td-brand-color);
|
||||
|
||||
.tip-text {
|
||||
color: #166534;
|
||||
color: var(--td-success-color);
|
||||
}
|
||||
}
|
||||
|
||||
:deep(.tip-link) {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
padding: 4px 6px 4px 10px !important;
|
||||
@@ -1548,7 +1548,7 @@ const handleOverlayMouseUp = () => {
|
||||
|
||||
&:hover {
|
||||
background: rgba(7, 192, 95, 0.08) !important;
|
||||
color: #05a04f !important;
|
||||
color: var(--td-brand-color-active) !important;
|
||||
}
|
||||
|
||||
&:active {
|
||||
|
||||
@@ -144,12 +144,12 @@ onMounted(() => {
|
||||
|
||||
.model-icon {
|
||||
font-size: 14px;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.add-icon {
|
||||
font-size: 14px;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.model-name {
|
||||
@@ -159,7 +159,7 @@ onMounted(() => {
|
||||
|
||||
&.add {
|
||||
.model-name {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -140,17 +140,17 @@ onMounted(() => {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
color: #666;
|
||||
border-color: #d9d9d9;
|
||||
color: var(--td-text-color-secondary);
|
||||
border-color: var(--td-component-stroke);
|
||||
font-size: 12px;
|
||||
height: 26px;
|
||||
padding: 0 8px;
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
border-color: #07c05f;
|
||||
background: #fff;
|
||||
color: var(--td-brand-color);
|
||||
border-color: var(--td-brand-color);
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
:deep(.t-button__text) {
|
||||
@@ -175,21 +175,21 @@ onMounted(() => {
|
||||
|
||||
.template-header {
|
||||
padding: 12px 16px;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.template-title {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.template-loading,
|
||||
.template-empty {
|
||||
padding: 40px 16px;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
@@ -211,7 +211,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ onMounted(() => {
|
||||
.template-name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.template-tag {
|
||||
@@ -238,19 +238,19 @@ onMounted(() => {
|
||||
font-size: 11px;
|
||||
|
||||
&.kb-tag {
|
||||
background: #e6f7ff;
|
||||
color: #1890ff;
|
||||
background: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
&.web-tag {
|
||||
background: #f0faf5;
|
||||
color: #07c05f;
|
||||
background: var(--td-success-color-light);
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
.template-desc {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
display: -webkit-box;
|
||||
|
||||
@@ -436,7 +436,7 @@ function handleGoToOrgSettings(orgId: string) {
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 0px 4px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
@@ -471,7 +471,7 @@ function handleGoToOrgSettings(orgId: string) {
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.org-select-dropdown-popup .t-select-option {
|
||||
|
||||
@@ -112,7 +112,7 @@ const letterStyle = computed(() => {
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
flex-shrink: 0;
|
||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
overflow: hidden;
|
||||
|
||||
&.space-avatar-small {
|
||||
@@ -177,7 +177,7 @@ const letterStyle = computed(() => {
|
||||
.space-avatar-letter {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
color: #fff;
|
||||
color: var(--td-text-color-anti);
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
||||
|
||||
@@ -264,12 +264,12 @@ onUnmounted(() => {
|
||||
border-radius: 8px;
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
background: #f8faf9;
|
||||
border: 1px solid #e8ebe9;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:hover {
|
||||
background: #f0f5f2;
|
||||
border-color: #d0d8d3;
|
||||
background: var(--td-bg-color-container-hover);
|
||||
border-color: var(--td-component-border);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -280,7 +280,7 @@ onUnmounted(() => {
|
||||
|
||||
.tenant-label {
|
||||
font-size: 11px;
|
||||
color: #8b9196;
|
||||
color: var(--td-text-color-placeholder);
|
||||
margin-bottom: 2px;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -295,7 +295,7 @@ onUnmounted(() => {
|
||||
.tenant-name {
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
color: #1a1a1a;
|
||||
color: var(--td-text-color-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -304,7 +304,7 @@ onUnmounted(() => {
|
||||
|
||||
.tenant-switch-icon {
|
||||
font-size: 14px;
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -322,8 +322,8 @@ onUnmounted(() => {
|
||||
top: calc(100% + 4px);
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #fff;
|
||||
border: 1px solid #e7e9eb;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 10px;
|
||||
box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
|
||||
z-index: 1000;
|
||||
@@ -332,14 +332,14 @@ onUnmounted(() => {
|
||||
|
||||
.dropdown-header {
|
||||
padding: 12px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
}
|
||||
|
||||
.dropdown-title {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
@@ -348,21 +348,21 @@ onUnmounted(() => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 7px 10px;
|
||||
background: #f5f7fa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 6px;
|
||||
border: 1px solid transparent;
|
||||
transition: all 0.2s;
|
||||
|
||||
&:focus-within {
|
||||
background: #fff;
|
||||
border-color: #07c05f;
|
||||
background: var(--td-bg-color-container);
|
||||
border-color: var(--td-brand-color);
|
||||
box-shadow: 0 0 0 2px rgba(7, 192, 95, 0.1);
|
||||
}
|
||||
}
|
||||
|
||||
.search-icon {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -372,23 +372,23 @@ onUnmounted(() => {
|
||||
outline: none;
|
||||
background: transparent;
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
min-width: 0;
|
||||
|
||||
&::placeholder {
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
}
|
||||
|
||||
.clear-icon {
|
||||
font-size: 14px;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: color 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -406,11 +406,11 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
&::-webkit-scrollbar-thumb {
|
||||
background: #e0e0e0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 2px;
|
||||
|
||||
&:hover {
|
||||
background: #ccc;
|
||||
background: var(--td-bg-color-component-disabled);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -430,14 +430,14 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
&.selected {
|
||||
background: rgba(7, 192, 95, 0.08);
|
||||
|
||||
.tenant-item-name {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -455,19 +455,19 @@ onUnmounted(() => {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 6px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
flex-shrink: 0;
|
||||
transition: all 0.2s;
|
||||
|
||||
&.active {
|
||||
background: linear-gradient(135deg, #07C05F 0%, #05A34E 100%);
|
||||
color: #fff;
|
||||
background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%);
|
||||
color: var(--td-text-color-anti);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -481,7 +481,7 @@ onUnmounted(() => {
|
||||
|
||||
.tenant-item-name {
|
||||
font-size: 13px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -489,11 +489,11 @@ onUnmounted(() => {
|
||||
|
||||
.tenant-item-id {
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
|
||||
.check-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
@@ -505,7 +505,7 @@ onUnmounted(() => {
|
||||
justify-content: center;
|
||||
padding: 24px 12px;
|
||||
gap: 8px;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
|
||||
@@ -269,7 +269,7 @@ onUnmounted(() => {
|
||||
background: transparent;
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa;
|
||||
background: var(--td-bg-color-container-hover);
|
||||
}
|
||||
|
||||
&:active {
|
||||
@@ -283,7 +283,7 @@ onUnmounted(() => {
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
flex-shrink: 0;
|
||||
background: linear-gradient(135deg, #07C05F 0%, #05A34E 100%);
|
||||
background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
@@ -295,7 +295,7 @@ onUnmounted(() => {
|
||||
}
|
||||
|
||||
.avatar-placeholder {
|
||||
color: #ffffff;
|
||||
color: var(--td-text-color-anti);
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
}
|
||||
@@ -309,7 +309,7 @@ onUnmounted(() => {
|
||||
.user-name {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -317,7 +317,7 @@ onUnmounted(() => {
|
||||
|
||||
.user-email {
|
||||
font-size: 12px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -326,7 +326,7 @@ onUnmounted(() => {
|
||||
|
||||
.dropdown-icon {
|
||||
font-size: 16px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.2s;
|
||||
}
|
||||
@@ -337,10 +337,10 @@ onUnmounted(() => {
|
||||
left: 8px;
|
||||
right: 8px;
|
||||
margin-bottom: 8px;
|
||||
background: #ffffff;
|
||||
background: var(--td-bg-color-container);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
|
||||
border: 1px solid #e5e7eb;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
overflow: hidden;
|
||||
z-index: 1000;
|
||||
}
|
||||
@@ -353,27 +353,27 @@ onUnmounted(() => {
|
||||
cursor: pointer;
|
||||
transition: all 0.2s;
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa;
|
||||
background: var(--td-bg-color-container-hover);
|
||||
}
|
||||
|
||||
&.danger {
|
||||
color: #e34d59;
|
||||
color: var(--td-error-color);
|
||||
|
||||
&:hover {
|
||||
background: #fef0f0;
|
||||
background: var(--td-error-color-light);
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
color: #e34d59;
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
font-size: 16px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
|
||||
&.svg-icon {
|
||||
width: 16px;
|
||||
@@ -400,20 +400,20 @@ onUnmounted(() => {
|
||||
.menu-external-icon {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: #9ca3af;
|
||||
color: var(--td-text-color-disabled);
|
||||
flex-shrink: 0;
|
||||
transition: color 0.2s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
&:hover .menu-external-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
.menu-divider {
|
||||
height: 1px;
|
||||
background: #e5e7eb;
|
||||
background: var(--td-component-stroke);
|
||||
margin: 4px 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
justify-content: center;
|
||||
min-width: auto;
|
||||
width: auto;
|
||||
border: 1px solid #e0e0e0;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
background: #ffffff;
|
||||
color: #666;
|
||||
background: var(--td-bg-color-container);
|
||||
color: var(--td-text-color-secondary);
|
||||
transition: all 0.2s ease;
|
||||
|
||||
.t-button__content {
|
||||
@@ -41,7 +41,7 @@
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex-shrink: 0;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.t-icon svg {
|
||||
@@ -57,10 +57,10 @@
|
||||
&:hover:not(:disabled) {
|
||||
background: rgba(7, 192, 95, 0.08);
|
||||
border-color: rgba(7, 192, 95, 0.3);
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.t-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
.mermaid {
|
||||
margin: 16px 0;
|
||||
padding: 16px;
|
||||
background: #f8f9fa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 8px;
|
||||
overflow-x: auto;
|
||||
text-align: center;
|
||||
@@ -29,7 +29,7 @@
|
||||
h6 {
|
||||
margin-top: 5px;
|
||||
font-weight: bold;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-family: "PingFang SC", "Cascadia Code";
|
||||
transition: all 0.2s ease-out;
|
||||
font-size: 20px;
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
h2 a,
|
||||
h3 a {
|
||||
color: #34495e;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
p,
|
||||
@@ -116,7 +116,7 @@
|
||||
hr {
|
||||
padding: 0;
|
||||
margin: 32px 0;
|
||||
border-top: 0.5rem dotted #0590ff57;
|
||||
border-top: 0.5rem dotted var(--td-brand-color-focus);
|
||||
overflow: hidden;
|
||||
box-sizing: content-box;
|
||||
}
|
||||
@@ -195,8 +195,8 @@
|
||||
padding: 0.8em 1.4rem;
|
||||
margin: 1em 0;
|
||||
font-weight: 400;
|
||||
border-left: 4px solid #2196f3;
|
||||
background-color: #2196f321;
|
||||
border-left: 4px solid var(--td-brand-color);
|
||||
background-color: var(--td-brand-color)21;
|
||||
border-radius: 0px 8px 8px 0px;
|
||||
box-shadow: rgb(149 149 149 / 13%) 0px 5px 10px;
|
||||
}
|
||||
@@ -211,19 +211,19 @@
|
||||
}
|
||||
|
||||
table tr {
|
||||
border-top: 1px solid #2196f31f;
|
||||
border-top: 1px solid var(--td-brand-color-focus);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
table tr:nth-child(2n),
|
||||
thead {
|
||||
background-color: #fafafa;
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
table tr th {
|
||||
font-weight: bold;
|
||||
border: 1px solid #9b9b9b3b;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-bottom: 0;
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
@@ -231,7 +231,7 @@
|
||||
}
|
||||
|
||||
table tr td {
|
||||
border: 1px solid #9b9b9b3b;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
text-align: left;
|
||||
margin: 0;
|
||||
padding: 6px 13px;
|
||||
@@ -256,7 +256,7 @@
|
||||
border-radius: 8px;
|
||||
margin-left: 0;
|
||||
margin-right: 0;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
|
||||
@@ -281,7 +281,7 @@
|
||||
}
|
||||
|
||||
.md-fences {
|
||||
background-color: #f8f8f8;
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.md-diagram-panel {
|
||||
@@ -350,27 +350,27 @@
|
||||
}
|
||||
|
||||
.md-lang {
|
||||
color: #b4654d;
|
||||
color: var(--td-warning-color);
|
||||
}
|
||||
|
||||
.html-for-mac .context-menu {
|
||||
--item-hover-bg-color: #e6f0fe;
|
||||
--item-hover-bg-color: var(--td-brand-color-light);
|
||||
}
|
||||
|
||||
.pin-outline #outline-content .outline-active strong,
|
||||
.pin-outline .outline-active {
|
||||
color: #2196f3;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.code-tooltip {
|
||||
border-radius: 4px;
|
||||
border: 1px solid #ededed;
|
||||
background-color: #f8f8f8;
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.cm-s-inner .cm-comment,
|
||||
.cm-s-inner.cm-comment {
|
||||
color: #57a64a;
|
||||
color: var(--td-success-color);
|
||||
font-style: italic;
|
||||
/* font-family: 'PingFang'; */
|
||||
}
|
||||
@@ -381,7 +381,7 @@
|
||||
h4.md-end-block.md-heading:after,
|
||||
h5.md-end-block.md-heading:after,
|
||||
h6.md-end-block.md-heading:after {
|
||||
color: #bfbfbf !important;
|
||||
color: var(--td-text-color-disabled) !important;
|
||||
border: 1px solid;
|
||||
border-radius: 4px;
|
||||
position: absolute;
|
||||
|
||||
@@ -855,9 +855,9 @@ const handleDetailsScroll = () => {
|
||||
// 代码块样式
|
||||
:deep(.code-block-wrapper) {
|
||||
margin: 12px 0;
|
||||
border: 1px solid #d1d5db;
|
||||
border: 1px solid var(--td-component-border);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-container);
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 2px rgba(0,0,0,0.05);
|
||||
|
||||
@@ -865,17 +865,17 @@ const handleDetailsScroll = () => {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 8px 12px;
|
||||
background: #f3f4f6;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #1f2937;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.code-block-pre {
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
background: #f6f8fa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
overflow: auto;
|
||||
font-size: 13px;
|
||||
line-height: 1.5;
|
||||
@@ -919,7 +919,7 @@ const handleDetailsScroll = () => {
|
||||
}
|
||||
|
||||
.label {
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
font-size: 14px;
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
@@ -939,8 +939,8 @@ const handleDetailsScroll = () => {
|
||||
padding: 5px 8px;
|
||||
align-items: center;
|
||||
border-radius: 3px;
|
||||
border: 1px solid #dcdcdc;
|
||||
background: #30323605;
|
||||
border: 1px solid var(--td-component-border);
|
||||
background: var(--td-bg-color-container-hover);
|
||||
word-break: break-all;
|
||||
text-align: justify;
|
||||
}
|
||||
@@ -949,7 +949,7 @@ const handleDetailsScroll = () => {
|
||||
margin-left: 18px;
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.download_box {
|
||||
width: 16px;
|
||||
@@ -963,21 +963,21 @@ const handleDetailsScroll = () => {
|
||||
// URL链接区域
|
||||
.url_link_box {
|
||||
border-radius: 4px;
|
||||
border: 1px solid #d0e8dc;
|
||||
background: #f0fdf4;
|
||||
border: 1px solid var(--td-success-color-focus);
|
||||
background: var(--td-success-color-light);
|
||||
padding: 8px 12px;
|
||||
|
||||
.url_link {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
text-decoration: none;
|
||||
transition: all 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
background: #e6f7ed;
|
||||
color: var(--td-brand-color);
|
||||
background: var(--td-success-color-light);
|
||||
border-radius: 3px;
|
||||
padding: 4px 6px;
|
||||
margin: -4px -6px;
|
||||
@@ -996,7 +996,7 @@ const handleDetailsScroll = () => {
|
||||
.jump-icon {
|
||||
transition: transform 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1004,12 +1004,12 @@ const handleDetailsScroll = () => {
|
||||
// 手动创建标题区域
|
||||
.manual_title_box {
|
||||
border-radius: 4px;
|
||||
border: 1px solid #dcdcdc;
|
||||
background: #f0fdf4;
|
||||
border: 1px solid var(--td-component-border);
|
||||
background: var(--td-success-color-light);
|
||||
padding: 8px 12px;
|
||||
|
||||
.manual_title {
|
||||
color: #1d2129;
|
||||
color: var(--td-text-color-primary);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
word-break: break-word;
|
||||
@@ -1044,9 +1044,9 @@ const handleDetailsScroll = () => {
|
||||
}
|
||||
|
||||
.chunk-count {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
font-size: 12px;
|
||||
background: #07c05f14;
|
||||
background: var(--td-brand-color)14;
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
}
|
||||
@@ -1067,7 +1067,7 @@ const handleDetailsScroll = () => {
|
||||
}
|
||||
|
||||
.time {
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
@@ -1076,10 +1076,10 @@ const handleDetailsScroll = () => {
|
||||
|
||||
.no_content {
|
||||
margin-top: 12px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
font-size: 12px;
|
||||
padding: 16px;
|
||||
background: #fbfbfb;
|
||||
background: var(--td-bg-color-container);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -1097,15 +1097,15 @@ const handleDetailsScroll = () => {
|
||||
border: 1px solid transparent;
|
||||
|
||||
&.chunk-even {
|
||||
background: #3032360f;
|
||||
background: var(--td-bg-color-container-hover);
|
||||
}
|
||||
|
||||
&.chunk-odd {
|
||||
background: #07c05f0d;
|
||||
background: var(--td-brand-color)0d;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
border-color: #07c05f;
|
||||
border-color: var(--td-brand-color);
|
||||
box-shadow: 0 2px 8px rgba(7, 192, 95, 0.1);
|
||||
}
|
||||
}
|
||||
@@ -1116,10 +1116,10 @@ const handleDetailsScroll = () => {
|
||||
justify-content: space-between;
|
||||
margin-bottom: 8px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid #e7e7e7;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
.chunk-index {
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
letter-spacing: 0.5px;
|
||||
@@ -1132,7 +1132,7 @@ const handleDetailsScroll = () => {
|
||||
}
|
||||
|
||||
.chunk-meta {
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
||||
@@ -1141,7 +1141,7 @@ const handleDetailsScroll = () => {
|
||||
.parent-context-section {
|
||||
margin-top: 10px;
|
||||
padding-top: 8px;
|
||||
border-top: 1px dashed #d0d5dd;
|
||||
border-top: 1px dashed var(--td-component-stroke);
|
||||
}
|
||||
|
||||
.parent-context-toggle {
|
||||
@@ -1149,26 +1149,26 @@ const handleDetailsScroll = () => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 4px 0;
|
||||
transition: color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
.parent-context-content {
|
||||
margin-top: 8px;
|
||||
padding: 10px 12px;
|
||||
background: #f0f5ff;
|
||||
background: var(--td-brand-color-light);
|
||||
border-radius: 4px;
|
||||
border-left: 3px solid #07c05f;
|
||||
border-left: 3px solid var(--td-brand-color);
|
||||
|
||||
.md-content {
|
||||
color: #4e5969;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: 13px;
|
||||
}
|
||||
}
|
||||
@@ -1177,7 +1177,7 @@ const handleDetailsScroll = () => {
|
||||
.questions-section {
|
||||
margin-top: 12px;
|
||||
padding-top: 10px;
|
||||
border-top: 1px dashed #e0e0e0;
|
||||
border-top: 1px dashed var(--td-component-stroke);
|
||||
}
|
||||
|
||||
.questions-toggle {
|
||||
@@ -1185,14 +1185,14 @@ const handleDetailsScroll = () => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 4px 0;
|
||||
transition: color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1207,15 +1207,15 @@ const handleDetailsScroll = () => {
|
||||
gap: 8px;
|
||||
padding: 6px 8px;
|
||||
margin-bottom: 4px;
|
||||
background: #f0fdf4;
|
||||
background: var(--td-success-color-light);
|
||||
border-radius: 4px;
|
||||
font-size: 13px;
|
||||
color: #1d2129;
|
||||
color: var(--td-text-color-primary);
|
||||
line-height: 1.5;
|
||||
transition: background-color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: #e6f7ed;
|
||||
background: var(--td-success-color-light);
|
||||
|
||||
.delete-question-btn {
|
||||
opacity: 1;
|
||||
@@ -1223,7 +1223,7 @@ const handleDetailsScroll = () => {
|
||||
}
|
||||
|
||||
.question-icon {
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
flex-shrink: 0;
|
||||
margin-top: 2px;
|
||||
}
|
||||
@@ -1236,11 +1236,11 @@ const handleDetailsScroll = () => {
|
||||
.delete-question-btn {
|
||||
opacity: 0;
|
||||
flex-shrink: 0;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
transition: opacity 0.2s ease, color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: #e34d59;
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1248,7 +1248,7 @@ const handleDetailsScroll = () => {
|
||||
.md-content {
|
||||
word-break: break-word;
|
||||
line-height: 1.6;
|
||||
color: #1d2129;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
// 保留旧样式作为兼容(已被chunk-item替代)
|
||||
|
||||
@@ -368,21 +368,21 @@ onUnmounted(() => {
|
||||
|
||||
<style scoped lang="less">
|
||||
// ── Design tokens ──
|
||||
@border-color: #e7e7e7;
|
||||
@border-color: var(--td-component-stroke);
|
||||
@border-radius: 6px;
|
||||
@bg-white: #fff;
|
||||
@bg-subtle: #f6f8fa;
|
||||
@bg-muted: #f9fafb;
|
||||
@text-primary: #1d2129;
|
||||
@text-secondary: #000000a6;
|
||||
@text-tertiary: #00000066;
|
||||
@text-disabled: #00000040;
|
||||
@accent: #07c05f;
|
||||
@accent-hover: #059669;
|
||||
@accent-bg: #f0fdf4;
|
||||
@accent-bg-hover: #e6f7ed;
|
||||
@error-color: #e34d59;
|
||||
@table-border: #e7e7e7;
|
||||
@bg-white: var(--td-bg-color-container);
|
||||
@bg-subtle: var(--td-bg-color-container);
|
||||
@bg-muted: var(--td-bg-color-secondarycontainer);
|
||||
@text-primary: var(--td-text-color-primary);
|
||||
@text-secondary: var(--td-text-color-secondary);
|
||||
@text-tertiary: var(--td-text-color-placeholder);
|
||||
@text-disabled: var(--td-text-color-disabled);
|
||||
@accent: var(--td-brand-color);
|
||||
@accent-hover: var(--td-brand-color-active);
|
||||
@accent-bg: var(--td-success-color-light);
|
||||
@accent-bg-hover: var(--td-success-color-light);
|
||||
@error-color: var(--td-error-color);
|
||||
@table-border: var(--td-component-stroke);
|
||||
@preview-max-h: calc(100vh - 200px);
|
||||
@transition: all 0.2s ease;
|
||||
|
||||
@@ -556,7 +556,7 @@ onUnmounted(() => {
|
||||
padding: 8px 16px;
|
||||
border-left: 4px solid @accent;
|
||||
background: @bg-subtle;
|
||||
color: #57606a;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
ul, ol { padding-left: 24px; margin: 8px 0; }
|
||||
li { margin: 4px 0; }
|
||||
@@ -574,7 +574,7 @@ onUnmounted(() => {
|
||||
code { background: transparent; padding: 0; }
|
||||
}
|
||||
code {
|
||||
background: #eff1f3;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 2px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 0.9em;
|
||||
|
||||
@@ -20,7 +20,7 @@ const { t } = useI18n()
|
||||
}
|
||||
|
||||
.empty-txt {
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-family: "PingFang SC";
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
@@ -29,7 +29,7 @@ const { t } = useI18n()
|
||||
}
|
||||
|
||||
.empty-type-txt {
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
text-align: center;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 12px;
|
||||
|
||||
@@ -683,7 +683,7 @@ onBeforeUnmount(() => {
|
||||
:popup-props="{ attach: 'body' }"
|
||||
>
|
||||
<template #empty>
|
||||
<div style="padding: 20px; text-align: center; color: #999;">
|
||||
<div style="padding: 20px; text-align: center; color: var(--td-text-color-placeholder);">
|
||||
{{ $t('manualEditor.noDocumentKnowledgeBases') || '暂无可用的文档型知识库,请先创建一个文档型知识库' }}
|
||||
</div>
|
||||
</template>
|
||||
@@ -815,7 +815,7 @@ onBeforeUnmount(() => {
|
||||
.form-label {
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.status-row {
|
||||
@@ -830,8 +830,8 @@ onBeforeUnmount(() => {
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 8px 12px;
|
||||
background: #ffffff;
|
||||
border: 1px solid #e0e0e0;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 8px;
|
||||
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
|
||||
overflow-x: auto;
|
||||
@@ -846,7 +846,7 @@ onBeforeUnmount(() => {
|
||||
.toolbar-divider {
|
||||
width: 1px;
|
||||
height: 24px;
|
||||
background: #e0e0e0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
margin: 0 2px;
|
||||
}
|
||||
|
||||
@@ -855,7 +855,7 @@ onBeforeUnmount(() => {
|
||||
height: 28px;
|
||||
padding: 0;
|
||||
border-radius: 6px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
border: none;
|
||||
background: transparent;
|
||||
cursor: pointer;
|
||||
@@ -865,7 +865,7 @@ onBeforeUnmount(() => {
|
||||
justify-content: center;
|
||||
|
||||
.t-icon {
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: 16px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
@@ -874,19 +874,19 @@ onBeforeUnmount(() => {
|
||||
|
||||
.toolbar-btn:hover {
|
||||
background: rgba(7, 192, 95, 0.08);
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.t-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
.toolbar-btn.active {
|
||||
background: rgba(7, 192, 95, 0.12);
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
|
||||
.t-icon {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -949,17 +949,17 @@ onBeforeUnmount(() => {
|
||||
:deep(.toggle-view-btn.active),
|
||||
:deep(.toggle-view-btn:hover) {
|
||||
background: rgba(7, 192, 95, 0.12) !important;
|
||||
color: #059669 !important;
|
||||
color: var(--td-brand-color-active) !important;
|
||||
border-color: rgba(7, 192, 95, 0.4) !important;
|
||||
|
||||
.t-icon {
|
||||
color: #059669;
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
}
|
||||
|
||||
.status-timestamp {
|
||||
font-size: 12px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
}
|
||||
|
||||
.editor-area {
|
||||
@@ -970,7 +970,7 @@ onBeforeUnmount(() => {
|
||||
.editor-pane {
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
:deep(.t-textarea__inner) {
|
||||
@@ -983,10 +983,10 @@ onBeforeUnmount(() => {
|
||||
max-height: 520px;
|
||||
overflow-y: auto;
|
||||
padding: 16px;
|
||||
background: #fafafa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
font-size: 14px;
|
||||
line-height: 1.7;
|
||||
color: #222;
|
||||
color: var(--td-text-color-primary);
|
||||
|
||||
:deep(h1),
|
||||
:deep(h2),
|
||||
@@ -997,29 +997,29 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
:deep(code) {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
background: var(--td-bg-color-container-hover);
|
||||
padding: 2px 4px;
|
||||
border-radius: 4px;
|
||||
font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
|
||||
}
|
||||
|
||||
:deep(pre) {
|
||||
background: rgba(0, 0, 0, 0.05);
|
||||
background: var(--td-bg-color-container-hover);
|
||||
padding: 12px;
|
||||
border-radius: 6px;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:deep(blockquote) {
|
||||
border-left: 4px solid #07c05f;
|
||||
border-left: 4px solid var(--td-brand-color);
|
||||
padding-left: 12px;
|
||||
color: #555;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 16px 0;
|
||||
background: rgba(7, 192, 95, 0.08);
|
||||
}
|
||||
|
||||
:deep(a) {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1044,7 +1044,7 @@ onBeforeUnmount(() => {
|
||||
}
|
||||
|
||||
.empty-preview {
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -581,10 +581,8 @@ let pathPrefix = ref(route.name)
|
||||
// 组织图标:只在组织页面显示绿色
|
||||
organizationIcon.value = organizationsActiveState ? 'organization-green.svg' : 'organization.svg';
|
||||
|
||||
// 对话图标:只在对话创建页面显示绿色,在知识库页面显示灰色,其他情况显示默认
|
||||
prefixIcon.value = creatChatActiveState.isCreatChatActive ? 'prefixIcon-green.svg' :
|
||||
kbActiveState.isKbActive ? 'prefixIcon-grey.svg' :
|
||||
'prefixIcon.svg';
|
||||
// 对话图标:只在对话创建页面显示绿色,其他情况显示默认
|
||||
prefixIcon.value = creatChatActiveState.isCreatChatActive ? 'prefixIcon-green.svg' : 'prefixIcon.svg';
|
||||
|
||||
// 设置图标:只在设置页面显示绿色
|
||||
settingIcon.value = settingsActiveState.isSettingsActive ? 'setting-green.svg' : 'setting.svg';
|
||||
@@ -668,15 +666,8 @@ const getImgSrc = (url: string) => {
|
||||
}
|
||||
|
||||
const mouseenteMenu = (path: string) => {
|
||||
if (pathPrefix.value != 'knowledge-bases' && pathPrefix.value != 'creatChat' && path != 'knowledge-bases') {
|
||||
prefixIcon.value = 'prefixIcon-grey.svg';
|
||||
}
|
||||
}
|
||||
const mouseleaveMenu = (path: string) => {
|
||||
if (pathPrefix.value != 'knowledge-bases' && pathPrefix.value != 'creatChat' && path != 'knowledge-bases') {
|
||||
const nameStr = typeof route.name === 'string' ? route.name as string : (route.name ? String(route.name) : '')
|
||||
getIcon(nameStr)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -685,14 +676,14 @@ const mouseleaveMenu = (path: string) => {
|
||||
.aside_box {
|
||||
min-width: 260px;
|
||||
padding: 8px;
|
||||
background: #fff;
|
||||
background: var(--td-bg-color-sidebar);
|
||||
box-sizing: border-box;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
/* 与右侧内容区统一的细分界,减少割裂感 */
|
||||
border-right: 1px solid #e7ebf0;
|
||||
border-right: 1px solid var(--td-component-stroke);
|
||||
box-shadow: 1px 0 0 rgba(0, 0, 0, 0.02);
|
||||
|
||||
.logo_box {
|
||||
@@ -715,7 +706,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
|
||||
.logo_txt {
|
||||
transform: rotate(0.049deg);
|
||||
color: #000000;
|
||||
color: var(--td-text-color-primary);
|
||||
font-family: "TencentSans";
|
||||
font-size: 24.12px;
|
||||
font-style: normal;
|
||||
@@ -757,32 +748,32 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
.upload-file-wrap:hover {
|
||||
background-color: #dbede4;
|
||||
color: #07C05F;
|
||||
background-color: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
|
||||
}
|
||||
|
||||
.upload-file-icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
color: rgba(0, 0, 0, 0.6);
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.active-upload {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.menu_item_active {
|
||||
border-radius: 4px;
|
||||
background: #07c05f1a !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
|
||||
.menu_icon,
|
||||
.menu_title {
|
||||
color: #07c05f !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
.menu-create-hint {
|
||||
color: #07c05f !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
@@ -791,7 +782,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
|
||||
.menu_icon,
|
||||
.menu_title {
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -820,11 +811,11 @@ const mouseleaveMenu = (path: string) => {
|
||||
|
||||
&:hover {
|
||||
border-radius: 4px;
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
background: var(--td-bg-color-container-hover);
|
||||
|
||||
.menu_icon,
|
||||
.menu_title {
|
||||
color: #000000b3;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -832,18 +823,17 @@ const mouseleaveMenu = (path: string) => {
|
||||
.menu_icon {
|
||||
display: flex;
|
||||
margin-right: 10px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
|
||||
.icon {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
fill: currentColor;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
||||
.menu_title {
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
text-overflow: ellipsis;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
@@ -871,7 +861,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
font-family: "PingFang SC";
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
padding: 12px 18px 6px 18px;
|
||||
margin-top: 8px;
|
||||
line-height: 20px;
|
||||
@@ -893,7 +883,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-weight: 400;
|
||||
line-height: 22px;
|
||||
height: 36px;
|
||||
@@ -916,7 +906,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
.menu-more {
|
||||
display: inline-block;
|
||||
font-weight: bold;
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.sub_title {
|
||||
@@ -924,12 +914,12 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
&:hover {
|
||||
background: rgba(0, 0, 0, 0.04);
|
||||
color: #000000b3;
|
||||
background: var(--td-bg-color-container-hover);
|
||||
color: var(--td-text-color-primary);
|
||||
border-radius: 3px;
|
||||
|
||||
.menu-more {
|
||||
color: #000000b3;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.menu-more-wrap {
|
||||
@@ -944,12 +934,12 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
.submenu_item_active {
|
||||
background: #07c05f1a !important;
|
||||
color: #07c05f !important;
|
||||
background: var(--td-brand-color-light) !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
border-radius: 3px;
|
||||
|
||||
.menu-more {
|
||||
color: #07c05f !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
.menu-more-wrap {
|
||||
@@ -968,7 +958,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
.submenu_item_selected {
|
||||
background: #07c05f0d !important;
|
||||
background: rgba(7, 192, 95, 0.05) !important;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
@@ -981,14 +971,14 @@ const mouseleaveMenu = (path: string) => {
|
||||
margin-left: auto;
|
||||
margin-right: 8px;
|
||||
font-size: 13px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition: color 0.2s ease;
|
||||
font-weight: 400;
|
||||
|
||||
&:hover {
|
||||
color: #000000b3;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -998,21 +988,21 @@ const mouseleaveMenu = (path: string) => {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 8px 14px;
|
||||
border-top: 1px solid #e7ebf0;
|
||||
background: #fff;
|
||||
border-top: 1px solid var(--td-component-stroke);
|
||||
background: var(--td-bg-color-container);
|
||||
|
||||
.batch-footer-left {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 13px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
}
|
||||
|
||||
/* 知识库下拉菜单样式 */
|
||||
.kb-dropdown-icon {
|
||||
margin-left: auto;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
transition: transform 0.3s ease, color 0.2s ease;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
@@ -1026,15 +1016,15 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
|
||||
&.active {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
|
||||
&.active:hover {
|
||||
color: #05a04f;
|
||||
color: var(--td-brand-color-active);
|
||||
}
|
||||
|
||||
svg {
|
||||
@@ -1049,10 +1039,10 @@ const mouseleaveMenu = (path: string) => {
|
||||
top: 100%;
|
||||
left: 0;
|
||||
right: 0;
|
||||
background: #fff;
|
||||
border: 1px solid #e5e7eb;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
z-index: 1000;
|
||||
max-height: 200px;
|
||||
overflow-y: auto;
|
||||
@@ -1063,15 +1053,15 @@ const mouseleaveMenu = (path: string) => {
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s ease;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
|
||||
color: var(--td-text-color-primary);
|
||||
|
||||
&:hover {
|
||||
background-color: #f5f5f5;
|
||||
background-color: var(--td-bg-color-container-hover);
|
||||
}
|
||||
|
||||
|
||||
&.active {
|
||||
background-color: #07c05f1a;
|
||||
color: #07c05f;
|
||||
background-color: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -1095,7 +1085,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
margin-left: auto;
|
||||
margin-right: 8px;
|
||||
font-size: 16px;
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
opacity: 0.7;
|
||||
transition: opacity 0.2s ease;
|
||||
flex-shrink: 0;
|
||||
@@ -1112,7 +1102,7 @@ const mouseleaveMenu = (path: string) => {
|
||||
margin-left: 6px;
|
||||
border-radius: 9px;
|
||||
background: rgba(250, 173, 20, 0.2);
|
||||
color: #d48806;
|
||||
color: var(--td-warning-color);
|
||||
font-size: 12px;
|
||||
font-weight: 600;
|
||||
line-height: 18px;
|
||||
@@ -1125,15 +1115,39 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
</style>
|
||||
<style lang="less">
|
||||
// Dark mode: invert dark logo to light
|
||||
html[theme-mode="dark"] .aside_box .logo_box .logo {
|
||||
filter: invert(1) hue-rotate(180deg);
|
||||
}
|
||||
|
||||
// Dark mode: make SVG icons match text color (loaded via <img>, currentColor won't work)
|
||||
html[theme-mode="dark"] .aside_box .menu_icon .icon {
|
||||
filter: invert(1);
|
||||
opacity: 0.55;
|
||||
}
|
||||
// Hover state: brighter icon like text
|
||||
html[theme-mode="dark"] .aside_box .menu_item:hover .menu_icon .icon {
|
||||
opacity: 0.9;
|
||||
}
|
||||
// menu_item_c_active: text is primary, so icon should match
|
||||
html[theme-mode="dark"] .aside_box .menu_item_c_active .menu_icon .icon {
|
||||
opacity: 0.9;
|
||||
}
|
||||
// Active (green) icons should not be inverted
|
||||
html[theme-mode="dark"] .aside_box .menu_item_active .menu_icon .icon {
|
||||
filter: none;
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
// 上传操作下拉菜单样式 - 全局样式(因为 TDesign 的下拉菜单挂载到 body 上)
|
||||
// 使用更具体的选择器来匹配上传操作下拉菜单
|
||||
.t-popup[data-popper-placement^="right"] {
|
||||
.t-popup__content {
|
||||
.t-dropdown__menu {
|
||||
background: #ffffff !important;
|
||||
border: 1px solid #e5e7eb !important;
|
||||
background: var(--td-bg-color-container) !important;
|
||||
border: 1px solid var(--td-component-stroke) !important;
|
||||
border-radius: 6px !important;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
|
||||
box-shadow: var(--td-shadow-2) !important;
|
||||
padding: 4px !important;
|
||||
min-width: 100px !important;
|
||||
}
|
||||
@@ -1144,15 +1158,15 @@ const mouseleaveMenu = (path: string) => {
|
||||
margin: 2px 0 !important;
|
||||
transition: all 0.2s ease !important;
|
||||
font-size: 14px !important;
|
||||
color: #333333 !important;
|
||||
color: var(--td-text-color-primary) !important;
|
||||
min-width: auto !important;
|
||||
max-width: none !important;
|
||||
width: auto !important;
|
||||
cursor: pointer !important;
|
||||
|
||||
&:hover {
|
||||
background: #f5f7fa !important;
|
||||
color: #07c05f !important;
|
||||
background: var(--td-bg-color-container-hover) !important;
|
||||
color: var(--td-brand-color) !important;
|
||||
}
|
||||
|
||||
.t-dropdown__item-text {
|
||||
@@ -1168,22 +1182,22 @@ const mouseleaveMenu = (path: string) => {
|
||||
// 退出登录确认框样式
|
||||
:deep(.t-popconfirm) {
|
||||
.t-popconfirm__content {
|
||||
background: #fff;
|
||||
border: 1px solid #e7e7e7;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
||||
box-shadow: var(--td-shadow-3);
|
||||
padding: 12px 16px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
max-width: 200px;
|
||||
}
|
||||
|
||||
|
||||
.t-popconfirm__arrow {
|
||||
border-bottom-color: #e7e7e7;
|
||||
border-bottom-color: var(--td-component-stroke);
|
||||
}
|
||||
|
||||
|
||||
.t-popconfirm__arrow::after {
|
||||
border-bottom-color: #fff;
|
||||
border-bottom-color: var(--td-bg-color-container);
|
||||
}
|
||||
|
||||
.t-popconfirm__buttons {
|
||||
@@ -1194,18 +1208,18 @@ const mouseleaveMenu = (path: string) => {
|
||||
}
|
||||
|
||||
.t-button--variant-outline {
|
||||
border-color: #d9d9d9;
|
||||
color: #666;
|
||||
border-color: var(--td-component-border);
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.t-button--theme-danger {
|
||||
background-color: #ff4d4f;
|
||||
border-color: #ff4d4f;
|
||||
background-color: var(--td-error-color);
|
||||
border-color: var(--td-error-color);
|
||||
}
|
||||
|
||||
.t-button--theme-danger:hover {
|
||||
background-color: #ff7875;
|
||||
border-color: #ff7875;
|
||||
background-color: var(--td-error-color);
|
||||
border-color: var(--td-error-color);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -18,7 +18,7 @@ const { t } = useI18n()
|
||||
align-items: center;
|
||||
}
|
||||
.drag-txt {
|
||||
color: #07c05f;
|
||||
color: var(--td-brand-color);
|
||||
font-family: "PingFang SC";
|
||||
font-size: 24px;
|
||||
font-weight: 600;
|
||||
@@ -29,7 +29,7 @@ const { t } = useI18n()
|
||||
|
||||
.drag-type-txt {
|
||||
width: 217px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-disabled);
|
||||
text-align: center;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 12px;
|
||||
|
||||
Reference in New Issue
Block a user