| 123456789101112131415 |
- const statusOptions = [
- {
- value: 0,
- label: "启用",
- },
- {
- value: 1,
- label: "禁用",
- },
- ];
- const getLabel=(options,value)=>{
- let option=options.find(o=>o.value===value);
- return option?option.label:'';
- }
- export { statusOptions ,getLabel};
|