erp-plus 1.0.167 → 1.0.169

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.
@@ -0,0 +1,20 @@
1
+ import { InjectionKey } from 'vue';
2
+ /**
3
+ * 弹窗关闭清理注册口(provide/inject,库内部机制,不对外导出)。
4
+ *
5
+ * 背景:yw-dialog 默认不销毁内容(destroyOnClose = false),弹层里的 yw-table /
6
+ * yw-vt 等组件会跨「关闭 → 再打开」存活。表格的行选中高亮是组件自己维护的瞬时
7
+ * 交互状态(DOM 属性 / 响应式 rowKey),弹窗关闭不会自动清掉 → 重开后旧行仍带着
8
+ * 选中蓝。重开时即使拉了新数据也救不回来——EP 会按 row-key 复用 <tr>,手工打的
9
+ * 标记跟着 DOM 一起留下。
10
+ *
11
+ * 机制:Dialog 在 setup 里 provide 本接口;内层组件注入后在 setup 里把自己的
12
+ * 清理回调登记进来;弹窗每次开始关闭(el-dialog 的 close 事件)时统一执行。
13
+ * 挂在 close 而不是 closed:closed 在动画结束后才触发,若用户关掉后立刻重开,
14
+ * 会在重开后才清理,可能误清掉用户刚点的新选中态。
15
+ */
16
+ export interface DialogCloseCleanup {
17
+ /** 登记一个弹窗关闭时执行的清理回调,返回注销函数(组件卸载时调用) */
18
+ register: (fn: () => void) => () => void;
19
+ }
20
+ export declare const DIALOG_CLOSE_CLEANUP_KEY: InjectionKey<DialogCloseCleanup>;
@@ -9,6 +9,8 @@ export interface DictStatusOption {
9
9
  elTagType?: DictTagType;
10
10
  /** 保留字段(老组件也未消费) */
11
11
  elTagClass?: string;
12
+ /** 占位符(默认 -) */
13
+ placeholder?: string;
12
14
  }
13
15
  type __VLS_Props = {
14
16
  /** 字典选项(应用侧 useDict 结果原样传入) */
@@ -18,10 +20,13 @@ type __VLS_Props = {
18
20
  /** 文字色(dot / 纯文本形态生效;filled 由 YwTag 语义色接管);
19
21
  * 默认不输出内联 color → 文字继承父级(如 Descriptions 的值文字色),避免硬编码色与上下文对不上 */
20
22
  color?: string;
23
+ /** 占位符(默认 -) */
24
+ placeholder?: string;
21
25
  };
22
26
  declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
23
27
  color: string;
24
28
  value: string | number;
29
+ placeholder: string;
25
30
  dictOption: DictStatusOption[];
26
31
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
27
32
  export default _default;
@@ -85,7 +85,8 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
85
85
  * 是否四舍五入(配合 precision 使用),默认 false。
86
86
  * - true:precision 原样透传,超位小数四舍五入(EP 原生行为)
87
87
  * - false(默认):precision 不透传给 EP(EP 对 precision 固定四舍五入),
88
- * 精度由本组件接管——键入时小数位被限制在 precision 位(超位数字输不进去),
88
+ * 精度由本组件接管——precision=0 时小数点直接输不进去;precision>0 时键入
89
+ * 小数位被限制在 precision 位(超位数字输不进去),
89
90
  * 粘贴/外部赋值的超位部分按字符串截断(不做四舍五入)。
90
91
  */
91
92
  round: {
@@ -174,7 +175,8 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
174
175
  * 是否四舍五入(配合 precision 使用),默认 false。
175
176
  * - true:precision 原样透传,超位小数四舍五入(EP 原生行为)
176
177
  * - false(默认):precision 不透传给 EP(EP 对 precision 固定四舍五入),
177
- * 精度由本组件接管——键入时小数位被限制在 precision 位(超位数字输不进去),
178
+ * 精度由本组件接管——precision=0 时小数点直接输不进去;precision>0 时键入
179
+ * 小数位被限制在 precision 位(超位数字输不进去),
178
180
  * 粘贴/外部赋值的超位部分按字符串截断(不做四舍五入)。
179
181
  */
180
182
  round: {
@@ -1613,6 +1613,8 @@ declare const __VLS_component: DefineComponent<TableProps, {
1613
1613
  validateCell: (rowIndex: number, prop: string) => boolean;
1614
1614
  toggleRowExpansion: (row: any, expanded?: boolean) => void;
1615
1615
  setCurrentRow: (row: any) => void;
1616
+ /** 手动清掉行选中高亮(非弹窗场景需要时用;弹窗内组件已自动清理) */
1617
+ clearCurrentRow: () => void;
1616
1618
  clearSelection: () => void;
1617
1619
  tableRef: globalThis.Ref<any, any>;
1618
1620
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {