Skip to content
This repository was archived by the owner on Jan 5, 2022. It is now read-only.

Conversation

@lyttonlee
Copy link

changes

its help user easy to render a different row style by some task attr

     {
        id: 3,
        label: 'start',
        value: task => {
          return dayjs(task.start).format('YYYY-MM-DD')
        },
        width: 100,
        style: task => computeStyle(task.styleType)
      },
      {
        id: 4,
        label: 'progress',
        value: task => moment.duration(task.duration, 'ms').asDays() + '天',
        width: 68,
        style: {
          'task-list-header-label': {
            'text-align': 'center',
            width: '100%'
          },
          'task-list-item-value-container': {
            'text-align': 'center',
            width: '100%',
            cursor: 'pointer',
          },
          'task-list-item-value': {
            'text-decoration': 'line-through',
            color: '#789'
          }
        }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant