You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by so...@apache.org on 2022/05/10 03:52:53 UTC
[dolphinscheduler] branch dev updated: [Fix][UI][V1.0.0-Beta] Fix the problem of packing failure. (#9962)
This is an automated email from the ASF dual-hosted git repository.
songjian pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 1971d8b3b5 [Fix][UI][V1.0.0-Beta] Fix the problem of packing failure. (#9962)
1971d8b3b5 is described below
commit 1971d8b3b594e0f20b6801689a44a9eb72c1c90e
Author: Amy0104 <97...@users.noreply.github.com>
AuthorDate: Tue May 10 11:52:48 2022 +0800
[Fix][UI][V1.0.0-Beta] Fix the problem of packing failure. (#9962)
---
dolphinscheduler-ui/src/components/form/fields/radio.ts | 1 -
dolphinscheduler-ui/src/components/form/types.ts | 13 ++++---------
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/dolphinscheduler-ui/src/components/form/fields/radio.ts b/dolphinscheduler-ui/src/components/form/fields/radio.ts
index 54810ff563..260756f074 100644
--- a/dolphinscheduler-ui/src/components/form/fields/radio.ts
+++ b/dolphinscheduler-ui/src/components/form/fields/radio.ts
@@ -39,7 +39,6 @@ export function renderRadio(item: IJsonItem, fields: { [field: string]: any }) {
() =>
h(NSpace, null, () =>
unref(options).map((option: IOption) =>
- // @ts-ignore
h(NRadio, option, () => option.label)
)
)
diff --git a/dolphinscheduler-ui/src/components/form/types.ts b/dolphinscheduler-ui/src/components/form/types.ts
index 86ff07da31..dfc02c792e 100644
--- a/dolphinscheduler-ui/src/components/form/types.ts
+++ b/dolphinscheduler-ui/src/components/form/types.ts
@@ -15,14 +15,7 @@
* limitations under the License.
*/
import { Ref } from 'vue'
-import type {
- GridProps,
- FormProps,
- FormItemRule,
- FormRules,
- SelectOption,
- TreeSelectOption
-} from 'naive-ui'
+import type { GridProps, FormProps, FormItemRule, FormRules } from 'naive-ui'
type IType =
| 'input'
@@ -38,7 +31,9 @@ type IType =
| 'custom'
| 'multi-condition'
-type IOption = SelectOption | TreeSelectOption
+interface IOption {
+ [key: string]: any
+}
interface IFormItem {
showLabel?: boolean