1.0.0 • Published 1 year ago

current-theme-vue v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

旦米服务类交互主题预设

主要方便对公司 服务类交互产品 的相关主题统一,便于快速搭建项目及后期主题升级应用。

应用

import Vue from "vue";

import "element-ui/lib/theme-chalk/index.css"
import "element-ui-saas-extend/lib/theme-chalk/index.css"
import layoutInstall from "danmi-theme-vue";
layoutInstall(Vue);

引入 stylus-shortcut 快速定制基础的主题样式及加快编写效率

引入 element-ui-saas-extend SaaS 预设扩展组件加快项目编写。

需对 vue.config.js 及 页面模板文件 做如下配置。

//vue.config.js
module.exports = {
  css: {
    loaderOptions: {
      stylus: {
        stylusOptions: {
          import: [
            // 引入主题变量,便于对在组件中设置主题常用颜色、间距、阴影等。亦可引入自定义主题变量
            "danmi-theme-vue/src/style/variable.styl",
            // 引用 stylus-shortcut 的 mixin 混合函数,具体参考 https://kwokronny.gitee.io/stylus-shortcut/#/
            "stylus-shortcut/src/mixin.styl",
          ],
        },
      },
    },
  },
};
1.0.0

1 year ago