nubomed-ui 2.0.37 → 2.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/css/nb-ui/index.css +1 -1
- package/nubomed-ui.common.js +936 -659
- package/nubomed-ui.common.js.map +1 -1
- package/nubomed-ui.umd.js +941 -672
- package/nubomed-ui.umd.js.map +1 -1
- package/nubomed-ui.umd.min.js +1 -1
- package/nubomed-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
package/nubomed-ui.umd.js
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
(function webpackUniversalModuleDefinition(root, factory) {
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
3
|
-
module.exports = factory(
|
3
|
+
module.exports = factory();
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
5
5
|
define([], factory);
|
6
6
|
else if(typeof exports === 'object')
|
7
|
-
exports["nubomed-ui"] = factory(
|
7
|
+
exports["nubomed-ui"] = factory();
|
8
8
|
else
|
9
|
-
root["nubomed-ui"] = factory(
|
10
|
-
})((typeof self !== 'undefined' ? self : this), function(
|
9
|
+
root["nubomed-ui"] = factory();
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function() {
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
12
12
|
/******/ var __webpack_modules__ = ({
|
13
13
|
|
@@ -146,48 +146,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, "@font-face{font-family:iconfont;src:ur
|
|
146
146
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
147
147
|
|
148
148
|
|
149
|
-
/***/ }),
|
150
|
-
|
151
|
-
/***/ 1500:
|
152
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
153
|
-
|
154
|
-
"use strict";
|
155
|
-
__webpack_require__.r(__webpack_exports__);
|
156
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
157
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
158
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
159
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
160
|
-
// Imports
|
161
|
-
|
162
|
-
|
163
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
164
|
-
// Module
|
165
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".iconfont[data-v-1d7955de]{display:inline-flex}", ""]);
|
166
|
-
// Exports
|
167
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
168
|
-
|
169
|
-
|
170
|
-
/***/ }),
|
171
|
-
|
172
|
-
/***/ 5953:
|
173
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
174
|
-
|
175
|
-
"use strict";
|
176
|
-
__webpack_require__.r(__webpack_exports__);
|
177
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
178
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__);
|
179
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
180
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__);
|
181
|
-
// Imports
|
182
|
-
|
183
|
-
|
184
|
-
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
185
|
-
// Module
|
186
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".el-pagination--left[data-v-7bbf5e3c]{text-align:left}.el-pagination--center[data-v-7bbf5e3c]{text-align:center}.el-pagination--right[data-v-7bbf5e3c]{text-align:right}", ""]);
|
187
|
-
// Exports
|
188
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
189
|
-
|
190
|
-
|
191
149
|
/***/ }),
|
192
150
|
|
193
151
|
/***/ 9836:
|
@@ -348,7 +306,7 @@ module.exports = function (i) {
|
|
348
306
|
|
349
307
|
/***/ }),
|
350
308
|
|
351
|
-
/***/
|
309
|
+
/***/ 2054:
|
352
310
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
353
311
|
|
354
312
|
"use strict";
|
@@ -357,246 +315,123 @@ __webpack_require__.r(__webpack_exports__);
|
|
357
315
|
|
358
316
|
// EXPORTS
|
359
317
|
__webpack_require__.d(__webpack_exports__, {
|
360
|
-
"default": function() { return /* binding */
|
318
|
+
"default": function() { return /* binding */ NBCheckboxGroup; }
|
361
319
|
});
|
362
320
|
|
363
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/
|
321
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBCheckboxGroup/src/index.vue?vue&type=template&id=9981adea&scoped=true
|
364
322
|
var render = function render() {
|
365
323
|
var _vm = this,
|
366
324
|
_c = _vm._self._c;
|
367
|
-
return _c('
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
"
|
373
|
-
|
374
|
-
|
375
|
-
"type": _vm.size,
|
376
|
-
"title": _vm.$slots['title-right'] ? '' : _vm.title,
|
377
|
-
"custom-class": _vm.dialogCustomClass,
|
378
|
-
"before-close": _vm.handleClose,
|
379
|
-
"append-to-body": "",
|
380
|
-
"destroy-on-close": ""
|
381
|
-
},
|
382
|
-
on: {
|
383
|
-
"closed": _vm.closedDialog
|
384
|
-
}
|
385
|
-
}, [_c('template', {
|
386
|
-
slot: "title"
|
387
|
-
}, [_vm._t("title"), _vm.$slots['title-right'] ? _c('div', {
|
388
|
-
staticClass: "el-dialog__header--has-form"
|
389
|
-
}, [_c('span', {
|
390
|
-
staticClass: "el-dialog__title"
|
391
|
-
}, [_vm._v(_vm._s(_vm.title))]), _c('div', {
|
392
|
-
staticClass: "el-dialog__right"
|
393
|
-
}, [_vm._t("title-right")], 2)]) : _vm._e()], 2), _vm._t("default"), _c('template', {
|
394
|
-
slot: "footer"
|
395
|
-
}, [_vm._t("footer", function () {
|
396
|
-
return [_vm.showCancelButton ? _c('el-button', {
|
325
|
+
return _c('div', {
|
326
|
+
staticClass: "nb-checkbox-group"
|
327
|
+
}, _vm._l(_vm.options, function (item, index) {
|
328
|
+
return _c('div', {
|
329
|
+
key: index,
|
330
|
+
staticClass: "nb-checkbox-group__item",
|
331
|
+
class: _vm.getItemClass(item),
|
332
|
+
style: `min-width: ${_vm.minWidth}px`,
|
397
333
|
on: {
|
398
|
-
"click":
|
334
|
+
"click": function ($event) {
|
335
|
+
$event.stopPropagation();
|
336
|
+
return _vm.handleClick(item);
|
337
|
+
}
|
399
338
|
}
|
400
|
-
}, [
|
339
|
+
}, [_c('nb-icon', {
|
401
340
|
attrs: {
|
402
|
-
"
|
403
|
-
"plain": _vm.confirmButtonPlain
|
404
|
-
},
|
405
|
-
on: {
|
406
|
-
"click": _vm.handleConfirm
|
341
|
+
"icon": "checked-corner-bottom"
|
407
342
|
}
|
408
|
-
},
|
409
|
-
|
343
|
+
}), _c('span', [_vm._t("default", function () {
|
344
|
+
return [_vm._v(_vm._s(item.label))];
|
345
|
+
}, {
|
346
|
+
"row": item
|
347
|
+
})], 2)], 1);
|
348
|
+
}), 0);
|
410
349
|
};
|
411
350
|
var staticRenderFns = [];
|
412
351
|
|
413
|
-
|
352
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
353
|
+
var es_array_push = __webpack_require__(4114);
|
354
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
|
355
|
+
var esnext_iterator_constructor = __webpack_require__(8992);
|
356
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
|
357
|
+
var esnext_iterator_filter = __webpack_require__(4520);
|
358
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
|
359
|
+
var esnext_iterator_map = __webpack_require__(1454);
|
360
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBCheckboxGroup/src/index.vue?vue&type=script&lang=js
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
414
365
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
415
|
-
name: '
|
416
|
-
// 使用v-model即可
|
417
|
-
model: {
|
418
|
-
prop: 'visible',
|
419
|
-
event: 'update'
|
420
|
-
},
|
366
|
+
name: 'NBCheckboxGroup',
|
421
367
|
props: {
|
422
|
-
//
|
423
|
-
|
424
|
-
type:
|
425
|
-
default:
|
368
|
+
// v-model
|
369
|
+
value: {
|
370
|
+
type: Array,
|
371
|
+
default: null
|
426
372
|
},
|
427
|
-
//
|
428
|
-
|
429
|
-
type:
|
430
|
-
default:
|
431
|
-
|
432
|
-
return ['', 'small', 'medium', 'large'].includes(value);
|
373
|
+
// 选项,value 选中值,label 显示值
|
374
|
+
options: {
|
375
|
+
type: Array,
|
376
|
+
default: () => {
|
377
|
+
return [];
|
433
378
|
}
|
434
379
|
},
|
435
|
-
//
|
436
|
-
|
437
|
-
type: String,
|
438
|
-
default:
|
439
|
-
},
|
440
|
-
// 是否显示关闭按钮
|
441
|
-
showClose: {
|
442
|
-
type: Boolean,
|
443
|
-
default: false
|
444
|
-
},
|
445
|
-
// 是否居中显示
|
446
|
-
center: {
|
447
|
-
type: Boolean,
|
448
|
-
default: false
|
449
|
-
},
|
450
|
-
// 弹框是否居中
|
451
|
-
dialogCenter: {
|
452
|
-
type: Boolean,
|
453
|
-
default: true
|
454
|
-
},
|
455
|
-
// 自定义样式
|
456
|
-
customClass: {
|
457
|
-
type: String,
|
458
|
-
default: ''
|
459
|
-
},
|
460
|
-
// 是否显示取消按钮
|
461
|
-
showCancelButton: {
|
462
|
-
type: Boolean,
|
463
|
-
default: true
|
464
|
-
},
|
465
|
-
// 取消按钮的文本内容,默认取消
|
466
|
-
cancelButtonText: {
|
467
|
-
type: String,
|
468
|
-
default: ''
|
469
|
-
},
|
470
|
-
// 取消按钮倒计时时间
|
471
|
-
cancelButtonTime: {
|
472
|
-
type: Number,
|
473
|
-
default: -1
|
474
|
-
},
|
475
|
-
// 是否显示确定按钮
|
476
|
-
showConfirmButton: {
|
477
|
-
type: Boolean,
|
478
|
-
default: true
|
479
|
-
},
|
480
|
-
// 确定按钮的文本内容,默认确定
|
481
|
-
confirmButtonText: {
|
482
|
-
type: String,
|
483
|
-
default: ''
|
484
|
-
},
|
485
|
-
// 确定按钮倒计时时间
|
486
|
-
confirmButtonTime: {
|
487
|
-
type: Number,
|
488
|
-
default: -1
|
489
|
-
},
|
490
|
-
// 内容是表单
|
491
|
-
form: {
|
492
|
-
type: Boolean,
|
493
|
-
default: false
|
380
|
+
// 最小宽度
|
381
|
+
minWidth: {
|
382
|
+
type: [Number, String],
|
383
|
+
default: 88
|
494
384
|
}
|
495
385
|
},
|
496
386
|
data() {
|
497
387
|
return {
|
498
|
-
|
499
|
-
cancelAutoTime: this.cancelButtonTime,
|
500
|
-
confirmAutoTimer: null,
|
501
|
-
confirmAutoTime: this.confirmButtonTime
|
388
|
+
checkList: this.options.filter(x => this.value.includes(x.value))
|
502
389
|
};
|
503
390
|
},
|
504
|
-
computed: {
|
505
|
-
// 如果只显示确定按钮,那么确定按钮plain显示镂空
|
506
|
-
confirmButtonPlain() {
|
507
|
-
if (!this.showCancelButton && this.showConfirmButton) {
|
508
|
-
return true;
|
509
|
-
}
|
510
|
-
return false;
|
511
|
-
},
|
512
|
-
// 如果只显示确定按钮,那么确定按钮文字默认显示知道了
|
513
|
-
confirmButtonDefaultText() {
|
514
|
-
// if (!this.showCancelButton && this.showConfirmButton && !this.confirmButtonText) {
|
515
|
-
// return this.$t('nbUI.known')
|
516
|
-
// }
|
517
|
-
// return this.confirmButtonText || this.$t('nbUI.confirm')
|
518
|
-
return '';
|
519
|
-
},
|
520
|
-
// 表单自定义样式
|
521
|
-
dialogCustomClass() {
|
522
|
-
let cls = 'nb-dialog';
|
523
|
-
if (this.form) {
|
524
|
-
cls += ` nb-form-dialog`;
|
525
|
-
}
|
526
|
-
if (this.customClass) {
|
527
|
-
cls += this.customClass;
|
528
|
-
}
|
529
|
-
return cls;
|
530
|
-
}
|
531
|
-
},
|
532
391
|
watch: {
|
533
|
-
|
534
|
-
|
535
|
-
|
536
|
-
|
537
|
-
if (val && this.confirmButtonTime > -1) {
|
538
|
-
this.startConfirmButtonAutoTimer();
|
392
|
+
value: {
|
393
|
+
deep: true,
|
394
|
+
handler() {
|
395
|
+
this.checkList = this.options.filter(x => this.value.includes(x.value));
|
539
396
|
}
|
540
397
|
}
|
541
398
|
},
|
542
399
|
beforeDestroy() {
|
543
|
-
|
544
|
-
|
400
|
+
this.checkList = [];
|
401
|
+
this.$emit('input', []);
|
545
402
|
},
|
546
403
|
methods: {
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
|
552
|
-
if (this.cancelAutoTime <= 0) {
|
553
|
-
clearInterval(this.cancelAutoTimer);
|
554
|
-
this.handleCancel();
|
555
|
-
}
|
556
|
-
}, 1000);
|
557
|
-
},
|
558
|
-
startConfirmButtonAutoTimer() {
|
559
|
-
clearInterval(this.confirmAutoTimer);
|
560
|
-
this.confirmAutoTime = this.confirmButtonTime;
|
561
|
-
this.confirmAutoTimer = setInterval(() => {
|
562
|
-
this.confirmAutoTime--;
|
563
|
-
if (this.confirmAutoTime <= 0) {
|
564
|
-
clearInterval(this.confirmAutoTimer);
|
565
|
-
this.handleConfirm();
|
566
|
-
}
|
567
|
-
}, 1000);
|
568
|
-
},
|
569
|
-
// 取消
|
570
|
-
handleCancel() {
|
571
|
-
if (!this.$listeners['cancel']) {
|
572
|
-
this.$emit('update', false);
|
404
|
+
getItemClass(item) {
|
405
|
+
let cls = [];
|
406
|
+
const isChecked = (this.checkList || []).findIndex(x => x.value === item.value) > -1;
|
407
|
+
if (isChecked) {
|
408
|
+
cls.push('nb-checkbox-group__item--checked');
|
573
409
|
}
|
574
|
-
|
575
|
-
|
576
|
-
// 确定
|
577
|
-
handleConfirm() {
|
578
|
-
if (!this.$listeners['confirm']) {
|
579
|
-
this.$emit('update', false);
|
410
|
+
if (item.disabled) {
|
411
|
+
cls.push('nb-checkbox-group__item--disabled');
|
580
412
|
}
|
581
|
-
|
582
|
-
},
|
583
|
-
// 点击右上角关闭按钮
|
584
|
-
handleClose() {
|
585
|
-
this.$emit('update', false);
|
413
|
+
return cls;
|
586
414
|
},
|
587
|
-
|
588
|
-
|
589
|
-
|
590
|
-
|
591
|
-
this
|
415
|
+
handleClick(item) {
|
416
|
+
if (item.disabled) {
|
417
|
+
return;
|
418
|
+
}
|
419
|
+
const index = (this.checkList || []).findIndex(x => x.value === item.value);
|
420
|
+
if (index === -1) {
|
421
|
+
this.checkList.push(item);
|
422
|
+
} else {
|
423
|
+
this.checkList.splice(index, 1);
|
424
|
+
}
|
425
|
+
this.$emit('input', this.checkList.map(x => x.value));
|
426
|
+
this.$emit('change', item, this.checkList.map(x => x.value));
|
592
427
|
}
|
593
428
|
}
|
594
429
|
});
|
595
|
-
;// ./packages/components/
|
596
|
-
/* harmony default export */ var
|
430
|
+
;// ./packages/components/NBCheckboxGroup/src/index.vue?vue&type=script&lang=js
|
431
|
+
/* harmony default export */ var NBCheckboxGroup_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
597
432
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
598
433
|
var componentNormalizer = __webpack_require__(1656);
|
599
|
-
;// ./packages/components/
|
434
|
+
;// ./packages/components/NBCheckboxGroup/src/index.vue
|
600
435
|
|
601
436
|
|
602
437
|
|
@@ -605,23 +440,23 @@ var componentNormalizer = __webpack_require__(1656);
|
|
605
440
|
/* normalize component */
|
606
441
|
;
|
607
442
|
var component = (0,componentNormalizer/* default */.A)(
|
608
|
-
|
443
|
+
NBCheckboxGroup_srcvue_type_script_lang_js,
|
609
444
|
render,
|
610
445
|
staticRenderFns,
|
611
446
|
false,
|
612
447
|
null,
|
613
|
-
"
|
448
|
+
"9981adea",
|
614
449
|
null
|
615
450
|
|
616
451
|
)
|
617
452
|
|
618
453
|
/* harmony default export */ var src = (component.exports);
|
619
|
-
;// ./packages/components/
|
454
|
+
;// ./packages/components/NBCheckboxGroup/index.js
|
620
455
|
|
621
456
|
src.install = function (Vue) {
|
622
457
|
Vue.component(src.name, src);
|
623
458
|
};
|
624
|
-
/* harmony default export */ var
|
459
|
+
/* harmony default export */ var NBCheckboxGroup = (src);
|
625
460
|
|
626
461
|
/***/ }),
|
627
462
|
|
@@ -724,7 +559,7 @@ src.install = function (Vue) {
|
|
724
559
|
|
725
560
|
/***/ }),
|
726
561
|
|
727
|
-
/***/
|
562
|
+
/***/ 4216:
|
728
563
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
729
564
|
|
730
565
|
"use strict";
|
@@ -733,17 +568,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
733
568
|
|
734
569
|
// EXPORTS
|
735
570
|
__webpack_require__.d(__webpack_exports__, {
|
736
|
-
"default": function() { return /* binding */
|
571
|
+
"default": function() { return /* binding */ NBFullscreenDialog; }
|
737
572
|
});
|
738
573
|
|
739
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/
|
574
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBFullscreenDialog/src/index.vue?vue&type=template&id=5990c3a8&scoped=true
|
740
575
|
var render = function render() {
|
741
576
|
var _vm = this,
|
742
577
|
_c = _vm._self._c;
|
743
578
|
return _c('el-dialog', {
|
744
|
-
staticClass: "nb-fullscreen-
|
579
|
+
staticClass: "nb-dialog__wrapper nb-fullscreen-dialog__wrapper",
|
745
580
|
style: {
|
746
|
-
'--
|
581
|
+
'--nb-fullscreen-dialog-top': `${_vm.top}px`
|
747
582
|
},
|
748
583
|
attrs: {
|
749
584
|
"visible": _vm.visible,
|
@@ -754,7 +589,7 @@ var render = function render() {
|
|
754
589
|
"fullscreen": "",
|
755
590
|
"append-to-body": "",
|
756
591
|
"destroy-on-close": "",
|
757
|
-
"custom-class": _vm.customClass
|
592
|
+
"custom-class": `nb-dialog nb-fullscreen-dialog ${_vm.customClass}`,
|
758
593
|
"before-close": _vm.handleClose
|
759
594
|
},
|
760
595
|
on: {
|
@@ -766,9 +601,9 @@ var render = function render() {
|
|
766
601
|
};
|
767
602
|
var staticRenderFns = [];
|
768
603
|
|
769
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/
|
604
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBFullscreenDialog/src/index.vue?vue&type=script&lang=js
|
770
605
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
771
|
-
name: '
|
606
|
+
name: 'NBFullscreenDialog',
|
772
607
|
// 使用v-model即可
|
773
608
|
model: {
|
774
609
|
prop: 'visible',
|
@@ -796,12 +631,6 @@ var staticRenderFns = [];
|
|
796
631
|
default: 56
|
797
632
|
}
|
798
633
|
},
|
799
|
-
data() {
|
800
|
-
return {};
|
801
|
-
},
|
802
|
-
computed: {},
|
803
|
-
watch: {},
|
804
|
-
beforeDestroy() {},
|
805
634
|
methods: {
|
806
635
|
handleClose() {
|
807
636
|
this.$emit('update', false);
|
@@ -812,11 +641,11 @@ var staticRenderFns = [];
|
|
812
641
|
}
|
813
642
|
}
|
814
643
|
});
|
815
|
-
;// ./packages/components/
|
816
|
-
/* harmony default export */ var
|
644
|
+
;// ./packages/components/NBFullscreenDialog/src/index.vue?vue&type=script&lang=js
|
645
|
+
/* harmony default export */ var NBFullscreenDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
817
646
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
818
647
|
var componentNormalizer = __webpack_require__(1656);
|
819
|
-
;// ./packages/components/
|
648
|
+
;// ./packages/components/NBFullscreenDialog/src/index.vue
|
820
649
|
|
821
650
|
|
822
651
|
|
@@ -825,23 +654,23 @@ var componentNormalizer = __webpack_require__(1656);
|
|
825
654
|
/* normalize component */
|
826
655
|
;
|
827
656
|
var component = (0,componentNormalizer/* default */.A)(
|
828
|
-
|
657
|
+
NBFullscreenDialog_srcvue_type_script_lang_js,
|
829
658
|
render,
|
830
659
|
staticRenderFns,
|
831
660
|
false,
|
832
661
|
null,
|
833
|
-
"
|
662
|
+
"5990c3a8",
|
834
663
|
null
|
835
664
|
|
836
665
|
)
|
837
666
|
|
838
667
|
/* harmony default export */ var src = (component.exports);
|
839
|
-
;// ./packages/components/
|
668
|
+
;// ./packages/components/NBFullscreenDialog/index.js
|
840
669
|
|
841
670
|
src.install = function (Vue) {
|
842
671
|
Vue.component(src.name, src);
|
843
672
|
};
|
844
|
-
/* harmony default export */ var
|
673
|
+
/* harmony default export */ var NBFullscreenDialog = (src);
|
845
674
|
|
846
675
|
/***/ }),
|
847
676
|
|
@@ -925,8 +754,8 @@ var render = function render() {
|
|
925
754
|
};
|
926
755
|
var staticRenderFns = [];
|
927
756
|
|
928
|
-
// EXTERNAL MODULE: ./packages/components/NBIcon/index.js +
|
929
|
-
var NBIcon = __webpack_require__(
|
757
|
+
// EXTERNAL MODULE: ./packages/components/NBIcon/index.js + 4 modules
|
758
|
+
var NBIcon = __webpack_require__(7252);
|
930
759
|
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBHeader/src/index.vue?vue&type=script&lang=js
|
931
760
|
|
932
761
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
@@ -1064,7 +893,7 @@ src.install = function (Vue) {
|
|
1064
893
|
|
1065
894
|
/***/ }),
|
1066
895
|
|
1067
|
-
/***/
|
896
|
+
/***/ 7252:
|
1068
897
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1069
898
|
|
1070
899
|
"use strict";
|
@@ -1076,7 +905,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
1076
905
|
"default": function() { return /* binding */ NBIcon; }
|
1077
906
|
});
|
1078
907
|
|
1079
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBIcon/src/index.vue?vue&type=template&id=
|
908
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBIcon/src/index.vue?vue&type=template&id=e7c82946&scoped=true
|
1080
909
|
var render = function render() {
|
1081
910
|
var _vm = this,
|
1082
911
|
_c = _vm._self._c;
|
@@ -1099,28 +928,23 @@ var staticRenderFns = [];
|
|
1099
928
|
});
|
1100
929
|
;// ./packages/components/NBIcon/src/index.vue?vue&type=script&lang=js
|
1101
930
|
/* harmony default export */ var NBIcon_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
1102
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBIcon/src/index.vue?vue&type=style&index=0&id=1d7955de&prod&lang=scss&scoped=true
|
1103
|
-
var srcvue_type_style_index_0_id_1d7955de_prod_lang_scss_scoped_true = __webpack_require__(5312);
|
1104
|
-
;// ./packages/components/NBIcon/src/index.vue?vue&type=style&index=0&id=1d7955de&prod&lang=scss&scoped=true
|
1105
|
-
|
1106
931
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1107
932
|
var componentNormalizer = __webpack_require__(1656);
|
1108
933
|
;// ./packages/components/NBIcon/src/index.vue
|
1109
934
|
|
1110
935
|
|
1111
936
|
|
1112
|
-
;
|
1113
937
|
|
1114
938
|
|
1115
939
|
/* normalize component */
|
1116
|
-
|
940
|
+
;
|
1117
941
|
var component = (0,componentNormalizer/* default */.A)(
|
1118
942
|
NBIcon_srcvue_type_script_lang_js,
|
1119
943
|
render,
|
1120
944
|
staticRenderFns,
|
1121
945
|
false,
|
1122
946
|
null,
|
1123
|
-
"
|
947
|
+
"e7c82946",
|
1124
948
|
null
|
1125
949
|
|
1126
950
|
)
|
@@ -1143,7 +967,7 @@ src.install = function (Vue) {
|
|
1143
967
|
|
1144
968
|
/***/ }),
|
1145
969
|
|
1146
|
-
/***/
|
970
|
+
/***/ 2476:
|
1147
971
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1148
972
|
|
1149
973
|
"use strict";
|
@@ -1152,85 +976,204 @@ __webpack_require__.r(__webpack_exports__);
|
|
1152
976
|
|
1153
977
|
// EXPORTS
|
1154
978
|
__webpack_require__.d(__webpack_exports__, {
|
1155
|
-
"default": function() { return /* binding */
|
979
|
+
"default": function() { return /* binding */ NBOutFooterDialog; }
|
1156
980
|
});
|
1157
981
|
|
1158
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/
|
982
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBOutFooterDialog/src/index.vue?vue&type=template&id=992ddab6&scoped=true
|
1159
983
|
var render = function render() {
|
1160
984
|
var _vm = this,
|
1161
985
|
_c = _vm._self._c;
|
1162
|
-
return _c('el-
|
1163
|
-
|
986
|
+
return _c('el-dialog', {
|
987
|
+
staticClass: "nb-dialog__wrapper nb-out-footer-dialog__wrapper",
|
1164
988
|
attrs: {
|
1165
|
-
"
|
1166
|
-
"
|
1167
|
-
"
|
1168
|
-
"
|
989
|
+
"visible": _vm.visible,
|
990
|
+
"close-on-click-modal": false,
|
991
|
+
"close-on-press-escape": false,
|
992
|
+
"show-close": _vm.showClose,
|
993
|
+
"center": "",
|
994
|
+
"append-to-body": "",
|
995
|
+
"destroy-on-close": "",
|
996
|
+
"type": "large",
|
997
|
+
"title": _vm.title,
|
998
|
+
"custom-class": `nb-dialog nb-out-footer-dialog ${_vm.customClass}`,
|
999
|
+
"before-close": _vm.handleClose
|
1169
1000
|
},
|
1170
1001
|
on: {
|
1171
|
-
"
|
1172
|
-
_vm.currentPage = $event;
|
1173
|
-
},
|
1174
|
-
"update:current-page": function ($event) {
|
1175
|
-
_vm.currentPage = $event;
|
1176
|
-
},
|
1177
|
-
"current-change": _vm.handleChangePage
|
1002
|
+
"closed": _vm.closedDialog
|
1178
1003
|
}
|
1179
|
-
})
|
1004
|
+
}, [_vm._t("default"), _c('template', {
|
1005
|
+
slot: "footer"
|
1006
|
+
}, [_vm._t("footer")], 2)], 2);
|
1180
1007
|
};
|
1181
1008
|
var staticRenderFns = [];
|
1182
1009
|
|
1183
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/
|
1010
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBOutFooterDialog/src/index.vue?vue&type=script&lang=js
|
1184
1011
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
1185
|
-
name: '
|
1186
|
-
//
|
1012
|
+
name: 'NBOutFooterDialog',
|
1013
|
+
// 使用v-model即可
|
1014
|
+
model: {
|
1015
|
+
prop: 'visible',
|
1016
|
+
event: 'update'
|
1017
|
+
},
|
1187
1018
|
props: {
|
1188
|
-
//
|
1189
|
-
|
1190
|
-
type:
|
1191
|
-
default:
|
1019
|
+
// 是否显示弹框
|
1020
|
+
visible: {
|
1021
|
+
type: Boolean,
|
1022
|
+
default: false
|
1192
1023
|
},
|
1193
|
-
//
|
1194
|
-
|
1195
|
-
type:
|
1196
|
-
default:
|
1024
|
+
// 弹框标题
|
1025
|
+
title: {
|
1026
|
+
type: String,
|
1027
|
+
default: ''
|
1197
1028
|
},
|
1198
|
-
//
|
1199
|
-
|
1200
|
-
type:
|
1201
|
-
default:
|
1029
|
+
// 是否显示关闭按钮
|
1030
|
+
showClose: {
|
1031
|
+
type: Boolean,
|
1032
|
+
default: true
|
1202
1033
|
},
|
1203
|
-
//
|
1204
|
-
|
1034
|
+
// 自定义样式
|
1035
|
+
customClass: {
|
1205
1036
|
type: String,
|
1206
|
-
default: ''
|
1207
|
-
validator(value) {
|
1208
|
-
return ['', 'right', 'left', 'center'].includes(value);
|
1209
|
-
}
|
1037
|
+
default: ''
|
1210
1038
|
}
|
1211
1039
|
},
|
1212
1040
|
data() {
|
1213
|
-
return {
|
1214
|
-
currentPage: this.pageNo
|
1215
|
-
};
|
1216
|
-
},
|
1217
|
-
watch: {
|
1218
|
-
pageNo(val) {
|
1219
|
-
this.currentPage = val;
|
1220
|
-
}
|
1041
|
+
return {};
|
1221
1042
|
},
|
1043
|
+
computed: {},
|
1044
|
+
watch: {},
|
1222
1045
|
beforeDestroy() {},
|
1223
1046
|
methods: {
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1047
|
+
handleClose() {
|
1048
|
+
this.$emit('update', false);
|
1049
|
+
},
|
1050
|
+
// 关闭弹框
|
1051
|
+
closedDialog() {
|
1052
|
+
this.$emit('closed');
|
1227
1053
|
}
|
1228
1054
|
}
|
1229
1055
|
});
|
1230
|
-
;// ./packages/components/
|
1231
|
-
/* harmony default export */ var
|
1232
|
-
// EXTERNAL MODULE: ./node_modules
|
1233
|
-
var
|
1056
|
+
;// ./packages/components/NBOutFooterDialog/src/index.vue?vue&type=script&lang=js
|
1057
|
+
/* harmony default export */ var NBOutFooterDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
1058
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1059
|
+
var componentNormalizer = __webpack_require__(1656);
|
1060
|
+
;// ./packages/components/NBOutFooterDialog/src/index.vue
|
1061
|
+
|
1062
|
+
|
1063
|
+
|
1064
|
+
|
1065
|
+
|
1066
|
+
/* normalize component */
|
1067
|
+
;
|
1068
|
+
var component = (0,componentNormalizer/* default */.A)(
|
1069
|
+
NBOutFooterDialog_srcvue_type_script_lang_js,
|
1070
|
+
render,
|
1071
|
+
staticRenderFns,
|
1072
|
+
false,
|
1073
|
+
null,
|
1074
|
+
"992ddab6",
|
1075
|
+
null
|
1076
|
+
|
1077
|
+
)
|
1078
|
+
|
1079
|
+
/* harmony default export */ var src = (component.exports);
|
1080
|
+
;// ./packages/components/NBOutFooterDialog/index.js
|
1081
|
+
|
1082
|
+
src.install = function (Vue) {
|
1083
|
+
Vue.component(src.name, src);
|
1084
|
+
};
|
1085
|
+
/* harmony default export */ var NBOutFooterDialog = (src);
|
1086
|
+
|
1087
|
+
/***/ }),
|
1088
|
+
|
1089
|
+
/***/ 5168:
|
1090
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1091
|
+
|
1092
|
+
"use strict";
|
1093
|
+
// ESM COMPAT FLAG
|
1094
|
+
__webpack_require__.r(__webpack_exports__);
|
1095
|
+
|
1096
|
+
// EXPORTS
|
1097
|
+
__webpack_require__.d(__webpack_exports__, {
|
1098
|
+
"default": function() { return /* binding */ NBPagination; }
|
1099
|
+
});
|
1100
|
+
|
1101
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBPagination/src/index.vue?vue&type=template&id=1e725708&scoped=true
|
1102
|
+
var render = function render() {
|
1103
|
+
var _vm = this,
|
1104
|
+
_c = _vm._self._c;
|
1105
|
+
return _c('el-pagination', {
|
1106
|
+
class: `nb-pagination el-pagination--${_vm.position}`,
|
1107
|
+
attrs: {
|
1108
|
+
"current-page": _vm.currentPage,
|
1109
|
+
"page-size": _vm.pageSize,
|
1110
|
+
"total": _vm.total,
|
1111
|
+
"layout": "prev, pager, next"
|
1112
|
+
},
|
1113
|
+
on: {
|
1114
|
+
"update:currentPage": function ($event) {
|
1115
|
+
_vm.currentPage = $event;
|
1116
|
+
},
|
1117
|
+
"update:current-page": function ($event) {
|
1118
|
+
_vm.currentPage = $event;
|
1119
|
+
},
|
1120
|
+
"current-change": _vm.handleChangePage
|
1121
|
+
}
|
1122
|
+
});
|
1123
|
+
};
|
1124
|
+
var staticRenderFns = [];
|
1125
|
+
|
1126
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBPagination/src/index.vue?vue&type=script&lang=js
|
1127
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
1128
|
+
name: 'NBPagination',
|
1129
|
+
// 分页
|
1130
|
+
props: {
|
1131
|
+
// 当前页码
|
1132
|
+
pageNo: {
|
1133
|
+
type: Number,
|
1134
|
+
default: 0
|
1135
|
+
},
|
1136
|
+
// 每页显示条目个数,默认8
|
1137
|
+
pageSize: {
|
1138
|
+
type: Number,
|
1139
|
+
default: 8
|
1140
|
+
},
|
1141
|
+
// 总条数
|
1142
|
+
total: {
|
1143
|
+
type: Number,
|
1144
|
+
default: 0
|
1145
|
+
},
|
1146
|
+
// 显示位置
|
1147
|
+
position: {
|
1148
|
+
type: String,
|
1149
|
+
default: '',
|
1150
|
+
validator(value) {
|
1151
|
+
return ['', 'right', 'left', 'center'].includes(value);
|
1152
|
+
}
|
1153
|
+
}
|
1154
|
+
},
|
1155
|
+
data() {
|
1156
|
+
return {
|
1157
|
+
currentPage: this.pageNo
|
1158
|
+
};
|
1159
|
+
},
|
1160
|
+
watch: {
|
1161
|
+
pageNo(val) {
|
1162
|
+
this.currentPage = val;
|
1163
|
+
}
|
1164
|
+
},
|
1165
|
+
beforeDestroy() {},
|
1166
|
+
methods: {
|
1167
|
+
// 切换页码
|
1168
|
+
handleChangePage() {
|
1169
|
+
this.$emit('change', this.currentPage);
|
1170
|
+
}
|
1171
|
+
}
|
1172
|
+
});
|
1173
|
+
;// ./packages/components/NBPagination/src/index.vue?vue&type=script&lang=js
|
1174
|
+
/* harmony default export */ var NBPagination_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
1175
|
+
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBPagination/src/index.vue?vue&type=style&index=0&id=1e725708&prod&lang=scss&scoped=true
|
1176
|
+
var srcvue_type_style_index_0_id_1e725708_prod_lang_scss_scoped_true = __webpack_require__(4136);
|
1234
1177
|
;// ./packages/components/NBPagination/src/index.vue?vue&type=style&index=0&id=1e725708&prod&lang=scss&scoped=true
|
1235
1178
|
|
1236
1179
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
@@ -1265,6 +1208,294 @@ src.install = function (Vue) {
|
|
1265
1208
|
|
1266
1209
|
/***/ }),
|
1267
1210
|
|
1211
|
+
/***/ 1285:
|
1212
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1213
|
+
|
1214
|
+
"use strict";
|
1215
|
+
// ESM COMPAT FLAG
|
1216
|
+
__webpack_require__.r(__webpack_exports__);
|
1217
|
+
|
1218
|
+
// EXPORTS
|
1219
|
+
__webpack_require__.d(__webpack_exports__, {
|
1220
|
+
"default": function() { return /* binding */ NBProgress; }
|
1221
|
+
});
|
1222
|
+
|
1223
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBProgress/src/index.vue?vue&type=template&id=8c0e02ce&scoped=true
|
1224
|
+
var render = function render() {
|
1225
|
+
var _vm = this,
|
1226
|
+
_c = _vm._self._c;
|
1227
|
+
return _c('div', {
|
1228
|
+
staticClass: "nb-progress",
|
1229
|
+
class: [`nb-progress--${_vm.type}`, `nb-progress--${_vm.size}`]
|
1230
|
+
}, [_vm.type === 'line' ? [_c('el-progress', {
|
1231
|
+
attrs: {
|
1232
|
+
"type": _vm.type,
|
1233
|
+
"percentage": _vm.percentage || _vm.precent,
|
1234
|
+
"stroke-width": 20,
|
1235
|
+
"showText": _vm.showText,
|
1236
|
+
"color": "#0066E0"
|
1237
|
+
}
|
1238
|
+
})] : [_c('el-progress', {
|
1239
|
+
attrs: {
|
1240
|
+
"type": _vm.type,
|
1241
|
+
"percentage": _vm.percentage || _vm.precent,
|
1242
|
+
"stroke-width": 28,
|
1243
|
+
"width": _vm.circleWidth,
|
1244
|
+
"show-text": false,
|
1245
|
+
"color": "#0066E0"
|
1246
|
+
}
|
1247
|
+
}), _vm.showText ? _c('div', {
|
1248
|
+
staticClass: "precent-text"
|
1249
|
+
}, [_vm._v(_vm._s(_vm.percentage || _vm.precent)), _c('i', [_vm._v("%")])]) : _vm._e()]], 2);
|
1250
|
+
};
|
1251
|
+
var staticRenderFns = [];
|
1252
|
+
|
1253
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBProgress/src/index.vue?vue&type=script&lang=js
|
1254
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
1255
|
+
name: 'NBProgress',
|
1256
|
+
props: {
|
1257
|
+
// 百分比
|
1258
|
+
percentage: {
|
1259
|
+
type: Number,
|
1260
|
+
default: 0
|
1261
|
+
},
|
1262
|
+
// 时间
|
1263
|
+
time: {
|
1264
|
+
type: Number,
|
1265
|
+
default: 0
|
1266
|
+
},
|
1267
|
+
// 类型(circle 圆形进度条,line 线形进度条)
|
1268
|
+
type: {
|
1269
|
+
type: String,
|
1270
|
+
default: 'circle'
|
1271
|
+
},
|
1272
|
+
// 是否显示进度条文字内容
|
1273
|
+
showText: {
|
1274
|
+
type: Boolean,
|
1275
|
+
default: true
|
1276
|
+
},
|
1277
|
+
// 大小:small / medium
|
1278
|
+
size: {
|
1279
|
+
type: String,
|
1280
|
+
default: 'medium',
|
1281
|
+
validator(value) {
|
1282
|
+
return ['small', 'medium', ''].includes(value);
|
1283
|
+
}
|
1284
|
+
}
|
1285
|
+
},
|
1286
|
+
data() {
|
1287
|
+
return {
|
1288
|
+
precent: 0,
|
1289
|
+
// 进度百分比
|
1290
|
+
interval: null
|
1291
|
+
};
|
1292
|
+
},
|
1293
|
+
mounted() {
|
1294
|
+
if (this.time > 0) {
|
1295
|
+
this.nunAnimation(0, 100, this.time);
|
1296
|
+
}
|
1297
|
+
},
|
1298
|
+
computed: {
|
1299
|
+
circleWidth() {
|
1300
|
+
return this.size === 'small' ? 240 : 271;
|
1301
|
+
}
|
1302
|
+
},
|
1303
|
+
watch: {},
|
1304
|
+
beforeDestroy() {
|
1305
|
+
clearInterval(this.interval);
|
1306
|
+
this.interval = null;
|
1307
|
+
},
|
1308
|
+
methods: {
|
1309
|
+
/**
|
1310
|
+
* 参数说明
|
1311
|
+
* @param {String} start 开始数值
|
1312
|
+
* @param {String} end 结束数值
|
1313
|
+
* @param {String} sec 时间,单位s
|
1314
|
+
*/
|
1315
|
+
nunAnimation(start, end, sec) {
|
1316
|
+
let val = start;
|
1317
|
+
let delay = sec * 1000 / Math.abs(end - start);
|
1318
|
+
if (delay < 1000 / 60) {
|
1319
|
+
delay = 1000 / 60;
|
1320
|
+
}
|
1321
|
+
const step = (end - start) / (sec * 1000 / delay);
|
1322
|
+
this.interval = setInterval(() => {
|
1323
|
+
if (val < end) {
|
1324
|
+
this.precent = val;
|
1325
|
+
val += step;
|
1326
|
+
val = Math.floor(val);
|
1327
|
+
} else {
|
1328
|
+
this.precent = end;
|
1329
|
+
clearInterval(this.interval);
|
1330
|
+
}
|
1331
|
+
}, delay);
|
1332
|
+
}
|
1333
|
+
}
|
1334
|
+
});
|
1335
|
+
;// ./packages/components/NBProgress/src/index.vue?vue&type=script&lang=js
|
1336
|
+
/* harmony default export */ var NBProgress_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
1337
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1338
|
+
var componentNormalizer = __webpack_require__(1656);
|
1339
|
+
;// ./packages/components/NBProgress/src/index.vue
|
1340
|
+
|
1341
|
+
|
1342
|
+
|
1343
|
+
|
1344
|
+
|
1345
|
+
/* normalize component */
|
1346
|
+
;
|
1347
|
+
var component = (0,componentNormalizer/* default */.A)(
|
1348
|
+
NBProgress_srcvue_type_script_lang_js,
|
1349
|
+
render,
|
1350
|
+
staticRenderFns,
|
1351
|
+
false,
|
1352
|
+
null,
|
1353
|
+
"8c0e02ce",
|
1354
|
+
null
|
1355
|
+
|
1356
|
+
)
|
1357
|
+
|
1358
|
+
/* harmony default export */ var src = (component.exports);
|
1359
|
+
;// ./packages/components/NBProgress/index.js
|
1360
|
+
|
1361
|
+
src.install = function (Vue) {
|
1362
|
+
Vue.component(src.name, src);
|
1363
|
+
};
|
1364
|
+
/* harmony default export */ var NBProgress = (src);
|
1365
|
+
|
1366
|
+
/***/ }),
|
1367
|
+
|
1368
|
+
/***/ 918:
|
1369
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1370
|
+
|
1371
|
+
"use strict";
|
1372
|
+
// ESM COMPAT FLAG
|
1373
|
+
__webpack_require__.r(__webpack_exports__);
|
1374
|
+
|
1375
|
+
// EXPORTS
|
1376
|
+
__webpack_require__.d(__webpack_exports__, {
|
1377
|
+
"default": function() { return /* binding */ NBRadioGroup; }
|
1378
|
+
});
|
1379
|
+
|
1380
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBRadioGroup/src/index.vue?vue&type=template&id=479965ae&scoped=true
|
1381
|
+
var render = function render() {
|
1382
|
+
var _vm = this,
|
1383
|
+
_c = _vm._self._c;
|
1384
|
+
return _c('div', {
|
1385
|
+
staticClass: "nb-radio-group-group"
|
1386
|
+
}, _vm._l(_vm.options, function (item, index) {
|
1387
|
+
return _c('div', {
|
1388
|
+
key: index,
|
1389
|
+
staticClass: "nb-radio-group__item",
|
1390
|
+
class: _vm.getItemClass(item),
|
1391
|
+
style: `min-width: ${_vm.minWidth}px`,
|
1392
|
+
on: {
|
1393
|
+
"click": function ($event) {
|
1394
|
+
$event.stopPropagation();
|
1395
|
+
return _vm.handleClick(item);
|
1396
|
+
}
|
1397
|
+
}
|
1398
|
+
}, [_c('span', [_vm._t("default", function () {
|
1399
|
+
return [_vm._v(_vm._s(item.label))];
|
1400
|
+
}, {
|
1401
|
+
"row": item
|
1402
|
+
})], 2)]);
|
1403
|
+
}), 0);
|
1404
|
+
};
|
1405
|
+
var staticRenderFns = [];
|
1406
|
+
|
1407
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
1408
|
+
var es_array_push = __webpack_require__(4114);
|
1409
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBRadioGroup/src/index.vue?vue&type=script&lang=js
|
1410
|
+
|
1411
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
1412
|
+
name: 'NBRadioGroup',
|
1413
|
+
props: {
|
1414
|
+
// v-model
|
1415
|
+
value: {
|
1416
|
+
type: [Object, Number, String],
|
1417
|
+
default: null
|
1418
|
+
},
|
1419
|
+
// 选项,value 选中值,label 显示值
|
1420
|
+
options: {
|
1421
|
+
type: Array,
|
1422
|
+
default: () => {
|
1423
|
+
return [];
|
1424
|
+
}
|
1425
|
+
},
|
1426
|
+
// 最小宽度
|
1427
|
+
minWidth: {
|
1428
|
+
type: [Number, String],
|
1429
|
+
default: 88
|
1430
|
+
}
|
1431
|
+
},
|
1432
|
+
data() {
|
1433
|
+
return {
|
1434
|
+
checked: this.value
|
1435
|
+
};
|
1436
|
+
},
|
1437
|
+
watch: {
|
1438
|
+
value: {
|
1439
|
+
deep: true,
|
1440
|
+
handler() {
|
1441
|
+
this.checked = this.value;
|
1442
|
+
}
|
1443
|
+
}
|
1444
|
+
},
|
1445
|
+
methods: {
|
1446
|
+
getItemClass(item) {
|
1447
|
+
let cls = [];
|
1448
|
+
const isChecked = this.checked === item.value;
|
1449
|
+
if (isChecked) {
|
1450
|
+
cls.push('nb-radio-group__item--checked');
|
1451
|
+
}
|
1452
|
+
if (item.disabled) {
|
1453
|
+
cls.push('nb-radio-group__item--disabled');
|
1454
|
+
}
|
1455
|
+
return cls;
|
1456
|
+
},
|
1457
|
+
handleClick(item) {
|
1458
|
+
if (item.disabled) {
|
1459
|
+
return;
|
1460
|
+
}
|
1461
|
+
this.checked = item.value;
|
1462
|
+
this.$emit('input', this.checked);
|
1463
|
+
}
|
1464
|
+
}
|
1465
|
+
});
|
1466
|
+
;// ./packages/components/NBRadioGroup/src/index.vue?vue&type=script&lang=js
|
1467
|
+
/* harmony default export */ var NBRadioGroup_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
1468
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1469
|
+
var componentNormalizer = __webpack_require__(1656);
|
1470
|
+
;// ./packages/components/NBRadioGroup/src/index.vue
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
|
1475
|
+
|
1476
|
+
/* normalize component */
|
1477
|
+
;
|
1478
|
+
var component = (0,componentNormalizer/* default */.A)(
|
1479
|
+
NBRadioGroup_srcvue_type_script_lang_js,
|
1480
|
+
render,
|
1481
|
+
staticRenderFns,
|
1482
|
+
false,
|
1483
|
+
null,
|
1484
|
+
"479965ae",
|
1485
|
+
null
|
1486
|
+
|
1487
|
+
)
|
1488
|
+
|
1489
|
+
/* harmony default export */ var src = (component.exports);
|
1490
|
+
;// ./packages/components/NBRadioGroup/index.js
|
1491
|
+
|
1492
|
+
src.install = function (Vue) {
|
1493
|
+
Vue.component(src.name, src);
|
1494
|
+
};
|
1495
|
+
/* harmony default export */ var NBRadioGroup = (src);
|
1496
|
+
|
1497
|
+
/***/ }),
|
1498
|
+
|
1268
1499
|
/***/ 5749:
|
1269
1500
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1270
1501
|
|
@@ -1388,6 +1619,105 @@ src.install = function (Vue) {
|
|
1388
1619
|
|
1389
1620
|
/***/ }),
|
1390
1621
|
|
1622
|
+
/***/ 877:
|
1623
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1624
|
+
|
1625
|
+
"use strict";
|
1626
|
+
// ESM COMPAT FLAG
|
1627
|
+
__webpack_require__.r(__webpack_exports__);
|
1628
|
+
|
1629
|
+
// EXPORTS
|
1630
|
+
__webpack_require__.d(__webpack_exports__, {
|
1631
|
+
"default": function() { return /* binding */ NBTabs; }
|
1632
|
+
});
|
1633
|
+
|
1634
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBTabs/src/index.vue?vue&type=template&id=5159391f&scoped=true
|
1635
|
+
var render = function render() {
|
1636
|
+
var _vm = this,
|
1637
|
+
_c = _vm._self._c;
|
1638
|
+
return _c('div', {
|
1639
|
+
staticClass: "nb-tabs"
|
1640
|
+
}, _vm._l(_vm.data, function (item, index) {
|
1641
|
+
return _c('div', {
|
1642
|
+
key: index,
|
1643
|
+
staticClass: "nb-tab-item",
|
1644
|
+
class: index === _vm.modelValue ? 'is-active' : '',
|
1645
|
+
on: {
|
1646
|
+
"click": function ($event) {
|
1647
|
+
$event.stopPropagation();
|
1648
|
+
return _vm.handleChange(item, index);
|
1649
|
+
}
|
1650
|
+
}
|
1651
|
+
}, [_vm._t("default", function () {
|
1652
|
+
return [_vm._v(_vm._s(item.label))];
|
1653
|
+
}, {
|
1654
|
+
"item": item
|
1655
|
+
})], 2);
|
1656
|
+
}), 0);
|
1657
|
+
};
|
1658
|
+
var staticRenderFns = [];
|
1659
|
+
|
1660
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBTabs/src/index.vue?vue&type=script&lang=js
|
1661
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
1662
|
+
name: 'NBTabs',
|
1663
|
+
model: {
|
1664
|
+
prop: 'modelValue',
|
1665
|
+
event: 'update'
|
1666
|
+
},
|
1667
|
+
props: {
|
1668
|
+
// v-model 索引
|
1669
|
+
modelValue: {
|
1670
|
+
type: [Number, String],
|
1671
|
+
default: null
|
1672
|
+
},
|
1673
|
+
// 数据源
|
1674
|
+
data: {
|
1675
|
+
type: Array,
|
1676
|
+
default: () => {
|
1677
|
+
return [];
|
1678
|
+
}
|
1679
|
+
}
|
1680
|
+
},
|
1681
|
+
methods: {
|
1682
|
+
handleChange(item, index) {
|
1683
|
+
this.$emit('update', index);
|
1684
|
+
this.$emit('change', item);
|
1685
|
+
}
|
1686
|
+
}
|
1687
|
+
});
|
1688
|
+
;// ./packages/components/NBTabs/src/index.vue?vue&type=script&lang=js
|
1689
|
+
/* harmony default export */ var NBTabs_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
1690
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
1691
|
+
var componentNormalizer = __webpack_require__(1656);
|
1692
|
+
;// ./packages/components/NBTabs/src/index.vue
|
1693
|
+
|
1694
|
+
|
1695
|
+
|
1696
|
+
|
1697
|
+
|
1698
|
+
/* normalize component */
|
1699
|
+
;
|
1700
|
+
var component = (0,componentNormalizer/* default */.A)(
|
1701
|
+
NBTabs_srcvue_type_script_lang_js,
|
1702
|
+
render,
|
1703
|
+
staticRenderFns,
|
1704
|
+
false,
|
1705
|
+
null,
|
1706
|
+
"5159391f",
|
1707
|
+
null
|
1708
|
+
|
1709
|
+
)
|
1710
|
+
|
1711
|
+
/* harmony default export */ var src = (component.exports);
|
1712
|
+
;// ./packages/components/NBTabs/index.js
|
1713
|
+
|
1714
|
+
src.install = function (Vue) {
|
1715
|
+
Vue.component(src.name, src);
|
1716
|
+
};
|
1717
|
+
/* harmony default export */ var NBTabs = (src);
|
1718
|
+
|
1719
|
+
/***/ }),
|
1720
|
+
|
1391
1721
|
/***/ 7996:
|
1392
1722
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
1393
1723
|
|
@@ -1455,61 +1785,29 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
1455
1785
|
|
1456
1786
|
)
|
1457
1787
|
|
1458
|
-
/* harmony default export */ var src = (component.exports);
|
1459
|
-
;// ./packages/components/NBTag/index.js
|
1460
|
-
|
1461
|
-
src.install = function (Vue) {
|
1462
|
-
Vue.component(src.name, src);
|
1463
|
-
};
|
1464
|
-
/* harmony default export */ var NBTag = (src);
|
1465
|
-
|
1466
|
-
/***/ }),
|
1467
|
-
|
1468
|
-
/***/ 3050:
|
1469
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1470
|
-
|
1471
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
1472
|
-
|
1473
|
-
// load the styles
|
1474
|
-
var content = __webpack_require__(151);
|
1475
|
-
if(content.__esModule) content = content.default;
|
1476
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
1477
|
-
if(content.locals) module.exports = content.locals;
|
1478
|
-
// add the styles to the DOM
|
1479
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
1480
|
-
var update = add("f422e070", content, true, {"sourceMap":false,"shadowMode":false});
|
1481
|
-
|
1482
|
-
/***/ }),
|
1483
|
-
|
1484
|
-
/***/ 5312:
|
1485
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1486
|
-
|
1487
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
1488
|
-
|
1489
|
-
// load the styles
|
1490
|
-
var content = __webpack_require__(1500);
|
1491
|
-
if(content.__esModule) content = content.default;
|
1492
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
1493
|
-
if(content.locals) module.exports = content.locals;
|
1494
|
-
// add the styles to the DOM
|
1495
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
1496
|
-
var update = add("7cd5ae63", content, true, {"sourceMap":false,"shadowMode":false});
|
1788
|
+
/* harmony default export */ var src = (component.exports);
|
1789
|
+
;// ./packages/components/NBTag/index.js
|
1790
|
+
|
1791
|
+
src.install = function (Vue) {
|
1792
|
+
Vue.component(src.name, src);
|
1793
|
+
};
|
1794
|
+
/* harmony default export */ var NBTag = (src);
|
1497
1795
|
|
1498
1796
|
/***/ }),
|
1499
1797
|
|
1500
|
-
/***/
|
1798
|
+
/***/ 3050:
|
1501
1799
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1502
1800
|
|
1503
1801
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
1504
1802
|
|
1505
1803
|
// load the styles
|
1506
|
-
var content = __webpack_require__(
|
1804
|
+
var content = __webpack_require__(151);
|
1507
1805
|
if(content.__esModule) content = content.default;
|
1508
1806
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
1509
1807
|
if(content.locals) module.exports = content.locals;
|
1510
1808
|
// add the styles to the DOM
|
1511
1809
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
1512
|
-
var update = add("
|
1810
|
+
var update = add("f422e070", content, true, {"sourceMap":false,"shadowMode":false});
|
1513
1811
|
|
1514
1812
|
/***/ }),
|
1515
1813
|
|
@@ -1831,13 +2129,17 @@ webpackContext.id = 1603;
|
|
1831
2129
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1832
2130
|
|
1833
2131
|
var map = {
|
1834
|
-
"./
|
2132
|
+
"./NBCheckboxGroup/index.js": 2054,
|
1835
2133
|
"./NBEmpty/index.js": 6102,
|
1836
|
-
"./
|
2134
|
+
"./NBFullscreenDialog/index.js": 4216,
|
1837
2135
|
"./NBHeader/index.js": 1678,
|
1838
|
-
"./NBIcon/index.js":
|
2136
|
+
"./NBIcon/index.js": 7252,
|
2137
|
+
"./NBOutFooterDialog/index.js": 2476,
|
1839
2138
|
"./NBPagination/index.js": 5168,
|
2139
|
+
"./NBProgress/index.js": 1285,
|
2140
|
+
"./NBRadioGroup/index.js": 918,
|
1840
2141
|
"./NBSummaryBar/index.js": 5749,
|
2142
|
+
"./NBTabs/index.js": 877,
|
1841
2143
|
"./NBTag/index.js": 7996
|
1842
2144
|
};
|
1843
2145
|
|
@@ -1943,14 +2245,6 @@ module.exports = __webpack_require__.p + "fonts/iconfont.c068c01a.woff";
|
|
1943
2245
|
|
1944
2246
|
/***/ }),
|
1945
2247
|
|
1946
|
-
/***/ 9274:
|
1947
|
-
/***/ (function(module) {
|
1948
|
-
|
1949
|
-
"use strict";
|
1950
|
-
module.exports = __WEBPACK_EXTERNAL_MODULE__9274__;
|
1951
|
-
|
1952
|
-
/***/ }),
|
1953
|
-
|
1954
2248
|
/***/ 9306:
|
1955
2249
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1956
2250
|
|
@@ -2081,6 +2375,26 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
2081
2375
|
};
|
2082
2376
|
|
2083
2377
|
|
2378
|
+
/***/ }),
|
2379
|
+
|
2380
|
+
/***/ 6319:
|
2381
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2382
|
+
|
2383
|
+
"use strict";
|
2384
|
+
|
2385
|
+
var anObject = __webpack_require__(8551);
|
2386
|
+
var iteratorClose = __webpack_require__(9539);
|
2387
|
+
|
2388
|
+
// call something on iterator step with safe closing on error
|
2389
|
+
module.exports = function (iterator, fn, value, ENTRIES) {
|
2390
|
+
try {
|
2391
|
+
return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
|
2392
|
+
} catch (error) {
|
2393
|
+
iteratorClose(iterator, 'throw', error);
|
2394
|
+
}
|
2395
|
+
};
|
2396
|
+
|
2397
|
+
|
2084
2398
|
/***/ }),
|
2085
2399
|
|
2086
2400
|
/***/ 2195:
|
@@ -2178,6 +2492,20 @@ module.exports = !fails(function () {
|
|
2178
2492
|
});
|
2179
2493
|
|
2180
2494
|
|
2495
|
+
/***/ }),
|
2496
|
+
|
2497
|
+
/***/ 2529:
|
2498
|
+
/***/ (function(module) {
|
2499
|
+
|
2500
|
+
"use strict";
|
2501
|
+
|
2502
|
+
// `CreateIterResultObject` abstract operation
|
2503
|
+
// https://tc39.es/ecma262/#sec-createiterresultobject
|
2504
|
+
module.exports = function (value, done) {
|
2505
|
+
return { value: value, done: done };
|
2506
|
+
};
|
2507
|
+
|
2508
|
+
|
2181
2509
|
/***/ }),
|
2182
2510
|
|
2183
2511
|
/***/ 6699:
|
@@ -2284,6 +2612,21 @@ module.exports = function (O, key, value, options) {
|
|
2284
2612
|
};
|
2285
2613
|
|
2286
2614
|
|
2615
|
+
/***/ }),
|
2616
|
+
|
2617
|
+
/***/ 6279:
|
2618
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
2619
|
+
|
2620
|
+
"use strict";
|
2621
|
+
|
2622
|
+
var defineBuiltIn = __webpack_require__(6840);
|
2623
|
+
|
2624
|
+
module.exports = function (target, src, options) {
|
2625
|
+
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
2626
|
+
return target;
|
2627
|
+
};
|
2628
|
+
|
2629
|
+
|
2287
2630
|
/***/ }),
|
2288
2631
|
|
2289
2632
|
/***/ 9433:
|
@@ -3191,6 +3534,122 @@ module.exports = function (iterator, kind, value) {
|
|
3191
3534
|
};
|
3192
3535
|
|
3193
3536
|
|
3537
|
+
/***/ }),
|
3538
|
+
|
3539
|
+
/***/ 9462:
|
3540
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
3541
|
+
|
3542
|
+
"use strict";
|
3543
|
+
|
3544
|
+
var call = __webpack_require__(9565);
|
3545
|
+
var create = __webpack_require__(2360);
|
3546
|
+
var createNonEnumerableProperty = __webpack_require__(6699);
|
3547
|
+
var defineBuiltIns = __webpack_require__(6279);
|
3548
|
+
var wellKnownSymbol = __webpack_require__(8227);
|
3549
|
+
var InternalStateModule = __webpack_require__(1181);
|
3550
|
+
var getMethod = __webpack_require__(5966);
|
3551
|
+
var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
|
3552
|
+
var createIterResultObject = __webpack_require__(2529);
|
3553
|
+
var iteratorClose = __webpack_require__(9539);
|
3554
|
+
|
3555
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
3556
|
+
var ITERATOR_HELPER = 'IteratorHelper';
|
3557
|
+
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
3558
|
+
var setInternalState = InternalStateModule.set;
|
3559
|
+
|
3560
|
+
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
3561
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
3562
|
+
|
3563
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
3564
|
+
next: function next() {
|
3565
|
+
var state = getInternalState(this);
|
3566
|
+
// for simplification:
|
3567
|
+
// for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
|
3568
|
+
// for `%IteratorHelperPrototype%.next` - just a value
|
3569
|
+
if (IS_ITERATOR) return state.nextHandler();
|
3570
|
+
try {
|
3571
|
+
var result = state.done ? undefined : state.nextHandler();
|
3572
|
+
return createIterResultObject(result, state.done);
|
3573
|
+
} catch (error) {
|
3574
|
+
state.done = true;
|
3575
|
+
throw error;
|
3576
|
+
}
|
3577
|
+
},
|
3578
|
+
'return': function () {
|
3579
|
+
var state = getInternalState(this);
|
3580
|
+
var iterator = state.iterator;
|
3581
|
+
state.done = true;
|
3582
|
+
if (IS_ITERATOR) {
|
3583
|
+
var returnMethod = getMethod(iterator, 'return');
|
3584
|
+
return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
|
3585
|
+
}
|
3586
|
+
if (state.inner) try {
|
3587
|
+
iteratorClose(state.inner.iterator, 'normal');
|
3588
|
+
} catch (error) {
|
3589
|
+
return iteratorClose(iterator, 'throw', error);
|
3590
|
+
}
|
3591
|
+
if (iterator) iteratorClose(iterator, 'normal');
|
3592
|
+
return createIterResultObject(undefined, true);
|
3593
|
+
}
|
3594
|
+
});
|
3595
|
+
};
|
3596
|
+
|
3597
|
+
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
3598
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
3599
|
+
|
3600
|
+
createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
3601
|
+
|
3602
|
+
module.exports = function (nextHandler, IS_ITERATOR) {
|
3603
|
+
var IteratorProxy = function Iterator(record, state) {
|
3604
|
+
if (state) {
|
3605
|
+
state.iterator = record.iterator;
|
3606
|
+
state.next = record.next;
|
3607
|
+
} else state = record;
|
3608
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
3609
|
+
state.nextHandler = nextHandler;
|
3610
|
+
state.counter = 0;
|
3611
|
+
state.done = false;
|
3612
|
+
setInternalState(this, state);
|
3613
|
+
};
|
3614
|
+
|
3615
|
+
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
3616
|
+
|
3617
|
+
return IteratorProxy;
|
3618
|
+
};
|
3619
|
+
|
3620
|
+
|
3621
|
+
/***/ }),
|
3622
|
+
|
3623
|
+
/***/ 713:
|
3624
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
3625
|
+
|
3626
|
+
"use strict";
|
3627
|
+
|
3628
|
+
var call = __webpack_require__(9565);
|
3629
|
+
var aCallable = __webpack_require__(9306);
|
3630
|
+
var anObject = __webpack_require__(8551);
|
3631
|
+
var getIteratorDirect = __webpack_require__(1767);
|
3632
|
+
var createIteratorProxy = __webpack_require__(9462);
|
3633
|
+
var callWithSafeIterationClosing = __webpack_require__(6319);
|
3634
|
+
|
3635
|
+
var IteratorProxy = createIteratorProxy(function () {
|
3636
|
+
var iterator = this.iterator;
|
3637
|
+
var result = anObject(call(this.next, iterator));
|
3638
|
+
var done = this.done = !!result.done;
|
3639
|
+
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
3640
|
+
});
|
3641
|
+
|
3642
|
+
// `Iterator.prototype.map` method
|
3643
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
3644
|
+
module.exports = function map(mapper) {
|
3645
|
+
anObject(this);
|
3646
|
+
aCallable(mapper);
|
3647
|
+
return new IteratorProxy(getIteratorDirect(this), {
|
3648
|
+
mapper: mapper
|
3649
|
+
});
|
3650
|
+
};
|
3651
|
+
|
3652
|
+
|
3194
3653
|
/***/ }),
|
3195
3654
|
|
3196
3655
|
/***/ 7657:
|
@@ -4248,6 +4707,49 @@ $({ global: true, constructor: true, forced: FORCED }, {
|
|
4248
4707
|
});
|
4249
4708
|
|
4250
4709
|
|
4710
|
+
/***/ }),
|
4711
|
+
|
4712
|
+
/***/ 2489:
|
4713
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
4714
|
+
|
4715
|
+
"use strict";
|
4716
|
+
|
4717
|
+
var $ = __webpack_require__(6518);
|
4718
|
+
var call = __webpack_require__(9565);
|
4719
|
+
var aCallable = __webpack_require__(9306);
|
4720
|
+
var anObject = __webpack_require__(8551);
|
4721
|
+
var getIteratorDirect = __webpack_require__(1767);
|
4722
|
+
var createIteratorProxy = __webpack_require__(9462);
|
4723
|
+
var callWithSafeIterationClosing = __webpack_require__(6319);
|
4724
|
+
var IS_PURE = __webpack_require__(6395);
|
4725
|
+
|
4726
|
+
var IteratorProxy = createIteratorProxy(function () {
|
4727
|
+
var iterator = this.iterator;
|
4728
|
+
var predicate = this.predicate;
|
4729
|
+
var next = this.next;
|
4730
|
+
var result, done, value;
|
4731
|
+
while (true) {
|
4732
|
+
result = anObject(call(next, iterator));
|
4733
|
+
done = this.done = !!result.done;
|
4734
|
+
if (done) return;
|
4735
|
+
value = result.value;
|
4736
|
+
if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
|
4737
|
+
}
|
4738
|
+
});
|
4739
|
+
|
4740
|
+
// `Iterator.prototype.filter` method
|
4741
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
4742
|
+
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
4743
|
+
filter: function filter(predicate) {
|
4744
|
+
anObject(this);
|
4745
|
+
aCallable(predicate);
|
4746
|
+
return new IteratorProxy(getIteratorDirect(this), {
|
4747
|
+
predicate: predicate
|
4748
|
+
});
|
4749
|
+
}
|
4750
|
+
});
|
4751
|
+
|
4752
|
+
|
4251
4753
|
/***/ }),
|
4252
4754
|
|
4253
4755
|
/***/ 7588:
|
@@ -4276,6 +4778,24 @@ $({ target: 'Iterator', proto: true, real: true }, {
|
|
4276
4778
|
});
|
4277
4779
|
|
4278
4780
|
|
4781
|
+
/***/ }),
|
4782
|
+
|
4783
|
+
/***/ 1701:
|
4784
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
4785
|
+
|
4786
|
+
"use strict";
|
4787
|
+
|
4788
|
+
var $ = __webpack_require__(6518);
|
4789
|
+
var map = __webpack_require__(713);
|
4790
|
+
var IS_PURE = __webpack_require__(6395);
|
4791
|
+
|
4792
|
+
// `Iterator.prototype.map` method
|
4793
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
4794
|
+
$({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
4795
|
+
map: map
|
4796
|
+
});
|
4797
|
+
|
4798
|
+
|
4279
4799
|
/***/ }),
|
4280
4800
|
|
4281
4801
|
/***/ 8992:
|
@@ -4287,6 +4807,17 @@ $({ target: 'Iterator', proto: true, real: true }, {
|
|
4287
4807
|
__webpack_require__(8111);
|
4288
4808
|
|
4289
4809
|
|
4810
|
+
/***/ }),
|
4811
|
+
|
4812
|
+
/***/ 4520:
|
4813
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
4814
|
+
|
4815
|
+
"use strict";
|
4816
|
+
|
4817
|
+
// TODO: Remove from `core-js@4`
|
4818
|
+
__webpack_require__(2489);
|
4819
|
+
|
4820
|
+
|
4290
4821
|
/***/ }),
|
4291
4822
|
|
4292
4823
|
/***/ 3949:
|
@@ -4298,6 +4829,17 @@ __webpack_require__(8111);
|
|
4298
4829
|
__webpack_require__(7588);
|
4299
4830
|
|
4300
4831
|
|
4832
|
+
/***/ }),
|
4833
|
+
|
4834
|
+
/***/ 1454:
|
4835
|
+
/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
|
4836
|
+
|
4837
|
+
"use strict";
|
4838
|
+
|
4839
|
+
// TODO: Remove from `core-js@4`
|
4840
|
+
__webpack_require__(1701);
|
4841
|
+
|
4842
|
+
|
4301
4843
|
/***/ })
|
4302
4844
|
|
4303
4845
|
/******/ });
|
@@ -4581,283 +5123,6 @@ const i18n = function (fn) {
|
|
4581
5123
|
t,
|
4582
5124
|
i18n
|
4583
5125
|
});
|
4584
|
-
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
4585
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
4586
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
4587
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNotify/src/index.vue?vue&type=template&id=7bbf5e3c&scoped=true
|
4588
|
-
var render = function render() {
|
4589
|
-
var _vm = this,
|
4590
|
-
_c = _vm._self._c;
|
4591
|
-
return _c('transition', {
|
4592
|
-
attrs: {
|
4593
|
-
"name": "el-notification-fade"
|
4594
|
-
}
|
4595
|
-
}, [_c('div', {
|
4596
|
-
directives: [{
|
4597
|
-
name: "show",
|
4598
|
-
rawName: "v-show",
|
4599
|
-
value: _vm.visible,
|
4600
|
-
expression: "visible"
|
4601
|
-
}],
|
4602
|
-
class: ['nb-notify', `nb-notify--${_vm.type}`],
|
4603
|
-
style: _vm.positionStyle,
|
4604
|
-
attrs: {
|
4605
|
-
"role": "alert"
|
4606
|
-
},
|
4607
|
-
on: {
|
4608
|
-
"mouseenter": function ($event) {
|
4609
|
-
return _vm.clearTimer();
|
4610
|
-
},
|
4611
|
-
"mouseleave": function ($event) {
|
4612
|
-
return _vm.startTimer();
|
4613
|
-
},
|
4614
|
-
"click": _vm.click
|
4615
|
-
}
|
4616
|
-
}, [_vm.type === 'success' ? _c('nb-icon', {
|
4617
|
-
staticClass: "nb-notify__icon",
|
4618
|
-
attrs: {
|
4619
|
-
"icon": "circle-check-filled"
|
4620
|
-
}
|
4621
|
-
}) : _vm._e(), _vm.type === 'error' ? _c('nb-icon', {
|
4622
|
-
staticClass: "nb-notify__icon",
|
4623
|
-
attrs: {
|
4624
|
-
"icon": "circle-close-filled"
|
4625
|
-
}
|
4626
|
-
}) : _vm._e(), _vm.type === 'warning' ? _c('nb-icon', {
|
4627
|
-
staticClass: "nb-notify__icon",
|
4628
|
-
attrs: {
|
4629
|
-
"icon": "warning-filled"
|
4630
|
-
}
|
4631
|
-
}) : _vm._e(), _c('div', {
|
4632
|
-
staticClass: "nb-notify__message",
|
4633
|
-
domProps: {
|
4634
|
-
"innerHTML": _vm._s(_vm.message)
|
4635
|
-
}
|
4636
|
-
})], 1)]);
|
4637
|
-
};
|
4638
|
-
var staticRenderFns = [];
|
4639
|
-
|
4640
|
-
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-82.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
|
4641
|
-
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
4642
|
-
name: 'NBNotify',
|
4643
|
-
data() {
|
4644
|
-
return {
|
4645
|
-
visible: false,
|
4646
|
-
message: '',
|
4647
|
-
duration: 3000,
|
4648
|
-
type: '',
|
4649
|
-
showClose: false,
|
4650
|
-
customClass: '',
|
4651
|
-
onClose: null,
|
4652
|
-
onClick: null,
|
4653
|
-
closed: false,
|
4654
|
-
verticalOffset: 248,
|
4655
|
-
timer: null,
|
4656
|
-
position: 'top-right'
|
4657
|
-
};
|
4658
|
-
},
|
4659
|
-
computed: {
|
4660
|
-
horizontalClass() {
|
4661
|
-
return this.position.indexOf('right') > -1 ? 'right' : 'left';
|
4662
|
-
},
|
4663
|
-
verticalProperty() {
|
4664
|
-
return /^top-/.test(this.position) ? 'top' : 'bottom';
|
4665
|
-
},
|
4666
|
-
positionStyle() {
|
4667
|
-
return {
|
4668
|
-
[this.verticalProperty]: `${this.verticalOffset}px`
|
4669
|
-
};
|
4670
|
-
}
|
4671
|
-
},
|
4672
|
-
watch: {
|
4673
|
-
closed(newVal) {
|
4674
|
-
if (newVal) {
|
4675
|
-
this.visible = false;
|
4676
|
-
this.$el.addEventListener('transitionend', this.destroyElement);
|
4677
|
-
}
|
4678
|
-
}
|
4679
|
-
},
|
4680
|
-
methods: {
|
4681
|
-
destroyElement() {
|
4682
|
-
this.$el.removeEventListener('transitionend', this.destroyElement);
|
4683
|
-
this.$destroy(true);
|
4684
|
-
this.$el.parentNode.removeChild(this.$el);
|
4685
|
-
},
|
4686
|
-
click() {
|
4687
|
-
if (typeof this.onClick === 'function') {
|
4688
|
-
this.onClick();
|
4689
|
-
}
|
4690
|
-
},
|
4691
|
-
close() {
|
4692
|
-
this.closed = true;
|
4693
|
-
if (typeof this.onClose === 'function') {
|
4694
|
-
this.onClose();
|
4695
|
-
}
|
4696
|
-
},
|
4697
|
-
clearTimer() {
|
4698
|
-
clearTimeout(this.timer);
|
4699
|
-
},
|
4700
|
-
startTimer() {
|
4701
|
-
if (this.duration > 0) {
|
4702
|
-
this.timer = setTimeout(() => {
|
4703
|
-
if (!this.closed) {
|
4704
|
-
this.close();
|
4705
|
-
}
|
4706
|
-
}, this.duration);
|
4707
|
-
}
|
4708
|
-
},
|
4709
|
-
keydown(e) {
|
4710
|
-
if (e.keyCode === 46 || e.keyCode === 8) {
|
4711
|
-
this.clearTimer(); // detele 取消倒计时
|
4712
|
-
} else if (e.keyCode === 27) {
|
4713
|
-
// esc关闭消息
|
4714
|
-
if (!this.closed) {
|
4715
|
-
this.close();
|
4716
|
-
}
|
4717
|
-
} else {
|
4718
|
-
this.startTimer(); // 恢复倒计时
|
4719
|
-
}
|
4720
|
-
}
|
4721
|
-
},
|
4722
|
-
mounted() {
|
4723
|
-
if (this.duration > 0) {
|
4724
|
-
this.timer = setTimeout(() => {
|
4725
|
-
if (!this.closed) {
|
4726
|
-
this.close();
|
4727
|
-
}
|
4728
|
-
}, this.duration);
|
4729
|
-
}
|
4730
|
-
document.addEventListener('keydown', this.keydown);
|
4731
|
-
},
|
4732
|
-
beforeDestroy() {
|
4733
|
-
document.removeEventListener('keydown', this.keydown);
|
4734
|
-
}
|
4735
|
-
});
|
4736
|
-
;// ./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
|
4737
|
-
/* harmony default export */ var NBNotify_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
4738
|
-
// EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=7bbf5e3c&prod&lang=scss&scoped=true
|
4739
|
-
var srcvue_type_style_index_0_id_7bbf5e3c_prod_lang_scss_scoped_true = __webpack_require__(1413);
|
4740
|
-
;// ./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=7bbf5e3c&prod&lang=scss&scoped=true
|
4741
|
-
|
4742
|
-
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
4743
|
-
var componentNormalizer = __webpack_require__(1656);
|
4744
|
-
;// ./packages/components/NBNotify/src/index.vue
|
4745
|
-
|
4746
|
-
|
4747
|
-
|
4748
|
-
;
|
4749
|
-
|
4750
|
-
|
4751
|
-
/* normalize component */
|
4752
|
-
|
4753
|
-
var component = (0,componentNormalizer/* default */.A)(
|
4754
|
-
NBNotify_srcvue_type_script_lang_js,
|
4755
|
-
render,
|
4756
|
-
staticRenderFns,
|
4757
|
-
false,
|
4758
|
-
null,
|
4759
|
-
"7bbf5e3c",
|
4760
|
-
null
|
4761
|
-
|
4762
|
-
)
|
4763
|
-
|
4764
|
-
/* harmony default export */ var NBNotify_src = (component.exports);
|
4765
|
-
;// ./packages/components/NBNotify/src/notify.js
|
4766
|
-
|
4767
|
-
|
4768
|
-
|
4769
|
-
/*
|
4770
|
-
* @Author: chenghuan.dong
|
4771
|
-
* @Date: 2024-11-14 09:44:58
|
4772
|
-
* @LastEditTime: 2024-11-14 14:03:08
|
4773
|
-
* @LastEditors: chenghuan.dong
|
4774
|
-
* @Description:
|
4775
|
-
* @FilePath: \nubomed-ui\packages\components\NBNotify\src\notify.js
|
4776
|
-
*/
|
4777
|
-
|
4778
|
-
|
4779
|
-
// import merge from '../../../utils/merge'
|
4780
|
-
// import { PopupManager } from '../../../utils/popup'
|
4781
|
-
// import { isVNode } from '../../../utils/vdom'
|
4782
|
-
|
4783
|
-
let instance;
|
4784
|
-
let instances = [];
|
4785
|
-
let seed = 1;
|
4786
|
-
const Notify = function (options) {
|
4787
|
-
console.log('Vue', (external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
4788
|
-
if (!(external_commonjs_vue_commonjs2_vue_root_Vue_default())) {
|
4789
|
-
return;
|
4790
|
-
}
|
4791
|
-
if ((external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isServer) return;
|
4792
|
-
options = Object.assign({}, options);
|
4793
|
-
const userOnClose = options.onClose;
|
4794
|
-
const id = 'notification_' + seed++;
|
4795
|
-
const position = options.position || 'top-right';
|
4796
|
-
options.onClose = function () {
|
4797
|
-
Notify.close(id, userOnClose);
|
4798
|
-
};
|
4799
|
-
const NotificationConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(NBNotify_src);
|
4800
|
-
instance = new NotificationConstructor({
|
4801
|
-
data: options
|
4802
|
-
});
|
4803
|
-
instance.$slots.default = [options.message];
|
4804
|
-
instance.id = id;
|
4805
|
-
instance.$mount();
|
4806
|
-
document.body.appendChild(instance.$el);
|
4807
|
-
instance.visible = true;
|
4808
|
-
instance.dom = instance.$el;
|
4809
|
-
// instance.dom.style.zIndex = PopupManager.nextZIndex()
|
4810
|
-
|
4811
|
-
let verticalOffset = options.offset || 248;
|
4812
|
-
instances.filter(item => item.position === position).forEach(item => {
|
4813
|
-
verticalOffset += item.$el.offsetHeight + 16;
|
4814
|
-
});
|
4815
|
-
verticalOffset += 16;
|
4816
|
-
instance.verticalOffset = verticalOffset;
|
4817
|
-
instances.push(instance);
|
4818
|
-
return instance;
|
4819
|
-
};
|
4820
|
-
['success', 'warning', 'info', 'error'].forEach(type => {
|
4821
|
-
Notify[type] = options => {
|
4822
|
-
if (typeof options === 'string') {
|
4823
|
-
options = {
|
4824
|
-
message: options
|
4825
|
-
};
|
4826
|
-
}
|
4827
|
-
options.type = type;
|
4828
|
-
return Notify(options);
|
4829
|
-
};
|
4830
|
-
});
|
4831
|
-
Notify.close = function (id, userOnClose) {
|
4832
|
-
let index = -1;
|
4833
|
-
const len = instances.length;
|
4834
|
-
const instance = instances.filter((instance, i) => {
|
4835
|
-
if (instance.id === id) {
|
4836
|
-
index = i;
|
4837
|
-
return true;
|
4838
|
-
}
|
4839
|
-
return false;
|
4840
|
-
})[0];
|
4841
|
-
if (!instance) return;
|
4842
|
-
if (typeof userOnClose === 'function') {
|
4843
|
-
userOnClose(instance);
|
4844
|
-
}
|
4845
|
-
instances.splice(index, 1);
|
4846
|
-
if (len <= 1) return;
|
4847
|
-
const position = instance.position;
|
4848
|
-
const removedHeight = instance.dom.offsetHeight;
|
4849
|
-
for (let i = index; i < len - 1; i++) {
|
4850
|
-
if (instances[i].position === position) {
|
4851
|
-
instances[i].dom.style[instance.verticalProperty] = parseInt(instances[i].dom.style[instance.verticalProperty], 10) - removedHeight - 16 + 'px';
|
4852
|
-
}
|
4853
|
-
}
|
4854
|
-
};
|
4855
|
-
Notify.closeAll = function () {
|
4856
|
-
for (let i = instances.length - 1; i >= 0; i--) {
|
4857
|
-
instances[i].close();
|
4858
|
-
}
|
4859
|
-
};
|
4860
|
-
/* harmony default export */ var notify = (Notify);
|
4861
5126
|
// EXTERNAL MODULE: ./packages/iconfont/iconfont.css
|
4862
5127
|
var iconfont = __webpack_require__(3050);
|
4863
5128
|
;// ./packages/index.js
|
@@ -4867,7 +5132,7 @@ var iconfont = __webpack_require__(3050);
|
|
4867
5132
|
/*
|
4868
5133
|
* @Author: chenghuan.dong
|
4869
5134
|
* @Date: 2024-11-08 17:23:47
|
4870
|
-
* @LastEditTime: 2024-11-14
|
5135
|
+
* @LastEditTime: 2024-11-14 16:40:00
|
4871
5136
|
* @LastEditors: chenghuan.dong
|
4872
5137
|
* @Description: 主index.js导出全部组件
|
4873
5138
|
* @FilePath: \nubomed-ui\packages\index.js
|
@@ -4875,7 +5140,7 @@ var iconfont = __webpack_require__(3050);
|
|
4875
5140
|
|
4876
5141
|
|
4877
5142
|
|
4878
|
-
|
5143
|
+
// import nbNotify from './components/NBNotify/src/notify.js'
|
4879
5144
|
|
4880
5145
|
// 使用iconfont图标
|
4881
5146
|
|
@@ -4895,7 +5160,11 @@ const install = function (Vue, options = {}) {
|
|
4895
5160
|
if (install.installed) return;
|
4896
5161
|
components.forEach(component => {
|
4897
5162
|
const name = 'nb-' + camelToKebab(component.name.slice(2));
|
4898
|
-
const installNames = ['nb-icon', 'nb-tag', 'nb-empty', 'nb-header', 'nb-summary-bar', 'nb-pagination'
|
5163
|
+
const installNames = ['nb-icon', 'nb-tag', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination'
|
5164
|
+
// 'nb-fullscreen-dialog',
|
5165
|
+
// 'nb-out-footer-dialog',
|
5166
|
+
// 'nb-progress'
|
5167
|
+
];
|
4899
5168
|
if (installNames.includes(name)) {
|
4900
5169
|
console.log('%c' + '√ ' + name, 'color: #00A572;');
|
4901
5170
|
} else {
|
@@ -4907,7 +5176,7 @@ const install = function (Vue, options = {}) {
|
|
4907
5176
|
});
|
4908
5177
|
|
4909
5178
|
// 全局
|
4910
|
-
Vue.prototype.$nbNotify =
|
5179
|
+
// Vue.prototype.$nbNotify = nbNotify
|
4911
5180
|
};
|
4912
5181
|
|
4913
5182
|
// if (typeof window !== 'undefined' && window.Vue) {
|