diff --git a/capi-ui/src/views/biz/data/NameDetai.vue b/capi-ui/src/views/biz/data/NameDetai.vue index 16a0090..dc434d9 100644 --- a/capi-ui/src/views/biz/data/NameDetai.vue +++ b/capi-ui/src/views/biz/data/NameDetai.vue @@ -1,51 +1,649 @@ \ No newline at end of file +.table-detail-container { + display: flex; + gap: 24px; + height: 100%; + width: 100%; +} + +.left-section { + width: 320px; + flex-shrink: 0; + display: flex; + flex-direction: column; + gap: 16px; + overflow-y: auto; + max-height: 100%; + padding-right: 8px; +} + +.right-section { + flex: 1; + display: flex; + flex-direction: column; + height: 100%; +} + +.section-title { + font-size: 16px; + font-weight: 600; + color: #1f2329; + margin: 0 0 8px 0; + padding-bottom: 8px; + border-bottom: 1px solid #e8e8e8; +} + +// 卡片样式 +.info-card { + border-radius: 8px; + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); + border: 1px solid #e0e0e0; + overflow: hidden; +} + +.basic-info-card { + padding: 16px; +} + +.storage-card { + padding: 20px 16px; +} + +.storage-info { + display: flex; + align-items: center; +} + +.storage-label { + color: #6b7280; + font-weight: 500; + width: 90px; + flex-shrink: 0; +} + +.storage-value { + color: #1a73e8; + font-size: 20px; + font-weight: 600; + flex-grow: 1; +} + +.basic-info-item { + display: flex; + padding: 6px 0; + line-height: 1.5; +} + +.basic-info-item .label { + color: #6b7280; + font-weight: 500; + width: 90px; + flex-shrink: 0; +} + +.basic-info-item .value { + color: #1f2329; + flex-grow: 1; + word-break: break-word; +} + +// 谷歌风格标签页 +.google-style-tabs { + --active-tab-color: #e8f0fe; + --active-text-color: #1967d2; + + .ant-tabs-nav { + margin: 0; + padding-left: 16px; + border-bottom: 1px solid #e0e0e0; + } + + .ant-tabs-tab { + padding: 12px 24px; + margin: 0; + font-size: 14px; + color: #5f6368; + transition: all 0.2s; + + &:hover { + color: #1967d2; + background-color: rgba(25, 103, 210, 0.04); + } + + &.ant-tabs-tab-active { + color: var(--active-text-color); + background-color: var(--active-tab-color); + border-bottom: 2px solid var(--active-text-color); + } + } + + .ant-tabs-ink-bar { + display: none; + } + + .ant-tabs-content { + flex: 1; + overflow: hidden; + display: flex; + flex-direction: column; + padding: 0 16px; + } +} + +.tab-content { + flex: 1; + overflow: auto; + padding-top: 16px; +} + +// SQL内容样式 +.sql-content { + background-color: #f9fafb; + border-radius: 6px; + padding: 0; + font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace; + font-size: 14px; + line-height: 1.5; + height: 100%; + display: flex; + flex-direction: column; +} + +.sql-header { + display: flex; + justify-content: space-between; + align-items: center; + padding: 8px 16px; + background-color: #f1f3f4; + border-bottom: 1px solid #e0e0e0; + border-radius: 6px 6px 0 0; +} + +.copy-btn { + color: #1967d2; + padding: 4px 8px; + + &:hover { + background-color: rgba(25, 103, 210, 0.08); + } +} + +pre { + margin: 0; + white-space: pre-wrap; + padding: 16px; + flex: 1; + overflow: auto; +} + +// 表格样式 +.fixed-header-table { + flex: 1; + overflow: auto; + + .ant-table-thead > tr > th { + background-color: #f8fafc; + font-weight: 600; + color: #334155; + position: sticky; + top: 0; + z-index: 1; + } + + .ant-table-tbody { + overflow: auto; + } +} + +// 滚动条样式优化 +::-webkit-scrollbar { + width: 8px; + height: 8px; +} + +::-webkit-scrollbar-track { + background: #f1f1f1; + border-radius: 4px; +} + +::-webkit-scrollbar-thumb { + background: #c1c1c1; + border-radius: 4px; +} + +::-webkit-scrollbar-thumb:hover { + background: #a8a8a8; +} +