Skip to content

Commit

Permalink
fix: 目录调整
Browse files Browse the repository at this point in the history
  • Loading branch information
mengqiuleo committed Jun 5, 2023
1 parent 866fbac commit d18c4d4
Show file tree
Hide file tree
Showing 50 changed files with 222 additions and 651 deletions.
File renamed without changes.
Binary file added assets/tree.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions packages/site/docs/.vitepress/cache/deps/_metadata.json

This file was deleted.

14 changes: 14 additions & 0 deletions packages/svg-iconfont/beiwang.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
目录
- svg-iconfont: 使用的svg,但是rollup打包失败,换一种使用方式,iconfont
- test_todo: 未实现的测试,rollup打包会报错,暂存


iconfont 使用
```js
import '../../assets/iconfont.css'

<i class="iconfont icon-PlusSquare"></i>
<i class="iconfont icon-MinusSquare"></i>
<i class="iconfont icon-shanchu"></i>
<i class="iconfont icon-zengjia">
```
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions packages/tree/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 [mengqiuleo](https://github.com/mengqiuleo)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
48 changes: 38 additions & 10 deletions packages/tree/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,42 @@
目录
- assets: 使用的svg,但是rollup打包失败,换一种使用方式,iconfont
- test_todo: 未实现的测试,rollup打包会报错,暂存
# vxeTree
A powerful tree component for Vue3


iconfont 使用
## Installing
Install with npm:
```
npm install vxe-tree
```
Import in your project:
```js
import '../../assets/iconfont.css'
import vxeTree from 'vxe-tree';

<i class="iconfont icon-PlusSquare"></i>
<i class="iconfont icon-MinusSquare"></i>
<i class="iconfont icon-shanchu"></i>
<i class="iconfont icon-zengjia">
//import the styles
import 'vxe-tree/index.css';

Vue.use(vxeTree);
```
## Features
- Lazy-loading
- Checkbox selection
- Disabled and Default state
- Custom icons
- Search filtering
- Virtual scrolling
- Drag and drop functionality
- Action buttons

Please refer to the documentation for specific usage

## Theme customization
After introducing the default styles, introduce your own styles
```css
:root {
--vxe-brand: red; //checkBox style
--vxe-list-item-selected-bg: blue; //selected style
--vxe-list-item-hover-bg: yellow; //hover style
}
```


## License
MIT License © 2023 [mengqiuleo](https://github.com/mengqiuleo)
32 changes: 29 additions & 3 deletions packages/tree/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
{
"name": "vxetree",
"version": "0.0.1",
"name": "vxe-tree",
"version": "0.0.2",
"author": "mengqiuleo",
"description": "A powerful tree component for Vue3",
"homepage": "https://github.com/mengqiuleo/vxe-tree#README",
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/index.d.ts",
"keywords": [
"tree component",
"virtual scroll",
"vue3",
"drag"
],
"files": [
"dist"
],
"repository": {
"type": "git",
"url": "git+https://github.com/mengqiuleo/vxe-tree.git"
},
"bugs": {
"url": "https://github.com/mengqiuleo/vxe-tree/issues"
},
"scripts": {
"dev": "vite",
"build": "rollup -c",
"preview": "vite preview",
"test": "jest"
},
"dependencies": {
"peerDependencies": {
"vue": "^3.2.47"
},
"devDependencies": {
Expand Down Expand Up @@ -43,5 +66,8 @@
"typescript": "^5.0.2",
"vite": "^4.3.9",
"vue-tsc": "^1.4.2"
},
"dependencies": {
"lodash-es": "^4.17.21"
}
}
2 changes: 1 addition & 1 deletion packages/tree/src/vxe-tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { formatCheckStatus, formatBasicTree } from './utils';
import './tree.scss';

export default defineComponent({
name: 'vxe-tree',
name: 'vxeTree',
props: treeProps,
emits: ['toggle-change', 'check-change', 'select-change', 'node-click', 'lazy-load', 'node-contextmenu'],
// @ts-ignore
Expand Down
Loading

0 comments on commit d18c4d4

Please sign in to comment.