UNPKG

dk-plus

Version:
20 lines (19 loc) 524 B
import { toRaw as a } from "vue"; import { getStyleList as c } from "../public/get-StyleList/index.js"; import "../../_icon/index.js"; const u = (s) => { const t = { ...a(s) }, { classes: o } = c(t, "col"); return { classList: o([], "dk-col"), styleList: (() => { const { span: l, offset: e } = t; return { "--col-span": Math.abs(Number(l)) / 24 * 100 + "%" || "100%", "--col-margin-left": Math.abs(Number(e)) / 24 * 100 + "%" || 0 }; })() }; }; export { u as getCol };