classcard-ui 0.2.820 → 0.2.822

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "classcard-ui",
3
- "version": "0.2.820",
3
+ "version": "0.2.822",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -5,7 +5,9 @@
5
5
  <p class="text-sm text-gray-500" v-if="hint">{{ hint }}</p>
6
6
  </div>
7
7
  <quill-editor
8
- class="mt-1 rounded-md bg-white text-sm shadow-sm"
8
+ :class="`mt-1 rounded-md bg-white ${
9
+ disabled ? 'opacity-50' : ''
10
+ } text-sm shadow-sm`"
9
11
  :value="content"
10
12
  :options="editorOption"
11
13
  @change="onChange($event)"
@@ -495,7 +495,13 @@ export default {
495
495
  this.reorderedArray = [...reorderedItems];
496
496
  console.log("Moved item ", movedItem);
497
497
  console.log(this.reorderedArray);
498
- this.$emit("reordered", this.reorderedArray, movedItem);
498
+ this.$emit(
499
+ "reordered",
500
+ this.reorderedArray,
501
+ movedItem,
502
+ oldIndex,
503
+ newIndex
504
+ );
499
505
  },
500
506
  // listing functions
501
507
  sortChange(params) {