isobit-ui 0.0.569 → 0.1.1
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/dist/index.js +12 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* isobit-ui v0.
|
|
2
|
+
* isobit-ui v0.1.1
|
|
3
3
|
* (c) Erik Alarcon Pinedo
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -423,11 +423,20 @@ var script$o = {
|
|
|
423
423
|
console.log(me.data0);
|
|
424
424
|
me.total = d.size;
|
|
425
425
|
if (!me.autoload) me.show = true;
|
|
426
|
+
me.$emit('complete', {
|
|
427
|
+
data: me.data,
|
|
428
|
+
query: me.query,
|
|
429
|
+
target: me
|
|
430
|
+
});
|
|
426
431
|
} else {
|
|
427
432
|
MsgBox(d.error);
|
|
428
433
|
}
|
|
429
434
|
})["catch"](me.error).then(function () {
|
|
430
|
-
me.$emit('complete',
|
|
435
|
+
me.$emit('complete', {
|
|
436
|
+
data: me.data,
|
|
437
|
+
query: me.query,
|
|
438
|
+
target: me
|
|
439
|
+
});
|
|
431
440
|
});
|
|
432
441
|
}
|
|
433
442
|
}
|
|
@@ -6592,7 +6601,7 @@ window.ui = _$1.ui = function (cfg) {
|
|
|
6592
6601
|
var action = f.action;
|
|
6593
6602
|
if (e.action) action = e.action;
|
|
6594
6603
|
var t = e.$vnode ? e : e.target && e.target.$vnode ? e : me.$children[0].$children[0];
|
|
6595
|
-
if (t.src) action = t.src.replace("/api", "").replace("/0/0", "");
|
|
6604
|
+
if (!action && t.src) action = t.src.replace("/api", "").replace("/0/0", "");
|
|
6596
6605
|
if (!action) action = window.location.pathname;
|
|
6597
6606
|
var selected = me.getSelected(t)[0];
|
|
6598
6607
|
var id = selected[t.rowKey];
|