Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

select 分页时无法选择 #195

Open
getda opened this issue Jul 1, 2024 · 1 comment
Open

select 分页时无法选择 #195

getda opened this issue Jul 1, 2024 · 1 comment

Comments

@getda
Copy link
Contributor

getda commented Jul 1, 2024

问题复现

ab425036-9b86-45be-93d3-e6b2eba41ccb

配置代码如下

{
        title: "栏目",
        dataIndex: "category_id",
        formType: "select",
        search: true,
        commonRules: {
            required: true,
            message: "请选择栏目"
        },
        dict: {
            remote: 'cms/category/remote',
            props: { label: 'name', value: 'id' },
            openPage: true,
            remoteOption: {
                sort: {weigh: 'desc', id: 'desc'},
                select: ['name']
            },
            translation: true
        }
    },
@People-Sea
Copy link
Contributor

{
        title: "栏目",
        dataIndex: "category_id",
        formType: "select",
        search: true,
        commonRules: {
            required: true,
            message: "请选择栏目"
        },
        dict: {
            remote: 'cms/category/remote',
            props: { label: 'name', value: 'id' },
            openPage: true,
            remoteOption: {
                sort: {weigh: 'desc', id: 'desc'},
                select: ['name','id']
            },
            translation: true
        }
    },

select 加 props 里面的 value 请确保字段存在

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants