Show · Calendar

Calendar

Calendar component that allows to display corresponding events in day/week/month view

Demos

How to import

import { Calendar } from '@fibrous/semi-ui-solid';

Day Mode

Day mode. You could toggle the red line of current time using showCurrTime.

全天
    上午1时
    上午2时
    上午3时
    上午4时
    上午5时
    上午6时
    上午7时
    上午8时
    上午9时
    上午10时
    上午11时
    下午12时
    下午1时
    下午2时
    下午3时
    下午4时
    下午5时
    下午6时
    下午7时
    下午8时
    下午9时
    下午10时
    下午11时
      Code
      import { Calendar } from '@fibrous/semi-ui-solid';
      
      // A fixed date keeps the server render and the browser on the same first frame
      const displayValue = new Date(2026, 9, 25);
      
      export default function CalendarDemo() {
          return <Calendar mode="day" displayValue={displayValue} />;
      }

      Week Mode

      Week mode. You could toggle the red line of current time using showCurrTime.

      10月
      25周日
      26周一
      27周二
      28周三
      29周四
      30周五
      31周六
      全天
        上午1时
        上午2时
        上午3时
        上午4时
        上午5时
        上午6时
        上午7时
        上午8时
        上午9时
        上午10时
        上午11时
        下午12时
        下午1时
        下午2时
        下午3时
        下午4时
        下午5时
        下午6时
        下午7时
        下午8时
        下午9时
        下午10时
        下午11时
                      Code
                      import { Calendar } from '@fibrous/semi-ui-solid';
                      
                      // A fixed date keeps the server render and the browser on the same first frame
                      const displayValue = new Date(2026, 9, 25);
                      
                      export default function CalendarDemo() {
                          return <Calendar mode="week" displayValue={displayValue} />;
                      }

                      Month Mode

                      Month Mode.

                      周日
                      周一
                      周二
                      周三
                      周四
                      周五
                      周六
                      30
                      7月 1日
                      2
                      3
                      4
                      5
                      6
                      7
                      8
                      9
                      10
                      11
                      12
                      13
                      14
                      15
                      16
                      17
                      18
                      19
                      20
                      21
                      22
                      23
                      24
                      25
                      26
                      27
                      28
                      29
                      30
                      31
                      8月 1日
                      2
                      3
                      Code
                      import { Calendar } from '@fibrous/semi-ui-solid';
                      
                      export default function CalendarDemo() {
                          return <Calendar mode="month" displayValue={new Date(2019, 6, 23)} />;
                      }

                      Set week start day

                      The day of the week can be set as the first day of the week through weekStartsOn, 0 for Sunday, 1 for Monday, and so on. Default is Sunday.
                      weekStartsOn takes effect for month view and week view.

                      周日
                      周一
                      周二
                      周三
                      周四
                      周五
                      周六
                      30
                      7月 1日
                      2
                      3
                      4
                      5
                      6
                      7
                      8
                      9
                      10
                      11
                      12
                      13
                      14
                      15
                      16
                      17
                      18
                      19
                      20
                      21
                      22
                      23
                      24
                      25
                      26
                      27
                      28
                      29
                      30
                      31
                      8月 1日
                      2
                      3
                      Code
                      import { createSignal } from 'solid-js';
                      import { Calendar, type CalendarProps, Radio, RadioGroup } from '@fibrous/semi-ui-solid';
                      
                      export default function CalendarDemo() {
                          const [v, setV] = createSignal<CalendarProps['weekStartsOn']>(0);
                          return (
                              <div>
                                  <RadioGroup value={v()} aria-label="周起始日" type="button" name="demo-radio-group-vertical" onChange={(e) => setV(e.target.value)}>
                                      <Radio value={0}>周日</Radio>
                                      <Radio value={1}>周一</Radio>
                                      <Radio value={2}>周二</Radio>
                                      <Radio value={3}>周三</Radio>
                                      <Radio value={4}>周四</Radio>
                                      <Radio value={5}>周五</Radio>
                                      <Radio value={6}>周六</Radio>
                                  </RadioGroup>
                                  <Calendar style={{ 'margin-top': '20px' }} mode="month" displayValue={new Date(2019, 6, 23)} weekStartsOn={v()} />
                              </div>
                          );
                      }

                      Range Mode

                      Range Mode. range is required which is a left-closed and right-open interval.

                      9月
                      26周六
                      27周日
                      28周一
                      29周二
                      30周三
                      全天
                        上午1时
                        上午2时
                        上午3时
                        上午4时
                        上午5时
                        上午6时
                        上午7时
                        上午8时
                        上午9时
                        上午10时
                        上午11时
                        下午12时
                        下午1时
                        下午2时
                        下午3时
                        下午4时
                        下午5时
                        下午6时
                        下午7时
                        下午8时
                        下午9时
                        下午10时
                        下午11时
                                  Code
                                  import { Calendar } from '@fibrous/semi-ui-solid';
                                  
                                  const displayValue = new Date(2020, 8, 26);
                                  const range = [new Date(2020, 8, 26), new Date(2020, 8, 31)];
                                  
                                  export default function CalendarDemo() {
                                      return <Calendar mode="range" displayValue={displayValue} range={range} />;
                                  }

                                  Render Events

                                  You could pass in an array of event objects to events to render items. For detailed format, refer to Event Object below.

                                  children holds the content of an event: a JSX element, or a function that returns one. When one event is shown in several places (such as a multi-day event), the function is called once for each place; for an element, the original element is shown in one place and the other places show copies without event handlers.





                                  7月
                                  21周日
                                  22周一
                                  23周二
                                  24周三
                                  25周四
                                  26周五
                                  27周六
                                  全天
                                  • 6月25日 14:45 ~ 7月26日 6:18
                                  • 7月18日 10:00 ~ 7月30日 8:00
                                  • 7月19日 20:00 ~ 7月23日 14:00
                                  • 7月25日 8:00 ~ 7月27日 6:00
                                  • 7月21日 6:00 ~ 7月25日 6:00
                                  • 7月26日 10:00 ~ 7月27日 16:00
                                  • 7月22日 全天
                                  • 7月22日 9:00 ~ 7月23日 23:00
                                  上午1时
                                  上午2时
                                  上午3时
                                  上午4时
                                  上午5时
                                  上午6时
                                  上午7时
                                  上午8时
                                  上午9时
                                  上午10时
                                  上午11时
                                  下午12时
                                  下午1时
                                  下午2时
                                  下午3时
                                  下午4时
                                  下午5时
                                  下午6时
                                  下午7时
                                  下午8时
                                  下午9时
                                  下午10时
                                  下午11时
                                      • 7月23日 8:32
                                      • 7月23日 14:30-20:00
                                              Code
                                              import { type JSX, createMemo, createSignal } from 'solid-js';
                                              import { Calendar, type CalendarProps, DatePicker, type EventObject, Radio, RadioGroup } from '@fibrous/semi-ui-solid';
                                              
                                              const dailyEventStyle: JSX.CSSProperties = {
                                                  'border-radius': '3px',
                                                  'box-sizing': 'border-box',
                                                  border: 'var(--semi-color-primary) 1px solid',
                                                  padding: '10px',
                                                  'background-color': 'var(--semi-color-primary-light-default)',
                                                  height: '100%',
                                                  overflow: 'hidden',
                                              };
                                              const allDayStyle: JSX.CSSProperties = {
                                                  'border-radius': '3px',
                                                  'box-sizing': 'border-box',
                                                  border: 'var(--semi-color-bg-1) 1px solid',
                                                  padding: '2px 4px',
                                                  'background-color': 'var(--semi-color-primary-light-active)',
                                                  height: '100%',
                                                  overflow: 'hidden',
                                              };
                                              const range = [new Date(2019, 6, 23), new Date(2019, 6, 26)];
                                              
                                              export default function CalendarDemo() {
                                                  const [mode, setMode] = createSignal<CalendarProps['mode']>('week');
                                                  const [displayValue, setDisplayValue] = createSignal(new Date(2019, 6, 23, 8, 32, 0));
                                              
                                                  // the daily events take their style from the mode, so the list is rebuilt whenever the mode changes
                                                  const events = createMemo<EventObject[]>(() => {
                                                      const dailyStyle = mode() === 'month' ? allDayStyle : dailyEventStyle;
                                                      return [
                                                          {
                                                              key: '0',
                                                              start: new Date(2019, 5, 25, 14, 45, 0),
                                                              end: new Date(2019, 6, 26, 6, 18, 0),
                                                              children: <div style={allDayStyle}>6月25日 14:45 ~ 7月26日 6:18</div>,
                                                          },
                                                          {
                                                              key: '1',
                                                              start: new Date(2019, 6, 18, 10, 0, 0),
                                                              end: new Date(2019, 6, 30, 8, 0, 0),
                                                              children: <div style={allDayStyle}>7月18日 10:00 ~ 7月30日 8:00</div>,
                                                          },
                                                          {
                                                              key: '2',
                                                              start: new Date(2019, 6, 19, 20, 0, 0),
                                                              end: new Date(2019, 6, 23, 14, 0, 0),
                                                              children: <div style={allDayStyle}>7月19日 20:00 ~ 7月23日 14:00</div>,
                                                          },
                                                          {
                                                              key: '3',
                                                              start: new Date(2019, 6, 21, 6, 0, 0),
                                                              end: new Date(2019, 6, 25, 6, 0, 0),
                                                              children: <div style={allDayStyle}>7月21日 6:00 ~ 7月25日 6:00</div>,
                                                          },
                                                          {
                                                              key: '4',
                                                              allDay: true,
                                                              start: new Date(2019, 6, 22, 8, 0, 0),
                                                              children: <div style={allDayStyle}>7月22日 全天</div>,
                                                          },
                                                          {
                                                              key: '5',
                                                              start: new Date(2019, 6, 22, 9, 0, 0),
                                                              end: new Date(2019, 6, 23, 23, 0, 0),
                                                              children: <div style={allDayStyle}>7月22日 9:00 ~ 7月23日 23:00</div>,
                                                          },
                                                          {
                                                              key: '6',
                                                              start: new Date(2019, 6, 23, 8, 32, 0),
                                                              end: new Date(2019, 6, 23, 8, 42, 0),
                                                              children: <div style={dailyStyle}>7月23日 8:32</div>,
                                                          },
                                                          {
                                                              key: '7',
                                                              start: new Date(2019, 6, 23, 14, 30, 0),
                                                              end: new Date(2019, 6, 23, 20, 0, 0),
                                                              children: <div style={dailyStyle}>7月23日 14:30-20:00</div>,
                                                          },
                                                          {
                                                              key: '8',
                                                              start: new Date(2019, 6, 25, 8, 0, 0),
                                                              end: new Date(2019, 6, 27, 6, 0, 0),
                                                              children: <div style={allDayStyle}>7月25日 8:00 ~ 7月27日 6:00</div>,
                                                          },
                                                          {
                                                              key: '9',
                                                              start: new Date(2019, 6, 26, 10, 0, 0),
                                                              end: new Date(2019, 6, 27, 16, 0, 0),
                                                              children: <div style={allDayStyle}>7月26日 10:00 ~ 7月27日 16:00</div>,
                                                          },
                                                      ];
                                                  });
                                              
                                                  return (
                                                      <>
                                                          <RadioGroup onChange={(e) => setMode(e.target.value)} value={mode()} type="button">
                                                              <Radio value="day">日视图</Radio>
                                                              <Radio value="week">周视图</Radio>
                                                              <Radio value="month">月视图</Radio>
                                                              <Radio value="range">多日视图</Radio>
                                                          </RadioGroup>
                                                          <br />
                                                          <br />
                                                          <DatePicker
                                                              value={displayValue()}
                                                              onChange={(value) => {
                                                                  if (!Array.isArray(value)) setDisplayValue(value);
                                                              }}
                                                          />
                                                          <br />
                                                          <br />
                                                          <Calendar height={400} mode={mode()} displayValue={displayValue()} events={events()} minEventHeight={40} range={mode() === 'range' ? range : []} />
                                                      </>
                                                  );
                                              }

                                              Custom Render

                                              You could use dateGridRender to render customized date cell or column. Use absolute positioning for elements.

                                              Custom Render Events

                                              7月
                                              21周日
                                              22周一
                                              23周二
                                              24周三
                                              25周四
                                              26周五
                                              27周六
                                              全天
                                                上午1时
                                                上午2时
                                                上午3时
                                                上午4时
                                                上午5时
                                                上午6时
                                                上午7时
                                                上午8时
                                                上午9时
                                                上午10时
                                                上午11时
                                                下午12时
                                                下午1时
                                                下午2时
                                                下午3时
                                                下午4时
                                                下午5时
                                                下午6时
                                                下午7时
                                                下午8时
                                                下午9时
                                                下午10时
                                                下午11时
                                                    吃饭 🍰
                                                    睡觉 😪
                                                    打豆豆 🎮
                                                              Code
                                                              import type { JSX } from 'solid-js';
                                                              import { Calendar } from '@fibrous/semi-ui-solid';
                                                              
                                                              const dailyEventStyle: JSX.CSSProperties = {
                                                                  position: 'absolute',
                                                                  left: '0',
                                                                  right: '0',
                                                                  'border-radius': '3px',
                                                                  'box-sizing': 'border-box',
                                                                  border: 'var(--semi-color-primary) 1px solid',
                                                                  padding: '10px',
                                                                  'background-color': 'var(--semi-color-primary-light-default)',
                                                                  overflow: 'hidden',
                                                              };
                                                              const displayValue = new Date(2019, 6, 23, 8, 32, 0);
                                                              
                                                              const dateRender = (dateString?: string) => {
                                                                  if (dateString === new Date(2019, 6, 23).toString()) {
                                                                      return (
                                                                          <>
                                                                              <div style={{ ...dailyEventStyle, top: '500px', height: '50px' }}>吃饭 🍰</div>
                                                                              <div style={{ ...dailyEventStyle, top: '0', height: '400px' }}>睡觉 😪</div>
                                                                              <div style={{ ...dailyEventStyle, top: '700px', height: '100px' }}>打豆豆 🎮</div>
                                                                          </>
                                                                      );
                                                                  }
                                                                  return null;
                                                              };
                                                              
                                                              export default function CalendarDemo() {
                                                                  return <Calendar height={700} mode="week" displayValue={displayValue} dateGridRender={dateRender} />;
                                                              }

                                                              Customized Date Cell Style

                                                              You could also use dateGridRender to customize date cell style, e.g. backgroundColor. Please notice that in Month View, the date text on the right corner has a z-index of 3. Use a larger z-index if you would like to cover the text as well.

                                                              周日
                                                              周一
                                                              周二
                                                              周三
                                                              周四
                                                              周五
                                                              周六
                                                              30
                                                              7月 1日
                                                              2
                                                              3
                                                              4
                                                              5
                                                              6
                                                              7
                                                              8
                                                              9
                                                              10
                                                              11
                                                              12
                                                              13
                                                              14
                                                              15
                                                              16
                                                              17
                                                              18
                                                              19
                                                              20
                                                              21
                                                              22
                                                              23
                                                              24
                                                              25
                                                              26
                                                              27
                                                              28
                                                              29
                                                              30
                                                              31
                                                              8月 1日
                                                              2
                                                              3
                                                              Code
                                                              import type { JSX } from 'solid-js';
                                                              import { Calendar } from '@fibrous/semi-ui-solid';
                                                              
                                                              const importantDate: JSX.CSSProperties = {
                                                                  position: 'absolute',
                                                                  left: '0',
                                                                  right: '0',
                                                                  top: '0',
                                                                  bottom: '0',
                                                                  'background-color': 'var(--semi-color-danger-light-default)',
                                                              };
                                                              const displayValue = new Date(2019, 6, 23, 8, 32, 0);
                                                              const importDates = [new Date(2019, 6, 2), new Date(2019, 6, 8), new Date(2019, 6, 19), new Date(2019, 6, 23)];
                                                              
                                                              const dateRender = (dateString?: string) => {
                                                                  if (importDates.some((date) => date.toString() === dateString)) {
                                                                      return <div style={importantDate} />;
                                                                  }
                                                                  return null;
                                                              };
                                                              
                                                              export default function CalendarDemo() {
                                                                  return <Calendar height={700} mode="month" displayValue={displayValue} dateGridRender={dateRender} />;
                                                              }

                                                              Customized Date Render

                                                              You could use renderDateDisplay to customize the display of date.

                                                              5月
                                                              14
                                                              15
                                                              16
                                                              17
                                                              18
                                                              19
                                                              20
                                                              全天
                                                                上午1时
                                                                上午2时
                                                                上午3时
                                                                上午4时
                                                                上午5时
                                                                上午6时
                                                                上午7时
                                                                上午8时
                                                                上午9时
                                                                上午10时
                                                                上午11时
                                                                下午12时
                                                                下午1时
                                                                下午2时
                                                                下午3时
                                                                下午4时
                                                                下午5时
                                                                下午6时
                                                                下午7时
                                                                下午8时
                                                                下午9时
                                                                下午10时
                                                                下午11时
                                                                              Code
                                                                              import { Avatar, Calendar } from '@fibrous/semi-ui-solid';
                                                                              
                                                                              const displayValue = new Date(2023, 4, 14);
                                                                              const colors = ['amber', 'blue', 'cyan', 'green', 'grey', 'indigo', 'lime'] as const;
                                                                              
                                                                              const renderDateDisplay = (date: Date) => (
                                                                                  <div style={{ 'padding-block': '6px' }}>
                                                                                      <Avatar color={colors[date.getDay()]} size="small">
                                                                                          {date.getDate()}
                                                                                      </Avatar>
                                                                                  </div>
                                                                              );
                                                                              
                                                                              export default function CalendarDemo() {
                                                                                  return <Calendar height={400} mode="week" displayValue={displayValue} renderDateDisplay={renderDateDisplay} />;
                                                                              }

                                                                              API Reference

                                                                              Calendar

                                                                              Props

                                                                              PropertyDescriptionTypeDefault
                                                                              allDayEventsRenderCustom area for events at the top of the day, range and week views; events is the whole events array that was passed in, so the function filters it itself.Type(events: EventObject[]) => JSX.Element-
                                                                              dateGridRenderCustom content of a date cell or column, with the dateString (date.toString()) and the date. Use absolute positioning for elements.Type(dateString?: string, date?: Date) => JSX.Element-
                                                                              displayValueDisplay date. When omitted it is the current date and updates at midnight.Date-
                                                                              eventsEvents to render, see Event Object.EventObject[][]
                                                                              headerCustom header content.JSX.Element-
                                                                              heightHeight of the calendar; a number is in pixels.number | string600
                                                                              markWeekendShows weekend columns in grey to tell them from weekdays.booleanfalse
                                                                              minEventHeightMinimum height in pixels of events in the day, range and week views. Without it the height has no minimum.number-
                                                                              modeView mode: day, week, month or range. The view switches as soon as it changes.'day' | 'week' | 'month' | 'range'"week"
                                                                              onClickCalled when a date cell is clicked, with the event and the date of the cell. The unit is half an hour in the day, week and range views and one day in the month view.Type(e: MouseEvent, value: Date) => void-
                                                                              onCloseCalled when the card showing all events of a day closes in the month view: the click event for the close button or a second click on "N more", the keyboard event for Esc, and null for a click outside.Type(e: MouseEvent | KeyboardEvent | null) => void-
                                                                              onMoreClickCalled when a click on "N more" opens the card in the month view, with the event, the date and the number of collapsed events. It is not called when a second click closes the card.Type(e: MouseEvent, date: Date, remaining: number) => void-
                                                                              rangeDate range shown in range mode, left-closed and right-open. Required in range mode.Date[]-
                                                                              renderDateDisplayCustom date text: the column titles of the week and range views and every cell of the month view. The day view does not use it.Type(date: Date) => JSX.Element-
                                                                              renderTimeDisplayCustom time text in the day, week and range views; time is the hour.Type(time: number) => JSX.Element-
                                                                              scrollTopDefault scroll offset of the content in the day, week and range views.number400
                                                                              showCurrTimeShows the red line of the current time in the day, week and range views.booleantrue
                                                                              weekStartsOnDay of the week that starts the week, 0 for Sunday, 1 for Monday and so on. Applies to the month and week views.weekStartsOnEnum0
                                                                              widthWidth of the calendar; a number is in pixels.number | string-

                                                                              class, style, ref and other native attributes (such as id, data-*) land on the root element of the current view; aria-label takes precedence over the default table name. onClick, onClose and onMoreClick are callbacks of Calendar itself and do not land on the root element.

                                                                              Event Object

                                                                              events is an array of event objects.
                                                                              An event needs at least a start or an end time to be valid; an event with neither is skipped with a warning. An all-day event with only an end time starts on the day of its end. A timed event with only one end is extended by 1 hour, without crossing into another day. The end time is exclusive: a timed event that ends exactly at 00:00 is shown only on its start day, with no extra segment on the next day.

                                                                              PropertiesInstructionstypeDefault
                                                                              allDayWhether it is an all-day eventbooleanfalse
                                                                              childrenDisplayed content: a JSX element, or a function that returns one (called once for each place it shows)JSX.Element | (() => JSX.Element)-
                                                                              endEnd time of the eventDate-
                                                                              keyRequired and must be unique.string-
                                                                              startStart time of the eventDate-
                                                                              Other fieldsCustom fields are kept on the event object (such as color, title)any-

                                                                              Accessibility

                                                                              Keyboard and Focus

                                                                              • The day, week and range views scroll, and the view itself is one Tab stop that the arrow keys scroll
                                                                              • In the month view, "N more" for the collapsed events is a button: Enter or Space opens the card of the day and moves focus to its close button; Esc or the close button closes the card and returns focus to "N more"
                                                                              • Clicks on a day cell or a time slot (onClick in React, @click in Vue) respond to the pointer only and have no keyboard equivalent

                                                                              Content Guidelines

                                                                              • Both 12-hour and 24-hour clocks can be used when the time needs to be displayed
                                                                              • If the 12-hour clock is used, it needs to be used together with AM/PM. For details, please refer to Time Specification
                                                                              • For the abbreviation rules for month, week and time, please refer to Abbreviation Specification

                                                                              Design Tokens

                                                                              These are the component's internal Sass variables and cannot be overridden. To customize styles, override the --semi-* CSS variables (see the Design Token page) or write unlayered CSS rules.
                                                                              Sass variableValueUsage
                                                                              $color-calendar-bg-activevar(--semi-color-primary)今日标识颜色
                                                                              $color-calendar-bgvar(--semi-color-bg-2)日历背景颜色
                                                                              $color-calendar-text-activevar(--semi-color-bg-1)日历文字颜色 - 今日
                                                                              $color-calendar_curr-bordervar(--semi-color-danger)当前时间标识线颜色
                                                                              $color-calendar_currCircle-bg-defaultvar(--semi-color-danger)当前时间标识原点颜色
                                                                              $color-calendar_date-text-defaultvar(--semi-color-text-0)日历文字颜色 - 当月
                                                                              $color-calendar_day-bordervar(--semi-color-border)日历描边颜色
                                                                              $color-calendar_day-text-defaultvar(--semi-color-text-2)日历文字颜色 - 非当月
                                                                              $color-calendar_sticky-bgvar(--semi-color-bg-2)日历背景颜色 - 吸顶部分
                                                                              $color-calendar_weekend-bgvar(--semi-color-fill-0)日历背景颜色 - 非工作日
                                                                              $width-calendar_day-minWidth78px
                                                                              $height-calendar_day_grid60px
                                                                              $width-calendar_day_grid-minWidth130px
                                                                              $height-calendar_time_grid$height-calendar_day_grid * 0.5
                                                                              $height-calendar_allDay26px
                                                                              $height-calendar_allDay-minHeight26px
                                                                              $width-calendar_currCircle8px
                                                                              $width-calendar_tag_col-minWidth70px
                                                                              $height-calendar_month100%
                                                                              $height-calendar_month_week_skeletion100%
                                                                              $height-calendar_month_grid_wrappercalc(100% - 27px)
                                                                              $width-calendar_card220px
                                                                              $width-calendar_today_date24px
                                                                              $height-calendar_today_date24px
                                                                              $height-calendar_body_li24px
                                                                              $height-calendar_day_scroll_wrappercalc(100% - 28px)
                                                                              $height-calendar_week_scroll_wrappercalc(100% - 55px)
                                                                              $height-calendar_month_skeletion_li100%
                                                                              $height-calendar_month_grid_col100%
                                                                              $height-calendar_month_week_row_event_month1em
                                                                              $width-calendar-border-default1px
                                                                              $width-calendar-border-thick1px
                                                                              $spacing-calendar_ul_li-padding0
                                                                              $spacing-calendar_ul_li-margin0
                                                                              $spacing-calendar_sticky_top-top0
                                                                              $spacing-calendar_sticky_top-right0
                                                                              $spacing-calendar_sticky_top-left0
                                                                              $spacing-calendar_sticky_left-left0
                                                                              $spacing-calendar_event_day-left0
                                                                              $spacing-calendar_event_day-right0
                                                                              $spacing-calendar_custom_container-top0
                                                                              $spacing-calendar_custom_container-right0
                                                                              $spacing-calendar_custom_container-bottom0
                                                                              $spacing-calendar_custom_container-left0
                                                                              $spacing-calendar_currCircle-marginTop-4px
                                                                              $spacing-calendar_currLine-left0
                                                                              $spacing-calendar_currLine-right0
                                                                              $spacing-calendar_allDay_tag-paddingRight8px
                                                                              $spacing-calendar_allDay_content-paddingLeft0
                                                                              $spacing-calendar_month_event_card_wrapper-paddingTop2px
                                                                              $spacing-calendar_grid_row_span_child-paddingY0
                                                                              $spacing-calendar_grid_row_span_child-paddingX4px
                                                                              $spacing-calendar_skeleton_li_child-paddingTop4px
                                                                              $spacing-calendar_month_event_card_close-marginRight-4px
                                                                              $spacing-calendar_header_info_date-marginTop4px
                                                                              $spacing-calendar_time-paddingRight8px
                                                                              $spacing-calendar_time_item_span-top-10px
                                                                              $spacing-calendar_tag_child-paddingRight8px
                                                                              $spacing-calendar_skeletion_grid_row_li-paddingRight8px
                                                                              $spacing-calendar_month_event_card_wrapper-right8px
                                                                              $spacing-calendar_month_event_card_content-paddingY12px
                                                                              $spacing-calendar_month_event_card_content-paddingX0
                                                                              $spacing-calendar_month_event_card_ul_li-margin0
                                                                              $spacing-calendar_month_event_card_ul_li-padding0
                                                                              $spacing-calendar_header-marginY12px
                                                                              $spacing-calendar_header-marginX20px
                                                                              $spacing-calendar_body-padingY0
                                                                              $spacing-calendar_body-padingX16px
                                                                              $spacing-calendar_event_items-top31px
                                                                              $spacing-calendar_event_items-right0
                                                                              $spacing-calendar_event_items-bottom20px
                                                                              $spacing-calendar_event_items-left0
                                                                              $spacing-calendar_month_skeletion-left0
                                                                              $spacing-calendar_month_skeletion-right0
                                                                              $spacing-calendar_month_date-right4px
                                                                              $radius-calendar_currCirclevar(--semi-border-radius-circle)日历选中日期标识圆角
                                                                              $radius-calendar_today_datevar(--semi-border-radius-circle)日历选中日期标识圆角
                                                                              $font-calendar_allDay_tag-lineHeight$height-calendar_allDay日历全天标识文字行高
                                                                              $font-calendar_today_date-lineHeight24px
                                                                              $font-calendar_day_allDay-lineHeight26px
                                                                              $font-calendar_day_allDay-fontSize26px
                                                                              $font-calendar_month_day-fontSize24px
                                                                              $z-calendar_stickyTop20
                                                                              $z-calendar_item5
                                                                              $z-calendar_stickyLeft10
                                                                              $z-calendar_curr8
                                                                              $z-calendar_line3