@giteeteam/apps-team-components 1.12.2 → 1.12.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const readViewWrapper = "\n display: -webkit-box;\n align-items: center;\n justify-content: center;\n min-width: var(--status-cell-min-width, 62px);\n height: 22px;\n padding: 0 8px;\n font-size: 12px;\n font-weight: var(--status-cell-font-weight, 600);\n line-height: 22px;\n text-align: center;\n border-radius: 4px;\n";
|
|
1
|
+
export declare const readViewWrapper = "\n display: -webkit-box;\n width: fit-content;\n max-width: 100%;\n align-items: center;\n justify-content: center;\n min-width: var(--status-cell-min-width, 62px);\n height: 22px;\n padding: 0 8px;\n font-size: 12px;\n font-weight: var(--status-cell-font-weight, 600);\n line-height: 22px;\n text-align: center;\n border-radius: 4px;\n";
|
|
2
2
|
export declare const workflowContentStyle = "\n max-width: 200px;\n text-align: left;\n";
|
|
3
3
|
export declare const statePopoverStyle: (antPrefix: string) => string;
|
|
4
4
|
export declare const flowNextStyle = "\n max-height: 260px;\n padding-top: 10px;\n overflow: auto;\n margin: -12px;\n";
|
|
@@ -4,5 +4,5 @@ interface ItemProps extends Item {
|
|
|
4
4
|
values: any;
|
|
5
5
|
dataQuotes?: Record<string, unknown>;
|
|
6
6
|
}
|
|
7
|
-
export declare const useDataQuoteStore: (dataSources: CustomArray<ItemProps>, getOptionsByValues
|
|
7
|
+
export declare const useDataQuoteStore: (dataSources: CustomArray<ItemProps>, getOptionsByValues?: (values: string[], expression?: string) => Promise<any[]>, isDataQuoteFieldKey?: (key: string, item: ItemProps) => boolean) => void;
|
|
8
8
|
export {};
|
|
@@ -4,7 +4,7 @@ import { isEmpty, clone } from 'lodash-es';
|
|
|
4
4
|
import { REG_EN_NUMBER } from '../regExp.js';
|
|
5
5
|
import { dataQuoteState, currentDeleteState } from '../store/dataQuoteStore.js';
|
|
6
6
|
|
|
7
|
-
const useDataQuoteStore = (dataSources, getOptionsByValues) => {
|
|
7
|
+
const useDataQuoteStore = (dataSources, getOptionsByValues, isDataQuoteFieldKey) => {
|
|
8
8
|
const [dataQuoteList, setDataQuoteList] = useAtom(dataQuoteState);
|
|
9
9
|
const [currentDeleteItem, setCurrentDeleteItem] = useAtom(currentDeleteState);
|
|
10
10
|
const dataSourcesDep = useMemo(() => {
|
|
@@ -27,14 +27,18 @@ const useDataQuoteStore = (dataSources, getOptionsByValues) => {
|
|
|
27
27
|
: dataQuotes.push(dataQuoteItems);
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
if (getOptionsByValues && isDataQuoteFieldKey) {
|
|
31
|
+
Object.keys(ele.values).forEach(key => {
|
|
32
|
+
if (!isDataQuoteFieldKey(key, ele))
|
|
33
|
+
return;
|
|
34
|
+
const valuesItem = ele.values[key];
|
|
35
|
+
if (Array.isArray(valuesItem) && valuesItem.length) {
|
|
36
|
+
if (typeof valuesItem[0] === 'string') {
|
|
37
|
+
valuesArr = [...new Set([...valuesArr, ...valuesItem])];
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
40
|
+
});
|
|
41
|
+
}
|
|
38
42
|
});
|
|
39
43
|
}
|
|
40
44
|
if (currentDeleteItem && dataQuoteList.length) {
|