@me-framework/me-ui-antdv-next 0.0.32 → 0.0.34

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.
@@ -1,12 +1,22 @@
1
1
  import { MeInputPropertyModel, MeInputPropertyProps, MeInputPropertyValidation } from './types';
2
2
  declare const __VLS_export: import('vue').DefineComponent<MeInputPropertyProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
3
3
  change: (value: MeInputPropertyModel, validation?: MeInputPropertyValidation | undefined) => any;
4
+ "update:open": (value: boolean) => any;
5
+ ok: (value: MeInputPropertyModel) => any;
6
+ cancel: () => any;
4
7
  "update:modelValue": (value: MeInputPropertyModel) => any;
5
8
  }, string, import('vue').PublicProps, Readonly<MeInputPropertyProps> & Readonly<{
6
9
  onChange?: ((value: MeInputPropertyModel, validation?: MeInputPropertyValidation | undefined) => any) | undefined;
10
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
11
+ onOk?: ((value: MeInputPropertyModel) => any) | undefined;
12
+ onCancel?: (() => any) | undefined;
7
13
  "onUpdate:modelValue"?: ((value: MeInputPropertyModel) => any) | undefined;
8
14
  }>, {
9
15
  size: "small" | "middle" | "large";
16
+ title: string;
17
+ open: boolean;
18
+ okText: string;
19
+ cancelText: string;
10
20
  disabled: boolean;
11
21
  modelValue: MeInputPropertyModel;
12
22
  keyField: string;
@@ -18,6 +28,10 @@ declare const __VLS_export: import('vue').DefineComponent<MeInputPropertyProps,
18
28
  keyPlaceholder: string;
19
29
  valuePlaceholder: string;
20
30
  emptyText: string;
31
+ keyColumnTitle: string;
32
+ valueColumnTitle: string;
33
+ modalMode: boolean;
34
+ modalWidth: number | string;
21
35
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
36
  declare const _default: typeof __VLS_export;
23
37
  export default _default;
@@ -92,9 +92,26 @@ export interface MeInputPropertyProps {
92
92
  valuePlaceholder?: string;
93
93
  /** 空数据提示 */
94
94
  emptyText?: string;
95
+ /** 属性列(key 列)标题,默认「属性」;用于业务化/本地化重命名列名 */
96
+ keyColumnTitle?: string;
97
+ /** 值列(value 列)标题,默认「值」;用于业务化/本地化重命名列名 */
98
+ valueColumnTitle?: string;
95
99
  /** 外部注入的初始/持久化规则;键为属性 key(trim 后精确匹配)。外部重新赋值 modelValue 时,
96
100
  * 会话内已有同 key 规则优先继承,新出现的 key 从这里取规则,消失的 key 规则丢弃 */
97
101
  rules?: Record<string, PropertyRuleSet>;
102
+ /** 弹窗模式:true 时组件内部以弹窗形态展示(含确定/取消),「确定」时校验未通过则阻止关闭并提示;
103
+ * 默认 false 为内嵌表格。开启后消费方通过 v-model:open 控制显隐、@ok 接收校验通过的当前值 */
104
+ modalMode?: boolean;
105
+ /** 弹窗模式下的显隐控制(v-model:open),仅在 modalMode=true 时生效 */
106
+ open?: boolean;
107
+ /** 弹窗模式标题,默认「属性编辑」 */
108
+ title?: string;
109
+ /** 弹窗模式面板宽度,默认 720(number 为 px) */
110
+ modalWidth?: number | string;
111
+ /** 弹窗模式确定按钮文字,默认「确定」 */
112
+ okText?: string;
113
+ /** 弹窗模式取消按钮文字,默认「取消」 */
114
+ cancelText?: string;
98
115
  }
99
116
  /** MeInputProperty Events */
100
117
  export interface MeInputPropertyEmits {
@@ -106,6 +123,15 @@ export interface MeInputPropertyEmits {
106
123
  * @param validation 行级校验报告(重复 key、是否含空 key 等对象输出无法体现的信息)
107
124
  */
108
125
  (e: 'change', value: MeInputPropertyModel, validation?: MeInputPropertyValidation): void;
126
+ /** 弹窗模式显隐更新(v-model:open);非 modalMode 时忽略 */
127
+ (e: 'update:open', value: boolean): void;
128
+ /**
129
+ * 弹窗模式点「确定」且校验全部通过后触发。
130
+ * @param value 当前编辑值(与 modelValue 同形;对象模式为合并后对象,数组模式为行序数组,空 key 行被舍弃)
131
+ */
132
+ (e: 'ok', value: MeInputPropertyModel): void;
133
+ /** 弹窗模式取消关闭(取消按钮 / 遮罩 / Esc);非 modalMode 不触发 */
134
+ (e: 'cancel'): void;
109
135
  }
110
136
  /** change 事件附带的校验报告(行级信息,对象输出无法体现的数据问题) */
111
137
  export interface MeInputPropertyValidation {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/modal-D4Tl-Qzk.js";
1
+ import { t as e } from "../chunks/modal-C2Lx5a9H.js";
2
2
  import { createElementBlock as t, createElementVNode as n, createTextVNode as r, createVNode as i, defineComponent as a, openBlock as o, ref as s, renderSlot as c, resolveComponent as l, unref as u, watch as d, withCtx as f } from "vue";
3
3
  import { Download as p, Upload as m } from "@lucide/vue";
4
4
  import { message as h } from "antdv-next";