diff --git a/src/assets/image/no-data-box.svg b/src/assets/image/no-data-box.svg new file mode 100644 index 0000000..10a4241 --- /dev/null +++ b/src/assets/image/no-data-box.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/assets/styles/componets/_widget.scss b/src/assets/styles/componets/_widget.scss index 999d33a..5622952 100644 --- a/src/assets/styles/componets/_widget.scss +++ b/src/assets/styles/componets/_widget.scss @@ -49,7 +49,9 @@ .widget-item { border-radius: 6px; background: rgba(255, 255, 255, 0.95); - overflow: hidden; + // 内置组件的浮层(如课表班级切换下拉)需溢出卡片,故不裁切; + // 卡片圆角由自身背景维持,疑似溢出子元素(iframe)自带底部圆角。 + overflow: visible; margin: 18px 14px 0 14px; &:first-child { margin-top: 0; @@ -71,17 +73,34 @@ justify-content: space-between; align-items: center; border-bottom: 1px solid #e9e9e9; + // 卡头浅灰底(原版观感;合成色曾随壁纸漂移,这里显式钉死) + background: #f7f8f9; + // .widget-item 已改 overflow:visible,卡头底色的顶部圆角需自补 + border-radius: 6px 6px 0 0; color: #344449; font-weight: 700; font-size: 16px; svg { cursor: pointer; } + // 右区:内置组件 header 控件挂载点 + 关闭按钮(.widget-app-header 是 space-between,右区整体靠右) + .widget-header-right { + display: flex; + align-items: center; + gap: 6px; + min-width: 0; + } + .widget-header-extra { + display: flex; + align-items: center; + } } iframe { width: 100%; display: block; min-height: 150px; + // .widget-item 已改为 overflow:visible,页面片段的底部圆角自行补齐 + border-radius: 0 0 6px 6px; } } diff --git a/src/components/widgets/SyllabusWidget.vue b/src/components/widgets/SyllabusWidget.vue index 16c3749..e2b5d36 100644 --- a/src/components/widgets/SyllabusWidget.vue +++ b/src/components/widgets/SyllabusWidget.vue @@ -8,80 +8,124 @@ :paragraph="{ rows: 4 }" animated /> -
- - - - - - - - - -
节{{ week.weekName }}
{{ row.label }} - -
-
-
暂无数据
+ + + +