cnhis-design-vue 3.2.9-release.4 → 3.2.10-beta.1
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/es/components/ai-chat/index.d.ts +42 -9
- package/es/components/ai-chat/src/Index.vue.d.ts +42 -9
- package/es/components/ai-chat/src/Index.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatFooter.vue.d.ts +11 -0
- package/es/components/ai-chat/src/components/ChatFooter.vue2.js +1 -1
- package/es/components/ai-chat/src/components/ChatMain.js +1 -1
- package/es/components/ai-chat/style/index.css +1 -1
- package/es/components/classification/index.d.ts +52 -0
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +52 -0
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +52 -0
- package/es/components/classification/src/index.vue.d.ts +52 -0
- package/es/components/field-set/src/FieldColor.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldFilter.vue.d.ts +1 -1
- package/es/components/field-set/src/FieldSet.vue.d.ts +1 -1
- package/es/components/field-set/src/components/table-row.vue.d.ts +1 -1
- package/es/components/form-render/index.js +1 -1
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/components/renderer/combination/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/complex.js +1 -1
- package/es/components/form-render/src/components/renderer/date.js +1 -1
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +1 -1
- package/es/components/form-render/src/components/renderer/searchCascade.js +1 -1
- package/es/components/form-render/src/components/renderer/select.js +1 -1
- package/es/components/form-render/src/components/renderer/switch.js +1 -1
- package/es/components/form-render/src/components/renderer/textarea.js +1 -1
- package/es/components/form-render/src/hooks/useAnchor.js +1 -1
- package/es/components/form-render/src/hooks/useBusinessBinding.js +1 -1
- package/es/components/form-render/src/utils/business.d.ts +1 -0
- package/es/components/form-render/src/utils/business.js +1 -1
- package/es/components/form-render/src/utils/index.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/index.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +1 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/SelectTreeDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/classify-filter/components/index.d.ts +51 -1
- package/es/components/table-filter/src/components/classify-filter/components/index.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/hooks/useFilterConditions.js +1 -1
- package/es/components/table-filter/src/components/classify-filter/index.vue.d.ts +51 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.d.ts +47 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/SelectTreeDynamic.vue2.js +1 -0
- package/es/components/table-filter/src/components/render-widget/components/index.d.ts +45 -1
- package/es/components/table-filter/src/components/render-widget/components/index.js +1 -1
- package/es/components/table-filter/src/components/render-widget/index.vue.js +1 -1
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.d.ts +61 -0
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +1 -1
- package/es/components/table-filter/src/hooks/useAdvanced.d.ts +2 -2
- package/es/components/table-filter/src/hooks/useAdvanced.js +1 -1
- package/es/components/table-filter/src/tool/transformData.js +1 -1
- package/es/components/table-filter/src/types/enums.d.ts +1 -0
- package/es/components/table-filter/src/types/enums.js +1 -1
- package/es/components/table-filter/src/types/index.d.ts +1 -0
- package/es/shared/assets/img/logo.png.js +1 -0
- package/es/shared/package.json.js +1 -1
- package/package.json +76 -76
@@ -2,13 +2,12 @@ import { SFCWithInstall } from '../../shared/types';
|
|
2
2
|
declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
3
3
|
userAvatar: {
|
4
4
|
type: StringConstructor;
|
5
|
-
required: true;
|
6
5
|
};
|
7
6
|
defaultShortcutList: {
|
8
7
|
type: import("vue").PropType<string[]>;
|
9
8
|
};
|
10
9
|
shortcutList: {
|
11
|
-
type: import("vue").PropType<string[]>;
|
10
|
+
type: import("vue").PropType<(string | import("../../shared/types").AnyObject)[]>;
|
12
11
|
};
|
13
12
|
queryData: {
|
14
13
|
type: import("vue").PropType<import("./src/types").QueryData>;
|
@@ -21,18 +20,24 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
21
20
|
hideInput: {
|
22
21
|
type: BooleanConstructor;
|
23
22
|
};
|
23
|
+
uiStyle: {
|
24
|
+
type: StringConstructor;
|
25
|
+
};
|
26
|
+
audioTimed: {
|
27
|
+
type: NumberConstructor;
|
28
|
+
default: number;
|
29
|
+
};
|
24
30
|
}, {
|
25
31
|
cssVars: import("vue").ComputedRef<import("../../shared/types").AnyObject>;
|
26
32
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
27
33
|
userAvatar: {
|
28
34
|
type: StringConstructor;
|
29
|
-
required: true;
|
30
35
|
};
|
31
36
|
defaultShortcutList: {
|
32
37
|
type: import("vue").PropType<string[]>;
|
33
38
|
};
|
34
39
|
shortcutList: {
|
35
|
-
type: import("vue").PropType<string[]>;
|
40
|
+
type: import("vue").PropType<(string | import("../../shared/types").AnyObject)[]>;
|
36
41
|
};
|
37
42
|
queryData: {
|
38
43
|
type: import("vue").PropType<import("./src/types").QueryData>;
|
@@ -45,7 +50,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
45
50
|
hideInput: {
|
46
51
|
type: BooleanConstructor;
|
47
52
|
};
|
48
|
-
|
53
|
+
uiStyle: {
|
54
|
+
type: StringConstructor;
|
55
|
+
};
|
56
|
+
audioTimed: {
|
57
|
+
type: NumberConstructor;
|
58
|
+
default: number;
|
59
|
+
};
|
60
|
+
}>> & {
|
61
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
62
|
+
}>>;
|
63
|
+
emit: (event: "button-click", ...args: any[]) => void;
|
49
64
|
state: import("../../shared/types").AnyObject;
|
50
65
|
ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
51
66
|
[x: string]: unknown;
|
@@ -55,10 +70,19 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
55
70
|
readonly [x: number]: string;
|
56
71
|
} | {}>;
|
57
72
|
ChatFooter: import("vue").DefineComponent<{}, {
|
73
|
+
audioSdk: import("..").CAudioSDK;
|
74
|
+
emit: (event: string, ...args: any[]) => void;
|
58
75
|
shortcutList: any;
|
59
76
|
state: any;
|
77
|
+
uiStyle: any;
|
78
|
+
audioTimed: any;
|
60
79
|
content: import("vue").Ref<string>;
|
80
|
+
isSmall: import("vue").ComputedRef<boolean>;
|
61
81
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
82
|
+
recorderStart: () => Promise<void>;
|
83
|
+
recorderStop: () => Promise<void>;
|
84
|
+
getShortcutName: (item: string | import("../../shared/types").AnyObject) => any;
|
85
|
+
handleShortcut: (item: string | import("../../shared/types").AnyObject) => void;
|
62
86
|
handleKeyDown: (event: KeyboardEvent) => void;
|
63
87
|
isWrap: (event: KeyboardEvent) => boolean;
|
64
88
|
handleSend: () => void;
|
@@ -67,16 +91,15 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
67
91
|
NIcon: any;
|
68
92
|
PaperPlane: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
69
93
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
70
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
94
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
71
95
|
userAvatar: {
|
72
96
|
type: StringConstructor;
|
73
|
-
required: true;
|
74
97
|
};
|
75
98
|
defaultShortcutList: {
|
76
99
|
type: import("vue").PropType<string[]>;
|
77
100
|
};
|
78
101
|
shortcutList: {
|
79
|
-
type: import("vue").PropType<string[]>;
|
102
|
+
type: import("vue").PropType<(string | import("../../shared/types").AnyObject)[]>;
|
80
103
|
};
|
81
104
|
queryData: {
|
82
105
|
type: import("vue").PropType<import("./src/types").QueryData>;
|
@@ -89,7 +112,17 @@ declare const AiChat: SFCWithInstall<import("vue").DefineComponent<{
|
|
89
112
|
hideInput: {
|
90
113
|
type: BooleanConstructor;
|
91
114
|
};
|
92
|
-
|
115
|
+
uiStyle: {
|
116
|
+
type: StringConstructor;
|
117
|
+
};
|
118
|
+
audioTimed: {
|
119
|
+
type: NumberConstructor;
|
120
|
+
default: number;
|
121
|
+
};
|
122
|
+
}>> & {
|
123
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
124
|
+
}, {
|
93
125
|
hideInput: boolean;
|
126
|
+
audioTimed: number;
|
94
127
|
}>>;
|
95
128
|
export default AiChat;
|
@@ -4,13 +4,12 @@ import { AnyObject } from '../../../shared/types';
|
|
4
4
|
declare const _default: import("vue").DefineComponent<{
|
5
5
|
userAvatar: {
|
6
6
|
type: StringConstructor;
|
7
|
-
required: true;
|
8
7
|
};
|
9
8
|
defaultShortcutList: {
|
10
9
|
type: PropType<string[]>;
|
11
10
|
};
|
12
11
|
shortcutList: {
|
13
|
-
type: PropType<string[]>;
|
12
|
+
type: PropType<(string | AnyObject)[]>;
|
14
13
|
};
|
15
14
|
queryData: {
|
16
15
|
type: PropType<QueryData>;
|
@@ -23,18 +22,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
23
22
|
hideInput: {
|
24
23
|
type: BooleanConstructor;
|
25
24
|
};
|
25
|
+
uiStyle: {
|
26
|
+
type: StringConstructor;
|
27
|
+
};
|
28
|
+
audioTimed: {
|
29
|
+
type: NumberConstructor;
|
30
|
+
default: number;
|
31
|
+
};
|
26
32
|
}, {
|
27
33
|
cssVars: import("vue").ComputedRef<AnyObject>;
|
28
34
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
29
35
|
userAvatar: {
|
30
36
|
type: StringConstructor;
|
31
|
-
required: true;
|
32
37
|
};
|
33
38
|
defaultShortcutList: {
|
34
39
|
type: PropType<string[]>;
|
35
40
|
};
|
36
41
|
shortcutList: {
|
37
|
-
type: PropType<string[]>;
|
42
|
+
type: PropType<(string | AnyObject)[]>;
|
38
43
|
};
|
39
44
|
queryData: {
|
40
45
|
type: PropType<QueryData>;
|
@@ -47,7 +52,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
47
52
|
hideInput: {
|
48
53
|
type: BooleanConstructor;
|
49
54
|
};
|
50
|
-
|
55
|
+
uiStyle: {
|
56
|
+
type: StringConstructor;
|
57
|
+
};
|
58
|
+
audioTimed: {
|
59
|
+
type: NumberConstructor;
|
60
|
+
default: number;
|
61
|
+
};
|
62
|
+
}>> & {
|
63
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
64
|
+
}>>;
|
65
|
+
emit: (event: "button-click", ...args: any[]) => void;
|
51
66
|
state: AnyObject;
|
52
67
|
ChatMain: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
53
68
|
[x: string]: unknown;
|
@@ -57,10 +72,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
57
72
|
readonly [x: number]: string;
|
58
73
|
} | {}>;
|
59
74
|
ChatFooter: import("vue").DefineComponent<{}, {
|
75
|
+
audioSdk: import("../..").CAudioSDK;
|
76
|
+
emit: (event: string, ...args: any[]) => void;
|
60
77
|
shortcutList: any;
|
61
78
|
state: any;
|
79
|
+
uiStyle: any;
|
80
|
+
audioTimed: any;
|
62
81
|
content: import("vue").Ref<string>;
|
82
|
+
isSmall: import("vue").ComputedRef<boolean>;
|
63
83
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
84
|
+
recorderStart: () => Promise<void>;
|
85
|
+
recorderStop: () => Promise<void>;
|
86
|
+
getShortcutName: (item: string | AnyObject) => any;
|
87
|
+
handleShortcut: (item: string | AnyObject) => void;
|
64
88
|
handleKeyDown: (event: KeyboardEvent) => void;
|
65
89
|
isWrap: (event: KeyboardEvent) => boolean;
|
66
90
|
handleSend: () => void;
|
@@ -69,16 +93,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
69
93
|
NIcon: any;
|
70
94
|
PaperPlane: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
71
95
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
72
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
96
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "button-click"[], "button-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
73
97
|
userAvatar: {
|
74
98
|
type: StringConstructor;
|
75
|
-
required: true;
|
76
99
|
};
|
77
100
|
defaultShortcutList: {
|
78
101
|
type: PropType<string[]>;
|
79
102
|
};
|
80
103
|
shortcutList: {
|
81
|
-
type: PropType<string[]>;
|
104
|
+
type: PropType<(string | AnyObject)[]>;
|
82
105
|
};
|
83
106
|
queryData: {
|
84
107
|
type: PropType<QueryData>;
|
@@ -91,7 +114,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
91
114
|
hideInput: {
|
92
115
|
type: BooleanConstructor;
|
93
116
|
};
|
94
|
-
|
117
|
+
uiStyle: {
|
118
|
+
type: StringConstructor;
|
119
|
+
};
|
120
|
+
audioTimed: {
|
121
|
+
type: NumberConstructor;
|
122
|
+
default: number;
|
123
|
+
};
|
124
|
+
}>> & {
|
125
|
+
"onButton-click"?: ((...args: any[]) => any) | undefined;
|
126
|
+
}, {
|
95
127
|
hideInput: boolean;
|
128
|
+
audioTimed: number;
|
96
129
|
}>;
|
97
130
|
export default _default;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,reactive as t,provide as o,toRefs as r,
|
1
|
+
import{defineComponent as e,reactive as t,provide as o,toRefs as r,computed as s,openBlock as i,createElementBlock as a,normalizeClass as n,normalizeStyle as u,unref as m,createVNode as p,createBlock as d,createCommentVNode as l}from"vue";import h from"./components/ChatMain.js";import c from"./components/ChatFooter.vue.js";import{useTheme as y}from"../../../shared/hooks/useTheme.js";import"@vueuse/core";import"date-fns";import"lodash-es";import"@vue/shared";import"../../../shared/utils/index.js";import"@vueuse/shared";import"../../../shared/hooks/selectHooks/useSearchContent.js";import"@vicons/ionicons5";import"naive-ui";import"../../../shared/hooks/useScrollLoading.js";import{InjectionAIChat as v,InjectionAIChatEmits as f}from"./types/index.js";var S=e({__name:"Index",props:{userAvatar:{type:String},defaultShortcutList:{type:Array},shortcutList:{type:Array},queryData:{type:Function,reuired:!0},queryRecord:{type:Function,reuired:!0},hideInput:{type:Boolean},uiStyle:{type:String},audioTimed:{type:Number,default:10}},emits:["button-click"],setup(e,{emit:S}){const j=e,k=y(),g=t({beingSent:!1,sendContent:""});return o(v,{...r(j),state:g,isSmall:s((()=>"small"===j.uiStyle))}),o(f,S),(t,o)=>(i(),a("div",{class:n(["ai-chat","small"===e.uiStyle?"ai-chat--small":""]),style:u(m(k))},[p(m(h)),e.hideInput?l("v-if",!0):(i(),d(c,{key:0}))],6))}});export{S as default};
|
@@ -1,8 +1,19 @@
|
|
1
|
+
import { CAudioSDK } from '../../../../components/audio-sdk';
|
2
|
+
import { AnyObject } from '../../../../shared/types';
|
1
3
|
declare const _default: import("vue").DefineComponent<{}, {
|
4
|
+
audioSdk: CAudioSDK;
|
5
|
+
emit: (event: string, ...args: any[]) => void;
|
2
6
|
shortcutList: any;
|
3
7
|
state: any;
|
8
|
+
uiStyle: any;
|
9
|
+
audioTimed: any;
|
4
10
|
content: import("vue").Ref<string>;
|
11
|
+
isSmall: import("vue").ComputedRef<boolean>;
|
5
12
|
btnDisabled: import("vue").ComputedRef<boolean>;
|
13
|
+
recorderStart: () => Promise<void>;
|
14
|
+
recorderStop: () => Promise<void>;
|
15
|
+
getShortcutName: (item: string | AnyObject) => any;
|
16
|
+
handleShortcut: (item: string | AnyObject) => void;
|
6
17
|
handleKeyDown: (event: KeyboardEvent) => void;
|
7
18
|
isWrap: (event: KeyboardEvent) => boolean;
|
8
19
|
handleSend: () => void;
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as n,ref as t,computed as
|
1
|
+
import{defineComponent as e,inject as n,ref as t,computed as o,watch as l,onBeforeUnmount as i,openBlock as a,createElementBlock as s,normalizeClass as r,unref as d,Fragment as c,renderList as u,createBlock as v,withCtx as f,createTextVNode as p,toDisplayString as k,createCommentVNode as m,createElementVNode as b,createVNode as h,getCurrentInstance as w}from"vue";import{NButton as y,NInput as g,NIcon as x}from"naive-ui";import{PaperPlane as S}from"@vicons/ionicons5";import{InjectionAIChatEmits as C,InjectionAIChat as K}from"../types/index.js";import _ from"../../../audio-sdk/src/audioSDK.js";import{isString as j}from"lodash-es";const z={key:0,class:"menu-box fillet-8"},M={class:"input-wrapper fillet-10"},E=b("svg",{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},[b("path",{fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M192 448h128"}),b("path",{d:"M384 208v32c0 70.4-57.6 128-128 128h0c-70.4 0-128-57.6-128-128v-32",fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),b("path",{fill:"none",stroke:"black","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 368v80"}),b("path",{d:"M256 64a63.68 63.68 0 0 0-64 64v111c0 35.2 29 65 64 65s64-29 64-65V128c0-36-28-64-64-64z",fill:"none",stroke:"#4972EF","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"})],-1),R={class:"btn-box"},D=["disabled"];var F=e({__name:"ChatFooter",setup(e){const F=_.create(),N=n(C),{shortcutList:T,state:U,uiStyle:B,audioTimed:J}=n(K),L=t(""),O=o((()=>"small"===B.value)),P=o((()=>!L.value.replace(/( |\s|<br>)+/g,"")));async function V(){await F.recorderStart(w(),{onStop:q,allowPunctuationMark:!1,timed:J.value||10,realTimeRecognition:!0})}async function q(){try{const e=await F.recorderStop();if("success"!==e.result)return;const{text:n}=e.data;L.value=n}catch(e){console.log(e)}}function A(e){var n,t;if(j(e))return e;return JSON.parse((null==(t=null==(n=null==e?void 0:e.contents)?void 0:n[0])?void 0:t.content)||"{}").instructionName}function G(e){["Enter"].includes(e.key)&&(function(e){return e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}(e)||(e.preventDefault(),H()))}function H(){P.value||(U.beingSent=!0,U.sendContent=L.value,L.value="")}return l((()=>U.sendContent),(e=>{e&&!U.beingSent&&(L.value=e)})),i((()=>{F.destroy()})),(e,n)=>(a(),s("section",{class:r(["chat-footer",d(U).beingSent?"disabled":""])},[d(T)&&d(T).length>0?(a(),s("div",z,[(a(!0),s(c,null,u(d(T),(e=>(a(),v(d(y),{secondary:"",size:"small",round:d(O),key:A(e),onClick:()=>function(e){var n;if(j(e))L.value=e;else{const t=null==(n=null==e?void 0:e.contents)?void 0:n[0];N("button-click",t,e)}}(e)},{default:f((()=>[p(k(A(e)),1)])),_:2},1032,["round","onClick"])))),128))])):m("v-if",!0),b("div",M,[d(O)?(a(),v(d(g),{key:0,style:{"--n-height":"48px"},round:"",placeholder:"",disabled:d(U).beingSent,value:L.value,"onUpdate:value":n[0]||(n[0]=e=>L.value=e),onKeydown:G},{suffix:f((()=>[h(d(y),{text:"",disabled:d(U).beingSent,onClick:V},{icon:f((()=>[h(d(x),{size:"30"},{default:f((()=>[E])),_:1})])),_:1},8,["disabled"]),h(d(y),{circle:"",class:"gradient",style:{"margin-left":"10px"},disabled:d(P),onClick:H},{icon:f((()=>[h(d(x),{color:"#fff",size:"20",component:d(S)},null,8,["component"])])),_:1},8,["disabled"])])),_:1},8,["disabled","value"])):(a(),s(c,{key:1},[h(d(g),{type:"textarea",placeholder:"请向我提问,Shift+Enter换行",disabled:d(U).beingSent,autosize:{minRows:2,maxRows:7},value:L.value,"onUpdate:value":n[1]||(n[1]=e=>L.value=e),onKeydown:G},null,8,["disabled","value"]),b("div",R,[b("span",{class:r(["btn-send","gradient","fillet-8",d(P)?"disabled":""]),disabled:d(P),onClick:H},[h(d(x),{color:"#fff",size:"22",component:d(S)},null,8,["component"])],10,D)])],64))])],2))}});export{F as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{defineComponent as e,inject as
|
1
|
+
import{defineComponent as e,inject as n,ref as t,computed as l,watch as a,createVNode as s,createTextVNode as o,mergeProps as i,isVNode as r}from"vue";import{NAvatar as u,NSpin as c,NButton as d,NSpace as p,NIcon as m}from"naive-ui";import{InjectionAIChatEmits as v,InjectionAIChat as f}from"../types/index.js";import g from"../../../../shared/assets/img/ai__avatar.png.js";import h from"../../../../shared/assets/img/logo.png.js";import{isArray as b,isFunction as y}from"lodash-es";import"../../../../shared/utils/index.js";import"@vueuse/core";import"date-fns";import"@vue/shared";import"@vueuse/shared";import"../../../../shared/hooks/selectHooks/useSearchContent.js";import{ChevronForward as k}from"@vicons/ionicons5";import{useScrollLoading as x}from"../../../../shared/hooks/useScrollLoading.js";function S(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!r(e)}var j=e({name:"ChatMain",inheritAttrs:!1,props:{},emits:[],setup(e,{attrs:r,slots:j,emit:C}){const E=n(v),{userAvatar:T,queryData:_,state:z,queryRecord:w,defaultShortcutList:I,hideInput:L=!1,isSmall:M}=n(f),N=t(null),O=t([]),A=t(!1),q=l((()=>M.value?h:g)),H={page:0,hasMore:!0};async function J(e=!1){if(!H.hasMore)return;H.page++,1==H.page&&(O.value=[]);const{records:n,rows:t}=await w.value({page:H.page});b(t)&&O.value.length<=+n&&(O.value=H.page>1?[...O.value,...t]:t,D(),O.value.length>=+n&&(e&&(A.value=!0),H.hasMore=!1,console.log("没有更多消息了")))}function D(){O.value.forEach((e=>{e.buttonType&&(e.disabled=!0),e.contents.forEach((e=>e.disabled=!0))}))}function R(e){const{item:n,msgItem:t,isLink:l}=e;if(t)return E("button-click",t,n),void O.value.forEach((e=>e.contents.forEach((e=>e.disabled=!0))));O.value.forEach((e=>e.buttonType&&(e.disabled=!0))),n.link||(z.beingSent=!0,z.sendContent="确定")}function B(e,n){const{contentType:t,content:l=""}=n;if("json"!==t||!function(e){try{return JSON.parse(e),!0}catch(e){return!1}}(l))return null;const a=JSON.parse(l),i=["journaling","dashboard"].includes(a.buttonType);return s("div",{class:"card"},[[s("p",null,[a.title]),i?a.fields.map((t=>s(d,{class:"link-btn",style:"--n-height: 36px",secondary:!0,"icon-placement":"right",onClick:()=>R({item:e,msgItem:n,isLink:i})},{default:()=>t.name,icon:()=>s(m,{component:k},null)}))):[s("div",{class:"card-body"},[s("p",{class:"card-body__head"},[a.instructionName]),s("div",{class:"card-body__content"},[a.fields.map((e=>s("div",null,[s("span",{class:"label"},[e.name]),o(":"),s("span",null,[e.value])])))])]),s(d,{style:"margin-top: 10px;width: 100%;--n-height: 36px;font-size: 15px",secondary:!0,class:"gradient",disabled:n.disabled,onClick:()=>R({item:e,msgItem:n})},{default:()=>[a.buttonName]})]]])}function F(e,n){const{contents:t=[],buttonType:l=""}=e,a=B(e,t[n]);if(a)return a;return[t[n].content.replace(/\\n|\n|\r\n/g,"<br>").split("<br>").filter((e=>!!e)).map(((e,n,t)=>[e,n===t.length-1?null:s("br",null,null)])),l&&0===n?[s("br",null,null),s(d,i({style:"margin-top: 5px",secondary:!0,class:"gradient",disabled:e.disabled},e.link?{tag:"a",href:e.link,target:"_blank"}:{},{onClick:()=>R({item:e})}),{default:()=>[o("确定")]})]:null]}function G({role:e=""}){return"user"===e}function K(){let e;return s("div",{class:"message-item"},[s(u,{round:!0,size:M.value?64:40,src:q.value},null),s("div",{class:"content-box"},[s("div",{class:"content fillet-10 default"},[s("h2",null,[o("Hi,我是你的AI助理")]),s("p",null,[o("我汇集了医生站/护士站各项智能服务,可以向我进行提问哦 ~ "),s("br",null,null),o("你的反馈助我成长,期待我们一起探索未来!下次可以在首页和应用页找到我~")]),b(I.value)&&I.value.length>0?[s("p",{style:"margin: 5px 0 5px"},[o("你可以试着问我:")]),s(p,{"wrap-item":!1},S(e=I.value.map((e=>s(d,{size:"large",secondary:!0,onClick:()=>z.sendContent=e,disabled:z.beingSent},S(e)?e:{default:()=>[e]}))))?e:{default:()=>[e]})]:null])])])}return x(N,(()=>{J()}),L.value?"bottom":"top"),J(!0),a((()=>z.beingSent),(async e=>{var n;if(e){null==(n=N.value)||n.scrollTo({top:0,behavior:"auto"}),O.value.unshift({contents:[{role:"user",content:z.sendContent}]}),D();const e=await _.value({content:z.sendContent,contentType:"text"});b(null==e?void 0:e.contents)&&O.value.unshift(e),z.beingSent=!1,z.sendContent=""}})),()=>s("section",{class:"chat-main",ref:N,style:{"flex-direction":L.value?"column":"column-reverse"}},[[z.beingSent?s("div",{class:"message-item"},[[M.value?null:s(u,{round:!0,size:40,src:q.value},null),s("div",{class:"content-box"},[s("div",{class:"content loading"},[s(c,{size:22,stroke:"#4170EE"},null),s("span",null,[o("正在加载中,请稍等...")])])])]]):null,O.value.map((e=>e.contents.map(((n,t)=>s("div",{class:"message-item"},[[M.value?null:s(u,{round:!0,size:40,src:G(n)?T.value:q.value},null),s("div",{class:["content-box",G(n)?"mine":""]},[s("div",{class:"content"},[y(n.render)?n.render():F(e,t)])])]]))))),A.value?K():null]])}});export{j as default};
|
@@ -1 +1 @@
|
|
1
|
-
.ai-chat{background:linear-gradient(135deg,#c9dbfb,#c9dbfb 20%,rgba(237,237,253,.5) 70%,rgba(151,97,251,.2));display:flex;flex-flow:column nowrap;height:100%;padding:45px 0 60px;width:100%}.ai-chat,.ai-chat *{box-sizing:border-box}.ai-chat .fillet-10{border-radius:10px}.ai-chat .fillet-8{border-radius:8px}.ai-chat .n-avatar{background-color:var(--c-primary-color)}.ai-chat .gradient{background:linear-gradient(178deg,#8f66f7,#4170ee);color:#fff}.ai-chat .gradient:active,.ai-chat .gradient:focus,.ai-chat .gradient:hover{color:#fff}.ai-chat .chat-main{display:flex;flex:1;flex-flow:column-reverse nowrap;overflow-y:
|
1
|
+
.c-recording-wrapper{align-items:center;background-color:#fff;border-radius:10px;bottom:100px;display:flex;height:350px;justify-content:center;left:calc(50% - 250px);position:fixed;width:500px}@keyframes toScale{0%{transform:translateX(-50%) translateY(-50%) scale(1)}to{transform:translateX(-50%) translateY(-50%) scale(1.5)}}.c-recording-wrapper .content{font-size:18px;position:absolute;text-align:center;top:20px}.c-recording-wrapper .animation{animation:toScale 1s infinite;background-color:#5585f54d;left:50%;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%) scale(1);z-index:-1}.c-recording-wrapper .animation,.c-recording-wrapper .icon-box{align-items:center;border-radius:50%;display:flex;height:90px;justify-content:center;width:90px}.c-recording-wrapper .icon-box{background-color:#5585f5;cursor:pointer}.c-recording-wrapper .tip{bottom:20px;position:absolute}.ai-chat{background:linear-gradient(135deg,#c9dbfb,#c9dbfb 20%,rgba(237,237,253,.5) 70%,rgba(151,97,251,.2));display:flex;flex-flow:column nowrap;height:100%;padding:45px 0 60px;width:100%}.ai-chat,.ai-chat *{box-sizing:border-box}.ai-chat .fillet-10{border-radius:10px}.ai-chat .fillet-8{border-radius:8px}.ai-chat .n-avatar{background-color:var(--c-primary-color)}.ai-chat .gradient{background:linear-gradient(178deg,#8f66f7,#4170ee);color:#fff}.ai-chat .gradient:active,.ai-chat .gradient:focus,.ai-chat .gradient:hover{color:#fff}.ai-chat .chat-main{display:flex;flex:1;flex-flow:column-reverse nowrap;overflow-y:auto;padding:0 130px 0 82px;row-gap:16px}.ai-chat .chat-main::-webkit-scrollbar{width:5px}.ai-chat .chat-main::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:5px}.ai-chat .chat-main .message-item{column-gap:8px;display:flex;flex-flow:row nowrap}.ai-chat .chat-main .message-item:first-child{margin-bottom:auto}.ai-chat .chat-main .message-item .n-avatar{flex-shrink:0}.ai-chat .chat-main .message-item .content-box .content{background:#fff;border-radius:10px;padding:10px 12px}.ai-chat .chat-main .message-item .content-box .content .card{width:236px}.ai-chat .chat-main .message-item .content-box .content .card>p{font-size:14px;line-height:19px}.ai-chat .chat-main .message-item .content-box .content .card .link-btn{display:flex;flex-flow:row wrap;font-size:14px;justify-content:space-between;margin-top:10px;width:100%}.ai-chat .chat-main .message-item .content-box .content .card .link-btn .n-button__content{display:unset;flex:1;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.ai-chat .chat-main .message-item .content-box .content .card .card-body{border:1px solid #d5d5d5;border-radius:8px;margin-top:5px;overflow:hidden}.ai-chat .chat-main .message-item .content-box .content .card .card-body__head{background:rgba(65,112,238,.14);line-height:36px;padding:0 15px}.ai-chat .chat-main .message-item .content-box .content .card .card-body__content{padding:10px 6px}.ai-chat .chat-main .message-item .content-box .content .card .card-body__content>div{display:flex;font-size:12px}.ai-chat .chat-main .message-item .content-box .content .card .card-body__content>div .label{flex:0 0 90px;text-align:right}.ai-chat .chat-main .message-item .content-box .content.default h2{font-size:22px;font-weight:500;margin:10px 0}.ai-chat .chat-main .message-item .content-box .content.loading{align-items:center;color:#999;column-gap:10px;display:flex}.ai-chat .chat-main .message-item .content-box.mine .content{background:hsla(0,0%,100%,.48);border-radius:8px}.ai-chat .chat-footer{padding:30px 130px 0}.ai-chat .chat-footer.disabled{cursor:not-allowed}.ai-chat .chat-footer .menu-box{background:#fff;column-gap:8px;display:flex;margin-bottom:8px;overflow-x:auto;padding:10px}.ai-chat .chat-footer .menu-box::-webkit-scrollbar{width:5px}.ai-chat .chat-footer .menu-box::-webkit-scrollbar-thumb{background:rgba(0,0,0,.25);border-radius:5px}.ai-chat .chat-footer .menu-box::-webkit-scrollbar{height:5px}.ai-chat .chat-footer .input-wrapper{background:#fff;box-shadow:0 3px 4px 0 rgba(0,0,0,.1);padding:15px 20px}.ai-chat .chat-footer .input-wrapper .n-input__border,.ai-chat .chat-footer .input-wrapper .n-input__state-border{border:none}.ai-chat .chat-footer .input-wrapper .n-input:not(.n-input--disabled).n-input--focus .n-input__state-border{box-shadow:unset}.ai-chat .chat-footer .input-wrapper .btn-box{display:flex;justify-content:flex-end}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send{align-items:center;cursor:pointer;display:flex;height:46px;justify-content:center;width:58px}.ai-chat .chat-footer .input-wrapper .btn-box .btn-send.disabled{cursor:not-allowed;opacity:.5}.ai-chat--small{padding:20px 20px 44px}.ai-chat--small .chat-main{padding:0 0 10px}.ai-chat--small .chat-main .message-item{display:unset}.ai-chat--small .chat-main .message-item .n-avatar{background:transparent}.ai-chat--small .chat-main .message-item .content-box{display:flex;flex-flow:row nowrap}.ai-chat--small .chat-main .message-item .content-box .content{border-radius:3px 14px 14px;max-width:calc(100% - 55px)}.ai-chat--small .chat-main .message-item .content-box .content.default{border-radius:4px 16px 16px}.ai-chat--small .chat-main .message-item .content-box.mine{flex-flow:row-reverse nowrap}.ai-chat--small .chat-main .message-item .content-box.mine .content{background:#5874dc;border-radius:14px 0 14px 14px;color:#fff}.ai-chat--small .chat-footer{padding:10px 0 0}.ai-chat--small .chat-footer .menu-box{background:none;padding:0}.ai-chat--small .chat-footer .menu-box .n-button{background:#fff}.ai-chat--small .chat-footer .input-wrapper{border-radius:24px;box-shadow:0 0 6px 0 hsla(240,9%,85%,.74);padding:0}
|
@@ -1721,6 +1721,56 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1721
1721
|
modelValue: string;
|
1722
1722
|
paramCfg: Record<string, any>;
|
1723
1723
|
}>;
|
1724
|
+
SelectTreeDynamic: import("vue").DefineComponent<{
|
1725
|
+
paramCfg: {
|
1726
|
+
type: ObjectConstructor;
|
1727
|
+
default: null;
|
1728
|
+
};
|
1729
|
+
modelValue: {
|
1730
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1731
|
+
default: null;
|
1732
|
+
};
|
1733
|
+
}, {
|
1734
|
+
message: import("naive-ui").MessageApi;
|
1735
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1736
|
+
paramCfg: {
|
1737
|
+
type: ObjectConstructor;
|
1738
|
+
default: null;
|
1739
|
+
};
|
1740
|
+
modelValue: {
|
1741
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1742
|
+
default: null;
|
1743
|
+
};
|
1744
|
+
}>> & {
|
1745
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1746
|
+
}>>;
|
1747
|
+
getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
|
1748
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
1749
|
+
options: import("vue").Ref<never[]>;
|
1750
|
+
filterApiConfig: import("../../shared/types").AnyObject;
|
1751
|
+
classifyFilterList: import("vue").Ref<import("../../shared/types").AnyObject[]>;
|
1752
|
+
optionSetting: import("vue").ComputedRef<any>;
|
1753
|
+
isMultiple: import("vue").ComputedRef<boolean>;
|
1754
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
1755
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
1756
|
+
transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
|
1757
|
+
getOptionsData: (keyword: string) => Promise<void>;
|
1758
|
+
NTreeSelect: any;
|
1759
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1760
|
+
paramCfg: {
|
1761
|
+
type: ObjectConstructor;
|
1762
|
+
default: null;
|
1763
|
+
};
|
1764
|
+
modelValue: {
|
1765
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1766
|
+
default: null;
|
1767
|
+
};
|
1768
|
+
}>> & {
|
1769
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1770
|
+
}, {
|
1771
|
+
modelValue: string | number | unknown[];
|
1772
|
+
paramCfg: Record<string, any>;
|
1773
|
+
}>;
|
1724
1774
|
WidgetTypeEnums: {
|
1725
1775
|
INPUT_NUMBER: string;
|
1726
1776
|
INPUT: string;
|
@@ -1739,6 +1789,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
1739
1789
|
SELECTLABEL: string;
|
1740
1790
|
SELECTDYNAMIC: string;
|
1741
1791
|
SELECTTREE: string;
|
1792
|
+
SELECTTREEDYNAMIC: string;
|
1742
1793
|
};
|
1743
1794
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1744
1795
|
paramCfg: {
|
@@ -2268,6 +2319,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
2268
2319
|
SELECTLABEL: string;
|
2269
2320
|
SELECTDYNAMIC: string;
|
2270
2321
|
SELECTTREE: string;
|
2322
|
+
SELECTTREEDYNAMIC: string;
|
2271
2323
|
};
|
2272
2324
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2273
2325
|
paramCfg: {
|
@@ -1185,6 +1185,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
1185
1185
|
modelValue: string;
|
1186
1186
|
paramCfg: Record<string, any>;
|
1187
1187
|
}>;
|
1188
|
+
SelectTreeDynamic: import("vue").DefineComponent<{
|
1189
|
+
paramCfg: {
|
1190
|
+
type: ObjectConstructor;
|
1191
|
+
default: null;
|
1192
|
+
};
|
1193
|
+
modelValue: {
|
1194
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1195
|
+
default: null;
|
1196
|
+
};
|
1197
|
+
}, {
|
1198
|
+
message: import("naive-ui").MessageApi;
|
1199
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1200
|
+
paramCfg: {
|
1201
|
+
type: ObjectConstructor;
|
1202
|
+
default: null;
|
1203
|
+
};
|
1204
|
+
modelValue: {
|
1205
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1206
|
+
default: null;
|
1207
|
+
};
|
1208
|
+
}>> & {
|
1209
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1210
|
+
}>>;
|
1211
|
+
getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
|
1212
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
1213
|
+
options: import("vue").Ref<never[]>;
|
1214
|
+
filterApiConfig: import("../../../../../shared/types").AnyObject;
|
1215
|
+
classifyFilterList: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
|
1216
|
+
optionSetting: import("vue").ComputedRef<any>;
|
1217
|
+
isMultiple: import("vue").ComputedRef<boolean>;
|
1218
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
1219
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
1220
|
+
transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
|
1221
|
+
getOptionsData: (keyword: string) => Promise<void>;
|
1222
|
+
NTreeSelect: any;
|
1223
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1224
|
+
paramCfg: {
|
1225
|
+
type: ObjectConstructor;
|
1226
|
+
default: null;
|
1227
|
+
};
|
1228
|
+
modelValue: {
|
1229
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1230
|
+
default: null;
|
1231
|
+
};
|
1232
|
+
}>> & {
|
1233
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1234
|
+
}, {
|
1235
|
+
modelValue: string | number | unknown[];
|
1236
|
+
paramCfg: Record<string, any>;
|
1237
|
+
}>;
|
1188
1238
|
WidgetTypeEnums: {
|
1189
1239
|
INPUT_NUMBER: string;
|
1190
1240
|
INPUT: string;
|
@@ -1203,6 +1253,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1203
1253
|
SELECTLABEL: string;
|
1204
1254
|
SELECTDYNAMIC: string;
|
1205
1255
|
SELECTTREE: string;
|
1256
|
+
SELECTTREEDYNAMIC: string;
|
1206
1257
|
};
|
1207
1258
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1208
1259
|
paramCfg: {
|
@@ -1732,6 +1783,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1732
1783
|
SELECTLABEL: string;
|
1733
1784
|
SELECTDYNAMIC: string;
|
1734
1785
|
SELECTTREE: string;
|
1786
|
+
SELECTTREEDYNAMIC: string;
|
1735
1787
|
};
|
1736
1788
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1737
1789
|
paramCfg: {
|
@@ -1479,6 +1479,56 @@ declare const _default: import("vue").DefineComponent<{
|
|
1479
1479
|
modelValue: string;
|
1480
1480
|
paramCfg: Record<string, any>;
|
1481
1481
|
}>;
|
1482
|
+
SelectTreeDynamic: import("vue").DefineComponent<{
|
1483
|
+
paramCfg: {
|
1484
|
+
type: ObjectConstructor;
|
1485
|
+
default: null;
|
1486
|
+
};
|
1487
|
+
modelValue: {
|
1488
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1489
|
+
default: null;
|
1490
|
+
};
|
1491
|
+
}, {
|
1492
|
+
message: import("naive-ui").MessageApi;
|
1493
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
1494
|
+
paramCfg: {
|
1495
|
+
type: ObjectConstructor;
|
1496
|
+
default: null;
|
1497
|
+
};
|
1498
|
+
modelValue: {
|
1499
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1500
|
+
default: null;
|
1501
|
+
};
|
1502
|
+
}>> & {
|
1503
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1504
|
+
}>>;
|
1505
|
+
getDynamicSelectData: (params: any, filterApiConfig: any) => Promise<any>;
|
1506
|
+
emit: (event: "update:modelValue", ...args: any[]) => void;
|
1507
|
+
options: import("vue").Ref<never[]>;
|
1508
|
+
filterApiConfig: import("../../../../../shared/types").AnyObject;
|
1509
|
+
classifyFilterList: import("vue").Ref<import("../../../../../shared/types").AnyObject[]>;
|
1510
|
+
optionSetting: import("vue").ComputedRef<any>;
|
1511
|
+
isMultiple: import("vue").ComputedRef<boolean>;
|
1512
|
+
dynamicOptionInfos: import("vue").ComputedRef<any>;
|
1513
|
+
valueCp: import("vue").WritableComputedRef<any>;
|
1514
|
+
transformOptions: (list: any[], showKeys: string[], valueKey: string) => any[];
|
1515
|
+
getOptionsData: (keyword: string) => Promise<void>;
|
1516
|
+
NTreeSelect: any;
|
1517
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1518
|
+
paramCfg: {
|
1519
|
+
type: ObjectConstructor;
|
1520
|
+
default: null;
|
1521
|
+
};
|
1522
|
+
modelValue: {
|
1523
|
+
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
1524
|
+
default: null;
|
1525
|
+
};
|
1526
|
+
}>> & {
|
1527
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
1528
|
+
}, {
|
1529
|
+
modelValue: string | number | unknown[];
|
1530
|
+
paramCfg: Record<string, any>;
|
1531
|
+
}>;
|
1482
1532
|
WidgetTypeEnums: {
|
1483
1533
|
INPUT_NUMBER: string;
|
1484
1534
|
INPUT: string;
|
@@ -1497,6 +1547,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1497
1547
|
SELECTLABEL: string;
|
1498
1548
|
SELECTDYNAMIC: string;
|
1499
1549
|
SELECTTREE: string;
|
1550
|
+
SELECTTREEDYNAMIC: string;
|
1500
1551
|
};
|
1501
1552
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:isAccurate" | "update:presetVal")[], "update:modelValue" | "update:isAccurate" | "update:presetVal", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
1502
1553
|
paramCfg: {
|
@@ -2026,6 +2077,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
2026
2077
|
SELECTLABEL: string;
|
2027
2078
|
SELECTDYNAMIC: string;
|
2028
2079
|
SELECTTREE: string;
|
2080
|
+
SELECTTREEDYNAMIC: string;
|
2029
2081
|
};
|
2030
2082
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:modelValues")[], "update:modelValue" | "update:modelValues", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
2031
2083
|
paramCfg: {
|