press-ui
Version:
简单、易用的跨端组件库,兼容 Vue2 和 Vue3,同时支持 uni-app和普通 Vue 项目
22 lines (18 loc) • 368 B
JavaScript
import { style } from '../common/utils/style';
import { addUnit } from '../common/utils/add-unit';
function rootStyle(data) {
return style({
'z-index': data.zIndex,
top: addUnit(data.top),
});
}
function notifyStyle(data) {
return style({
background: data.background,
color: data.color,
});
}
export default {
rootStyle,
notifyStyle,
};