单应用项目,可以创建很多独立工具类页面 ,不用登录 初始化的页面
zhangchen
2025-07-25 c0a291a53ff1bb644fee9395745c09a6c26cc0ba
ID1625-修改时间选择组件尺寸
3个文件已修改
36 ■■■■■ 已修改文件
src/views/mobile/bedsideAuxiliaryScreen/components/ScheduledTask.vue 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobile/bedsideAuxiliaryScreen/components/SettingDeviceDialog.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobile/bedsideAuxiliaryScreen/components/TimePicker.vue 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/mobile/bedsideAuxiliaryScreen/components/ScheduledTask.vue
@@ -8,6 +8,8 @@
      :show-close="false"
      class="scheduled-task-dialog"
      top="0"
      :destroy-on-close="true"
      :close-on-click-modal="false"
    >
      <template #header>
        <div class="scheduled-task-header">
src/views/mobile/bedsideAuxiliaryScreen/components/SettingDeviceDialog.vue
@@ -7,6 +7,8 @@
      width="80%"
      :show-close="false"
      class="scheduled-task-dialog"
      :destroy-on-close="true"
      :close-on-click-modal="false"
    >
      <template #header>
        <div class="setting-dialog-header">
@@ -140,7 +142,7 @@
};
const handleRefresh = () => {
    bedsideAuxiliaryScreenStore.refresh(
  bedsideAuxiliaryScreenStore.refresh(
    `${import.meta.env.VITE_SSE_BASE_URL}${devcieCode.value}`
  );
};
@@ -237,11 +239,11 @@
          height: 100%;
          border: none;
          outline: none;
          padding: 0 4px;
          padding: 0 4px;
          line-height: 16px;
          font-size: 9px;
          font-family: PingFangSC, PingFang SC;
          vertical-align: middle;
          vertical-align: middle;
          box-sizing: border-box; // 避免padding撑高
          &::placeholder {
src/views/mobile/bedsideAuxiliaryScreen/components/TimePicker.vue
@@ -46,7 +46,7 @@
const hourRef = ref<HTMLElement | null>(null);
const minuteRef = ref<HTMLElement | null>(null);
const ITEM_REM = 0.4;
const ITEM_REM = 0.26;
const itemHeight = remToPx(ITEM_REM);
const selectedIndexHour = ref(2);
@@ -183,12 +183,12 @@
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2rem; // 5 * 0.4rem 每个item高度0.4rem
  height: 1.3rem; // 5 * 0.4rem 每个item高度0.4rem
  overflow: hidden;
  .picker-column {
    height: 2rem;
    width: 0.9rem;
    height: 1.3rem;
    width: 0.7rem;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
@@ -199,17 +199,17 @@
    }
    .picker-item {
      height: 0.4rem;
      line-height: 0.4rem;
      height: 0.26rem;
      line-height: 0.26rem;
      text-align: center;
      font-size: 0.24rem;
      font-size: 0.2rem;
      scroll-snap-align: center;
      user-select: none;
      cursor: pointer;
      transition: color 0.3s ease, font-size 0.3s ease;
      &.active {
        font-size: 0.5rem;
        font-size: 0.28rem;
        font-weight: 700;
        color: #111;
        &.hours {
@@ -220,26 +220,26 @@
        }
      }
      &.medium {
        font-size: 0.3rem;
        font-size: 0.22rem;
        color: #666;
        &.hours {
          text-align: left;
          padding-left: 0.2rem;
          padding-left: 0.16rem;
        }
        &.minutes {
          text-align: right;
          padding-right: 0.2rem;
          padding-right: 0.16rem;
        }
      }
      &.small {
        font-size: 0.24rem;
        font-size: 0.18rem;
        color: #aaa;
      }
    }
  }
  .colon {
    font-size: 0.5rem;
    font-size: 0.28rem;
    font-weight: 600;
    color: #444;
    user-select: none;