@fv-ui/ai-chat 1.4.1 → 1.4.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.
- package/dist/index.d.ts +3 -0
- package/es/index.mjs +8 -5
- package/lib/index.js +8 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1257,6 +1257,8 @@ type __VLS_Props$5 = {
|
|
|
1257
1257
|
beforeUpload?: (file: File) => boolean | Promise<boolean>;
|
|
1258
1258
|
/** 选文件即上传钩子(先传后发):成功回填附件描述,失败置 error 可重传;缺省不调 */
|
|
1259
1259
|
upload?: AttachmentUpload;
|
|
1260
|
+
/** 整体禁用(触发按钮不可点;生成中锁定输入区场景,单飞行闸语义) */
|
|
1261
|
+
disabled?: boolean;
|
|
1260
1262
|
/** 布局:inline(默认)按钮+列表+提示一行;triggerOnly 只渲染回形针按钮;listOnly 只渲染文件列表 */
|
|
1261
1263
|
layout?: 'inline' | 'triggerOnly' | 'listOnly';
|
|
1262
1264
|
/** 语言配置:内置语言名(如 'en-US')或部分文案对象(深合并覆盖) */
|
|
@@ -1295,6 +1297,7 @@ declare const __VLS_base$4: vue.DefineComponent<__VLS_Props$5, {
|
|
|
1295
1297
|
onUploaded?: ((item: AttachmentItem, result?: Partial<AttachmentItem> | undefined) => any) | undefined;
|
|
1296
1298
|
}>, {
|
|
1297
1299
|
locale: LocaleInput;
|
|
1300
|
+
disabled: boolean;
|
|
1298
1301
|
modelValue: object[];
|
|
1299
1302
|
layout: "inline" | "triggerOnly" | "listOnly";
|
|
1300
1303
|
accept: string;
|
package/es/index.mjs
CHANGED
|
@@ -37678,6 +37678,7 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
37678
37678
|
count: { type: Number, required: false, default: 0 },
|
|
37679
37679
|
beforeUpload: { type: Function, required: false, default: void 0 },
|
|
37680
37680
|
upload: { type: Function, required: false, default: void 0 },
|
|
37681
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
37681
37682
|
layout: { type: String, required: false, default: "inline" },
|
|
37682
37683
|
locale: { type: null, required: false, default: void 0 }
|
|
37683
37684
|
},
|
|
@@ -37821,12 +37822,12 @@ var _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
37821
37822
|
multiple: "",
|
|
37822
37823
|
onChange
|
|
37823
37824
|
}, null, 40, _hoisted_2$5),
|
|
37824
|
-
createCommentVNode(" \u89E6\u53D1\u6309\u94AE:\u56DE\u5F62\u9488;count \u6EE1\u65F6\u7981\u7528(listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
|
|
37825
|
+
createCommentVNode(" \u89E6\u53D1\u6309\u94AE:\u56DE\u5F62\u9488;count \u6EE1\u6216\u6574\u4F53\u7981\u7528\u65F6\u7981\u7528(listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
|
|
37825
37826
|
__props.layout !== "listOnly" ? (openBlock(), createElementBlock("button", {
|
|
37826
37827
|
key: 0,
|
|
37827
37828
|
type: "button",
|
|
37828
|
-
class: normalizeClass(["fv-attachments-trigger", { "is-full": full.value }]),
|
|
37829
|
-
disabled: full.value,
|
|
37829
|
+
class: normalizeClass(["fv-attachments-trigger", { "is-full": full.value || __props.disabled }]),
|
|
37830
|
+
disabled: full.value || __props.disabled,
|
|
37830
37831
|
"aria-label": unref(dict).attachments.add,
|
|
37831
37832
|
onClick: openSelect
|
|
37832
37833
|
}, [
|
|
@@ -40734,9 +40735,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40734
40735
|
accept: __props.accept,
|
|
40735
40736
|
count: __props.attachmentLimit,
|
|
40736
40737
|
upload: attachmentsUploadHook.value,
|
|
40738
|
+
disabled: unref(isLoading),
|
|
40737
40739
|
onExceed: onAttachmentExceed,
|
|
40738
40740
|
onUploaded: onAttachmentUploaded
|
|
40739
|
-
}, null, 8, ["modelValue", "accept", "count", "upload"])
|
|
40741
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
40740
40742
|
]),
|
|
40741
40743
|
key: "0"
|
|
40742
40744
|
} : void 0,
|
|
@@ -40750,9 +40752,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
40750
40752
|
accept: __props.accept,
|
|
40751
40753
|
count: __props.attachmentLimit,
|
|
40752
40754
|
upload: attachmentsUploadHook.value,
|
|
40755
|
+
disabled: unref(isLoading),
|
|
40753
40756
|
onExceed: onAttachmentExceed,
|
|
40754
40757
|
onUploaded: onAttachmentUploaded
|
|
40755
|
-
}, null, 8, ["modelValue", "accept", "count", "upload"])
|
|
40758
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
40756
40759
|
]),
|
|
40757
40760
|
key: "1"
|
|
40758
40761
|
} : void 0,
|
package/lib/index.js
CHANGED
|
@@ -37698,6 +37698,7 @@
|
|
|
37698
37698
|
count: { type: Number, required: false, default: 0 },
|
|
37699
37699
|
beforeUpload: { type: Function, required: false, default: void 0 },
|
|
37700
37700
|
upload: { type: Function, required: false, default: void 0 },
|
|
37701
|
+
disabled: { type: Boolean, required: false, default: false },
|
|
37701
37702
|
layout: { type: String, required: false, default: "inline" },
|
|
37702
37703
|
locale: { type: null, required: false, default: void 0 }
|
|
37703
37704
|
},
|
|
@@ -37841,12 +37842,12 @@
|
|
|
37841
37842
|
multiple: "",
|
|
37842
37843
|
onChange
|
|
37843
37844
|
}, null, 40, _hoisted_2$5),
|
|
37844
|
-
vue.createCommentVNode(" \u89E6\u53D1\u6309\u94AE:\u56DE\u5F62\u9488;count \u6EE1\u65F6\u7981\u7528(listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
|
|
37845
|
+
vue.createCommentVNode(" \u89E6\u53D1\u6309\u94AE:\u56DE\u5F62\u9488;count \u6EE1\u6216\u6574\u4F53\u7981\u7528\u65F6\u7981\u7528(listOnly \u5E03\u5C40\u4E0D\u6E32\u67D3) "),
|
|
37845
37846
|
__props.layout !== "listOnly" ? (vue.openBlock(), vue.createElementBlock("button", {
|
|
37846
37847
|
key: 0,
|
|
37847
37848
|
type: "button",
|
|
37848
|
-
class: vue.normalizeClass(["fv-attachments-trigger", { "is-full": full.value }]),
|
|
37849
|
-
disabled: full.value,
|
|
37849
|
+
class: vue.normalizeClass(["fv-attachments-trigger", { "is-full": full.value || __props.disabled }]),
|
|
37850
|
+
disabled: full.value || __props.disabled,
|
|
37850
37851
|
"aria-label": vue.unref(dict).attachments.add,
|
|
37851
37852
|
onClick: openSelect
|
|
37852
37853
|
}, [
|
|
@@ -40754,9 +40755,10 @@
|
|
|
40754
40755
|
accept: __props.accept,
|
|
40755
40756
|
count: __props.attachmentLimit,
|
|
40756
40757
|
upload: attachmentsUploadHook.value,
|
|
40758
|
+
disabled: vue.unref(isLoading),
|
|
40757
40759
|
onExceed: onAttachmentExceed,
|
|
40758
40760
|
onUploaded: onAttachmentUploaded
|
|
40759
|
-
}, null, 8, ["modelValue", "accept", "count", "upload"])
|
|
40761
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
40760
40762
|
]),
|
|
40761
40763
|
key: "0"
|
|
40762
40764
|
} : void 0,
|
|
@@ -40770,9 +40772,10 @@
|
|
|
40770
40772
|
accept: __props.accept,
|
|
40771
40773
|
count: __props.attachmentLimit,
|
|
40772
40774
|
upload: attachmentsUploadHook.value,
|
|
40775
|
+
disabled: vue.unref(isLoading),
|
|
40773
40776
|
onExceed: onAttachmentExceed,
|
|
40774
40777
|
onUploaded: onAttachmentUploaded
|
|
40775
|
-
}, null, 8, ["modelValue", "accept", "count", "upload"])
|
|
40778
|
+
}, null, 8, ["modelValue", "accept", "count", "upload", "disabled"])
|
|
40776
40779
|
]),
|
|
40777
40780
|
key: "1"
|
|
40778
40781
|
} : void 0,
|