Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

Conversation

@ranwawa
Copy link
Contributor

@ranwawa ranwawa commented Dec 10, 2025

期望在单元格上渲染primary类名,但实际上danger也被渲染了

{
        type: 'page',
        data: {
          items: [
            {
              id: 1
            }
          ]
        },
        body: {
          type: 'crud',
          source: '${items}',
          columns: [
            {
              name: 'id',
              label: 'id',
              className: {
                primary: '${id > 0}',
               danger: '${id < 0}'
              }
            }
          ]
        }
      }

@github-actions
Copy link

👍 Thanks for this!
🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the fix label Dec 10, 2025
@2betop 2betop merged commit e5882a8 into baidu:master Dec 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants