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