@vtj/designer 0.18.27 → 0.19.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.
- package/dist/Editor-aD1U5H8b.js +4 -0
- package/dist/{index-BtJsaFJm.js → index-De2f2yWt.js} +12295 -10599
- package/dist/index.mjs +29 -28
- package/dist/style.css +1 -1
- package/package.json +8 -8
- package/types/components/hooks/index.d.ts +0 -2
- package/types/components/hooks/useOpenApi.d.ts +2 -0
- package/types/components/shared/binder.d.ts +4 -6
- package/types/components/widgets/agent/architect-plan.d.ts +23 -0
- package/types/components/widgets/agent/composables/useAgentApi.d.ts +37 -0
- package/types/components/widgets/agent/composables/useArchitectPlan.d.ts +7 -0
- package/types/components/widgets/agent/composables/useAuth.d.ts +7 -0
- package/types/components/widgets/agent/composables/useAutoScroll.d.ts +13 -0
- package/types/components/widgets/agent/composables/useDualAgent.d.ts +15 -0
- package/types/components/widgets/agent/composables/useEditorStep.d.ts +4 -0
- package/types/components/widgets/agent/composables/useFileRecognition.d.ts +46 -0
- package/types/components/widgets/agent/composables/useReplayChat.d.ts +5 -0
- package/types/components/widgets/agent/composables/useSSEStream.d.ts +7 -0
- package/types/components/widgets/agent/constants.d.ts +16 -0
- package/types/components/widgets/agent/conversation-round.d.ts +26 -0
- package/types/components/widgets/{ai → agent}/detail.d.ts +10 -9
- package/types/components/widgets/agent/editor-step.d.ts +22 -0
- package/types/components/widgets/agent/index.d.ts +21 -0
- package/types/components/widgets/{ai → agent}/invite-tip.d.ts +1 -1
- package/types/components/widgets/agent/message-input.d.ts +35 -0
- package/types/components/widgets/{ai → agent}/pay-tip.d.ts +4 -2
- package/types/components/widgets/agent/records.d.ts +18 -0
- package/types/components/widgets/{ai → agent}/stream-markdown.d.ts +2 -2
- package/types/components/widgets/agent/summary.d.ts +19 -0
- package/types/components/widgets/agent/types/agent.d.ts +346 -0
- package/types/components/widgets/agent/utils/approval.d.ts +10 -0
- package/types/components/widgets/agent/utils/breakpoint.d.ts +2 -0
- package/types/components/widgets/agent/utils/chat.d.ts +10 -0
- package/types/components/widgets/agent/utils/export.d.ts +4 -0
- package/types/components/widgets/agent/utils/filePrompt.d.ts +9 -0
- package/types/components/widgets/agent/utils/genId.d.ts +4 -0
- package/types/components/widgets/agent/utils/index.d.ts +6 -0
- package/types/components/widgets/agent/utils/json.d.ts +18 -0
- package/types/components/widgets/agent/utils/markdown.d.ts +1 -0
- package/types/components/widgets/agent/utils/messages.d.ts +185 -0
- package/types/components/widgets/agent/utils/outputParser.d.ts +24 -0
- package/types/components/widgets/agent/utils/plan.d.ts +7 -0
- package/types/components/widgets/agent/utils/request.d.ts +1 -0
- package/types/components/widgets/agent/utils/response.d.ts +25 -0
- package/types/components/widgets/agent/utils/resume.d.ts +7 -0
- package/types/components/widgets/agent/utils/summary.d.ts +2 -0
- package/types/components/widgets/agent/utils/toolExecutor.d.ts +23 -0
- package/types/components/widgets/apis/form.d.ts +2 -2
- package/types/components/widgets/apis/swagger.d.ts +1 -1
- package/types/components/widgets/devtools/index.d.ts +1 -1
- package/types/components/widgets/env/index.d.ts +1 -1
- package/types/components/widgets/i18n/index.d.ts +1 -1
- package/types/components/widgets/index.d.ts +20 -673
- package/types/components/widgets/scripts/group.d.ts +2 -2
- package/types/framework/ToolRegistry.d.ts +4 -0
- package/types/framework/engine.d.ts +2 -1
- package/types/framework/openapi.d.ts +4 -0
- package/types/framework/renderer.d.ts +1 -0
- package/types/framework/types.d.ts +2 -0
- package/types/utils.d.ts +2 -1
- package/types/version.d.ts +2 -2
- package/dist/Editor-BGOUCiNb.js +0 -4
- package/types/components/hooks/useAI.d.ts +0 -236
- package/types/components/hooks/useAgent.d.ts +0 -17
- package/types/components/widgets/ai/avatar.d.ts +0 -3
- package/types/components/widgets/ai/bubble.d.ts +0 -26
- package/types/components/widgets/ai/chat-input.d.ts +0 -29
- package/types/components/widgets/ai/image-input.d.ts +0 -155
- package/types/components/widgets/ai/index.d.ts +0 -677
- package/types/components/widgets/ai/json-input.d.ts +0 -342
- package/types/components/widgets/ai/new-topic.d.ts +0 -23
- package/types/components/widgets/ai/records.d.ts +0 -18
- /package/types/components/widgets/{ai → agent}/login-tip.d.ts +0 -0
- /package/types/components/widgets/{ai → agent}/model-dialog.d.ts +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 文件识别描述块工具
|
|
3
|
+
* useFileRecognition.buildFilePrompt 生成的描述块带剥离标记,
|
|
4
|
+
* 回显/重试时可用此工具还原用户纯文本
|
|
5
|
+
*/
|
|
6
|
+
/** 文件识别描述块(useFileRecognition.buildFilePrompt 生成的带标记格式) */
|
|
7
|
+
export declare const FILE_DESC_BLOCK_RE: RegExp;
|
|
8
|
+
/** 从 prompt 中剥离文件识别描述块,还原用户纯文本(旧数据无标记时原样返回) */
|
|
9
|
+
export declare function stripFileDescBlocks(prompt: string): string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JSON 提取工具
|
|
3
|
+
* 从 LLM 混合输出中稳健地提取 JSON 对象,替代脆弱的贪婪正则 `\{[\s\S]*\}`
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* 从文本中提取第一个完整的顶层 JSON 对象
|
|
7
|
+
*
|
|
8
|
+
* 策略:
|
|
9
|
+
* 1. 优先取 ```json 代码块内容
|
|
10
|
+
* 2. 回退:从第一个 `{` 开始做括号配对扫描(忽略字符串内的花括号与转义),
|
|
11
|
+
* 保证在对象之后还存在其他花括号文本时也能正确截取
|
|
12
|
+
*/
|
|
13
|
+
export declare function extractJsonObject(text: string): string | null;
|
|
14
|
+
/**
|
|
15
|
+
* 从文本中提取 JSON 并解析
|
|
16
|
+
* @returns 解析成功返回对象,失败返回 null
|
|
17
|
+
*/
|
|
18
|
+
export declare function parseJsonObject<T = Record<string, any>>(text: string): T | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatMarkdownContent(value: unknown): string;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export type AgentStatusType = 'info' | 'warning' | 'success' | 'danger';
|
|
3
|
+
export interface AgentStatusMessage {
|
|
4
|
+
text: string;
|
|
5
|
+
type: AgentStatusType;
|
|
6
|
+
}
|
|
7
|
+
/** 写入状态文本与类型 */
|
|
8
|
+
export declare function setAgentStatus(statusText: Ref<string>, statusType: Ref<AgentStatusType>, message: AgentStatusMessage): void;
|
|
9
|
+
/** 状态写入回调(各 composable deps 统一使用,避免传递双 ref) */
|
|
10
|
+
export type StatusSetter = (message: AgentStatusMessage) => void;
|
|
11
|
+
/** 常用状态消息 */
|
|
12
|
+
export declare const Messages: {
|
|
13
|
+
tokenMissing: {
|
|
14
|
+
readonly text: "请先获取 Token";
|
|
15
|
+
readonly type: "danger";
|
|
16
|
+
};
|
|
17
|
+
promptEmpty: {
|
|
18
|
+
readonly text: "请输入消息或上传文件";
|
|
19
|
+
readonly type: "danger";
|
|
20
|
+
};
|
|
21
|
+
topicIdMissing: {
|
|
22
|
+
readonly text: "请输入 Topic ID";
|
|
23
|
+
readonly type: "danger";
|
|
24
|
+
};
|
|
25
|
+
retryTopicIdMissing: {
|
|
26
|
+
readonly text: "缺少 Topic ID,无法重试";
|
|
27
|
+
readonly type: "danger";
|
|
28
|
+
};
|
|
29
|
+
resumeTopicIdMissing: {
|
|
30
|
+
readonly text: "缺少 Topic ID,无法恢复";
|
|
31
|
+
readonly type: "danger";
|
|
32
|
+
};
|
|
33
|
+
noRetryRound: {
|
|
34
|
+
readonly text: "没有可重试的轮次";
|
|
35
|
+
readonly type: "danger";
|
|
36
|
+
};
|
|
37
|
+
noResumeRound: {
|
|
38
|
+
readonly text: "没有可恢复的轮次";
|
|
39
|
+
readonly type: "danger";
|
|
40
|
+
};
|
|
41
|
+
architectChatIdMissing: {
|
|
42
|
+
readonly text: "该轮次缺少 Architect chat ID,无法重试";
|
|
43
|
+
readonly type: "danger";
|
|
44
|
+
};
|
|
45
|
+
stepNotFailed: {
|
|
46
|
+
readonly text: "该步骤不是失败状态";
|
|
47
|
+
readonly type: "danger";
|
|
48
|
+
};
|
|
49
|
+
lockedProject: {
|
|
50
|
+
readonly text: "项目已被锁定,无法应用变更";
|
|
51
|
+
readonly type: "danger";
|
|
52
|
+
};
|
|
53
|
+
userRejectedTool: {
|
|
54
|
+
readonly text: "用户拒绝执行此操作";
|
|
55
|
+
readonly type: "danger";
|
|
56
|
+
};
|
|
57
|
+
userRejectedVue: {
|
|
58
|
+
readonly text: "用户拒绝应用 Vue 变更";
|
|
59
|
+
readonly type: "danger";
|
|
60
|
+
};
|
|
61
|
+
userRejectedDiff: {
|
|
62
|
+
readonly text: "用户拒绝应用 Diff";
|
|
63
|
+
readonly type: "danger";
|
|
64
|
+
};
|
|
65
|
+
projectNotReady: {
|
|
66
|
+
readonly text: "项目未就绪";
|
|
67
|
+
readonly type: "danger";
|
|
68
|
+
};
|
|
69
|
+
fileNotReady: {
|
|
70
|
+
readonly text: "当前文件未就绪";
|
|
71
|
+
readonly type: "danger";
|
|
72
|
+
};
|
|
73
|
+
sourceUnavailable: {
|
|
74
|
+
readonly text: "无法获取当前文件源码";
|
|
75
|
+
readonly type: "danger";
|
|
76
|
+
};
|
|
77
|
+
stepNotRetryable: {
|
|
78
|
+
readonly text: "没有可重试的失败步骤";
|
|
79
|
+
readonly type: "danger";
|
|
80
|
+
};
|
|
81
|
+
summaryNotRetryable: {
|
|
82
|
+
readonly text: "没有可重试的总结";
|
|
83
|
+
readonly type: "danger";
|
|
84
|
+
};
|
|
85
|
+
planNotResumable: {
|
|
86
|
+
readonly text: "没有可恢复的计划";
|
|
87
|
+
readonly type: "danger";
|
|
88
|
+
};
|
|
89
|
+
replayStepFailed: {
|
|
90
|
+
readonly text: "执行失败";
|
|
91
|
+
readonly type: "danger";
|
|
92
|
+
};
|
|
93
|
+
replaySummaryFailed: {
|
|
94
|
+
readonly text: "总结生成失败";
|
|
95
|
+
readonly type: "danger";
|
|
96
|
+
};
|
|
97
|
+
creatingTopic: {
|
|
98
|
+
readonly text: "创建话题 (architect)...";
|
|
99
|
+
readonly type: "info";
|
|
100
|
+
};
|
|
101
|
+
creatingArchitectChat: {
|
|
102
|
+
readonly text: "创建 Architect 聊天...";
|
|
103
|
+
readonly type: "info";
|
|
104
|
+
};
|
|
105
|
+
architectPlanning: {
|
|
106
|
+
readonly text: "Architect 规划中...";
|
|
107
|
+
readonly type: "warning";
|
|
108
|
+
};
|
|
109
|
+
retryingSummary: {
|
|
110
|
+
readonly text: "重新生成任务总结...";
|
|
111
|
+
readonly type: "warning";
|
|
112
|
+
};
|
|
113
|
+
planInvalid: {
|
|
114
|
+
readonly text: "Architect 输出异常,未生成有效计划";
|
|
115
|
+
readonly type: "danger";
|
|
116
|
+
};
|
|
117
|
+
architectAnswered: {
|
|
118
|
+
readonly text: "Architect 直接回答";
|
|
119
|
+
readonly type: "success";
|
|
120
|
+
};
|
|
121
|
+
generatingSummary: {
|
|
122
|
+
readonly text: "生成任务总结...";
|
|
123
|
+
readonly type: "warning";
|
|
124
|
+
};
|
|
125
|
+
resumedSummary: {
|
|
126
|
+
readonly text: "恢复生成任务总结...";
|
|
127
|
+
readonly type: "warning";
|
|
128
|
+
};
|
|
129
|
+
summaryRegenerated: {
|
|
130
|
+
readonly text: "任务总结已重新生成";
|
|
131
|
+
readonly type: "success";
|
|
132
|
+
};
|
|
133
|
+
summaryGenerated: {
|
|
134
|
+
readonly text: "任务总结已生成";
|
|
135
|
+
readonly type: "success";
|
|
136
|
+
};
|
|
137
|
+
retryingLastRequest: {
|
|
138
|
+
readonly text: "重试上次请求...";
|
|
139
|
+
readonly type: "warning";
|
|
140
|
+
};
|
|
141
|
+
resumingFromPrompt: {
|
|
142
|
+
readonly text: "检测到续跑意图,从断点恢复执行...";
|
|
143
|
+
readonly type: "warning";
|
|
144
|
+
};
|
|
145
|
+
cancelled: {
|
|
146
|
+
readonly text: "已取消";
|
|
147
|
+
readonly type: "info";
|
|
148
|
+
};
|
|
149
|
+
loadingHistory: {
|
|
150
|
+
readonly text: "加载历史记录...";
|
|
151
|
+
readonly type: "info";
|
|
152
|
+
};
|
|
153
|
+
historyEmpty: {
|
|
154
|
+
readonly text: "未找到交互记录";
|
|
155
|
+
readonly type: "warning";
|
|
156
|
+
};
|
|
157
|
+
replayTopicIdMissing: {
|
|
158
|
+
readonly text: "缺少 Topic ID";
|
|
159
|
+
readonly type: "danger";
|
|
160
|
+
};
|
|
161
|
+
topicCreated: (topicId: string) => AgentStatusMessage;
|
|
162
|
+
planGenerated: (intent: string) => AgentStatusMessage;
|
|
163
|
+
allStepsDone: (count: number) => AgentStatusMessage;
|
|
164
|
+
stepFailed: (index: number) => AgentStatusMessage;
|
|
165
|
+
summaryFailed: (message: string) => AgentStatusMessage;
|
|
166
|
+
cancelledWithProgress: (done: number, total: number) => AgentStatusMessage;
|
|
167
|
+
resumingStep: (step: number, total: number) => AgentStatusMessage;
|
|
168
|
+
retryingStep: (index: number) => AgentStatusMessage;
|
|
169
|
+
retryArchitect: (label: string) => AgentStatusMessage;
|
|
170
|
+
architectRetrying: (attempt: number, max: number) => AgentStatusMessage;
|
|
171
|
+
architectFailed: (message: string) => AgentStatusMessage;
|
|
172
|
+
error: (message: string) => AgentStatusMessage;
|
|
173
|
+
retryFailed: (message: string) => AgentStatusMessage;
|
|
174
|
+
historyLoaded: (count: number) => AgentStatusMessage;
|
|
175
|
+
historyLoadFailed: (message: string) => AgentStatusMessage;
|
|
176
|
+
historyFormatInvalid: (type: string) => AgentStatusMessage;
|
|
177
|
+
editorExecuting: (description: string, index: number, total: number) => AgentStatusMessage;
|
|
178
|
+
awaitingApproval: (action: string, risk: string) => AgentStatusMessage;
|
|
179
|
+
executingAction: (action: string) => AgentStatusMessage;
|
|
180
|
+
actionRejected: (action: string) => AgentStatusMessage;
|
|
181
|
+
chatCreateFailed: (message: string) => AgentStatusMessage;
|
|
182
|
+
maxTurnsReached: (count: number) => AgentStatusMessage;
|
|
183
|
+
vueToDslFailed: (message: string) => AgentStatusMessage;
|
|
184
|
+
diffApplyFailed: (message: string) => AgentStatusMessage;
|
|
185
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Editor 输出解析器
|
|
3
|
+
* 识别 LLM 输出中的代码块类型:json(tool_call)、vue、diff
|
|
4
|
+
*/
|
|
5
|
+
export interface ToolCall {
|
|
6
|
+
action: string;
|
|
7
|
+
parameters: any[];
|
|
8
|
+
}
|
|
9
|
+
export interface DiffPatch {
|
|
10
|
+
search: string;
|
|
11
|
+
replace: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ParsedOutput {
|
|
14
|
+
type: 'tool_call' | 'vue_code' | 'diff' | 'unknown';
|
|
15
|
+
tool?: ToolCall;
|
|
16
|
+
code?: string;
|
|
17
|
+
patches?: DiffPatch[];
|
|
18
|
+
raw?: string;
|
|
19
|
+
error?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* 解析 LLM 输出,识别输出类型
|
|
23
|
+
*/
|
|
24
|
+
export declare function parseOutput(text: string): ParsedOutput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withRequestRetry<T>(request: () => Promise<T>): Promise<T>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 远程接口响应处理(纯函数)
|
|
3
|
+
* - unwrapOpenApi:响应码校验与 data 解包
|
|
4
|
+
* - pickChat / pickTopic:后端响应存在两套形态(裸对象 / { topic|chat } 包裹,
|
|
5
|
+
* 主键存在 id / chatId 双命名),统一提取,避免调用侧散落 `xxx.xxx || xxx` 兼容逻辑
|
|
6
|
+
*/
|
|
7
|
+
/** 响应码校验解包:非零 code / success=false 抛错,优先返回 data 字段 */
|
|
8
|
+
export declare function unwrapOpenApi<T>(response: any): T;
|
|
9
|
+
/** chat 实体提取结果 */
|
|
10
|
+
export interface PickedChat {
|
|
11
|
+
/** chat 实体(优先取包裹字段,回退整包) */
|
|
12
|
+
chat: any;
|
|
13
|
+
/** chat 主键(兼容 id / chatId 双命名) */
|
|
14
|
+
chatId: string;
|
|
15
|
+
}
|
|
16
|
+
/** topic 实体提取结果(topic 响应同时携带起始 chat) */
|
|
17
|
+
export interface PickedTopic extends PickedChat {
|
|
18
|
+
topic: any;
|
|
19
|
+
topicId: string;
|
|
20
|
+
userId: string;
|
|
21
|
+
}
|
|
22
|
+
/** 提取 chat 实体与主键 */
|
|
23
|
+
export declare function pickChat(response: any): PickedChat;
|
|
24
|
+
/** 提取 topic 实体、主键与起始 chat */
|
|
25
|
+
export declare function pickTopic(response: any): PickedTopic;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Engine } from '../../../../framework';
|
|
2
|
+
export interface ToolExecResult {
|
|
3
|
+
success: boolean;
|
|
4
|
+
action: string;
|
|
5
|
+
result?: any;
|
|
6
|
+
error?: string;
|
|
7
|
+
/** 执行耗时(ms) */
|
|
8
|
+
duration: number;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 执行单个工具调用
|
|
12
|
+
*
|
|
13
|
+
* @param engine 设计器引擎实例
|
|
14
|
+
* @param action 工具名称
|
|
15
|
+
* @param parameters 工具参数数组
|
|
16
|
+
* @param timeoutMs 超时时间(ms),默认 30000
|
|
17
|
+
* @param signal 取消信号(用户中止工作流时立即中断等待中的工具调用)
|
|
18
|
+
*/
|
|
19
|
+
export declare function executeTool(engine: Engine, action: string, parameters: any[], timeoutMs?: number, signal?: AbortSignal): Promise<ToolExecResult>;
|
|
20
|
+
/**
|
|
21
|
+
* 将工具执行结果格式化为 LLM 反馈消息(O: 格式)
|
|
22
|
+
*/
|
|
23
|
+
export declare function formatToolFeedback(result: ToolExecResult): string;
|
|
@@ -49,10 +49,10 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
49
49
|
readonly title?: string | undefined;
|
|
50
50
|
readonly cancel?: string | boolean | undefined;
|
|
51
51
|
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
|
52
|
+
readonly src?: string | undefined;
|
|
52
53
|
readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
|
|
53
54
|
[key: string]: any;
|
|
54
55
|
}> | DefineComponent<any, any, any, any> | undefined;
|
|
55
|
-
readonly src?: string | undefined;
|
|
56
56
|
readonly subtitle?: string | undefined;
|
|
57
57
|
readonly submit?: string | boolean | undefined;
|
|
58
58
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
@@ -1456,7 +1456,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
1456
1456
|
onChange?: ((model: Record<string, any>) => any) | undefined;
|
|
1457
1457
|
onReset?: (() => any) | undefined;
|
|
1458
1458
|
onSubmit?: ((model: Record<string, any>) => any) | undefined;
|
|
1459
|
-
}>, "model" | "
|
|
1459
|
+
}>, "model" | "footer" | "submit" | "formRef" | "tooltipMessage" | "inline" | "reset" | "submitText" | "resetText" | "enterSubmit" | "sticky" | "footerAlign" | "validate" | "clearValidate"> & {
|
|
1460
1460
|
formRef: any;
|
|
1461
1461
|
model: FormModel;
|
|
1462
1462
|
submit: () => Promise<void>;
|
|
@@ -785,7 +785,7 @@ declare const _default: DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsM
|
|
|
785
785
|
onCellSelected?: ((params: any) => any) | undefined;
|
|
786
786
|
onEditChange?: ((data: any[]) => any) | undefined;
|
|
787
787
|
onLoaded?: ((rows: any[]) => any) | undefined;
|
|
788
|
-
}>, "search" | "
|
|
788
|
+
}>, "search" | "page" | "auto" | "resizable" | "load" | "state" | "remove" | "$vtjDynamicSlots" | "editable" | "validate" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSize" | "pageSizes" | "virtual" | "vxeRef" | "insertActived" | "getSelected" | "getRows" | "setActived" | "doLayout" | "getRecords" | "setSelectCell"> & {
|
|
789
789
|
state: {
|
|
790
790
|
[x: string]: any;
|
|
791
791
|
page?: number | undefined;
|
|
@@ -43,10 +43,10 @@ declare const _default: DefineComponent<{}, {
|
|
|
43
43
|
readonly title?: string | undefined;
|
|
44
44
|
readonly cancel?: string | boolean | undefined;
|
|
45
45
|
readonly beforeClose?: (() => boolean | Promise<boolean>) | undefined;
|
|
46
|
+
readonly src?: string | undefined;
|
|
46
47
|
readonly content?: Record<string, any> | VNode<RendererNode, RendererElement, {
|
|
47
48
|
[key: string]: any;
|
|
48
49
|
}> | DefineComponent<any, any, any, any> | undefined;
|
|
49
|
-
readonly src?: string | undefined;
|
|
50
50
|
readonly subtitle?: string | undefined;
|
|
51
51
|
readonly submit?: string | boolean | undefined;
|
|
52
52
|
readonly resizable?: boolean | ResizableOptions | undefined;
|
|
@@ -779,7 +779,7 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
|
779
779
|
onCellSelected?: ((params: any) => any) | undefined;
|
|
780
780
|
onEditChange?: ((data: any[]) => any) | undefined;
|
|
781
781
|
onLoaded?: ((rows: any[]) => any) | undefined;
|
|
782
|
-
}>, "search" | "
|
|
782
|
+
}>, "search" | "page" | "auto" | "resizable" | "load" | "state" | "remove" | "$vtjDynamicSlots" | "editable" | "validate" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSize" | "pageSizes" | "virtual" | "vxeRef" | "insertActived" | "getSelected" | "getRows" | "setActived" | "doLayout" | "getRecords" | "setSelectCell"> & {
|
|
783
783
|
state: {
|
|
784
784
|
[x: string]: any;
|
|
785
785
|
page?: number | undefined;
|
|
@@ -779,7 +779,7 @@ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixi
|
|
|
779
779
|
onCellSelected?: ((params: any) => any) | undefined;
|
|
780
780
|
onEditChange?: ((data: any[]) => any) | undefined;
|
|
781
781
|
onLoaded?: ((rows: any[]) => any) | undefined;
|
|
782
|
-
}>, "search" | "
|
|
782
|
+
}>, "search" | "page" | "auto" | "resizable" | "load" | "state" | "remove" | "$vtjDynamicSlots" | "editable" | "validate" | "columns" | "rowSortable" | "columnSortable" | "customable" | "pager" | "pageSize" | "pageSizes" | "virtual" | "vxeRef" | "insertActived" | "getSelected" | "getRows" | "setActived" | "doLayout" | "getRecords" | "setSelectCell"> & {
|
|
783
783
|
state: {
|
|
784
784
|
[x: string]: any;
|
|
785
785
|
page?: number | undefined;
|