fix: display admin and inactive when view

This commit is contained in:
jialin
2025-11-12 16:11:17 +08:00
parent 653ada5f0f
commit 2045bfaf78
7 changed files with 63 additions and 24 deletions
+9 -1
View File
@@ -101,7 +101,12 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
onValuesChange,
onOk
} = props;
const { getScrollElementScrollableHeight } = useWrapperContext();
const {
getScrollElementScrollableHeight,
getScrollElement,
osInstance,
scrollEventElement
} = useWrapperContext();
const { backendOptions, getBackendOptions } = useQueryBackends();
const { getGPUOptionList, gpuOptions, workerLabelOptions } =
useGenerateGPUOptions();
@@ -111,6 +116,8 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
const scheduleType = Form.useWatch('scheduleType', form);
const [target, setTarget] = React.useState<string>(TABKeysMap.BASIC);
console.log('scroller instance in form:', osInstance, scrollEventElement);
const segmentOptions = [
{
value: TABKeysMap.BASIC,
@@ -162,6 +169,7 @@ const DataForm: React.FC<DataFormProps> = forwardRef((props, ref) => {
setActiveKey,
segmentOptions,
segmentedTop: segmentedTop,
getScrollElement,
getScrollElementScrollableHeight: getScrollElementScrollableHeight
});