@dao-style/biz 0.6.0 → 0.7.0
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/cjs/components/gpu/style/assign-gpu-devices-list.js +1 -0
- package/dist/cjs/components/gpu/style/gpu-form.js +1 -0
- package/dist/components/form-block/FormBlock.d.ts +27 -1
- package/dist/components/form-block/props.d.ts +4 -0
- package/dist/components/form-block/props.js +4 -0
- package/dist/components/form-block/props.mjs +4 -0
- package/dist/components/form-block/src/FormBlock.vue.d.ts +11 -0
- package/dist/components/form-block/src/FormBlock.vue.js +4 -4
- package/dist/components/form-block/src/FormBlock.vue.mjs +4 -4
- package/dist/components/form-block/src/FormBlock.vue2.js +12 -1
- package/dist/components/form-block/src/FormBlock.vue2.mjs +12 -1
- package/dist/components/gpu/props.d.ts +121 -3
- package/dist/components/gpu/props.js +82 -9
- package/dist/components/gpu/props.mjs +82 -9
- package/dist/components/gpu/src/GpuForm.vue.d.ts +283 -50
- package/dist/components/gpu/src/GpuForm.vue.js +25 -24
- package/dist/components/gpu/src/GpuForm.vue.mjs +26 -25
- package/dist/components/gpu/src/GpuForm.vue2.js +115 -218
- package/dist/components/gpu/src/GpuForm.vue2.mjs +116 -219
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.d.ts +77 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.js +40 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue.mjs +41 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue2.js +191 -0
- package/dist/components/gpu/src/components/AssignGpuDevicesList.vue2.mjs +192 -0
- package/dist/components/gpu/src/components/GpuAdvancedForm.vue.d.ts +180 -0
- package/dist/components/gpu/src/{GpuAdvancedForm.vue.js → components/GpuAdvancedForm.vue.js} +92 -37
- package/dist/components/gpu/src/{GpuAdvancedForm.vue.mjs → components/GpuAdvancedForm.vue.mjs} +93 -38
- package/dist/components/gpu/src/components/GpuAdvancedForm.vue2.js +169 -0
- package/dist/components/gpu/src/components/GpuAdvancedForm.vue2.mjs +153 -0
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue.d.ts → components/GpuFormDynamicItem.vue.d.ts} +4 -4
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue.js → components/GpuFormDynamicItem.vue.js} +1 -1
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue.mjs → components/GpuFormDynamicItem.vue.mjs} +1 -1
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue2.js → components/GpuFormDynamicItem.vue2.js} +1 -1
- package/dist/components/gpu/src/{GpuFormDynamicItem.vue2.mjs → components/GpuFormDynamicItem.vue2.mjs} +1 -1
- package/dist/components/gpu/src/components/GpuFormItem.vue.d.ts +310 -0
- package/dist/components/gpu/src/{GpuFormItem.vue.js → components/GpuFormItem.vue.js} +22 -26
- package/dist/components/gpu/src/{GpuFormItem.vue.mjs → components/GpuFormItem.vue.mjs} +23 -27
- package/dist/components/gpu/src/components/GpuFormItem.vue2.js +61 -0
- package/dist/components/gpu/src/components/GpuFormItem.vue2.mjs +45 -0
- package/dist/components/gpu/src/{GpuResources.vue.d.ts → components/GpuResources.vue.d.ts} +38 -18
- package/dist/components/gpu/src/components/GpuResources.vue.js +153 -0
- package/dist/components/gpu/src/components/GpuResources.vue.mjs +154 -0
- package/dist/components/gpu/src/components/GpuResources.vue2.js +278 -0
- package/dist/components/gpu/src/components/GpuResources.vue2.mjs +262 -0
- package/dist/components/gpu/src/gpuForm.constants.d.ts +3 -0
- package/dist/components/gpu/src/gpuForm.constants.js +10 -0
- package/dist/components/gpu/src/gpuForm.constants.mjs +10 -0
- package/dist/components/gpu/src/gpuForm.internal-types.d.ts +49 -0
- package/dist/components/gpu/src/gpuForm.mapper.d.ts +16 -0
- package/dist/components/gpu/src/gpuForm.mapper.js +199 -0
- package/dist/components/gpu/src/gpuForm.mapper.mjs +199 -0
- package/dist/components/gpu/src/gpuFormItem.mapper.d.ts +38 -0
- package/dist/components/gpu/src/gpuFormItem.mapper.js +153 -0
- package/dist/components/gpu/src/gpuFormItem.mapper.mjs +153 -0
- package/dist/components/gpu/src/useGPUOptions.d.ts +2 -2
- package/dist/components/gpu/src/useGPUOptions.js +15 -20
- package/dist/components/gpu/src/useGPUOptions.mjs +16 -21
- package/dist/components/gpu/src/useGpuFormItemState.d.ts +42 -0
- package/dist/components/gpu/src/useGpuFormItemState.js +178 -0
- package/dist/components/gpu/src/useGpuFormItemState.mjs +178 -0
- package/dist/components/gpu/src/useGpuFormSideState.d.ts +52 -0
- package/dist/components/gpu/src/useGpuFormSideState.js +71 -0
- package/dist/components/gpu/src/useGpuFormSideState.mjs +71 -0
- package/dist/components/gpu/src/useGpuFormState.d.ts +560 -0
- package/dist/components/gpu/src/useGpuFormState.js +52 -0
- package/dist/components/gpu/src/useGpuFormState.mjs +52 -0
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.d.ts +5 -1
- package/dist/components/gpu/style/assign-gpu-devices-list.d.ts +1 -0
- package/dist/components/gpu/style/assign-gpu-devices-list.scss.js +3 -0
- package/dist/components/gpu/style/assign-gpu-devices-list.scss.mjs +4 -0
- package/dist/components/gpu/style/gpu-form.d.ts +1 -0
- package/dist/components/gpu/types.d.ts +6 -0
- package/dist/components/gpu/types.js +2 -0
- package/dist/components/gpu/types.mjs +2 -0
- package/dist/components/gpu/utils.d.ts +4 -0
- package/dist/components/gpu/utils.js +14 -0
- package/dist/components/gpu/utils.mjs +14 -0
- package/dist/components/instance-cluster/src/InstanceCluster.vue.d.ts +1 -1
- package/dist/components/instance-namespace/src/InstanceNamespace.vue.d.ts +1 -1
- package/dist/components/instance-storage-class/src/InstanceStorageClass.vue.d.ts +1 -1
- package/dist/components/network-config/src/NetworkConfig.vue.d.ts +1 -1
- package/dist/components/network-config/src/NetworkConfig.vue.js +13 -6
- package/dist/components/network-config/src/NetworkConfig.vue.mjs +14 -7
- package/dist/dialogs/create-network-config-dialog/src/CreateNetworkConfigDialog.vue.d.ts +1 -1
- package/dist/es/components/gpu/style/assign-gpu-devices-list.mjs +1 -0
- package/dist/es/components/gpu/style/gpu-form.mjs +1 -0
- package/dist/forms/import-parameter-template/props.d.ts +8 -8
- package/dist/forms/import-parameter-template/src/ImportParameterTemplate.vue.d.ts +24 -24
- package/dist/group-mapping.json +1 -1
- package/dist/index.js +34 -23
- package/dist/index.mjs +15 -4
- package/dist/locales/en-US/components/Gpu.json.js +36 -9
- package/dist/locales/en-US/components/Gpu.json.mjs +37 -10
- package/dist/locales/en-US/index.js +2 -0
- package/dist/locales/en-US/index.mjs +2 -0
- package/dist/locales/en-US/uses/UseCancelFormDialog.json.js +11 -0
- package/dist/locales/en-US/uses/UseCancelFormDialog.json.mjs +11 -0
- package/dist/locales/ja/components/Gpu.json.js +36 -9
- package/dist/locales/ja/components/Gpu.json.mjs +37 -10
- package/dist/locales/ja/components/InstancePassword.json.js +1 -1
- package/dist/locales/ja/components/InstancePassword.json.mjs +1 -1
- package/dist/locales/ja/components/MatchExpressionsEditor.json.js +1 -1
- package/dist/locales/ja/components/MatchExpressionsEditor.json.mjs +1 -1
- package/dist/locales/ja/components/NetworkConfig.json.js +1 -1
- package/dist/locales/ja/components/NetworkConfig.json.mjs +1 -1
- package/dist/locales/ja/index.js +2 -0
- package/dist/locales/ja/index.mjs +2 -0
- package/dist/locales/ja/uses/UseCancelFormDialog.json.js +11 -0
- package/dist/locales/ja/uses/UseCancelFormDialog.json.mjs +11 -0
- package/dist/locales/ja/workloads/DnsConfig.json.js +1 -1
- package/dist/locales/ja/workloads/DnsConfig.json.mjs +1 -1
- package/dist/locales/ja/workloads/workload-advanced/NetworkConfig.json.js +1 -1
- package/dist/locales/ja/workloads/workload-advanced/NetworkConfig.json.mjs +1 -1
- package/dist/locales/zh-CN/components/Gpu.json.js +36 -9
- package/dist/locales/zh-CN/components/Gpu.json.mjs +37 -10
- package/dist/locales/zh-CN/index.js +2 -0
- package/dist/locales/zh-CN/index.mjs +2 -0
- package/dist/locales/zh-CN/uses/UseCancelFormDialog.json.js +11 -0
- package/dist/locales/zh-CN/uses/UseCancelFormDialog.json.mjs +11 -0
- package/dist/style.css +692 -664
- package/dist/styles/components/gpu/assign-gpu-devices-list.css +10 -0
- package/dist/styles/components/gpu/gpu-form-item.css +16 -0
- package/dist/styles/components/gpu/gpu-form.css +4 -0
- package/dist/styles/components/network-config/network-config.css +3 -0
- package/dist/styles/components/resource-config/resource-config.css +0 -8
- package/dist/styles/styles/common.css +4 -0
- package/dist/uses/index.d.ts +1 -0
- package/dist/uses/useCancelFormDialog/index.d.ts +11 -0
- package/dist/uses/useCancelFormDialog/index.js +40 -0
- package/dist/uses/useCancelFormDialog/index.mjs +40 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.d.ts +8 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.js +25 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue.mjs +26 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue2.js +3 -0
- package/dist/uses/useCancelFormDialog/src/CancelFormDialog.vue2.mjs +4 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/injectWithSelf.d.ts +6 -0
- package/dist/utils/injectWithSelf.js +8 -0
- package/dist/utils/injectWithSelf.mjs +8 -0
- package/dist/utils/multiRowEditorValidate.d.ts +5 -5
- package/dist/utils/useResetFieldValue.d.ts +13 -0
- package/dist/utils/useResetFieldValue.js +28 -0
- package/dist/utils/useResetFieldValue.mjs +28 -0
- package/dist/utils/useSetFieldValue.d.ts +6 -0
- package/dist/utils/useSetFieldValue.js +2 -5
- package/dist/utils/useSetFieldValue.mjs +2 -5
- package/dist/workloads/container-basic-info/props.d.ts +13 -0
- package/dist/workloads/container-basic-info/props.js +4 -0
- package/dist/workloads/container-basic-info/props.mjs +4 -0
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.d.ts +10 -0
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.js +54 -29
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue.mjs +54 -29
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.js +18 -8
- package/dist/workloads/container-basic-info/src/ContainerBasicInfo.vue2.mjs +19 -9
- package/dist/workloads/container-image/src/dialogs/SelectImageDialog.vue.d.ts +1 -1
- package/dist/workloads/containers/demo/data.d.ts +8 -1
- package/dist/workloads/containers/src/ContainerItem.vue.d.ts +23 -0
- package/dist/workloads/containers/src/Containers.vue.d.ts +4 -0
- package/dist/workloads/containers/src/Containers.vue2.js +18 -1
- package/dist/workloads/containers/src/Containers.vue2.mjs +19 -2
- package/dist/workloads/health-check/props.d.ts +4 -0
- package/dist/workloads/health-check/props.js +4 -0
- package/dist/workloads/health-check/props.mjs +4 -0
- package/dist/workloads/health-check/src/HealthCheck.vue.d.ts +9 -0
- package/dist/workloads/health-check/src/HealthCheck.vue.js +6 -6
- package/dist/workloads/health-check/src/HealthCheck.vue.mjs +6 -6
- package/dist/workloads/health-check/src/HealthCheckHandler.vue.js +3 -1
- package/dist/workloads/health-check/src/HealthCheckHandler.vue.mjs +3 -1
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.js +1 -1
- package/dist/workloads/http-get-action/src/HttpGetAction.vue.mjs +1 -1
- package/dist/workloads/workload-annotations/props.d.ts +1 -0
- package/dist/workloads/workload-annotations/props.js +1 -0
- package/dist/workloads/workload-annotations/props.mjs +2 -1
- package/package.json +12 -13
- package/dist/components/gpu/src/GpuAdvancedForm.vue.d.ts +0 -131
- package/dist/components/gpu/src/GpuAdvancedForm.vue2.js +0 -92
- package/dist/components/gpu/src/GpuAdvancedForm.vue2.mjs +0 -76
- package/dist/components/gpu/src/GpuFormItem.vue.d.ts +0 -232
- package/dist/components/gpu/src/GpuFormItem.vue2.js +0 -235
- package/dist/components/gpu/src/GpuFormItem.vue2.mjs +0 -219
- package/dist/components/gpu/src/GpuResources.vue.js +0 -125
- package/dist/components/gpu/src/GpuResources.vue.mjs +0 -126
- package/dist/components/gpu/src/GpuResources.vue2.js +0 -197
- package/dist/components/gpu/src/GpuResources.vue2.mjs +0 -181
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.js +0 -19
- package/dist/components/gpu/src/validations/nvidiaVgpuMemoryDecimal.mjs +0 -20
|
@@ -42,4 +42,20 @@
|
|
|
42
42
|
.gpu-quotas-item__iluvatar-memory-input.dao-input-wrapper .dao-input-append {
|
|
43
43
|
flex: none;
|
|
44
44
|
width: 42px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.gpu-quotas-item__vgpu-memory-input {
|
|
48
|
+
width: 144px;
|
|
49
|
+
}
|
|
50
|
+
.gpu-quotas-item__vgpu-memory-input.dao-input-wrapper .dao-input-inner {
|
|
51
|
+
flex: 1 1 auto;
|
|
52
|
+
width: auto;
|
|
53
|
+
min-width: 0;
|
|
54
|
+
}
|
|
55
|
+
.gpu-quotas-item__vgpu-memory-input.dao-input-wrapper .dao-input-append {
|
|
56
|
+
flex: none;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.gpu-quotas-item__vgpu-memory-unit.dao-select {
|
|
60
|
+
width: 60px;
|
|
45
61
|
}
|
|
@@ -31,18 +31,10 @@
|
|
|
31
31
|
width: 80px;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
.dao-resource-config .dao-input-prepend {
|
|
35
|
-
width: 55px;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
34
|
.dao-resource-config .dao-input-append {
|
|
39
35
|
width: 65px;
|
|
40
36
|
}
|
|
41
37
|
|
|
42
38
|
.dao-resource-config .dao-input-append .dao-input-memory__unit {
|
|
43
39
|
vertical-align: top;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.dao-resource-config .request-en .dao-input-prepend {
|
|
47
|
-
width: 80px;
|
|
48
40
|
}
|
package/dist/uses/index.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type OnBeforeLeave = () => void | Promise<void>;
|
|
2
|
+
/**
|
|
3
|
+
* 在表单页面离开前提示用户,避免未保存的内容丢失。
|
|
4
|
+
*
|
|
5
|
+
* 传入的回调会在路由真正跳转前依次执行。若组件内还注册了
|
|
6
|
+
* `onBeforeRouteLeave`,请在调用本方法之后再注册,以保证确认弹窗先被处理。
|
|
7
|
+
*/
|
|
8
|
+
export declare function useCancelFormDialog(...onBeforeLeave: OnBeforeLeave[]): {
|
|
9
|
+
openCancelDialog: import("vue").Ref<boolean>;
|
|
10
|
+
};
|
|
11
|
+
export default useCancelFormDialog;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const extend = require("@dao-style/extend");
|
|
4
|
+
require("@dao-style/extend/dist/es/uses/useDialogWrapper/style/dialog-wrapper");
|
|
5
|
+
const vue = require("vue");
|
|
6
|
+
const vueRouter = require("vue-router");
|
|
7
|
+
const CancelFormDialog_vue_vue_type_script_setup_true_lang = require("./src/CancelFormDialog.vue.js");
|
|
8
|
+
function useCancelFormDialog(...onBeforeLeave) {
|
|
9
|
+
const openCancelDialog = vue.ref(true);
|
|
10
|
+
const cancelDialog = extend.createDialog(CancelFormDialog_vue_vue_type_script_setup_true_lang);
|
|
11
|
+
vueRouter.onBeforeRouteLeave(async (_to, _from, next) => {
|
|
12
|
+
const handleNext = async () => {
|
|
13
|
+
try {
|
|
14
|
+
await onBeforeLeave.reduce(
|
|
15
|
+
(previous, fn) => previous.then(fn),
|
|
16
|
+
Promise.resolve()
|
|
17
|
+
);
|
|
18
|
+
next();
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error(error);
|
|
21
|
+
next(false);
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
if (openCancelDialog.value) {
|
|
25
|
+
try {
|
|
26
|
+
await cancelDialog.show({});
|
|
27
|
+
await handleNext();
|
|
28
|
+
} catch {
|
|
29
|
+
next(false);
|
|
30
|
+
}
|
|
31
|
+
} else {
|
|
32
|
+
await handleNext();
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return {
|
|
36
|
+
openCancelDialog
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.default = useCancelFormDialog;
|
|
40
|
+
exports.useCancelFormDialog = useCancelFormDialog;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { createDialog } from "@dao-style/extend";
|
|
2
|
+
import "@dao-style/extend/dist/es/uses/useDialogWrapper/style/dialog-wrapper";
|
|
3
|
+
import { ref } from "vue";
|
|
4
|
+
import { onBeforeRouteLeave } from "vue-router";
|
|
5
|
+
import _sfc_main from "./src/CancelFormDialog.vue.mjs";
|
|
6
|
+
function useCancelFormDialog(...onBeforeLeave) {
|
|
7
|
+
const openCancelDialog = ref(true);
|
|
8
|
+
const cancelDialog = createDialog(_sfc_main);
|
|
9
|
+
onBeforeRouteLeave(async (_to, _from, next) => {
|
|
10
|
+
const handleNext = async () => {
|
|
11
|
+
try {
|
|
12
|
+
await onBeforeLeave.reduce(
|
|
13
|
+
(previous, fn) => previous.then(fn),
|
|
14
|
+
Promise.resolve()
|
|
15
|
+
);
|
|
16
|
+
next();
|
|
17
|
+
} catch (error) {
|
|
18
|
+
console.error(error);
|
|
19
|
+
next(false);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
if (openCancelDialog.value) {
|
|
23
|
+
try {
|
|
24
|
+
await cancelDialog.show({});
|
|
25
|
+
await handleNext();
|
|
26
|
+
} catch {
|
|
27
|
+
next(false);
|
|
28
|
+
}
|
|
29
|
+
} else {
|
|
30
|
+
await handleNext();
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
openCancelDialog
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export {
|
|
38
|
+
useCancelFormDialog as default,
|
|
39
|
+
useCancelFormDialog
|
|
40
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
2
|
+
resolve: () => void;
|
|
3
|
+
reject: () => void;
|
|
4
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
5
|
+
onReject?: (() => any) | undefined;
|
|
6
|
+
onResolve?: (() => any) | undefined;
|
|
7
|
+
}, {}>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const vue = require("vue");
|
|
3
|
+
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
4
|
+
__name: "CancelFormDialog",
|
|
5
|
+
emits: ["resolve", "reject"],
|
|
6
|
+
setup(__props, { emit }) {
|
|
7
|
+
return (_ctx, _cache) => {
|
|
8
|
+
const _component_dao_dialog = vue.resolveComponent("dao-dialog");
|
|
9
|
+
return vue.openBlock(), vue.createBlock(_component_dao_dialog, {
|
|
10
|
+
"model-value": "",
|
|
11
|
+
header: _ctx.$t("biz.uses.UseCancelFormDialog.title"),
|
|
12
|
+
size: "sm",
|
|
13
|
+
"dialog-type": "warning",
|
|
14
|
+
onCancel: _cache[0] || (_cache[0] = ($event) => emit("reject")),
|
|
15
|
+
onConfirm: _cache[1] || (_cache[1] = ($event) => emit("resolve"))
|
|
16
|
+
}, {
|
|
17
|
+
default: vue.withCtx(() => [
|
|
18
|
+
vue.createElementVNode("span", null, vue.toDisplayString(_ctx.$t("biz.uses.UseCancelFormDialog.content")), 1)
|
|
19
|
+
]),
|
|
20
|
+
_: 1
|
|
21
|
+
}, 8, ["header"]);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
module.exports = _sfc_main;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, toDisplayString } from "vue";
|
|
2
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
|
+
__name: "CancelFormDialog",
|
|
4
|
+
emits: ["resolve", "reject"],
|
|
5
|
+
setup(__props, { emit }) {
|
|
6
|
+
return (_ctx, _cache) => {
|
|
7
|
+
const _component_dao_dialog = resolveComponent("dao-dialog");
|
|
8
|
+
return openBlock(), createBlock(_component_dao_dialog, {
|
|
9
|
+
"model-value": "",
|
|
10
|
+
header: _ctx.$t("biz.uses.UseCancelFormDialog.title"),
|
|
11
|
+
size: "sm",
|
|
12
|
+
"dialog-type": "warning",
|
|
13
|
+
onCancel: _cache[0] || (_cache[0] = ($event) => emit("reject")),
|
|
14
|
+
onConfirm: _cache[1] || (_cache[1] = ($event) => emit("resolve"))
|
|
15
|
+
}, {
|
|
16
|
+
default: withCtx(() => [
|
|
17
|
+
createElementVNode("span", null, toDisplayString(_ctx.$t("biz.uses.UseCancelFormDialog.content")), 1)
|
|
18
|
+
]),
|
|
19
|
+
_: 1
|
|
20
|
+
}, 8, ["header"]);
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
export {
|
|
25
|
+
_sfc_main as default
|
|
26
|
+
};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
function injectWithSelf(symbol, def = void 0) {
|
|
5
|
+
const vm = vue.getCurrentInstance();
|
|
6
|
+
return (vm == null ? void 0 : vm.provides[symbol]) || vue.inject(symbol, def);
|
|
7
|
+
}
|
|
8
|
+
exports.injectWithSelf = injectWithSelf;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { MultiRowEditorColumn, MultiRowEditorRow } from '@dao-style/extend';
|
|
2
2
|
type I18nT = (key: string, options?: Record<string, unknown>) => string;
|
|
3
3
|
/**
|
|
4
|
-
* 校验非空
|
|
5
|
-
* @param val
|
|
6
|
-
* @param row
|
|
7
|
-
* @param column
|
|
8
|
-
*/
|
|
4
|
+
* 校验非空
|
|
5
|
+
* @param val
|
|
6
|
+
* @param row
|
|
7
|
+
* @param column
|
|
8
|
+
*/
|
|
9
9
|
export declare const checkNotEmpty: (t: I18nT, val?: unknown, _?: MultiRowEditorRow, column?: MultiRowEditorColumn) => {
|
|
10
10
|
valid: boolean;
|
|
11
11
|
message: string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 与 useSetFieldValue 配套的「重置」版本。
|
|
4
|
+
*
|
|
5
|
+
* useSetFieldValue 只是写值,会触发字段的校验;当把值清空(例如设为空对象/undefined)时
|
|
6
|
+
* 往往会立刻冒出验证报错。useResetFieldValue 走 vee-validate 的 field.resetField:
|
|
7
|
+
* 在写值的同时清空 errors、把 touched 置为 false,并标记该字段为「未校验」,
|
|
8
|
+
* 因此重置为空值时不会触发验证报错。
|
|
9
|
+
*
|
|
10
|
+
* @param path 字段路径;不传则使用最近的 FieldContext。
|
|
11
|
+
* @returns resetFieldValue(value?) —— 传 value 则重置为该值,不传(或 undefined)则重置回字段初始值。
|
|
12
|
+
*/
|
|
13
|
+
export declare function useResetFieldValue<TValue = unknown>(path?: string | Ref<string>): (value?: TValue) => void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const veeValidate = require("vee-validate");
|
|
4
|
+
const vue = require("vue");
|
|
5
|
+
const injectWithSelf = require("./injectWithSelf.js");
|
|
6
|
+
function useResetFieldValue(path) {
|
|
7
|
+
const form = injectWithSelf.injectWithSelf(veeValidate.FormContextKey);
|
|
8
|
+
const field = path ? void 0 : vue.inject(veeValidate.FieldContextKey);
|
|
9
|
+
return function resetFieldValue(value) {
|
|
10
|
+
var _a, _b;
|
|
11
|
+
const state = value !== void 0 ? { value, touched: false, errors: [] } : { touched: false, errors: [] };
|
|
12
|
+
if (path && form) {
|
|
13
|
+
const name = vue.unref(path);
|
|
14
|
+
const fieldOrGroup = (_b = (_a = form.fieldsByPath) == null ? void 0 : _a.value) == null ? void 0 : _b[name];
|
|
15
|
+
if (fieldOrGroup) {
|
|
16
|
+
const fields = Array.isArray(fieldOrGroup) ? fieldOrGroup : [fieldOrGroup];
|
|
17
|
+
fields.forEach((f) => f == null ? void 0 : f.resetField(state));
|
|
18
|
+
} else {
|
|
19
|
+
form.setFieldValue(name, value);
|
|
20
|
+
}
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
if (field) {
|
|
24
|
+
field.resetField(state);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
exports.useResetFieldValue = useResetFieldValue;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { FieldContextKey, FormContextKey } from "vee-validate";
|
|
2
|
+
import { inject, unref } from "vue";
|
|
3
|
+
import { injectWithSelf } from "./injectWithSelf.mjs";
|
|
4
|
+
function useResetFieldValue(path) {
|
|
5
|
+
const form = injectWithSelf(FormContextKey);
|
|
6
|
+
const field = path ? void 0 : inject(FieldContextKey);
|
|
7
|
+
return function resetFieldValue(value) {
|
|
8
|
+
var _a, _b;
|
|
9
|
+
const state = value !== void 0 ? { value, touched: false, errors: [] } : { touched: false, errors: [] };
|
|
10
|
+
if (path && form) {
|
|
11
|
+
const name = unref(path);
|
|
12
|
+
const fieldOrGroup = (_b = (_a = form.fieldsByPath) == null ? void 0 : _a.value) == null ? void 0 : _b[name];
|
|
13
|
+
if (fieldOrGroup) {
|
|
14
|
+
const fields = Array.isArray(fieldOrGroup) ? fieldOrGroup : [fieldOrGroup];
|
|
15
|
+
fields.forEach((f) => f == null ? void 0 : f.resetField(state));
|
|
16
|
+
} else {
|
|
17
|
+
form.setFieldValue(name, value);
|
|
18
|
+
}
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (field) {
|
|
22
|
+
field.resetField(state);
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
useResetFieldValue
|
|
28
|
+
};
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 在表单外部(或字段组件内部)写入某个字段的值,**会触发该字段的校验**。
|
|
4
|
+
*
|
|
5
|
+
* @param path 字段路径;不传则使用最近的 FieldContext。
|
|
6
|
+
* @returns setFieldValue(value) —— 把该字段写为 value。
|
|
7
|
+
*/
|
|
2
8
|
export declare function useSetFieldValue<TValue = unknown>(path?: string | Ref<string>): (value: TValue) => void;
|
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const veeValidate = require("vee-validate");
|
|
4
4
|
const vue = require("vue");
|
|
5
|
-
|
|
6
|
-
const vm = vue.getCurrentInstance();
|
|
7
|
-
return (vm == null ? void 0 : vm.provides[symbol]) || vue.inject(symbol, def);
|
|
8
|
-
}
|
|
5
|
+
const injectWithSelf = require("./injectWithSelf.js");
|
|
9
6
|
function useSetFieldValue(path) {
|
|
10
|
-
const form = injectWithSelf(veeValidate.FormContextKey);
|
|
7
|
+
const form = injectWithSelf.injectWithSelf(veeValidate.FormContextKey);
|
|
11
8
|
const field = path ? void 0 : vue.inject(veeValidate.FieldContextKey);
|
|
12
9
|
return function setFieldValue(value) {
|
|
13
10
|
if (path && form) {
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { FieldContextKey, FormContextKey } from "vee-validate";
|
|
2
|
-
import { inject, unref
|
|
3
|
-
|
|
4
|
-
const vm = getCurrentInstance();
|
|
5
|
-
return (vm == null ? void 0 : vm.provides[symbol]) || inject(symbol, def);
|
|
6
|
-
}
|
|
2
|
+
import { inject, unref } from "vue";
|
|
3
|
+
import { injectWithSelf } from "./injectWithSelf.mjs";
|
|
7
4
|
function useSetFieldValue(path) {
|
|
8
5
|
const form = injectWithSelf(FormContextKey);
|
|
9
6
|
const field = path ? void 0 : inject(FieldContextKey);
|
|
@@ -11,9 +11,18 @@ export declare const containerBasicDefaultFields: {
|
|
|
11
11
|
export type ContainerBasicFields = Partial<typeof containerBasicDefaultFields>;
|
|
12
12
|
export interface BasicInfoExtraBinding {
|
|
13
13
|
nvidiaVgpuModel?: WritableComputedRef<string | undefined>;
|
|
14
|
+
nvidiaVgpuDevices?: WritableComputedRef<string[] | undefined>;
|
|
14
15
|
nvidiaVgpuGpuSchedule?: WritableComputedRef<VgpuSchedulePolicy | undefined>;
|
|
15
16
|
nvidiaVgpuNodeSchedule?: WritableComputedRef<VgpuSchedulePolicy | undefined>;
|
|
16
17
|
}
|
|
18
|
+
export interface AssignGpuConfig {
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
message?: string;
|
|
21
|
+
action?: {
|
|
22
|
+
label: string;
|
|
23
|
+
href: string;
|
|
24
|
+
};
|
|
25
|
+
}
|
|
17
26
|
export declare const containerBasicInfoProps: {
|
|
18
27
|
fields: {
|
|
19
28
|
type: PropType<Partial<{
|
|
@@ -43,6 +52,10 @@ export declare const containerBasicInfoProps: {
|
|
|
43
52
|
type: PropType<GpuFormProps>;
|
|
44
53
|
default: undefined;
|
|
45
54
|
};
|
|
55
|
+
assignGpuConfig: {
|
|
56
|
+
type: PropType<AssignGpuConfig>;
|
|
57
|
+
default: undefined;
|
|
58
|
+
};
|
|
46
59
|
disableNetworkParameterConfig: {
|
|
47
60
|
type: BooleanConstructor;
|
|
48
61
|
default: undefined;
|
|
@@ -31,6 +31,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
31
31
|
type: import("vue").PropType<import("../../../components").GpuFormProps>;
|
|
32
32
|
default: undefined;
|
|
33
33
|
};
|
|
34
|
+
assignGpuConfig: {
|
|
35
|
+
type: import("vue").PropType<import("../props").AssignGpuConfig>;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
34
38
|
disableNetworkParameterConfig: {
|
|
35
39
|
type: BooleanConstructor;
|
|
36
40
|
default: undefined;
|
|
@@ -69,6 +73,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
69
73
|
gpuQuotaItem: import("vue").Ref<GpuQuota | undefined>;
|
|
70
74
|
gpuPriority: import("vue").WritableComputedRef<any>;
|
|
71
75
|
handleNvidiaVgpuModelChange: (val?: string) => void;
|
|
76
|
+
handleNvidiaVgpuDevicesChange: (val?: string[]) => void;
|
|
72
77
|
handleNvidiaVgpuGpuScheduleChange: (val?: VgpuSchedulePolicy) => void;
|
|
73
78
|
handleNvidiaVgpuNodeScheduleChange: (val?: VgpuSchedulePolicy) => void;
|
|
74
79
|
GpuFieldName: string;
|
|
@@ -140,6 +145,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
140
145
|
type: import("vue").PropType<import("../../../components").GpuFormProps>;
|
|
141
146
|
default: undefined;
|
|
142
147
|
};
|
|
148
|
+
assignGpuConfig: {
|
|
149
|
+
type: import("vue").PropType<import("../props").AssignGpuConfig>;
|
|
150
|
+
default: undefined;
|
|
151
|
+
};
|
|
143
152
|
disableNetworkParameterConfig: {
|
|
144
153
|
type: BooleanConstructor;
|
|
145
154
|
default: undefined;
|
|
@@ -165,6 +174,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
165
174
|
resourceConfigProps: import("../../../components").ResourceConfigProps;
|
|
166
175
|
enableGpuConfig: boolean;
|
|
167
176
|
gpuProps: import("../../../components").GpuFormProps;
|
|
177
|
+
assignGpuConfig: import("../props").AssignGpuConfig;
|
|
168
178
|
disableNetworkParameterConfig: boolean;
|
|
169
179
|
networkProps: Partial<import("../../container-network").ContainerNetworkProps>;
|
|
170
180
|
extraBinding: import("../props").BasicInfoExtraBinding;
|
|
@@ -11,6 +11,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11
11
|
const _component_dao_message = vue.resolveComponent("dao-message");
|
|
12
12
|
const _component_dao_text_button = vue.resolveComponent("dao-text-button");
|
|
13
13
|
const _component_dao_helper_text = vue.resolveComponent("dao-helper-text");
|
|
14
|
+
const _component_dao_history_link = vue.resolveComponent("dao-history-link");
|
|
14
15
|
const _component_dao_gpu_form = vue.resolveComponent("dao-gpu-form");
|
|
15
16
|
const _component_dao_container_network = vue.resolveComponent("dao-container-network");
|
|
16
17
|
const _component_dao_container_custom_resource = vue.resolveComponent("dao-container-custom-resource");
|
|
@@ -74,26 +75,31 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
74
75
|
label: _ctx.$t("biz.workloads.ContainerBasicInfo.gpuConfig"),
|
|
75
76
|
class: "container-basic-info--gpu-form-item",
|
|
76
77
|
"component-validate": "",
|
|
78
|
+
error: "",
|
|
77
79
|
"wrapper-type": "switch",
|
|
78
80
|
"padding-bottom": "0"
|
|
79
81
|
}, {
|
|
80
82
|
"control-content": vue.withCtx(({ componentRef }) => {
|
|
81
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
83
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
|
82
84
|
return [
|
|
83
85
|
vue.createVNode(_component_dao_gpu_form, vue.mergeProps({ ref: componentRef }, _ctx.gpuProps, {
|
|
84
86
|
nvidiaVgpuPriority: _ctx.gpuPriority,
|
|
85
87
|
"onUpdate:nvidiaVgpuPriority": _cache[0] || (_cache[0] = ($event) => _ctx.gpuPriority = $event),
|
|
86
|
-
"
|
|
87
|
-
"nvidia-vgpu-
|
|
88
|
-
"nvidia-vgpu-
|
|
88
|
+
"assign-gpu-disabled": ((_a = _ctx.assignGpuConfig) == null ? void 0 : _a.disabled) ?? ((_b = _ctx.gpuProps) == null ? void 0 : _b.assignGpuDisabled),
|
|
89
|
+
"nvidia-vgpu-model": (_d = (_c = _ctx.extraBinding) == null ? void 0 : _c.nvidiaVgpuModel) == null ? void 0 : _d.value,
|
|
90
|
+
"nvidia-vgpu-devices": (_f = (_e = _ctx.extraBinding) == null ? void 0 : _e.nvidiaVgpuDevices) == null ? void 0 : _f.value,
|
|
91
|
+
"nvidia-vgpu-gpu-schedule": (_h = (_g = _ctx.extraBinding) == null ? void 0 : _g.nvidiaVgpuGpuSchedule) == null ? void 0 : _h.value,
|
|
92
|
+
"nvidia-vgpu-node-schedule": (_j = (_i = _ctx.extraBinding) == null ? void 0 : _i.nvidiaVgpuNodeSchedule) == null ? void 0 : _j.value,
|
|
93
|
+
"gpu-usage": "workload",
|
|
89
94
|
quota: _ctx.gpuQuotaItem,
|
|
90
95
|
limit: 1,
|
|
91
96
|
"dynamic-limit-one": "",
|
|
92
|
-
"enable-nvidia-vgpu-priority": "",
|
|
93
97
|
"enable-nvidia-vgpu-model": "",
|
|
94
98
|
"enable-nvidia-vgpu-schedule-policy": "",
|
|
95
99
|
"enable-range-validate": "",
|
|
100
|
+
"enable-nvidia-vgpu-priority": ((_k = _ctx.gpuProps) == null ? void 0 : _k.enableNvidiaVgpuPriority) ?? true,
|
|
96
101
|
"onUpdate:nvidiaVgpuModel": _ctx.handleNvidiaVgpuModelChange,
|
|
102
|
+
"onUpdate:nvidiaVgpuDevices": _ctx.handleNvidiaVgpuDevicesChange,
|
|
97
103
|
"onUpdate:nvidiaVgpuGpuSchedule": _ctx.handleNvidiaVgpuGpuScheduleChange,
|
|
98
104
|
"onUpdate:nvidiaVgpuNodeSchedule": _ctx.handleNvidiaVgpuNodeScheduleChange,
|
|
99
105
|
onChange: _ctx.handleGpuChange
|
|
@@ -109,44 +115,63 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
115
|
]),
|
|
110
116
|
_: 2
|
|
111
117
|
}, [
|
|
112
|
-
((
|
|
118
|
+
((_l = _ctx.gpuQuotaItem) == null ? void 0 : _l.types.includes(_ctx.nvidiaGpuKey)) ? {
|
|
113
119
|
name: "helper-gpu-type",
|
|
114
120
|
fn: vue.withCtx(() => [
|
|
115
121
|
vue.createVNode(_component_dao_helper_text, null, {
|
|
116
122
|
default: vue.withCtx(() => [
|
|
117
|
-
vue.
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.nvidiaGpuHelper")) + " ", 1),
|
|
124
|
+
vue.createVNode(_component_dao_text_button, {
|
|
125
|
+
prop: {
|
|
126
|
+
type: "link",
|
|
127
|
+
iconRight: "icon-new-tab"
|
|
128
|
+
},
|
|
129
|
+
target: "_blank",
|
|
130
|
+
tag: "a",
|
|
131
|
+
href: _ctx.$t("biz.common.docs", {
|
|
132
|
+
link: "/kpanda/user-guide/gpu/nvidia/mig/mig_usage/"
|
|
133
|
+
}),
|
|
134
|
+
class: "text-[12px]"
|
|
120
135
|
}, {
|
|
121
136
|
default: vue.withCtx(() => [
|
|
122
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.
|
|
123
|
-
vue.createVNode(_component_dao_text_button, {
|
|
124
|
-
prop: {
|
|
125
|
-
type: "link",
|
|
126
|
-
iconRight: "icon-new-tab"
|
|
127
|
-
},
|
|
128
|
-
target: "_blank",
|
|
129
|
-
tag: "a",
|
|
130
|
-
href: _ctx.$t("biz.common.docs", {
|
|
131
|
-
link: "/kpanda/user-guide/gpu/nvidia/mig/mig_usage/"
|
|
132
|
-
}),
|
|
133
|
-
class: "text-[12px]"
|
|
134
|
-
}, {
|
|
135
|
-
default: vue.withCtx(() => [
|
|
136
|
-
vue.createTextVNode(vue.toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.nvidiaGpuMigSingleDoc")), 1)
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["href"])
|
|
137
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.$t("biz.workloads.ContainerBasicInfo.nvidiaGpuMigSingleDoc")), 1)
|
|
140
138
|
]),
|
|
141
139
|
_: 1
|
|
142
|
-
})
|
|
140
|
+
}, 8, ["href"])
|
|
143
141
|
]),
|
|
144
142
|
_: 1
|
|
145
143
|
})
|
|
146
144
|
]),
|
|
147
145
|
key: "0"
|
|
146
|
+
} : void 0,
|
|
147
|
+
((_m = _ctx.assignGpuConfig) == null ? void 0 : _m.disabled) && _ctx.assignGpuConfig.message ? {
|
|
148
|
+
name: "assign-gpu-disabled-message",
|
|
149
|
+
fn: vue.withCtx(() => [
|
|
150
|
+
vue.createVNode(_component_dao_message, {
|
|
151
|
+
type: "warning",
|
|
152
|
+
simple: ""
|
|
153
|
+
}, {
|
|
154
|
+
default: vue.withCtx(() => [
|
|
155
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.assignGpuConfig.message) + " ", 1),
|
|
156
|
+
_ctx.assignGpuConfig.action ? (vue.openBlock(), vue.createBlock(_component_dao_history_link, {
|
|
157
|
+
key: 0,
|
|
158
|
+
type: "link",
|
|
159
|
+
target: "_blank",
|
|
160
|
+
"icon-right": "icon-new-tab",
|
|
161
|
+
href: _ctx.assignGpuConfig.action.href
|
|
162
|
+
}, {
|
|
163
|
+
default: vue.withCtx(() => [
|
|
164
|
+
vue.createTextVNode(vue.toDisplayString(_ctx.assignGpuConfig.action.label), 1)
|
|
165
|
+
]),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["href"])) : vue.createCommentVNode("", true)
|
|
168
|
+
]),
|
|
169
|
+
_: 1
|
|
170
|
+
})
|
|
171
|
+
]),
|
|
172
|
+
key: "1"
|
|
148
173
|
} : void 0
|
|
149
|
-
]), 1040, ["nvidiaVgpuPriority", "nvidia-vgpu-model", "nvidia-vgpu-gpu-schedule", "nvidia-vgpu-node-schedule", "quota", "onUpdate:nvidiaVgpuModel", "onUpdate:nvidiaVgpuGpuSchedule", "onUpdate:nvidiaVgpuNodeSchedule", "onChange"])
|
|
174
|
+
]), 1040, ["nvidiaVgpuPriority", "assign-gpu-disabled", "nvidia-vgpu-model", "nvidia-vgpu-devices", "nvidia-vgpu-gpu-schedule", "nvidia-vgpu-node-schedule", "quota", "enable-nvidia-vgpu-priority", "onUpdate:nvidiaVgpuModel", "onUpdate:nvidiaVgpuDevices", "onUpdate:nvidiaVgpuGpuSchedule", "onUpdate:nvidiaVgpuNodeSchedule", "onChange"])
|
|
150
175
|
];
|
|
151
176
|
}),
|
|
152
177
|
_: 1
|