0.5.0 • Published 1 year ago

@doxlab/atomleaf v0.5.0

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

AtomLeaf 管理后台原子组件

@doxlab/atomleaf

豆壳框架的管理后台基础组件库。包含支持JWT的Axios库,CURD逻辑库,基本的界面组件,基本业务功能组件。开箱即用,提升开发效率。

主要组件:

  • 封装支持JWT的Http请求
  • 常用的函数库
  • CURD逻辑库
  • CURD界面组件: CURD表格,CURD列表,CURD树状列表等等
  • 其他常用组件
  • 角色用户功能:用户管理、角色管理、组织架构管理
  • 基础业务功能:代码表、链接、分类

使用

引入atomleaf包:

npm install @doxlab/atomleaf

在应用的入口文件main.js中设置http的baseUrl:

import http from "@doxlab/atomleaf/lib/http"

const baseUrl = process.env.NODE_ENV === 'development' ? config.baseUrl.dev : config.baseUrl.pro
http.setBaseUrl(baseUrl)

在store中注册模块:

import App from "@doxlab/atomleaf/module/app"
import User from "@doxlab/atomleaf/module/user"
import Role from "@doxlab/atomleaf/module/role"
import Org from "@doxlab/atomleaf/module/org"
import Code from "@doxlab/atomleaf/module/code"
import Link from "@doxlab/atomleaf/module/link"


const store = new Vuex.Store({
  state: {
    //
  },
  mutations: {
    //
  },
  actions: {
    //
  },
  modules: {
    //......
    App,
    User,
    Role,
    Link,
    Code,
    Org,
  // ......
  },
  plugins: [
    createVuexAlong({
      name: config.name,
      local: {
        list: ["App", "User", "Role"],
        isFilter: false,
      },
    }),
  ],
});

路由中注册业务功能界面:

      {
        path: "user",
        name: "SystemUser",
        component: () => import("@doxlab/atomleaf/view/user/list.vue"),
      },

      {
        path: "role",
        name: "SystemRole",
        component: () => import("@doxlab/atomleaf/view/role/list.vue"),
      },
      {
        path: "link",
        name: "SystemLink",
        component: () => import("@doxlab/atomleaf/view/link/list.vue"),
      },
      {
        path: "org",
        name: "SystemOrg",
        component: () => import("@doxlab/atomleaf/view/org/list.vue"),
      },
      {
        path: "code",
        name: "SystemCode",
        component: () => import("@doxlab/atomleaf/view/code/list.vue"),
      },

测试开发时引入atomleaf包

从Gitee仓库克隆下gitee.com/doxlab/atomleaf项目。

进入atomleaf项目目录后:

npm link

然后在需要引入atomleaf的项目中执行命令:

npm link @doxlab/atomleaf
0.4.9

1 year ago

0.4.8

1 year ago

0.5.0

1 year ago

0.4.7

1 year ago

0.4.5

1 year ago

0.4.6

1 year ago

0.4.3

1 year ago

0.4.2

1 year ago

0.4.1

1 year ago

0.4.0

2 years ago

0.3.9

2 years ago

0.1.90

2 years ago

0.3.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.8

2 years ago

0.3.7

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.2

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.1.85

2 years ago

0.1.86

2 years ago

0.1.87

2 years ago

0.1.88

2 years ago

0.1.82

2 years ago

0.1.83

2 years ago

0.1.84

2 years ago

0.1.80

2 years ago

0.1.81

2 years ago

0.1.76

3 years ago

0.1.77

2 years ago

0.1.78

2 years ago

0.1.72

3 years ago

0.1.70

3 years ago

0.1.60

3 years ago

0.1.50

3 years ago

0.1.40

3 years ago

0.1.39

3 years ago

0.1.38

3 years ago

0.1.37

3 years ago

0.1.35

3 years ago

0.1.36

3 years ago

0.1.32

3 years ago

0.1.33

3 years ago

0.1.34

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.29

3 years ago

0.1.27

3 years ago

0.1.23

3 years ago

0.1.20

3 years ago

0.1.21

3 years ago

0.1.19

3 years ago

0.1.13

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.16

3 years ago

0.1.17

3 years ago

0.1.18

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.2

3 years ago