1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
| import { defineComponent } from 'vue'
| import styles from './Flow.module.scss'
| import Tag from '../Tag/Tag'
| export default defineComponent({
| name: '流程显示tag',
| props: {
| modelValue: {
| type: Array,
| default: () => [],
| },
| disabled: {
| type: Boolean,
| default: false,
| },
| },
| emits: ['click'],
| setup(props, { attrs, slots, emit }) {
| return () => {
| return (
| <div
| class={{
| [styles.flows_pick]: true,
| [styles.disabled]: props.disabled,
| }}
| >
| {!props.modelValue?.length ? (
| <span class={styles.flowTag}>关联流程</span>
| ) : (
| props.modelValue.map((item: any) => {
| return (
| <Tag style={{ marginRight: '5px', marginBottom: '5px' }}>
| {item.name || item.description}
| </Tag>
| )
| })
| )}
| </div>
| )
| }
| },
| })
|
|