@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) • 1.24 kB
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const vue = require("vue");
const helper = require("./helper.js");
const defaultZIndex = vue.ref(1e3);
function initZIndex(val) {
defaultZIndex.value = val;
}
const defaultSize = vue.ref("medium");
function initSize(val) {
defaultSize.value = val;
}
const defaultRound = vue.ref();
function initRound(type) {
defaultRound.value = type;
}
const defaultPrestColor = ["#d9e6c3", "#ebd5be", "#d1e6de", "#e0ceeb", "#ebd3c7", "#e6dada", "#e3deeb", "#dedae6", "#cad0e8", "#cedeeb"];
const defaultPrestColorPool = vue.ref(new helper.ColorPool(defaultPrestColor));
function initPrestColor(colors) {
defaultPrestColorPool.value = new helper.ColorPool(colors);
}
const mediaPoint = vue.ref({
phone: 600,
pad: 1200
});
function initMediaPoint(point) {
mediaPoint.value = point;
}
exports.defaultPrestColorPool = defaultPrestColorPool;
exports.defaultRound = defaultRound;
exports.defaultSize = defaultSize;
exports.defaultZIndex = defaultZIndex;
exports.initMediaPoint = initMediaPoint;
exports.initPrestColor = initPrestColor;
exports.initRound = initRound;
exports.initSize = initSize;
exports.initZIndex = initZIndex;
exports.mediaPoint = mediaPoint;