@dazhicheng/ui 1.5.41 → 1.5.42

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.
@@ -72,12 +72,12 @@ export declare class FormApi {
72
72
  validateField(fieldName: string, opts?: Partial<ValidationOptions>): Promise<import('vee-validate').ValidationResult<any>>;
73
73
  private getForm;
74
74
  /**
75
- * 将拆解后的起止时间解析为区间组件可用的值(优先 dayjs,失败则保留原值)。
75
+ * 将拆解字段的空值归一为 undefined,其余原样返回。
76
+ * 回显时不做 dayjs / formatDate 转换:接口返回的值已经是组件可用的格式(字符串、Date、dayjs 等)。
76
77
  * @param {unknown} raw 接口或拆解字段的值
77
- * @param {string} _format 与 fieldMappingTime 中 format 对应,预留与 formatDate 对齐
78
- * @returns {unknown} 解析后的值
78
+ * @returns {unknown} 空值归一为 undefined,其余原样返回
79
79
  */
80
- private parseSplitTimeForRange;
80
+ private normalizeRangeValue;
81
81
  /**
82
82
  * 判断主字段是否已为「合法」日期区间 [start, end](两项均可解析为有效日期)。合法则不再用拆解字段覆盖。
83
83
  * @param {unknown} value 主字段值
@@ -8,7 +8,7 @@ import { Directive, MaybeRef } from 'vue';
8
8
  export interface TipConfig {
9
9
  condition: boolean | MaybeRef<boolean>;
10
10
  message: string;
11
- placement?: 'top' | 'bottom' | 'left' | 'right' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
11
+ placement?: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
12
12
  }
13
13
  /**
14
14
  * 禁用提示指令对象,包含指令的生命周期钩子函数