diff --git a/dist/extensions/treegrid/data.json b/dist/extensions/treegrid/data.json deleted file mode 100644 index a2350dae3f..0000000000 --- a/dist/extensions/treegrid/data.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "rows": [ - { - "id": 1, - "pid": 0, - "status": 1, - "name": "系统管理", - "permissionValue": "open:system:get" - }, - { - "id": 2, - "pid": 0, - "status": 1, - "name": "字典管理", - "permissionValue": "open:dict:get" - }, - { - "id": 20, - "pid": 1, - "status": 1, - "name": "新增系统", - "permissionValue": "open:system:add" - }, - { - "id": 21, - "pid": 1, - "status": 1, - "name": "编辑系统", - "permissionValue": "open:system:edit" - }, - { - "id": 22, - "pid": 1, - "status": 1, - "name": "删除系统", - "permissionValue": "open:system:delete" - }, - { - "id": 33, - "pid": 2, - "status": 1, - "name": "系统环境", - "permissionValue": "open:env:get" - }, - { - "id": 333, - "pid": 33, - "status": 1, - "name": "新增环境", - "permissionValue": "open:env:add" - }, - { - "id": 3333, - "pid": 33, - "status": 1, - "name": "编辑环境", - "permissionValue": "open:env:edit" - }, - { - "id": 233332, - "pid": 33, - "status": 0, - "name": "删除环境", - "permissionValue": "open:env:delete" - } - ], - "total": 9 -} \ No newline at end of file diff --git a/dist/extensions/treegrid/index.html b/dist/extensions/treegrid/index.html deleted file mode 100644 index a788edd164..0000000000 --- a/dist/extensions/treegrid/index.html +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - - - - - 系统管理 - - - - - -
- - - - - - - - \ No newline at end of file diff --git a/src/extensions/treegrid/README.md b/src/extensions/treegrid/README.md new file mode 100644 index 0000000000..06891a2e0a --- /dev/null +++ b/src/extensions/treegrid/README.md @@ -0,0 +1,23 @@ +# Table Treegrid + +Use Plugin: [bootstrap-table-treegrid](https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/treegrid) + +## Usage + +```html + +``` + +## Options + +### treeShowField + +* type: String +* description: +* default: `` + +### parentIdField + +* type: String +* description: +* default: `pid` diff --git a/dist/extensions/treegrid/bootstrap-table-treegrid.js b/src/extensions/treegrid/bootstrap-table-treegrid.js similarity index 100% rename from dist/extensions/treegrid/bootstrap-table-treegrid.js rename to src/extensions/treegrid/bootstrap-table-treegrid.js diff --git a/dist/extensions/treegrid/tree.png b/src/extensions/treegrid/demo.png similarity index 100% rename from dist/extensions/treegrid/tree.png rename to src/extensions/treegrid/demo.png diff --git a/src/extensions/treegrid/extension.json b/src/extensions/treegrid/extension.json new file mode 100644 index 0000000000..2c07e1f487 --- /dev/null +++ b/src/extensions/treegrid/extension.json @@ -0,0 +1,17 @@ +{ + "name": "treegrid", + "version": "1.0.0", + "description": "Plugin to support the jquery treegrid.", + "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/treegrid", + "example": "https://github.com/wenzhixin/bootstrap-table-examples/blob/master/extensions/treegrid.html", + + "plugins": [{ + "name": "bootstrap-table-treegrid", + "url": "https://github.com/wenzhixin/bootstrap-table/tree/master/src/extensions/treegrid" + }], + + "author": { + "name": "foreveryang321", + "image": "https://avatars0.githubusercontent.com/u/5868190" + } +} \ No newline at end of file