mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:21:53 +00:00
fix( importable-field): incorrect display when moving sort handle (#1613)
* fix: importable-field incorrect display when moving sort * fix: cascader --------- Co-authored-by: chenos <chenlinxh@gmail.com>
This commit is contained in:
parent
de4beb57a0
commit
22498d8fc6
@ -1,5 +1,5 @@
|
||||
import { css } from '@emotion/css';
|
||||
import { useCollection } from '@nocobase/client';
|
||||
import { Cascader, useCollection } from '@nocobase/client';
|
||||
import { useFields } from './useFields';
|
||||
|
||||
export const useShared = () => {
|
||||
@ -38,7 +38,7 @@ export const useShared = () => {
|
||||
dataIndex: {
|
||||
type: 'array',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Cascader',
|
||||
'x-component': Cascader,
|
||||
required: true,
|
||||
enum: fields,
|
||||
'x-component-props': {
|
||||
|
@ -1,6 +1,6 @@
|
||||
import { css } from '@emotion/css';
|
||||
import type { VoidField } from '@formily/core';
|
||||
import { useCollection } from '@nocobase/client';
|
||||
import { useCollection, Cascader } from '@nocobase/client';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { NAMESPACE } from './constants';
|
||||
import { useFields } from './useFields';
|
||||
@ -52,7 +52,7 @@ export const useShared = () => {
|
||||
dataIndex: {
|
||||
type: 'array',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Cascader',
|
||||
'x-component': Cascader,
|
||||
required: true,
|
||||
enum: fields,
|
||||
'x-component-props': {
|
||||
@ -61,7 +61,6 @@ export const useShared = () => {
|
||||
value: 'name',
|
||||
children: 'children',
|
||||
},
|
||||
// labelInValue: true,
|
||||
changeOnSelect: false,
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user