@apform-ui/core 1.10.1 → 1.10.3

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.
@@ -6,10 +6,26 @@ type __VLS_Props = {
6
6
  /** WebSocket 状态(可选) */
7
7
  wsStatus?: 'ok' | 'pending' | 'streaming' | 'warn' | 'err' | 'idle';
8
8
  wsLabel?: string;
9
+ /** 使用 #input 槽时隐藏默认 textarea */
10
+ hideDefaultInput?: boolean;
11
+ /** 隐藏默认发送按钮(由业务输入组件自行发送) */
12
+ hideSend?: boolean;
13
+ /** 隐藏内置文件选择(业务自行挂载上传) */
14
+ hideFileButton?: boolean;
15
+ /** 隐藏底部能力芯片与快捷键提示 */
16
+ hideMeta?: boolean;
17
+ /** 撑满父容器宽度(嵌入业务面板) */
18
+ stretch?: boolean;
9
19
  };
10
- declare var __VLS_1: {};
20
+ declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {};
11
21
  type __VLS_Slots = {} & {
12
- tools?: (props: typeof __VLS_1) => any;
22
+ pending?: (props: typeof __VLS_1) => any;
23
+ } & {
24
+ input?: (props: typeof __VLS_3) => any;
25
+ } & {
26
+ tools?: (props: typeof __VLS_5) => any;
27
+ } & {
28
+ actions?: (props: typeof __VLS_7) => any;
13
29
  };
14
30
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
15
31
  upload: (file: File) => any;
@@ -4,8 +4,25 @@ type __VLS_Props = {
4
4
  activeId?: string | null;
5
5
  loading?: boolean;
6
6
  title?: string;
7
+ /** 隐藏内置新建按钮(业务自管工具栏) */
8
+ hideCreate?: boolean;
9
+ /** 隐藏内置删除按钮(改用 #item-actions) */
10
+ hideDelete?: boolean;
11
+ emptyText?: string;
7
12
  };
8
- declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ declare var __VLS_1: {}, __VLS_11: {
14
+ session: Session;
15
+ }, __VLS_13: {
16
+ session: Session;
17
+ };
18
+ type __VLS_Slots = {} & {
19
+ toolbar?: (props: typeof __VLS_1) => any;
20
+ } & {
21
+ 'item-meta'?: (props: typeof __VLS_11) => any;
22
+ } & {
23
+ 'item-actions'?: (props: typeof __VLS_13) => any;
24
+ };
25
+ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
26
  select: (id: string) => any;
10
27
  delete: (id: string) => any;
11
28
  create: () => any;
@@ -14,4 +31,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
14
31
  onDelete?: ((id: string) => any) | undefined;
15
32
  onCreate?: (() => any) | undefined;
16
33
  }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
34
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
35
  export default _default;
36
+ type __VLS_WithSlots<T, S> = T & {
37
+ new (): {
38
+ $slots: S;
39
+ };
40
+ };
@@ -1,7 +1,7 @@
1
1
  type __VLS_Props = {
2
2
  /** 字段标签 */
3
3
  label: string;
4
- /** 多行控件时拉高对齐 */
4
+ /** 多行控件时顶对齐 */
5
5
  textarea?: boolean;
6
6
  /** 提示文案(拼进 label tooltip) */
7
7
  hint?: string;
@@ -96,6 +96,8 @@ export interface Session {
96
96
  title: string;
97
97
  agentId?: string | null;
98
98
  agentName?: string | null;
99
+ /** 来源标签(如 editor / flow / standalone) */
100
+ source?: string | null;
99
101
  status: string;
100
102
  createdAt: string;
101
103
  updatedAt: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apform-ui/core",
3
- "version": "1.10.1",
3
+ "version": "1.10.3",
4
4
  "type": "module",
5
5
  "author": "yangdongnan",
6
6
  "license": "MIT",
@@ -186,7 +186,7 @@
186
186
  --apf-radius-full: 999px;
187
187
 
188
188
  --apf-form-field-width: 220px;
189
- --apf-form-label-width: 96px;
189
+ --apf-form-label-width: 88px;
190
190
  --apf-form-field-gap: 6px;
191
191
 
192
192
  --apf-avatar-size-sm: 24px;