diff --git a/src/layouts/Basic.vue b/src/layouts/Basic.vue index 3ef29d9..fc07072 100644 --- a/src/layouts/Basic.vue +++ b/src/layouts/Basic.vue @@ -11,6 +11,8 @@ const appStore = useAppStore(); const router = useRouter(); const route = useRoute(); +console.log({ appStore }); + useResponsive(true); const navbarHeight = `60px`; const navbar = computed(() => appStore.navbar); @@ -23,14 +25,17 @@ const menuWidth = computed(() => { const collapsed = computed(() => { return appStore.menuCollapse; }); -const paddingStyle = computed(() => { - const paddingLeft = renderMenu.value && !hideMenu.value ? { paddingLeft: `${menuWidth.value}px` } : {}; - const paddingTop = navbar.value ? { paddingTop: navbarHeight } : {}; - return { ...paddingLeft, ...paddingTop }; -}); const showSidebar = computed(() => { return !(route.meta && route.meta.hideSidebar); }); +const paddingStyle = computed(() => { + const paddingLeft = + showSidebar.value && renderMenu.value && !hideMenu.value ? { paddingLeft: `${menuWidth.value}px` } : {}; + const paddingTop = navbar.value ? { paddingTop: navbarHeight } : {}; + return { ...paddingLeft, ...paddingTop }; +}); + +console.log('showSidebar', showSidebar); onMounted(() => { checkHasInviteCode(); diff --git a/src/styles/components/index.scss b/src/styles/components/index.scss new file mode 100644 index 0000000..1999be5 --- /dev/null +++ b/src/styles/components/index.scss @@ -0,0 +1 @@ +@import './table.scss'; \ No newline at end of file diff --git a/src/styles/components/table.scss b/src/styles/components/table.scss new file mode 100644 index 0000000..b0b3d7c --- /dev/null +++ b/src/styles/components/table.scss @@ -0,0 +1,41 @@ +.arco-table { + @mixin table-cell-text { + color: var(--Text-1, #211f24); + font-family: 'Alibaba PuHuiTi'; + font-size: 14px; + font-style: normal; + font-weight: 400; + line-height: 22px; + } + .arco-table-container { + border: none !important; + .arco-table-element { + thead { + .arco-table-tr { + .arco-table-th { + border-bottom: 1px solid var(--Border-1, #d7d7d9); + background: var(--BG-100, #f7f8fa); + .arco-table-cell { + padding: 13px 16px; + .arco-table-th-title { + @include table-cell-text; + } + } + } + } + } + tbody { + .arco-table-tr { + .arco-table-td { + .arco-table-cell { + padding: 13px 16px; + .arco-table-cell-content { + @include table-cell-text; + } + } + } + } + } + } + } +} diff --git a/src/styles/index.ts b/src/styles/index.ts index 32f4eac..055fb7d 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -1,3 +1,8 @@ +/* + * @Author: RenXiaoDong + * @Date: 2025-06-30 16:03:42 + */ +import './vars.css'; +import './components/index.scss'; import 'normalize.css'; import 'uno.css'; -import './vars.css'; diff --git a/src/views/components/dataEngine/hotCloud.vue b/src/views/components/dataEngine/hotCloud.vue index fc0de02..7cd10bb 100644 --- a/src/views/components/dataEngine/hotCloud.vue +++ b/src/views/components/dataEngine/hotCloud.vue @@ -1,20 +1,15 @@ @@ -188,10 +181,10 @@ const columns = [ minWidth: 180, title: '热度指数', dataIndex: 'hot', + slotName: 'hot', sortable: { sortDirections: ['ascend', 'descend'], }, - slotName: 'hot', }, { titleSlotName: 'sentimentTitle', @@ -204,8 +197,7 @@ const columns = [ { title: '操作', slotName: 'optional', - width: 120, - minWidth: 120, + width: 80, }, ]; // 切换排序方向 @@ -305,7 +297,16 @@ const handleOk = () => { }; - + + diff --git a/src/views/components/dataEngine/keyWord.vue b/src/views/components/dataEngine/keyWord.vue index 6c54794..5e69005 100644 --- a/src/views/components/dataEngine/keyWord.vue +++ b/src/views/components/dataEngine/keyWord.vue @@ -1,57 +1,41 @@ + - - - 行业情绪 - - - - - - - + +
+ 行业情绪 + + + + +
+
- + 正面情绪 @@ -144,9 +99,9 @@ :data="rowData" :span-method="spanMethod" :filter-icon-align-left="alignLeft" - @change="handleChange" :scroll="true" :pagination="false" + @change="handleChange" >