Skip to content

Commit f68a3df

Browse files
committed
chore(lib): 优化性能和细节体验
refactor: 页面结构生成拆分为多个方法 feat(lib): 支持对lable搜索 docs: 更新描述文档 docs: 更新文档 feat(lib): 快捷选择条 支持区域外滑动选中 refactor(lib): 优化事件管理 build: 更新dist
1 parent e4dae7e commit f68a3df

11 files changed

+706
-361
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
# js-contacts
22

3-
## todo
4-
* 优化快捷条滑动可以在划出区域继续定位
5-
* 优化在中间元素滚动时,如果使用快捷条要中止中间元素的滚动行为
6-
* 支持搜索功能
7-
83
## 介绍
94

105
* [查看演示](http://js-contacts.buhuida.com/)
@@ -62,6 +57,8 @@ Demo文件:https://github.com/lljj-x/js-contacts/blob/main/packages/demo/src/i
6257
hotLetter: '#',
6358
hotName: '推荐',
6459
showSearch: true, // 是否显示搜索
60+
searchPlaceholder: '请输入搜索关键词', // 搜索框占位符
61+
showNavBar: false, // 是否显示右侧快捷选择条
6562
curSelect: 'IT',
6663
indicatorDuration: 2000, // 指示器显示时间
6764
data: {
@@ -159,6 +156,15 @@ data: {
159156
* 默认:true
160157
* 是否显示搜索框
161158

159+
### searchPlaceholder
160+
* 默认:输入搜索词
161+
* 搜索框占位符
162+
163+
164+
### showNavBar
165+
* 默认:true
166+
* 是否显示右侧快捷选择条
167+
162168
### indicatorDuration
163169
* 默认:`2000`
164170
* 快捷选择指示器tips显示时间(ms)

packages/demo/src/index/index.js

+4-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/demo/vue.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ module.exports = {
137137
open: true,
138138
openPage,
139139
port: 8800,
140-
host: '127.0.0.1',
140+
host: '10.34.5.100',
141141
overlay: {
142142
warnings: false,
143143
errors: true

packages/lib/dist/js-contacts.esm.js

+236-120
Large diffs are not rendered by default.

packages/lib/dist/js-contacts.esm.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/lib/dist/js-contacts.umd.js

+236-120
Large diffs are not rendered by default.

packages/lib/dist/js-contacts.umd.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)