UNPKG

@opensig/opendesign

Version:

<p align="center"><img src="../docs/public/opendesign-logo-light.png"/></p> <h1 align="center">opendesign</h1> <p align="center">一个 Vue 3 组件库</p> <p align="center"><b>皮肤可定制,使用 TypeScript</b></p>

39 lines (38 loc) 923 B
import { ref } from "vue"; import { ColorPool } from "./helper.mjs"; const defaultZIndex = ref(1e3); function initZIndex(val) { defaultZIndex.value = val; } const defaultSize = ref("medium"); function initSize(val) { defaultSize.value = val; } const defaultRound = ref(); function initRound(type) { defaultRound.value = type; } const defaultPrestColor = ["#d9e6c3", "#ebd5be", "#d1e6de", "#e0ceeb", "#ebd3c7", "#e6dada", "#e3deeb", "#dedae6", "#cad0e8", "#cedeeb"]; const defaultPrestColorPool = ref(new ColorPool(defaultPrestColor)); function initPrestColor(colors) { defaultPrestColorPool.value = new ColorPool(colors); } const mediaPoint = ref({ phone: 600, pad: 1200 }); function initMediaPoint(point) { mediaPoint.value = point; } export { defaultPrestColorPool, defaultRound, defaultSize, defaultZIndex, initMediaPoint, initPrestColor, initRound, initSize, initZIndex, mediaPoint };