|
1 | 1 | (function webpackUniversalModuleDefinition(root, factory) { |
2 | 2 | if(typeof exports === 'object' && typeof module === 'object') |
3 | | - module.exports = factory(require("jQuery"), require("Vue")); |
| 3 | + module.exports = factory(require("Vue"), require("jQuery")); |
4 | 4 | else if(typeof define === 'function' && define.amd) |
5 | | - define("VdtnetTable", ["jQuery", "Vue"], factory); |
| 5 | + define("VdtnetTable", ["Vue", "jQuery"], factory); |
6 | 6 | else if(typeof exports === 'object') |
7 | | - exports["VdtnetTable"] = factory(require("jQuery"), require("Vue")); |
| 7 | + exports["VdtnetTable"] = factory(require("Vue"), require("jQuery")); |
8 | 8 | else |
9 | | - root["VdtnetTable"] = factory(root["jQuery"], root["Vue"]); |
10 | | -})(window, function(__WEBPACK_EXTERNAL_MODULE_jquery__, __WEBPACK_EXTERNAL_MODULE_vue__) { |
| 9 | + root["VdtnetTable"] = factory(root["Vue"], root["jQuery"]); |
| 10 | +})(window, function(__WEBPACK_EXTERNAL_MODULE_vue__, __WEBPACK_EXTERNAL_MODULE_jquery__) { |
11 | 11 | return /******/ (function(modules) { // webpackBootstrap |
12 | 12 | /******/ // The module cache |
13 | 13 | /******/ var installedModules = {}; |
@@ -435,9 +435,21 @@ __webpack_require__.r(__webpack_exports__); |
435 | 435 | // |
436 | 436 | // |
437 | 437 | // |
| 438 | +// |
| 439 | +var myUniqueId = 1; |
438 | 440 | /* harmony default export */ __webpack_exports__["default"] = ({ |
439 | 441 | name: 'VdtnetTable', |
440 | 442 | props: { |
| 443 | + /** |
| 444 | + * The table id |
| 445 | + * |
| 446 | + * @type String |
| 447 | + */ |
| 448 | + id: { |
| 449 | + type: String, |
| 450 | + "default": null |
| 451 | + }, |
| 452 | + |
441 | 453 | /** |
442 | 454 | * Set the table classes you wish to use, default with bootstrap4 |
443 | 455 | * but you can override with: themeforest, foundation, etc.. |
@@ -558,6 +570,10 @@ __webpack_require__.r(__webpack_exports__); |
558 | 570 |
|
559 | 571 | if (vm.opts) { |
560 | 572 | vm.options = jq.extend({}, vm.options, vm.opts); |
| 573 | + } |
| 574 | + |
| 575 | + if (!vm.id) { |
| 576 | + vm.id = "vdtnetable".concat(myUniqueId++); |
561 | 577 | } // if fields are passed in, generate column definition |
562 | 578 | // from our custom fields schema |
563 | 579 |
|
@@ -22145,7 +22161,11 @@ var staticRenderFns = [ |
22145 | 22161 | var _c = _vm._self._c || _h |
22146 | 22162 | return _c( |
22147 | 22163 | "table", |
22148 | | - { ref: "table", class: _vm.className, attrs: { cellpadding: "0" } }, |
| 22164 | + { |
| 22165 | + ref: "table", |
| 22166 | + class: _vm.className, |
| 22167 | + attrs: { id: _vm.id, cellpadding: "0" } |
| 22168 | + }, |
22149 | 22169 | [ |
22150 | 22170 | _c("thead", [ |
22151 | 22171 | _c( |
@@ -22397,7 +22417,7 @@ __webpack_require__.r(__webpack_exports__); |
22397 | 22417 | /*! no static exports found */ |
22398 | 22418 | /***/ (function(module, exports, __webpack_require__) { |
22399 | 22419 |
|
22400 | | -module.exports = __webpack_require__(/*! /Users/tomn/Desktop/work/niiknow/vue-datatables-net/example/app.js */"./example/app.js"); |
| 22420 | +module.exports = __webpack_require__(/*! /Users/tech/Desktop/work/niiknow/vue-datatables-net/example/app.js */"./example/app.js"); |
22401 | 22421 |
|
22402 | 22422 |
|
22403 | 22423 | /***/ }), |
|
0 commit comments