Skip to content

Releases: tangbc/sugar

v1.4.2

07 Nov 12:15
Compare
Choose a tag to compare

Optimize v-on directive.

v1.4.1

04 Nov 03:31
Compare
Choose a tag to compare

Support use anonymous function inline v-on directive.

v1.4.0

18 Mar 08:27
Compare
Choose a tag to compare
  • Drop stringToFragment.

v1.3.9

01 Jan 03:51
Compare
Choose a tag to compare
  • Fixed: v-for use in multidimensional array case redundant notify in watcher.
  • Add JSON as a legal keyword, so you can use JSON.stringify() and JSON.parse in directive.

v1.3.8

25 Dec 02:18
Compare
Choose a tag to compare
  • Update random guid.

v1.3.7

10 Dec 01:56
Compare
Choose a tag to compare
  • Give a solution/suggestion when use v-el in v-for.
  • Ensure unifyCallback was call only once when same depends changed.
  • Add and export guid from v-for hook, it can be very usefull in component list.

v1.3.6

01 Dec 06:40
Compare
Choose a tag to compare
  • v-if should remove target element from document.
  • v-for and v-if cannot be used on the root element.
  • v-model for input#text use debounce param should ensure call once in period.

v1.3.5

17 Nov 06:38
Compare
Choose a tag to compare
  • Support v-hook to handle v-if/v-for append/remove element.
  • Fixed: event cb wrote in methods also should be reset.
  • Fixed: add back $parent to v-for scope.
  • Fixed: v-for splice the last item miss target when has end-anchor.
  • Fixed: deep copy with array.

v1.3.4

14 Nov 07:05
Compare
Choose a tag to compare
  • Add watchAll api to component.

v1.3.3

14 Nov 06:15
Compare
Choose a tag to compare
  • Change v-on modifies .once to .one.
  • Add support watchAll api to watch all changes from model.