riku
2024-08-12 65124213af664a68ad88ce7f6dcb133116d7702f
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: '0',
  },
  {
    label: '近半年',
    value: '1',
  },
  {
    label: '近一年',
    value: '2',
  },
];
const useRecentTimePicker = newBehavior('recentTime', optionList);
 
Component({
  behaviors: [useRecentTimePicker],
  options: {
    addGlobalClass: true,
    multipleSlots: true,
  },
  properties: {
    pickerClass: {
      type: String,
      value: '',
    },
    color: {
      type: String,
      value: 'black',
    },
  },
  data: {},
  methods: {},
});