cnhis-design-vue 3.1.54-beta.23 → 3.1.54-beta.24
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/chat-sdk/src/chatSDK.d.ts +2 -0
- package/es/components/chat-sdk/src/chatSDK.js +1 -1
- package/es/components/classification/index.d.ts +16 -28
- package/es/components/classification/src/components/search-filter/index.vue.d.ts +16 -28
- package/es/components/classification/src/components/set-classification/index.vue.d.ts +16 -28
- package/es/components/classification/src/index.vue.d.ts +16 -28
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue.d.ts +16 -28
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/hooks/useBiConditions.js +1 -1
- package/es/components/table-filter/src/components/bi-filter/index.vue.d.ts +16 -28
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
|
@@ -4,7 +4,9 @@ import { AnyObject } from '../../../../es/shared/types';
|
|
|
4
4
|
export default class ChatSDK {
|
|
5
5
|
private recorder;
|
|
6
6
|
private recorderStatus;
|
|
7
|
+
private option;
|
|
7
8
|
constructor(option?: AnyObject);
|
|
9
|
+
private initRecorder;
|
|
8
10
|
recorderOpen(): Promise<unknown>;
|
|
9
11
|
recorderStart(): Promise<{
|
|
10
12
|
result: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import r from"axios";import e from"recorder-core";import"recorder-core/src/engine/mp3";import"recorder-core/src/engine/mp3-engine";import{uuidGenerator as t}from"../../../shared/utils/index.js";class s{constructor(r){this.recorder=null,this.recorderStatus=!1,this.recorder=e({type:"mp3",sampleRate:16e3,bitRate:16,...
|
|
1
|
+
import r from"axios";import e from"recorder-core";import"recorder-core/src/engine/mp3";import"recorder-core/src/engine/mp3-engine";import{uuidGenerator as t}from"../../../shared/utils/index.js";class s{constructor(r){this.recorder=null,this.recorderStatus=!1,this.option=null,r&&(this.option=r),this.initRecorder()}initRecorder(){this.recorder=e({type:"mp3",sampleRate:16e3,bitRate:16,...this.option})}async recorderOpen(){this.recorder||this.initRecorder();const r={};return new Promise(((e,t)=>{this.recorder.open((()=>{this.recorderStatus=!0,r.result="success",e(r)}),((e,s)=>{this.recorderStatus=!1,Object.assign(r,{result:"fail",msg:e,isUserNotAllow:s}),t(r)}))}))}async recorderStart(){return this.recorderStatus?(this.recorder.start(),Promise.resolve({result:"success"})):Promise.reject({result:"fail",msg:"请先打开麦克风"})}async recorderStop(r=!0){return new Promise(((e,o)=>{this.recorder.stop((async(i,c)=>{const a=new File([i],`${t()}.mp3`,{type:i.type});try{let t;if(r){const r=new FormData;r.append("audio",a);const{data:e}=await s.audioRecognition(r);t=e}e({result:"success",file:a,duration:c,...t?{data:t}:{}})}catch(r){o({result:"fail",msg:r})}}),(r=>{o({result:"fail",msg:r})}))}))}destroy(){var r;null==(r=this.recorder)||r.close(),this.recorder=null,this.recorderStatus=!1}static async audioRecognition(e){return await r.post("/audio/recognition",e,{headers:{"Content-Type":"multipart/form-data"}})}static async audioRevise(e){return await r.post("/audio/revise",e)}}export{s as default};
|
|
@@ -1821,12 +1821,9 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1821
1821
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1822
1822
|
default: null;
|
|
1823
1823
|
};
|
|
1824
|
-
|
|
1825
|
-
type:
|
|
1826
|
-
default:
|
|
1827
|
-
};
|
|
1828
|
-
isAccurate: {
|
|
1829
|
-
type: BooleanConstructor;
|
|
1824
|
+
modelValues: {
|
|
1825
|
+
type: ArrayConstructor;
|
|
1826
|
+
default: () => never[];
|
|
1830
1827
|
};
|
|
1831
1828
|
}, {
|
|
1832
1829
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1838,23 +1835,19 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
1838
1835
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1839
1836
|
default: null;
|
|
1840
1837
|
};
|
|
1841
|
-
|
|
1842
|
-
type:
|
|
1843
|
-
default:
|
|
1844
|
-
};
|
|
1845
|
-
isAccurate: {
|
|
1846
|
-
type: BooleanConstructor;
|
|
1838
|
+
modelValues: {
|
|
1839
|
+
type: ArrayConstructor;
|
|
1840
|
+
default: () => never[];
|
|
1847
1841
|
};
|
|
1848
1842
|
}>> & {
|
|
1849
1843
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1850
|
-
"onUpdate:
|
|
1851
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1844
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
1852
1845
|
}>>;
|
|
1853
|
-
emit: (event: "update:modelValue" | "update:
|
|
1846
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
1854
1847
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
1855
|
-
|
|
1856
|
-
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
1848
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
1857
1849
|
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
1850
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
1858
1851
|
biType: import("vue").ComputedRef<any>;
|
|
1859
1852
|
Date: import("vue").DefineComponent<{
|
|
1860
1853
|
componentCfg: {
|
|
@@ -2117,7 +2110,7 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2117
2110
|
SELECTLABEL: string;
|
|
2118
2111
|
SELECTDYNAMIC: string;
|
|
2119
2112
|
};
|
|
2120
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:
|
|
2113
|
+
}, 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<{
|
|
2121
2114
|
paramCfg: {
|
|
2122
2115
|
type: ObjectConstructor;
|
|
2123
2116
|
default: null;
|
|
@@ -2126,22 +2119,17 @@ declare const CClassification: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
2126
2119
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2127
2120
|
default: null;
|
|
2128
2121
|
};
|
|
2129
|
-
|
|
2130
|
-
type:
|
|
2131
|
-
default:
|
|
2132
|
-
};
|
|
2133
|
-
isAccurate: {
|
|
2134
|
-
type: BooleanConstructor;
|
|
2122
|
+
modelValues: {
|
|
2123
|
+
type: ArrayConstructor;
|
|
2124
|
+
default: () => never[];
|
|
2135
2125
|
};
|
|
2136
2126
|
}>> & {
|
|
2137
2127
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2138
|
-
"onUpdate:
|
|
2139
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
2128
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
2140
2129
|
}, {
|
|
2141
2130
|
modelValue: string | number | unknown[];
|
|
2142
2131
|
paramCfg: Record<string, any>;
|
|
2143
|
-
|
|
2144
|
-
isAccurate: boolean;
|
|
2132
|
+
modelValues: unknown[];
|
|
2145
2133
|
}>;
|
|
2146
2134
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2147
2135
|
actionList_prop: {
|
|
@@ -1290,12 +1290,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1290
1290
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1291
1291
|
default: null;
|
|
1292
1292
|
};
|
|
1293
|
-
|
|
1294
|
-
type:
|
|
1295
|
-
default:
|
|
1296
|
-
};
|
|
1297
|
-
isAccurate: {
|
|
1298
|
-
type: BooleanConstructor;
|
|
1293
|
+
modelValues: {
|
|
1294
|
+
type: ArrayConstructor;
|
|
1295
|
+
default: () => never[];
|
|
1299
1296
|
};
|
|
1300
1297
|
}, {
|
|
1301
1298
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1307,23 +1304,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1307
1304
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1308
1305
|
default: null;
|
|
1309
1306
|
};
|
|
1310
|
-
|
|
1311
|
-
type:
|
|
1312
|
-
default:
|
|
1313
|
-
};
|
|
1314
|
-
isAccurate: {
|
|
1315
|
-
type: BooleanConstructor;
|
|
1307
|
+
modelValues: {
|
|
1308
|
+
type: ArrayConstructor;
|
|
1309
|
+
default: () => never[];
|
|
1316
1310
|
};
|
|
1317
1311
|
}>> & {
|
|
1318
1312
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1319
|
-
"onUpdate:
|
|
1320
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1313
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
1321
1314
|
}>>;
|
|
1322
|
-
emit: (event: "update:modelValue" | "update:
|
|
1315
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
1323
1316
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
1324
|
-
|
|
1325
|
-
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
1317
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
1326
1318
|
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
1319
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
1327
1320
|
biType: import("vue").ComputedRef<any>;
|
|
1328
1321
|
Date: import("vue").DefineComponent<{
|
|
1329
1322
|
componentCfg: {
|
|
@@ -1586,7 +1579,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1586
1579
|
SELECTLABEL: string;
|
|
1587
1580
|
SELECTDYNAMIC: string;
|
|
1588
1581
|
};
|
|
1589
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:
|
|
1582
|
+
}, 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<{
|
|
1590
1583
|
paramCfg: {
|
|
1591
1584
|
type: ObjectConstructor;
|
|
1592
1585
|
default: null;
|
|
@@ -1595,22 +1588,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1595
1588
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1596
1589
|
default: null;
|
|
1597
1590
|
};
|
|
1598
|
-
|
|
1599
|
-
type:
|
|
1600
|
-
default:
|
|
1601
|
-
};
|
|
1602
|
-
isAccurate: {
|
|
1603
|
-
type: BooleanConstructor;
|
|
1591
|
+
modelValues: {
|
|
1592
|
+
type: ArrayConstructor;
|
|
1593
|
+
default: () => never[];
|
|
1604
1594
|
};
|
|
1605
1595
|
}>> & {
|
|
1606
1596
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1607
|
-
"onUpdate:
|
|
1608
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1597
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
1609
1598
|
}, {
|
|
1610
1599
|
modelValue: string | number | unknown[];
|
|
1611
1600
|
paramCfg: Record<string, any>;
|
|
1612
|
-
|
|
1613
|
-
isAccurate: boolean;
|
|
1601
|
+
modelValues: unknown[];
|
|
1614
1602
|
}>;
|
|
1615
1603
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1616
1604
|
actionList_prop: {
|
|
@@ -1600,12 +1600,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1600
1600
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1601
1601
|
default: null;
|
|
1602
1602
|
};
|
|
1603
|
-
|
|
1604
|
-
type:
|
|
1605
|
-
default:
|
|
1606
|
-
};
|
|
1607
|
-
isAccurate: {
|
|
1608
|
-
type: BooleanConstructor;
|
|
1603
|
+
modelValues: {
|
|
1604
|
+
type: ArrayConstructor;
|
|
1605
|
+
default: () => never[];
|
|
1609
1606
|
};
|
|
1610
1607
|
}, {
|
|
1611
1608
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1617,23 +1614,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1617
1614
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1618
1615
|
default: null;
|
|
1619
1616
|
};
|
|
1620
|
-
|
|
1621
|
-
type:
|
|
1622
|
-
default:
|
|
1623
|
-
};
|
|
1624
|
-
isAccurate: {
|
|
1625
|
-
type: BooleanConstructor;
|
|
1617
|
+
modelValues: {
|
|
1618
|
+
type: ArrayConstructor;
|
|
1619
|
+
default: () => never[];
|
|
1626
1620
|
};
|
|
1627
1621
|
}>> & {
|
|
1628
1622
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1629
|
-
"onUpdate:
|
|
1630
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1623
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
1631
1624
|
}>>;
|
|
1632
|
-
emit: (event: "update:modelValue" | "update:
|
|
1625
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
1633
1626
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
1634
|
-
|
|
1635
|
-
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
1627
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
1636
1628
|
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
1629
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
1637
1630
|
biType: import("vue").ComputedRef<any>;
|
|
1638
1631
|
Date: import("vue").DefineComponent<{
|
|
1639
1632
|
componentCfg: {
|
|
@@ -1896,7 +1889,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1896
1889
|
SELECTLABEL: string;
|
|
1897
1890
|
SELECTDYNAMIC: string;
|
|
1898
1891
|
};
|
|
1899
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:
|
|
1892
|
+
}, 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<{
|
|
1900
1893
|
paramCfg: {
|
|
1901
1894
|
type: ObjectConstructor;
|
|
1902
1895
|
default: null;
|
|
@@ -1905,22 +1898,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1905
1898
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1906
1899
|
default: null;
|
|
1907
1900
|
};
|
|
1908
|
-
|
|
1909
|
-
type:
|
|
1910
|
-
default:
|
|
1911
|
-
};
|
|
1912
|
-
isAccurate: {
|
|
1913
|
-
type: BooleanConstructor;
|
|
1901
|
+
modelValues: {
|
|
1902
|
+
type: ArrayConstructor;
|
|
1903
|
+
default: () => never[];
|
|
1914
1904
|
};
|
|
1915
1905
|
}>> & {
|
|
1916
1906
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1917
|
-
"onUpdate:
|
|
1918
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1907
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
1919
1908
|
}, {
|
|
1920
1909
|
modelValue: string | number | unknown[];
|
|
1921
1910
|
paramCfg: Record<string, any>;
|
|
1922
|
-
|
|
1923
|
-
isAccurate: boolean;
|
|
1911
|
+
modelValues: unknown[];
|
|
1924
1912
|
}>;
|
|
1925
1913
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1926
1914
|
actionList_prop: {
|
|
@@ -1822,12 +1822,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1822
1822
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1823
1823
|
default: null;
|
|
1824
1824
|
};
|
|
1825
|
-
|
|
1826
|
-
type:
|
|
1827
|
-
default:
|
|
1828
|
-
};
|
|
1829
|
-
isAccurate: {
|
|
1830
|
-
type: BooleanConstructor;
|
|
1825
|
+
modelValues: {
|
|
1826
|
+
type: ArrayConstructor;
|
|
1827
|
+
default: () => never[];
|
|
1831
1828
|
};
|
|
1832
1829
|
}, {
|
|
1833
1830
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1839,23 +1836,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1839
1836
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
1840
1837
|
default: null;
|
|
1841
1838
|
};
|
|
1842
|
-
|
|
1843
|
-
type:
|
|
1844
|
-
default:
|
|
1845
|
-
};
|
|
1846
|
-
isAccurate: {
|
|
1847
|
-
type: BooleanConstructor;
|
|
1839
|
+
modelValues: {
|
|
1840
|
+
type: ArrayConstructor;
|
|
1841
|
+
default: () => never[];
|
|
1848
1842
|
};
|
|
1849
1843
|
}>> & {
|
|
1850
1844
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1851
|
-
"onUpdate:
|
|
1852
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
1845
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
1853
1846
|
}>>;
|
|
1854
|
-
emit: (event: "update:modelValue" | "update:
|
|
1847
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
1855
1848
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
1856
|
-
|
|
1857
|
-
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
1849
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
1858
1850
|
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
1851
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
1859
1852
|
biType: import("vue").ComputedRef<any>;
|
|
1860
1853
|
Date: import("vue").DefineComponent<{
|
|
1861
1854
|
componentCfg: {
|
|
@@ -2118,7 +2111,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2118
2111
|
SELECTLABEL: string;
|
|
2119
2112
|
SELECTDYNAMIC: string;
|
|
2120
2113
|
};
|
|
2121
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:
|
|
2114
|
+
}, 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<{
|
|
2122
2115
|
paramCfg: {
|
|
2123
2116
|
type: ObjectConstructor;
|
|
2124
2117
|
default: null;
|
|
@@ -2127,22 +2120,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
2127
2120
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
2128
2121
|
default: null;
|
|
2129
2122
|
};
|
|
2130
|
-
|
|
2131
|
-
type:
|
|
2132
|
-
default:
|
|
2133
|
-
};
|
|
2134
|
-
isAccurate: {
|
|
2135
|
-
type: BooleanConstructor;
|
|
2123
|
+
modelValues: {
|
|
2124
|
+
type: ArrayConstructor;
|
|
2125
|
+
default: () => never[];
|
|
2136
2126
|
};
|
|
2137
2127
|
}>> & {
|
|
2138
2128
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2139
|
-
"onUpdate:
|
|
2140
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
2129
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
2141
2130
|
}, {
|
|
2142
2131
|
modelValue: string | number | unknown[];
|
|
2143
2132
|
paramCfg: Record<string, any>;
|
|
2144
|
-
|
|
2145
|
-
isAccurate: boolean;
|
|
2133
|
+
modelValues: unknown[];
|
|
2146
2134
|
}>;
|
|
2147
2135
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
2148
2136
|
actionList_prop: {
|
|
@@ -7,12 +7,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
8
8
|
default: null;
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
type:
|
|
12
|
-
default:
|
|
13
|
-
};
|
|
14
|
-
isAccurate: {
|
|
15
|
-
type: BooleanConstructor;
|
|
10
|
+
modelValues: {
|
|
11
|
+
type: ArrayConstructor;
|
|
12
|
+
default: () => never[];
|
|
16
13
|
};
|
|
17
14
|
}, {
|
|
18
15
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -24,23 +21,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
24
21
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
25
22
|
default: null;
|
|
26
23
|
};
|
|
27
|
-
|
|
28
|
-
type:
|
|
29
|
-
default:
|
|
30
|
-
};
|
|
31
|
-
isAccurate: {
|
|
32
|
-
type: BooleanConstructor;
|
|
24
|
+
modelValues: {
|
|
25
|
+
type: ArrayConstructor;
|
|
26
|
+
default: () => never[];
|
|
33
27
|
};
|
|
34
28
|
}>> & {
|
|
35
29
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
"onUpdate:
|
|
37
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
38
31
|
}>>;
|
|
39
|
-
emit: (event: "update:modelValue" | "update:
|
|
32
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
40
33
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
41
|
-
|
|
42
|
-
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
34
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
43
35
|
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
36
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
44
37
|
biType: import("vue").ComputedRef<any>;
|
|
45
38
|
Date: import("vue").DefineComponent<{
|
|
46
39
|
componentCfg: {
|
|
@@ -303,7 +296,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
303
296
|
SELECTLABEL: string;
|
|
304
297
|
SELECTDYNAMIC: string;
|
|
305
298
|
};
|
|
306
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:
|
|
299
|
+
}, 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<{
|
|
307
300
|
paramCfg: {
|
|
308
301
|
type: ObjectConstructor;
|
|
309
302
|
default: null;
|
|
@@ -312,21 +305,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
312
305
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
313
306
|
default: null;
|
|
314
307
|
};
|
|
315
|
-
|
|
316
|
-
type:
|
|
317
|
-
default:
|
|
318
|
-
};
|
|
319
|
-
isAccurate: {
|
|
320
|
-
type: BooleanConstructor;
|
|
308
|
+
modelValues: {
|
|
309
|
+
type: ArrayConstructor;
|
|
310
|
+
default: () => never[];
|
|
321
311
|
};
|
|
322
312
|
}>> & {
|
|
323
313
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
324
|
-
"onUpdate:
|
|
325
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
314
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
326
315
|
}, {
|
|
327
316
|
modelValue: string | number | unknown[];
|
|
328
317
|
paramCfg: Record<string, any>;
|
|
329
|
-
|
|
330
|
-
isAccurate: boolean;
|
|
318
|
+
modelValues: unknown[];
|
|
331
319
|
}>;
|
|
332
320
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,computed as a,openBlock as l,createElementBlock as
|
|
1
|
+
import{defineComponent as e,computed as a,openBlock as l,createElementBlock as u,createCommentVNode as m,unref as o,createBlock as r,isRef as p,Fragment as t,createVNode as n}from"vue";import{InputNumber as d,InputFilter as f,SelectFilter as g,Date as s}from"./components/index.js";import{WidgetOptionEnums as i,WidgetTypeEnums as V}from"../../types/enums.js";import{typeMappingOptions as v}from"./helpers/options.js";const C={class:"value-cfg_wrapper"};var y=e({__name:"ValueCfg",props:{paramCfg:{type:Object,default:null},modelValue:{type:[String,Number,Array],default:null},modelValues:{type:Array,default:()=>[]}},emits:["update:modelValue","update:modelValues"],setup(e,{emit:y}){const U=e,c=a({set(e){y("update:modelValue",e)},get:()=>U.modelValue}),T=a({set(e){y("update:modelValues",e)},get:()=>U.modelValues}),k=a((()=>{var e,a;const l=null==(e=U.paramCfg)?void 0:e.optionInfo;return!!((null==l?void 0:l.manualMapping)&&(null==(a=l.list)?void 0:a.length)>0)})),I=a((()=>{var e;return(null==(e=U.paramCfg)?void 0:e.optionSetting)===i.MULTIPLE})),_=a((()=>{var e;const a=(null==(e=U.paramCfg)?void 0:e._rawData.type)||"";return v[a]}));return(a,i)=>(l(),u("div",C,[m(" 数字框 "),o(_)===o(V).INPUT_NUMBER?(l(),r(o(d),{key:0,paramCfg:e.paramCfg,modelValue:o(c),"onUpdate:modelValue":i[0]||(i[0]=e=>p(c)?c.value=e:null)},null,8,["paramCfg","modelValue"])):m("v-if",!0),m(" 文本框 "),o(_)!==o(V).INPUT||o(k)?m("v-if",!0):(l(),r(o(f),{key:1,paramCfg:e.paramCfg,modelValue:o(c),"onUpdate:modelValue":i[1]||(i[1]=e=>p(c)?c.value=e:null)},null,8,["paramCfg","modelValue"])),m(" 静态数据源下拉框 "),o(_)===o(V).INPUT&&o(k)?(l(),u(t,{key:2},[m(" 多选 "),o(I)?(l(),r(o(g),{key:0,paramCfg:e.paramCfg,modelValue:o(T),"onUpdate:modelValue":i[2]||(i[2]=e=>p(T)?T.value=e:null)},null,8,["paramCfg","modelValue"])):(l(),u(t,{key:1},[m(" 单选 "),n(o(g),{paramCfg:e.paramCfg,modelValue:o(c),"onUpdate:modelValue":i[3]||(i[3]=e=>p(c)?c.value=e:null)},null,8,["paramCfg","modelValue"])],2112))],64)):m("v-if",!0),m(" 日期框、日期时间框 "),o(_)===o(V).DATE||o(_)===o(V).DATE_TIME?(l(),r(o(s),{key:3,paramCfg:e.paramCfg,modelValue:o(c),"onUpdate:modelValue":i[4]||(i[4]=e=>p(c)?c.value=e:null)},null,8,["paramCfg","modelValue"])):m("v-if",!0)]))}});export{y as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{reactive as e,computed as t}from"vue";import{WidgetTypeEnums as i,ConditionEnums as n}from"../../../types/enums.js";import{transformDataToFront as
|
|
1
|
+
import{reactive as e,computed as t}from"vue";import{WidgetTypeEnums as i,ConditionEnums as n,WidgetOptionEnums as a}from"../../../types/enums.js";import{transformDataToFront as l}from"../../../tool/transformData.js";import{typeMappingOptions as o,filterConditionTypeOptions as r}from"../helpers/options.js";import{DatePresetValEnums as s}from"../../render-widget/enums.js";import{presetValToTimestamp as p}from"../../render-widget/helpers/presetValToTimestamp.js";const u=(u,d,f)=>{const m=e({params:[]}),c=t((()=>m.params.map((({p_name:e,title:t})=>({label:t||e,value:e}))))),v=e=>m.params.find((t=>t.p_name===e)),y=e=>{e.con=e.value="";[i.DATE,i.DATE_TIME].includes(e.fieldType)&&(e.value=null)};return{State:m,paramOptions:c,addFilterCondition:()=>{u.value.push({fieldId:"",fieldType:"",con:"",value:"",values:[],biTypeOptions:[]})},delFilterCondition:e=>{u.value.splice(e,1)},updateKey:(e,t)=>{const i=u.value[e];i&&(y(i),i.fieldId=t,(e=>{const t=v(e.fieldId)._rawData.type,i=o[t];if(!i)return!1;e.fieldType=i;const n=r.find((e=>e.type===i));n&&(e.biTypeOptions=n.options)})(i))},updateCondition:(e,t)=>{const i=u.value[e];i&&(y(i),i.con=t)},getParamCfg:v,initFilterConditions:async(e,t)=>{const c=await(async e=>{try{return l(f,d)}catch(e){return[]}})();m.params=c,u.value=(e=>e.map((e=>{if(e.field_key){const t=v(e.field_key),l=t._rawData.type;if(!o[l])return null;const u=o[l];e.unit&&e.unit!==s.CUSTOM&&(u===i.DATE&&(e.value=p(e.unit,"YYYY-MM-DD")),u===i.DATE_TIME&&(e.value=p(e.unit,"YYYY-MM-DD HH:mm:ss")));const d=[i.DATE,i.DATE_TIME];e.con=e.con===n.EQUAL&&d.includes(u)?"IN":e.con;let f=Array.isArray(e.value)?e.value.join(","):e.value,m=[];l===i.SELECT&&t.optionSetting===a.MULTIPLE&&(f="",m=e.value);let c=[];const y=r.find((e=>e.type===u));return y&&(c=y.options),{fieldId:e.field_key,fieldType:u,biTypeOptions:c,con:e.con,value:f,values:m}}return e})).filter((e=>null!=e)))(t)},getRawFilterConditions:()=>u.value.map((e=>({fieldId:e.fieldId,fieldType:e.fieldType,con:e.con,value:e.value,values:e.values})))}};export{u as useBiConditions};
|
|
@@ -125,12 +125,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
125
125
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
126
126
|
default: null;
|
|
127
127
|
};
|
|
128
|
-
|
|
129
|
-
type:
|
|
130
|
-
default:
|
|
131
|
-
};
|
|
132
|
-
isAccurate: {
|
|
133
|
-
type: BooleanConstructor;
|
|
128
|
+
modelValues: {
|
|
129
|
+
type: ArrayConstructor;
|
|
130
|
+
default: () => never[];
|
|
134
131
|
};
|
|
135
132
|
}, {
|
|
136
133
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -142,23 +139,19 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
142
139
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
143
140
|
default: null;
|
|
144
141
|
};
|
|
145
|
-
|
|
146
|
-
type:
|
|
147
|
-
default:
|
|
148
|
-
};
|
|
149
|
-
isAccurate: {
|
|
150
|
-
type: BooleanConstructor;
|
|
142
|
+
modelValues: {
|
|
143
|
+
type: ArrayConstructor;
|
|
144
|
+
default: () => never[];
|
|
151
145
|
};
|
|
152
146
|
}>> & {
|
|
153
147
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
154
|
-
"onUpdate:
|
|
155
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
148
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
156
149
|
}>>;
|
|
157
|
-
emit: (event: "update:modelValue" | "update:
|
|
150
|
+
emit: (event: "update:modelValue" | "update:modelValues", ...args: any[]) => void;
|
|
158
151
|
valueCp: import("vue").WritableComputedRef<any>;
|
|
159
|
-
|
|
160
|
-
isAccurateCp: import("vue").WritableComputedRef<boolean>;
|
|
152
|
+
valuesCp: import("vue").WritableComputedRef<any>;
|
|
161
153
|
isSelectMode: import("vue").ComputedRef<boolean>;
|
|
154
|
+
isSelectMultiple: import("vue").ComputedRef<boolean>;
|
|
162
155
|
biType: import("vue").ComputedRef<any>;
|
|
163
156
|
Date: import("vue").DefineComponent<{
|
|
164
157
|
componentCfg: {
|
|
@@ -421,7 +414,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
421
414
|
SELECTLABEL: string;
|
|
422
415
|
SELECTDYNAMIC: string;
|
|
423
416
|
};
|
|
424
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "update:
|
|
417
|
+
}, 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<{
|
|
425
418
|
paramCfg: {
|
|
426
419
|
type: ObjectConstructor;
|
|
427
420
|
default: null;
|
|
@@ -430,22 +423,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
430
423
|
type: (ArrayConstructor | NumberConstructor | StringConstructor)[];
|
|
431
424
|
default: null;
|
|
432
425
|
};
|
|
433
|
-
|
|
434
|
-
type:
|
|
435
|
-
default:
|
|
436
|
-
};
|
|
437
|
-
isAccurate: {
|
|
438
|
-
type: BooleanConstructor;
|
|
426
|
+
modelValues: {
|
|
427
|
+
type: ArrayConstructor;
|
|
428
|
+
default: () => never[];
|
|
439
429
|
};
|
|
440
430
|
}>> & {
|
|
441
431
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
442
|
-
"onUpdate:
|
|
443
|
-
"onUpdate:presetVal"?: ((...args: any[]) => any) | undefined;
|
|
432
|
+
"onUpdate:modelValues"?: ((...args: any[]) => any) | undefined;
|
|
444
433
|
}, {
|
|
445
434
|
modelValue: string | number | unknown[];
|
|
446
435
|
paramCfg: Record<string, any>;
|
|
447
|
-
|
|
448
|
-
isAccurate: boolean;
|
|
436
|
+
modelValues: unknown[];
|
|
449
437
|
}>;
|
|
450
438
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancelSaveAdd" | "saveAdd")[], "cancelSaveAdd" | "saveAdd", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
451
439
|
actionList_prop: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,useAttrs as
|
|
1
|
+
import{defineComponent as e,useAttrs as l,reactive as a,ref as i,provide as t,toRef as n,openBlock as o,createElementBlock as s,createVNode as d,unref as r,withCtx as c,createElementVNode as p,createCommentVNode as u,Fragment as f,renderList as m,normalizeClass as v,toDisplayString as y,createBlock as C,withDirectives as g,createTextVNode as h,vShow as b}from"vue";import{useMessage as k,NSpin as A,NInput as I,NIcon as L,NButton as _,NSelect as w,NTooltip as N}from"naive-ui";import{CloseOutline as x,AddOutline as S,AddCircleSharp as B}from"@vicons/ionicons5";import D from"./ValueCfg.vue.js";import{DataTypeEnums as U}from"../../types/enums.js";import{useDisplayCategory as E}from"../classify-filter/hooks/useDisplayCategory.js";import{useBiConditions as V}from"./hooks/useBiConditions.js";import{InjectionClassifyFilterList as j}from"../../constants/index.js";const O={class:"searchConditionByApi_wrapper"},F={class:"class-filter-content"},z={key:0,class:"item-name"},Q=p("span",{class:"label"},"筛选分类名称:",-1),R={key:1,class:"quickSearch-content"},q=p("span",{class:"label"},"父类名称:",-1),T=["onClick"],G=["onDblclick"],P={class:"s-content"},J={key:2,class:"item-name"},K=p("span",{class:"label"}," 过滤条件: ",-1),M=p("span",null,"添加",-1),H={class:"select-item-list"},W={class:"index-span"},X=["onClick"],Y={class:"filter-expression"},Z=p("span",null,"筛选器逻辑编辑,不设置默认为AND",-1),$=p("span",null,"例子 (1 AND 2) OR 3",-1);var ee=e({__name:"index",props:{actionList_prop:{type:Object,default:()=>({})},conditionList:{type:Array,default:()=>[]},tableId:{type:String,default:""},searchFieldList:{type:Array,default:()=>[]},showItemName:{type:Boolean,default:!0},hideAddBtn:{type:Boolean,default:!1}},emits:["saveAdd","cancelSaveAdd"],setup(e,{expose:ee,emit:le}){const ae=e,ie=k(),te={class:"classify-fieldkey-popover"},ne=["IN","BIG","LESS","BIGEQ","LESSEQ"],oe=["CL","NC","EQ","NEQ"],se=["EQ","BIG","LESS"],de=l(),re=a({className:"",displayCategory:"",filterConditions:[]}),ce=i(!1),pe=i(),ue=i(),fe=i(ae.actionList_prop.sqlExpression||"");t(j,n(re,"filterConditions"));const{State:me,isEnableAddDisplayCategory:ve,editDisplayCategory:ye,handleDisplayCategorySelect:Ce,handleDisplayCategoryRemove:ge,handleDisplayCategoryAdd:he,handlerBlur:be,initDisplayCategories:ke}=E(n(re,"displayCategory"),{conditionList:ae.conditionList},ie),{State:Ae,paramOptions:Ie,addFilterCondition:Le,delFilterCondition:_e,updateKey:we,updateCondition:Ne,getParamCfg:xe,initFilterConditions:Se,getRawFilterConditions:Be}=V(n(re,"filterConditions"),ae.searchFieldList,U.API);function De(e){return[...ne,...oe,...se].includes(e)}function Ue(){he((()=>{setTimeout((()=>{ue.value&&ue.value.focus()}),100)}))}function Ee(){re.className="",re.displayCategory="",re.filterConditions=[]}async function Ve(){var e;try{if(Ee(),ce.value=!0,ke(de.displayCategoryList,ae.actionList_prop.displayCategory||void 0),ae.actionList_prop){re.className=ae.actionList_prop.name,await Se(ae.tableId,null!=(e=ae.actionList_prop.conObj)?e:[]);re.filterConditions.length<1&&Ie.value&&Ie.value.length>0&&Le()}}finally{ce.value=!1}}return Ve(),ee({handleInitConditions:Ve,saveAdd:function(){new Promise((e=>{re.className||!ae.showItemName?0!==re.filterConditions.length?re.filterConditions.some((({fieldId:e,fieldType:l,value:a,values:i,con:t})=>!e||!t||De(t)&&!a&&!i.length))?ie.warning("请补充完整条件内容"):e(!0):ie.warning("请至少添加一个条件"):ie.warning("请输入分类名称")})).then((()=>{let e;var l;"edit"===ae.actionList_prop.from&&(l=ae.actionList_prop.sid,e=null==ae?void 0:ae.conditionList.find((e=>e.sid===l)));const a={displayCategory:re.displayCategory,name:re.className||"",conObj:Be(),sqlExpression:fe.value},i={id:e?e.sid:"",tableId:ae.tableId,setting:JSON.stringify(a)};le("saveAdd",i,!1)}))},cancelSaveAdd:function(){Ee(),le("cancelSaveAdd")},addAction:Le,checkActionList:function(){return re.filterConditions.every((e=>!e.field_key))}}),(l,a)=>(o(),s("div",O,[d(r(A),{show:ce.value},{default:c((()=>[p("div",F,[e.showItemName?(o(),s("div",z,[Q,d(r(I),{value:re.className,"onUpdate:value":a[0]||(a[0]=e=>re.className=e),placeholder:"请输入分类名称",style:{width:"250px"},maxlength:"10"},null,8,["value"])])):u("v-if",!0),e.showItemName?(o(),s("div",R,[q,(o(!0),s(f,null,m(r(me).displayCategories,((e,l)=>(o(),s("div",{class:"parent-name",key:l,onClick:l=>function(e){Ce(e)}(e)},[e.disabled?(o(),s("div",{key:0,class:v(["edit-tag",{"edit-tag-select":e.value===re.displayCategory&&e.disabled}]),onDblclick:l=>function(e){e.disabled=!1,setTimeout((()=>{pe.value.length>0&&pe.value[0].focus()}),100)}(e)},[p("div",P,y(e.value),1),d(r(L),{component:r(x),class:"anticon-close",size:"20",onClick:a=>r(ge)(l,e)},null,8,["component","onClick"])],42,G)):(o(),C(r(I),{key:1,ref_for:!0,ref_key:"parentInputRef",ref:pe,class:"parent-input",style:{width:"100px"},disabled:e.disabled,onBlur:()=>e.disabled=!0,value:e.value,"onUpdate:value":l=>e.value=l,maxlength:20},null,8,["disabled","onBlur","value","onUpdate:value"]))],8,T)))),128)),r(ve)?(o(),s(f,{key:0},[g(d(r(_),{class:"ant-btn",icon:"plus",dashed:"",onClick:Ue},{default:c((()=>[d(r(L),{component:r(S),size:"20"},null,8,["component"]),h(" "+y("添加父类"))])),_:1},512),[[b,!r(me).showAdd]]),g(d(r(I),{ref_key:"parentInputAddRef",ref:ue,class:"parent-input",value:r(me).addDisplayCategory,"onUpdate:value":a[1]||(a[1]=e=>r(me).addDisplayCategory=e),valueModifiers:{trim:!0},style:{width:"100px"},onBlur:r(be),maxlength:20},null,8,["value","onBlur"]),[[b,r(me).showAdd]])],64)):u("v-if",!0)])):u("v-if",!0),e.hideAddBtn?u("v-if",!0):(o(),s("div",J,[K,p("span",{class:"addAction",onClick:a[2]||(a[2]=(...e)=>r(Le)&&r(Le)(...e)),style:{cursor:"pointer"}},[d(r(L),{component:r(B),class:"blue",size:"18"},null,8,["component"]),M])])),p("ul",H,[(o(!0),s(f,null,m(re.filterConditions,((e,l)=>(o(),s("li",{key:l},[p("span",W,y(l+1),1),u(" 选择 field_key "),d(r(w),{class:"form-item",placeholder:"请选择",value:e.fieldId,"menu-props":te,to:"body",filterable:"",options:r(Ie),"onUpdate:value":e=>r(we)(l,e)},null,8,["value","options","onUpdate:value"]),u(" 选择 关系 "),e.fieldId?(o(),C(r(w),{key:0,class:"form-item",placeholder:"请选择",value:e.con,to:"body",filterable:"",options:e.biTypeOptions,"onUpdate:value":e=>r(Ne)(l,e)},null,8,["value","options","onUpdate:value"])):u("v-if",!0),u(" 自定义 "),e.fieldId&&e.con&&De(e.con)?(o(),C(D,{key:1,modelValue:e.value,"onUpdate:modelValue":l=>e.value=l,modelValues:e.values,"onUpdate:modelValues":l=>e.values=l,"param-cfg":r(xe)(e.fieldId)},null,8,["modelValue","onUpdate:modelValue","modelValues","onUpdate:modelValues","param-cfg"])):u("v-if",!0),d(r(N),{title:"删除",trigger:"hover"},{trigger:c((()=>[p("i",{onClick:e=>r(_e)(l),class:"iconfont-table-filter delete-item-icon icon-table-filter-menzhenyishengzhananniuqingchu"},null,8,X)])),default:c((()=>[h(" 删除 ")])),_:2},1024)])))),128))]),p("div",Y,[Z,$,d(r(I),{class:"textarea",value:fe.value,"onUpdate:value":a[3]||(a[3]=e=>fe.value=e),type:"textarea",placeholder:"请输入表达式"},null,8,["value"])])])])),_:1},8,["show"])]))}});export{ee as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e="@cnhis-design-vue/shared",i="3.1.54-beta.
|
|
1
|
+
var e="@cnhis-design-vue/shared",i="3.1.54-beta.24",s="index.ts",n={"naive-ui":"^2.30.0",vue:"^3.2.0"},a={"@vicons/ionicons5":"^0.12.0","lodash-es":"^4.17.21",moment:"^2.29.1","video.js":"^7.19.2","videojs-contrib-hls":"^5.15.0",viewerjs:"^1.10.5","xe-utils":"^3.5.4"},d={name:e,version:"3.1.54-beta.24",private:!0,main:"index.ts",peerDependencies:n,dependencies:a};export{d as default,a as dependencies,s as main,e as name,n as peerDependencies,i as version};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cnhis-design-vue",
|
|
3
|
-
"version": "3.1.54-beta.
|
|
3
|
+
"version": "3.1.54-beta.24",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "./es/components/index.js",
|
|
6
6
|
"main": "./es/components/index.js",
|
|
@@ -64,5 +64,5 @@
|
|
|
64
64
|
"iOS 7",
|
|
65
65
|
"last 3 iOS versions"
|
|
66
66
|
],
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "d83fe75e2dcc428b02edf86e2b91ab7e896b889b"
|
|
68
68
|
}
|