riku
2024-11-12 befd1f21839939b54254bd316bbd158b136fcd15
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
import { newBehavior } from '../../../behaviors/picker/basePicker';
 
const optionList = [
  {
    label: '全部',
    value: null,
  },
  {
    label: '上线中',
    value: true,
  },
  {
    label: '已下线',
    value: false,
  },
];
const useOnlinePicker = newBehavior('online', optionList);
 
Component({
  behaviors: [useOnlinePicker],
  options: {
    addGlobalClass: true,
    multipleSlots: true,
  },
  properties: {
    pickerClass: {
      type: String,
      value: '',
    },
    color: {
      type: String,
      value: 'black',
    },
  },
  data: {},
  methods: {},
});