@baishuyun/ui-mobile 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1569,15 +1569,10 @@ var pt = ({ events: e, baseDate: r, onEventClick: i }) => {
1569
1569
  }, vt = (e) => {
1570
1570
  let { events: r, scheduleColor: i, timeZone: a, className: o, onEventClick: s, onDayClick: c } = e, [l, d] = p(e, {
1571
1571
  defaultValue: "month",
1572
- defaultValuePropName: "initialViewMode",
1573
- valuePropName: "viewMode",
1574
- trigger: "onViewModeChange"
1575
- }), [f, m] = p(e, {
1576
- defaultValue: T(a).toDate(),
1577
- defaultValuePropName: "initialDate",
1578
- valuePropName: "currentDate",
1579
- trigger: "onDateChange"
1580
- }), h = u(() => ht(r, { timeZone: a }), [r, a]), g = u(() => _t(i), [i]);
1572
+ defaultValuePropName: "defaultMode",
1573
+ valuePropName: "mode",
1574
+ trigger: "onModeChange"
1575
+ }), [f, m] = p(e, { defaultValue: T(a).toDate() }), h = u(() => ht(r, { timeZone: a }), [r, a]), g = u(() => _t(i), [i]);
1581
1576
  return /* @__PURE__ */ t("div", {
1582
1577
  className: A(b["bsy-mobile-calendar"], o),
1583
1578
  style: g,
@@ -1,4 +1,4 @@
1
- import "../vendors/version-BVySNITW.js";
2
- import { t as e } from "./Calendar-6ibIyMx0.js";
1
+ import "../vendors/version-v6TU1ff1.js";
2
+ import { t as e } from "./Calendar-C63wg0aw.js";
3
3
  import "../vendors/useLocale-BbUDQCzl.js";
4
4
  export { e as default };
@@ -1,4 +1,4 @@
1
- import "../vendors/version-BVySNITW.js";
1
+ import "../vendors/version-v6TU1ff1.js";
2
2
  import { t as e } from "../vendors/useLocale-BbUDQCzl.js";
3
3
  import { t } from "./ConfigProvider-E792q6ny.js";
4
4
  export { t as ConfigProvider, t as default, e as useLocale };
@@ -1,3 +1,3 @@
1
- import "../vendors/version-BVySNITW.js";
1
+ import "../vendors/version-v6TU1ff1.js";
2
2
  import { t as e } from "./Gantt-DLmqZPAQ.js";
3
3
  export { e as default };
@@ -11,15 +11,15 @@ export interface CalendarProps {
11
11
  events?: CalendarEvent[];
12
12
  scheduleColor: string;
13
13
  timeZone?: string;
14
- viewMode?: CalendarViewMode;
15
- initialViewMode?: CalendarViewMode;
16
- currentDate?: Date;
17
- initialDate?: Date;
14
+ mode?: CalendarViewMode;
15
+ defaultMode?: CalendarViewMode;
16
+ value?: Date;
17
+ defaultValue?: Date;
18
18
  className?: string;
19
19
  onEventClick?: (event: CalendarEvent) => void;
20
20
  onDayClick?: (date: Date, dayEvents: CalendarEvent[]) => void;
21
- onViewModeChange?: (mode: CalendarViewMode) => void;
22
- onDateChange?: (date: Date) => void;
21
+ onModeChange?: (mode: CalendarViewMode) => void;
22
+ onChange?: (date: Date) => void;
23
23
  }
24
24
  /** 归一化后的内部事件(时间已转为 Dayjs) */
25
25
  export interface NormalizedCalendarEvent {
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./vendors/version-BVySNITW.js";
1
+ import "./vendors/version-v6TU1ff1.js";
2
2
  import { t as e } from "./Gantt/Gantt-DLmqZPAQ.js";
3
- import { t } from "./Calendar/Calendar-6ibIyMx0.js";
3
+ import { t } from "./Calendar/Calendar-C63wg0aw.js";
4
4
  import { t as n } from "./vendors/useLocale-BbUDQCzl.js";
5
5
  import { t as r } from "./ConfigProvider/ConfigProvider-E792q6ny.js";
6
6
  export { t as Calendar, r as ConfigProvider, e as Gantt, n as useLocale };
@@ -1,6 +1,6 @@
1
1
  //#region src/version.ts
2
2
  if (typeof window < "u") {
3
3
  let e = window.__BSY_UI__ ??= {};
4
- e["@baishuyun/ui-mobile"] = "0.3.0";
4
+ e["@baishuyun/ui-mobile"] = "0.4.0";
5
5
  }
6
6
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@baishuyun/ui-mobile",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "百数云 H5 / Mobile UI 组件库",
6
6
  "author": "bsy-fe team",