UNPKG

zview-plus

Version:

基于 Vue3 的 UI 组件库

2 lines (1 loc) 404 B
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=(t,o,n)=>{if(t>n||t<o)throw new Error("不能超出限定范围(默认0~100)");return!0},i=(t,o,n)=>{if(!t)return[];const r=Math.floor(n/o),s=t/r,e=[];for(let u=1;u<=r;u++)e.push(s*u);return e},d=(t,o,n)=>{const r=(n-o)/2;return t>o+r?"end":"start"};exports.cutChunk=i;exports.isOutBounds=c;exports.judgeLocation=d;