Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Merge online demo #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
ChuChencheng merged 5 commits into master from 2.x
Feb 27, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .env.docs
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NODE_ENV=production
VUE_APP_IS_BUILDING_DOCS=true
VUE_APP_PUBLIC_PATH=/ctree
VUE_APP_OUTPUT_DIR=docs
1 change: 1 addition & 0 deletions .gitignore
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
debug.log
.DS_Store
node_modules
/dist
Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/lang/zh-CN/

## [Unreleased]

## [2.2.6] - 2019年12月12日

### Added

### Changed

### Deprecated

### Removed

### Fixed

- 修复 `CTreeDrop` 下拉框定位 `top`, `bottom` 不正确的问题

### Security

## [2.2.5] - 2019年12月11日

### Added

### Changed

### Deprecated

### Removed

### Fixed

- 修复 `CTreeDrop` 下拉框定位不正确的问题

### Security

## [2.2.4] - 2019年11月22日

### Added
Expand Down
218 changes: 110 additions & 108 deletions README.md
View file Open in desktop

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/css/main.4a7507e0.css
View file Open in desktop

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docs/index.html
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang=en><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=/ctree/favicon.ico><title>ctree</title><link href=/ctree/css/main.4a7507e0.css rel=preload as=style><link href=/ctree/js/chunk-vendors.858205c1.js rel=preload as=script><link href=/ctree/js/main.647a3555.js rel=preload as=script><link href=/ctree/css/main.4a7507e0.css rel=stylesheet></head><body><noscript><strong>We're sorry but ctree doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id=app></div><script src=/ctree/js/chunk-vendors.858205c1.js></script><script src=/ctree/js/main.647a3555.js></script></body></html>
7 changes: 7 additions & 0 deletions docs/js/chunk-vendors.858205c1.js
View file Open in desktop

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/js/main.647a3555.js
View file Open in desktop

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions examples/App.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ const components = {
Performance,
Loading,
Search,
SearchRemote,
SearchRootRemote,
// SearchRemote,
// SearchRootRemote,
Drop,
DropRemote,
// DropRemote,
Drag,
DropDataChange,
// DropDataChange,
InsertRenderTree,
}

Expand Down
35 changes: 18 additions & 17 deletions examples/Drop.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
<CTreeDrop
v-model="value"
:data="data"
selectable
checkable
clearable
:cascade="false"
drop-placeholder="请选择"
:placement="placement"
:dropdown-min-width="300"
dropdown-width-fixed
@checked-change="handleCheckedChange"
Expand Down Expand Up @@ -37,33 +37,34 @@ export default {
CTreeDrop,
},
data () {
// const data = genData().data
const data = [{
id: '1',
title: 'zzz',
}]
const data = genData().data
// const data = [{
// id: '1',
// title: 'zzz',
// }]
// data[0].checked = true
// data[2].checked = true
// data[4].checked = true
return {
data,
value: '2',
placement: 'bottom-start',
}
},
methods: {
handleCheckedChange () {
console.log('checked-change')
},
},
created () {
setTimeout(() => {
this.data = [
{
id: '2',
title: 'xxcxxxx',
}
]
}, 3000)
},
// created () {
// setTimeout(() => {
// this.data = [
// {
// id: '2',
// title: 'xxcxxxx',
// }
// ]
// }, 3000)
// },
}
</script>
4 changes: 2 additions & 2 deletions examples/Performance.vue
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</div>
<div class="control">
<div class="desc-block">
<p>说明:在 Chrome 下表现良好,可实现 100 万条数据较流畅使用。</p>
<p>在火狐浏览器下,因为其异步滚动策略 (scroll-linked) ,在快速滚动时会导致内容空白(Edge 也会空白,但貌似是单纯的性能不足导致的)。</p>
<p>说明:在 Chrome 下表现良好</p>
<p>在火狐浏览器下,因为其异步滚动策略 (scroll-linked) ,在快速滚动时会导致内容空白。</p>
<p>另:浏览器元素/文档是有最大高度限制的,过多数据会导致显示不正常(Chrome 下 100 万条可以正常显示,但是在火狐或 Edge 则不行)</p>
</div>
<div class="controls">
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "@wsfe/ctree",
"version": "2.2.4",
"version": "2.2.6",
"main": "./dist/ctree.umd.min.js",
"types": "./types",
"description": "A vue tree component using virtual list.",
"scripts": {
"serve": "vue-cli-service serve --open",
"bundle": "vue-cli-service build --target lib --name ctree ./src/index.ts --report",
"bundle:docs": "vue-cli-service build --mode docs --dest docs",
"lint": "vue-cli-service lint",
"test": "vue-cli-service test:unit",
"prepublishOnly": "yarn bundle"
Expand Down
Loading

AltStyle によって変換されたページ (->オリジナル) /