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: {}, });