Skip to content
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

1.3.0+ 的几个问题 #101

Open
afc163 opened this issue Aug 17, 2014 · 1 comment
Open

1.3.0+ 的几个问题 #101

afc163 opened this issue Aug 17, 2014 · 1 comment
Assignees

Comments

@afc163
Copy link
Member

afc163 commented Aug 17, 2014

  1. 自定义模板时,如果数据结构不是标准(即没有转化为 label value 这样的数据格式时),那么修改了模板也是无法显示的。http://aralejs.org/autocomplete/examples/template.html 比如这个官方例子运行不起来。

  2. 1.3.0 之后,改为了 renderPartial 整个区域。这样的副作用时,每次数据变动时,提示框会不断闪动,严重影响体验。而 1.2.x 没有这个问题(如 Arale 首页的搜索框)。

    this.renderPartial();

  3. 内置过滤器的名称。有 default、startsWith、stringMatch,然而默认是 startsWith,default 不是默认。这个 default 改个名是不是好理解些。

    http://aralejs.org/autocomplete/docs/filter.html#%E5%86%85%E7%BD%AE%E7%9A%84%E8%BF%87%E6%BB%A4%E5%99%A8

  4. 有些 demo 不知何故无法运行了。http://aralejs.org/autocomplete/examples/other.html#email-%E8%87%AA%E5%8A%A8%E8%A1%A5%E5%85%A8

@popomore
Copy link
Member

  1. 这两个字段是必须有的,因为 value 是用来过滤的,不然匹配都有错
  2. 这个要看下
  3. default 改名 passthrough?
  4. 这个已经改了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants