Sign in

canrd-outside / order-erp-front · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 1
  • Labels
  • Wiki
  • order-erp-front
  • src
  • components
  • CardList
  • src
  • data.ts
  • chore: comment format (#1398) ...
    5fca9ce2
    * fix(modal): 取消全屏功能后关闭图标颜色异常
    
    * chore: move to pnpm
    
    * fix: RangePicekr在表单项中占满分配的宽度
    
    * chore: comment format
    
    * Revert "fix: RangePicekr在表单项中占满分配的宽度"
    
    This reverts commit cd70e41dac294329383be3d2f0a393dc26b7f140.
    
    Co-authored-by: liushiman <smliu@gk-estor.com>
    1sm authored
    2021-11-24 23:17:11 +0800  
    Browse Dir »
data.ts 451 Bytes
Edit Raw Blame History
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
import { ref } from 'vue';
// 每行个数
export const grid = ref(12);
// slider属性
export const useSlider = (min = 6, max = 12) => {
  // 每行显示个数滑动条
  const getMarks = () => {
    const l = {};
    for (let i = min; i < max + 1; i++) {
      l[i] = {
        style: {
          color: '#fff',
        },
        label: i,
      };
    }
    return l;
  };
  return {
    min,
    max,
    marks: getMarks(),
    step: 1,
  };
};