nubomed-ui 2.0.38 → 2.0.39

Sign up to get free protection for your applications and to get access to all the features.
@@ -136,48 +136,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, "@font-face{font-family:iconfont;src:ur
136
136
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
137
137
 
138
138
 
139
- /***/ }),
140
-
141
- /***/ 5772:
142
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
143
-
144
- "use strict";
145
- __webpack_require__.r(__webpack_exports__);
146
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
147
- /* 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__);
148
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
149
- /* 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__);
150
- // Imports
151
-
152
-
153
- 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()));
154
- // Module
155
- ___CSS_LOADER_EXPORT___.push([module.id, ".iconfont[data-v-1d7955de]{display:inline-flex}", ""]);
156
- // Exports
157
- /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
158
-
159
-
160
- /***/ }),
161
-
162
- /***/ 8513:
163
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
164
-
165
- "use strict";
166
- __webpack_require__.r(__webpack_exports__);
167
- /* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
168
- /* 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__);
169
- /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
170
- /* 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__);
171
- // Imports
172
-
173
-
174
- 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()));
175
- // Module
176
- ___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}", ""]);
177
- // Exports
178
- /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
179
-
180
-
181
139
  /***/ }),
182
140
 
183
141
  /***/ 4988:
@@ -338,7 +296,7 @@ module.exports = function (i) {
338
296
 
339
297
  /***/ }),
340
298
 
341
- /***/ 5158:
299
+ /***/ 3179:
342
300
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
343
301
 
344
302
  "use strict";
@@ -347,246 +305,123 @@ __webpack_require__.r(__webpack_exports__);
347
305
 
348
306
  // EXPORTS
349
307
  __webpack_require__.d(__webpack_exports__, {
350
- "default": function() { return /* binding */ NBDialog; }
308
+ "default": function() { return /* binding */ NBCheckboxGroup; }
351
309
  });
352
310
 
353
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/NBDialog/src/index.vue?vue&type=template&id=06a176b0&scoped=true
311
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
354
312
  var render = function render() {
355
313
  var _vm = this,
356
314
  _c = _vm._self._c;
357
- return _c('el-dialog', {
358
- attrs: {
359
- "visible": _vm.visible,
360
- "show-close": _vm.showClose,
361
- "close-on-click-modal": false,
362
- "close-on-press-escape": false,
363
- "center": _vm.center,
364
- "dialog-center": _vm.dialogCenter,
365
- "type": _vm.size,
366
- "title": _vm.$slots['title-right'] ? '' : _vm.title,
367
- "custom-class": _vm.dialogCustomClass,
368
- "before-close": _vm.handleClose,
369
- "append-to-body": "",
370
- "destroy-on-close": ""
371
- },
372
- on: {
373
- "closed": _vm.closedDialog
374
- }
375
- }, [_c('template', {
376
- slot: "title"
377
- }, [_vm._t("title"), _vm.$slots['title-right'] ? _c('div', {
378
- staticClass: "el-dialog__header--has-form"
379
- }, [_c('span', {
380
- staticClass: "el-dialog__title"
381
- }, [_vm._v(_vm._s(_vm.title))]), _c('div', {
382
- staticClass: "el-dialog__right"
383
- }, [_vm._t("title-right")], 2)]) : _vm._e()], 2), _vm._t("default"), _c('template', {
384
- slot: "footer"
385
- }, [_vm._t("footer", function () {
386
- return [_vm.showCancelButton ? _c('el-button', {
315
+ return _c('div', {
316
+ staticClass: "nb-checkbox-group"
317
+ }, _vm._l(_vm.options, function (item, index) {
318
+ return _c('div', {
319
+ key: index,
320
+ staticClass: "nb-checkbox-group__item",
321
+ class: _vm.getItemClass(item),
322
+ style: `min-width: ${_vm.minWidth}px`,
387
323
  on: {
388
- "click": _vm.handleCancel
324
+ "click": function ($event) {
325
+ $event.stopPropagation();
326
+ return _vm.handleClick(item);
327
+ }
389
328
  }
390
- }, [_vm._v(_vm._s(_vm.cancelButtonText)), _vm.cancelButtonTime > -1 ? [_vm._v("(" + _vm._s(_vm.cancelAutoTime) + "S)")] : _vm._e()], 2) : _vm._e(), _vm.showConfirmButton ? _c('el-button', {
329
+ }, [_c('nb-icon', {
391
330
  attrs: {
392
- "type": "primary",
393
- "plain": _vm.confirmButtonPlain
394
- },
395
- on: {
396
- "click": _vm.handleConfirm
331
+ "icon": "checked-corner-bottom"
397
332
  }
398
- }, [_vm._v(_vm._s(_vm.confirmButtonText)), _vm.confirmButtonTime > -1 ? [_vm._v("(" + _vm._s(_vm.confirmAutoTime) + "S)")] : _vm._e()], 2) : _vm._e()];
399
- })], 2)], 2);
333
+ }), _c('span', [_vm._t("default", function () {
334
+ return [_vm._v(_vm._s(item.label))];
335
+ }, {
336
+ "row": item
337
+ })], 2)], 1);
338
+ }), 0);
400
339
  };
401
340
  var staticRenderFns = [];
402
341
 
403
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBDialog/src/index.vue?vue&type=script&lang=js
342
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
343
+ var es_array_push = __webpack_require__(4114);
344
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
345
+ var esnext_iterator_constructor = __webpack_require__(8992);
346
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
347
+ var esnext_iterator_filter = __webpack_require__(4520);
348
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
349
+ var esnext_iterator_map = __webpack_require__(1454);
350
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
351
+
352
+
353
+
354
+
404
355
  /* harmony default export */ var srcvue_type_script_lang_js = ({
405
- name: 'NBDialog',
406
- // 使用v-model即可
407
- model: {
408
- prop: 'visible',
409
- event: 'update'
410
- },
356
+ name: 'NBCheckboxGroup',
411
357
  props: {
412
- // 是否显示弹框
413
- visible: {
414
- type: Boolean,
415
- default: false
358
+ // v-model
359
+ value: {
360
+ type: Array,
361
+ default: null
416
362
  },
417
- // 大小:'' 表示自定义尺寸 / small / medium / large
418
- size: {
419
- type: String,
420
- default: '',
421
- validator(value) {
422
- return ['', 'small', 'medium', 'large'].includes(value);
363
+ // 选项,value 选中值,label 显示值
364
+ options: {
365
+ type: Array,
366
+ default: () => {
367
+ return [];
423
368
  }
424
369
  },
425
- // 弹框标题
426
- title: {
427
- type: String,
428
- default: ''
429
- },
430
- // 是否显示关闭按钮
431
- showClose: {
432
- type: Boolean,
433
- default: false
434
- },
435
- // 是否居中显示
436
- center: {
437
- type: Boolean,
438
- default: false
439
- },
440
- // 弹框是否居中
441
- dialogCenter: {
442
- type: Boolean,
443
- default: true
444
- },
445
- // 自定义样式
446
- customClass: {
447
- type: String,
448
- default: ''
449
- },
450
- // 是否显示取消按钮
451
- showCancelButton: {
452
- type: Boolean,
453
- default: true
454
- },
455
- // 取消按钮的文本内容,默认取消
456
- cancelButtonText: {
457
- type: String,
458
- default: ''
459
- },
460
- // 取消按钮倒计时时间
461
- cancelButtonTime: {
462
- type: Number,
463
- default: -1
464
- },
465
- // 是否显示确定按钮
466
- showConfirmButton: {
467
- type: Boolean,
468
- default: true
469
- },
470
- // 确定按钮的文本内容,默认确定
471
- confirmButtonText: {
472
- type: String,
473
- default: ''
474
- },
475
- // 确定按钮倒计时时间
476
- confirmButtonTime: {
477
- type: Number,
478
- default: -1
479
- },
480
- // 内容是表单
481
- form: {
482
- type: Boolean,
483
- default: false
370
+ // 最小宽度
371
+ minWidth: {
372
+ type: [Number, String],
373
+ default: 88
484
374
  }
485
375
  },
486
376
  data() {
487
377
  return {
488
- cancelAutoTimer: null,
489
- cancelAutoTime: this.cancelButtonTime,
490
- confirmAutoTimer: null,
491
- confirmAutoTime: this.confirmButtonTime
378
+ checkList: this.options.filter(x => this.value.includes(x.value))
492
379
  };
493
380
  },
494
- computed: {
495
- // 如果只显示确定按钮,那么确定按钮plain显示镂空
496
- confirmButtonPlain() {
497
- if (!this.showCancelButton && this.showConfirmButton) {
498
- return true;
499
- }
500
- return false;
501
- },
502
- // 如果只显示确定按钮,那么确定按钮文字默认显示知道了
503
- confirmButtonDefaultText() {
504
- // if (!this.showCancelButton && this.showConfirmButton && !this.confirmButtonText) {
505
- // return this.$t('nbUI.known')
506
- // }
507
- // return this.confirmButtonText || this.$t('nbUI.confirm')
508
- return '';
509
- },
510
- // 表单自定义样式
511
- dialogCustomClass() {
512
- let cls = 'nb-dialog';
513
- if (this.form) {
514
- cls += ` nb-form-dialog`;
515
- }
516
- if (this.customClass) {
517
- cls += this.customClass;
518
- }
519
- return cls;
520
- }
521
- },
522
381
  watch: {
523
- visible(val) {
524
- if (val && this.cancelButtonTime > -1) {
525
- this.startCancelButtonAutoTimer();
526
- }
527
- if (val && this.confirmButtonTime > -1) {
528
- this.startConfirmButtonAutoTimer();
382
+ value: {
383
+ deep: true,
384
+ handler() {
385
+ this.checkList = this.options.filter(x => this.value.includes(x.value));
529
386
  }
530
387
  }
531
388
  },
532
389
  beforeDestroy() {
533
- clearInterval(this.cancelAutoTimer);
534
- clearInterval(this.confirmAutoTimer);
390
+ this.checkList = [];
391
+ this.$emit('input', []);
535
392
  },
536
393
  methods: {
537
- startCancelButtonAutoTimer() {
538
- clearInterval(this.cancelAutoTimer);
539
- this.cancelAutoTime = this.cancelButtonTime;
540
- this.cancelAutoTimer = setInterval(() => {
541
- this.cancelAutoTime--;
542
- if (this.cancelAutoTime <= 0) {
543
- clearInterval(this.cancelAutoTimer);
544
- this.handleCancel();
545
- }
546
- }, 1000);
547
- },
548
- startConfirmButtonAutoTimer() {
549
- clearInterval(this.confirmAutoTimer);
550
- this.confirmAutoTime = this.confirmButtonTime;
551
- this.confirmAutoTimer = setInterval(() => {
552
- this.confirmAutoTime--;
553
- if (this.confirmAutoTime <= 0) {
554
- clearInterval(this.confirmAutoTimer);
555
- this.handleConfirm();
556
- }
557
- }, 1000);
558
- },
559
- // 取消
560
- handleCancel() {
561
- if (!this.$listeners['cancel']) {
562
- this.$emit('update', false);
394
+ getItemClass(item) {
395
+ let cls = [];
396
+ const isChecked = (this.checkList || []).findIndex(x => x.value === item.value) > -1;
397
+ if (isChecked) {
398
+ cls.push('nb-checkbox-group__item--checked');
563
399
  }
564
- this.$emit('cancel');
565
- },
566
- // 确定
567
- handleConfirm() {
568
- if (!this.$listeners['confirm']) {
569
- this.$emit('update', false);
400
+ if (item.disabled) {
401
+ cls.push('nb-checkbox-group__item--disabled');
570
402
  }
571
- this.$emit('confirm');
572
- },
573
- // 点击右上角关闭按钮
574
- handleClose() {
575
- this.$emit('update', false);
403
+ return cls;
576
404
  },
577
- // 关闭弹框
578
- closedDialog() {
579
- clearInterval(this.cancelAutoTimer);
580
- clearInterval(this.confirmAutoTimer);
581
- this.$emit('closed');
405
+ handleClick(item) {
406
+ if (item.disabled) {
407
+ return;
408
+ }
409
+ const index = (this.checkList || []).findIndex(x => x.value === item.value);
410
+ if (index === -1) {
411
+ this.checkList.push(item);
412
+ } else {
413
+ this.checkList.splice(index, 1);
414
+ }
415
+ this.$emit('input', this.checkList.map(x => x.value));
416
+ this.$emit('change', item, this.checkList.map(x => x.value));
582
417
  }
583
418
  }
584
419
  });
585
- ;// ./packages/components/NBDialog/src/index.vue?vue&type=script&lang=js
586
- /* harmony default export */ var NBDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
420
+ ;// ./packages/components/NBCheckboxGroup/src/index.vue?vue&type=script&lang=js
421
+ /* harmony default export */ var NBCheckboxGroup_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
587
422
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
588
423
  var componentNormalizer = __webpack_require__(1656);
589
- ;// ./packages/components/NBDialog/src/index.vue
424
+ ;// ./packages/components/NBCheckboxGroup/src/index.vue
590
425
 
591
426
 
592
427
 
@@ -595,23 +430,23 @@ var componentNormalizer = __webpack_require__(1656);
595
430
  /* normalize component */
596
431
  ;
597
432
  var component = (0,componentNormalizer/* default */.A)(
598
- NBDialog_srcvue_type_script_lang_js,
433
+ NBCheckboxGroup_srcvue_type_script_lang_js,
599
434
  render,
600
435
  staticRenderFns,
601
436
  false,
602
437
  null,
603
- "06a176b0",
438
+ "9981adea",
604
439
  null
605
440
 
606
441
  )
607
442
 
608
443
  /* harmony default export */ var src = (component.exports);
609
- ;// ./packages/components/NBDialog/index.js
444
+ ;// ./packages/components/NBCheckboxGroup/index.js
610
445
 
611
446
  src.install = function (Vue) {
612
447
  Vue.component(src.name, src);
613
448
  };
614
- /* harmony default export */ var NBDialog = (src);
449
+ /* harmony default export */ var NBCheckboxGroup = (src);
615
450
 
616
451
  /***/ }),
617
452
 
@@ -714,7 +549,7 @@ src.install = function (Vue) {
714
549
 
715
550
  /***/ }),
716
551
 
717
- /***/ 6054:
552
+ /***/ 3315:
718
553
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
719
554
 
720
555
  "use strict";
@@ -723,17 +558,17 @@ __webpack_require__.r(__webpack_exports__);
723
558
 
724
559
  // EXPORTS
725
560
  __webpack_require__.d(__webpack_exports__, {
726
- "default": function() { return /* binding */ NBFullDialog; }
561
+ "default": function() { return /* binding */ NBFullscreenDialog; }
727
562
  });
728
563
 
729
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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/NBFullDialog/src/index.vue?vue&type=template&id=59fab8ae&scoped=true
564
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
730
565
  var render = function render() {
731
566
  var _vm = this,
732
567
  _c = _vm._self._c;
733
568
  return _c('el-dialog', {
734
- staticClass: "nb-fullscreen-dialog",
569
+ staticClass: "nb-dialog__wrapper nb-fullscreen-dialog__wrapper",
735
570
  style: {
736
- '--full-dialog-top': `${_vm.top}px`
571
+ '--nb-fullscreen-dialog-top': `${_vm.top}px`
737
572
  },
738
573
  attrs: {
739
574
  "visible": _vm.visible,
@@ -744,7 +579,7 @@ var render = function render() {
744
579
  "fullscreen": "",
745
580
  "append-to-body": "",
746
581
  "destroy-on-close": "",
747
- "custom-class": _vm.customClass,
582
+ "custom-class": `nb-dialog nb-fullscreen-dialog ${_vm.customClass}`,
748
583
  "before-close": _vm.handleClose
749
584
  },
750
585
  on: {
@@ -756,9 +591,9 @@ var render = function render() {
756
591
  };
757
592
  var staticRenderFns = [];
758
593
 
759
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBFullDialog/src/index.vue?vue&type=script&lang=js
594
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
760
595
  /* harmony default export */ var srcvue_type_script_lang_js = ({
761
- name: 'NBFullDialog',
596
+ name: 'NBFullscreenDialog',
762
597
  // 使用v-model即可
763
598
  model: {
764
599
  prop: 'visible',
@@ -786,12 +621,6 @@ var staticRenderFns = [];
786
621
  default: 56
787
622
  }
788
623
  },
789
- data() {
790
- return {};
791
- },
792
- computed: {},
793
- watch: {},
794
- beforeDestroy() {},
795
624
  methods: {
796
625
  handleClose() {
797
626
  this.$emit('update', false);
@@ -802,11 +631,11 @@ var staticRenderFns = [];
802
631
  }
803
632
  }
804
633
  });
805
- ;// ./packages/components/NBFullDialog/src/index.vue?vue&type=script&lang=js
806
- /* harmony default export */ var NBFullDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
634
+ ;// ./packages/components/NBFullscreenDialog/src/index.vue?vue&type=script&lang=js
635
+ /* harmony default export */ var NBFullscreenDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
807
636
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
808
637
  var componentNormalizer = __webpack_require__(1656);
809
- ;// ./packages/components/NBFullDialog/src/index.vue
638
+ ;// ./packages/components/NBFullscreenDialog/src/index.vue
810
639
 
811
640
 
812
641
 
@@ -815,23 +644,23 @@ var componentNormalizer = __webpack_require__(1656);
815
644
  /* normalize component */
816
645
  ;
817
646
  var component = (0,componentNormalizer/* default */.A)(
818
- NBFullDialog_srcvue_type_script_lang_js,
647
+ NBFullscreenDialog_srcvue_type_script_lang_js,
819
648
  render,
820
649
  staticRenderFns,
821
650
  false,
822
651
  null,
823
- "59fab8ae",
652
+ "5990c3a8",
824
653
  null
825
654
 
826
655
  )
827
656
 
828
657
  /* harmony default export */ var src = (component.exports);
829
- ;// ./packages/components/NBFullDialog/index.js
658
+ ;// ./packages/components/NBFullscreenDialog/index.js
830
659
 
831
660
  src.install = function (Vue) {
832
661
  Vue.component(src.name, src);
833
662
  };
834
- /* harmony default export */ var NBFullDialog = (src);
663
+ /* harmony default export */ var NBFullscreenDialog = (src);
835
664
 
836
665
  /***/ }),
837
666
 
@@ -915,8 +744,8 @@ var render = function render() {
915
744
  };
916
745
  var staticRenderFns = [];
917
746
 
918
- // EXTERNAL MODULE: ./packages/components/NBIcon/index.js + 5 modules
919
- var NBIcon = __webpack_require__(5963);
747
+ // EXTERNAL MODULE: ./packages/components/NBIcon/index.js + 4 modules
748
+ var NBIcon = __webpack_require__(9939);
920
749
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
921
750
 
922
751
  /* harmony default export */ var srcvue_type_script_lang_js = ({
@@ -1054,7 +883,7 @@ src.install = function (Vue) {
1054
883
 
1055
884
  /***/ }),
1056
885
 
1057
- /***/ 5963:
886
+ /***/ 9939:
1058
887
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1059
888
 
1060
889
  "use strict";
@@ -1066,7 +895,7 @@ __webpack_require__.d(__webpack_exports__, {
1066
895
  "default": function() { return /* binding */ NBIcon; }
1067
896
  });
1068
897
 
1069
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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=1d7955de&scoped=true
898
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1070
899
  var render = function render() {
1071
900
  var _vm = this,
1072
901
  _c = _vm._self._c;
@@ -1089,28 +918,23 @@ var staticRenderFns = [];
1089
918
  });
1090
919
  ;// ./packages/components/NBIcon/src/index.vue?vue&type=script&lang=js
1091
920
  /* harmony default export */ var NBIcon_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1092
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
1093
- var srcvue_type_style_index_0_id_1d7955de_prod_lang_scss_scoped_true = __webpack_require__(9722);
1094
- ;// ./packages/components/NBIcon/src/index.vue?vue&type=style&index=0&id=1d7955de&prod&lang=scss&scoped=true
1095
-
1096
921
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1097
922
  var componentNormalizer = __webpack_require__(1656);
1098
923
  ;// ./packages/components/NBIcon/src/index.vue
1099
924
 
1100
925
 
1101
926
 
1102
- ;
1103
927
 
1104
928
 
1105
929
  /* normalize component */
1106
-
930
+ ;
1107
931
  var component = (0,componentNormalizer/* default */.A)(
1108
932
  NBIcon_srcvue_type_script_lang_js,
1109
933
  render,
1110
934
  staticRenderFns,
1111
935
  false,
1112
936
  null,
1113
- "1d7955de",
937
+ "e7c82946",
1114
938
  null
1115
939
 
1116
940
  )
@@ -1133,7 +957,7 @@ src.install = function (Vue) {
1133
957
 
1134
958
  /***/ }),
1135
959
 
1136
- /***/ 5449:
960
+ /***/ 2503:
1137
961
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1138
962
 
1139
963
  "use strict";
@@ -1142,85 +966,204 @@ __webpack_require__.r(__webpack_exports__);
1142
966
 
1143
967
  // EXPORTS
1144
968
  __webpack_require__.d(__webpack_exports__, {
1145
- "default": function() { return /* binding */ NBPagination; }
969
+ "default": function() { return /* binding */ NBOutFooterDialog; }
1146
970
  });
1147
971
 
1148
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
972
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1149
973
  var render = function render() {
1150
974
  var _vm = this,
1151
975
  _c = _vm._self._c;
1152
- return _c('el-pagination', {
1153
- class: `nb-pagination el-pagination--${_vm.position}`,
976
+ return _c('el-dialog', {
977
+ staticClass: "nb-dialog__wrapper nb-out-footer-dialog__wrapper",
1154
978
  attrs: {
1155
- "current-page": _vm.currentPage,
1156
- "page-size": _vm.pageSize,
1157
- "total": _vm.total,
1158
- "layout": "prev, pager, next"
979
+ "visible": _vm.visible,
980
+ "close-on-click-modal": false,
981
+ "close-on-press-escape": false,
982
+ "show-close": _vm.showClose,
983
+ "center": "",
984
+ "append-to-body": "",
985
+ "destroy-on-close": "",
986
+ "type": "large",
987
+ "title": _vm.title,
988
+ "custom-class": `nb-dialog nb-out-footer-dialog ${_vm.customClass}`,
989
+ "before-close": _vm.handleClose
1159
990
  },
1160
991
  on: {
1161
- "update:currentPage": function ($event) {
1162
- _vm.currentPage = $event;
1163
- },
1164
- "update:current-page": function ($event) {
1165
- _vm.currentPage = $event;
1166
- },
1167
- "current-change": _vm.handleChangePage
992
+ "closed": _vm.closedDialog
1168
993
  }
1169
- });
994
+ }, [_vm._t("default"), _c('template', {
995
+ slot: "footer"
996
+ }, [_vm._t("footer")], 2)], 2);
1170
997
  };
1171
998
  var staticRenderFns = [];
1172
999
 
1173
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1000
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1174
1001
  /* harmony default export */ var srcvue_type_script_lang_js = ({
1175
- name: 'NBPagination',
1176
- // 分页
1002
+ name: 'NBOutFooterDialog',
1003
+ // 使用v-model即可
1004
+ model: {
1005
+ prop: 'visible',
1006
+ event: 'update'
1007
+ },
1177
1008
  props: {
1178
- // 当前页码
1179
- pageNo: {
1180
- type: Number,
1181
- default: 0
1009
+ // 是否显示弹框
1010
+ visible: {
1011
+ type: Boolean,
1012
+ default: false
1182
1013
  },
1183
- // 每页显示条目个数,默认8
1184
- pageSize: {
1185
- type: Number,
1186
- default: 8
1014
+ // 弹框标题
1015
+ title: {
1016
+ type: String,
1017
+ default: ''
1187
1018
  },
1188
- // 总条数
1189
- total: {
1190
- type: Number,
1191
- default: 0
1019
+ // 是否显示关闭按钮
1020
+ showClose: {
1021
+ type: Boolean,
1022
+ default: true
1192
1023
  },
1193
- // 显示位置
1194
- position: {
1024
+ // 自定义样式
1025
+ customClass: {
1195
1026
  type: String,
1196
- default: '',
1197
- validator(value) {
1198
- return ['', 'right', 'left', 'center'].includes(value);
1199
- }
1027
+ default: ''
1200
1028
  }
1201
1029
  },
1202
1030
  data() {
1203
- return {
1204
- currentPage: this.pageNo
1205
- };
1206
- },
1207
- watch: {
1208
- pageNo(val) {
1209
- this.currentPage = val;
1210
- }
1031
+ return {};
1211
1032
  },
1033
+ computed: {},
1034
+ watch: {},
1212
1035
  beforeDestroy() {},
1213
1036
  methods: {
1214
- // 切换页码
1215
- handleChangePage() {
1216
- this.$emit('change', this.currentPage);
1037
+ handleClose() {
1038
+ this.$emit('update', false);
1039
+ },
1040
+ // 关闭弹框
1041
+ closedDialog() {
1042
+ this.$emit('closed');
1217
1043
  }
1218
1044
  }
1219
1045
  });
1220
- ;// ./packages/components/NBPagination/src/index.vue?vue&type=script&lang=js
1221
- /* harmony default export */ var NBPagination_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1222
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
1223
- var srcvue_type_style_index_0_id_1e725708_prod_lang_scss_scoped_true = __webpack_require__(9190);
1046
+ ;// ./packages/components/NBOutFooterDialog/src/index.vue?vue&type=script&lang=js
1047
+ /* harmony default export */ var NBOutFooterDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1048
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1049
+ var componentNormalizer = __webpack_require__(1656);
1050
+ ;// ./packages/components/NBOutFooterDialog/src/index.vue
1051
+
1052
+
1053
+
1054
+
1055
+
1056
+ /* normalize component */
1057
+ ;
1058
+ var component = (0,componentNormalizer/* default */.A)(
1059
+ NBOutFooterDialog_srcvue_type_script_lang_js,
1060
+ render,
1061
+ staticRenderFns,
1062
+ false,
1063
+ null,
1064
+ "992ddab6",
1065
+ null
1066
+
1067
+ )
1068
+
1069
+ /* harmony default export */ var src = (component.exports);
1070
+ ;// ./packages/components/NBOutFooterDialog/index.js
1071
+
1072
+ src.install = function (Vue) {
1073
+ Vue.component(src.name, src);
1074
+ };
1075
+ /* harmony default export */ var NBOutFooterDialog = (src);
1076
+
1077
+ /***/ }),
1078
+
1079
+ /***/ 5449:
1080
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1081
+
1082
+ "use strict";
1083
+ // ESM COMPAT FLAG
1084
+ __webpack_require__.r(__webpack_exports__);
1085
+
1086
+ // EXPORTS
1087
+ __webpack_require__.d(__webpack_exports__, {
1088
+ "default": function() { return /* binding */ NBPagination; }
1089
+ });
1090
+
1091
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1092
+ var render = function render() {
1093
+ var _vm = this,
1094
+ _c = _vm._self._c;
1095
+ return _c('el-pagination', {
1096
+ class: `nb-pagination el-pagination--${_vm.position}`,
1097
+ attrs: {
1098
+ "current-page": _vm.currentPage,
1099
+ "page-size": _vm.pageSize,
1100
+ "total": _vm.total,
1101
+ "layout": "prev, pager, next"
1102
+ },
1103
+ on: {
1104
+ "update:currentPage": function ($event) {
1105
+ _vm.currentPage = $event;
1106
+ },
1107
+ "update:current-page": function ($event) {
1108
+ _vm.currentPage = $event;
1109
+ },
1110
+ "current-change": _vm.handleChangePage
1111
+ }
1112
+ });
1113
+ };
1114
+ var staticRenderFns = [];
1115
+
1116
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1117
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
1118
+ name: 'NBPagination',
1119
+ // 分页
1120
+ props: {
1121
+ // 当前页码
1122
+ pageNo: {
1123
+ type: Number,
1124
+ default: 0
1125
+ },
1126
+ // 每页显示条目个数,默认8
1127
+ pageSize: {
1128
+ type: Number,
1129
+ default: 8
1130
+ },
1131
+ // 总条数
1132
+ total: {
1133
+ type: Number,
1134
+ default: 0
1135
+ },
1136
+ // 显示位置
1137
+ position: {
1138
+ type: String,
1139
+ default: '',
1140
+ validator(value) {
1141
+ return ['', 'right', 'left', 'center'].includes(value);
1142
+ }
1143
+ }
1144
+ },
1145
+ data() {
1146
+ return {
1147
+ currentPage: this.pageNo
1148
+ };
1149
+ },
1150
+ watch: {
1151
+ pageNo(val) {
1152
+ this.currentPage = val;
1153
+ }
1154
+ },
1155
+ beforeDestroy() {},
1156
+ methods: {
1157
+ // 切换页码
1158
+ handleChangePage() {
1159
+ this.$emit('change', this.currentPage);
1160
+ }
1161
+ }
1162
+ });
1163
+ ;// ./packages/components/NBPagination/src/index.vue?vue&type=script&lang=js
1164
+ /* harmony default export */ var NBPagination_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1165
+ // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
1166
+ var srcvue_type_style_index_0_id_1e725708_prod_lang_scss_scoped_true = __webpack_require__(9190);
1224
1167
  ;// ./packages/components/NBPagination/src/index.vue?vue&type=style&index=0&id=1e725708&prod&lang=scss&scoped=true
1225
1168
 
1226
1169
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
@@ -1255,6 +1198,294 @@ src.install = function (Vue) {
1255
1198
 
1256
1199
  /***/ }),
1257
1200
 
1201
+ /***/ 73:
1202
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1203
+
1204
+ "use strict";
1205
+ // ESM COMPAT FLAG
1206
+ __webpack_require__.r(__webpack_exports__);
1207
+
1208
+ // EXPORTS
1209
+ __webpack_require__.d(__webpack_exports__, {
1210
+ "default": function() { return /* binding */ NBProgress; }
1211
+ });
1212
+
1213
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1214
+ var render = function render() {
1215
+ var _vm = this,
1216
+ _c = _vm._self._c;
1217
+ return _c('div', {
1218
+ staticClass: "nb-progress",
1219
+ class: [`nb-progress--${_vm.type}`, `nb-progress--${_vm.size}`]
1220
+ }, [_vm.type === 'line' ? [_c('el-progress', {
1221
+ attrs: {
1222
+ "type": _vm.type,
1223
+ "percentage": _vm.percentage || _vm.precent,
1224
+ "stroke-width": 20,
1225
+ "showText": _vm.showText,
1226
+ "color": "#0066E0"
1227
+ }
1228
+ })] : [_c('el-progress', {
1229
+ attrs: {
1230
+ "type": _vm.type,
1231
+ "percentage": _vm.percentage || _vm.precent,
1232
+ "stroke-width": 28,
1233
+ "width": _vm.circleWidth,
1234
+ "show-text": false,
1235
+ "color": "#0066E0"
1236
+ }
1237
+ }), _vm.showText ? _c('div', {
1238
+ staticClass: "precent-text"
1239
+ }, [_vm._v(_vm._s(_vm.percentage || _vm.precent)), _c('i', [_vm._v("%")])]) : _vm._e()]], 2);
1240
+ };
1241
+ var staticRenderFns = [];
1242
+
1243
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1244
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
1245
+ name: 'NBProgress',
1246
+ props: {
1247
+ // 百分比
1248
+ percentage: {
1249
+ type: Number,
1250
+ default: 0
1251
+ },
1252
+ // 时间
1253
+ time: {
1254
+ type: Number,
1255
+ default: 0
1256
+ },
1257
+ // 类型(circle 圆形进度条,line 线形进度条)
1258
+ type: {
1259
+ type: String,
1260
+ default: 'circle'
1261
+ },
1262
+ // 是否显示进度条文字内容
1263
+ showText: {
1264
+ type: Boolean,
1265
+ default: true
1266
+ },
1267
+ // 大小:small / medium
1268
+ size: {
1269
+ type: String,
1270
+ default: 'medium',
1271
+ validator(value) {
1272
+ return ['small', 'medium', ''].includes(value);
1273
+ }
1274
+ }
1275
+ },
1276
+ data() {
1277
+ return {
1278
+ precent: 0,
1279
+ // 进度百分比
1280
+ interval: null
1281
+ };
1282
+ },
1283
+ mounted() {
1284
+ if (this.time > 0) {
1285
+ this.nunAnimation(0, 100, this.time);
1286
+ }
1287
+ },
1288
+ computed: {
1289
+ circleWidth() {
1290
+ return this.size === 'small' ? 240 : 271;
1291
+ }
1292
+ },
1293
+ watch: {},
1294
+ beforeDestroy() {
1295
+ clearInterval(this.interval);
1296
+ this.interval = null;
1297
+ },
1298
+ methods: {
1299
+ /**
1300
+ * 参数说明
1301
+ * @param {String} start 开始数值
1302
+ * @param {String} end 结束数值
1303
+ * @param {String} sec 时间,单位s
1304
+ */
1305
+ nunAnimation(start, end, sec) {
1306
+ let val = start;
1307
+ let delay = sec * 1000 / Math.abs(end - start);
1308
+ if (delay < 1000 / 60) {
1309
+ delay = 1000 / 60;
1310
+ }
1311
+ const step = (end - start) / (sec * 1000 / delay);
1312
+ this.interval = setInterval(() => {
1313
+ if (val < end) {
1314
+ this.precent = val;
1315
+ val += step;
1316
+ val = Math.floor(val);
1317
+ } else {
1318
+ this.precent = end;
1319
+ clearInterval(this.interval);
1320
+ }
1321
+ }, delay);
1322
+ }
1323
+ }
1324
+ });
1325
+ ;// ./packages/components/NBProgress/src/index.vue?vue&type=script&lang=js
1326
+ /* harmony default export */ var NBProgress_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1327
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1328
+ var componentNormalizer = __webpack_require__(1656);
1329
+ ;// ./packages/components/NBProgress/src/index.vue
1330
+
1331
+
1332
+
1333
+
1334
+
1335
+ /* normalize component */
1336
+ ;
1337
+ var component = (0,componentNormalizer/* default */.A)(
1338
+ NBProgress_srcvue_type_script_lang_js,
1339
+ render,
1340
+ staticRenderFns,
1341
+ false,
1342
+ null,
1343
+ "8c0e02ce",
1344
+ null
1345
+
1346
+ )
1347
+
1348
+ /* harmony default export */ var src = (component.exports);
1349
+ ;// ./packages/components/NBProgress/index.js
1350
+
1351
+ src.install = function (Vue) {
1352
+ Vue.component(src.name, src);
1353
+ };
1354
+ /* harmony default export */ var NBProgress = (src);
1355
+
1356
+ /***/ }),
1357
+
1358
+ /***/ 6163:
1359
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1360
+
1361
+ "use strict";
1362
+ // ESM COMPAT FLAG
1363
+ __webpack_require__.r(__webpack_exports__);
1364
+
1365
+ // EXPORTS
1366
+ __webpack_require__.d(__webpack_exports__, {
1367
+ "default": function() { return /* binding */ NBRadioGroup; }
1368
+ });
1369
+
1370
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1371
+ var render = function render() {
1372
+ var _vm = this,
1373
+ _c = _vm._self._c;
1374
+ return _c('div', {
1375
+ staticClass: "nb-radio-group-group"
1376
+ }, _vm._l(_vm.options, function (item, index) {
1377
+ return _c('div', {
1378
+ key: index,
1379
+ staticClass: "nb-radio-group__item",
1380
+ class: _vm.getItemClass(item),
1381
+ style: `min-width: ${_vm.minWidth}px`,
1382
+ on: {
1383
+ "click": function ($event) {
1384
+ $event.stopPropagation();
1385
+ return _vm.handleClick(item);
1386
+ }
1387
+ }
1388
+ }, [_c('span', [_vm._t("default", function () {
1389
+ return [_vm._v(_vm._s(item.label))];
1390
+ }, {
1391
+ "row": item
1392
+ })], 2)]);
1393
+ }), 0);
1394
+ };
1395
+ var staticRenderFns = [];
1396
+
1397
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
1398
+ var es_array_push = __webpack_require__(4114);
1399
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1400
+
1401
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
1402
+ name: 'NBRadioGroup',
1403
+ props: {
1404
+ // v-model
1405
+ value: {
1406
+ type: [Object, Number, String],
1407
+ default: null
1408
+ },
1409
+ // 选项,value 选中值,label 显示值
1410
+ options: {
1411
+ type: Array,
1412
+ default: () => {
1413
+ return [];
1414
+ }
1415
+ },
1416
+ // 最小宽度
1417
+ minWidth: {
1418
+ type: [Number, String],
1419
+ default: 88
1420
+ }
1421
+ },
1422
+ data() {
1423
+ return {
1424
+ checked: this.value
1425
+ };
1426
+ },
1427
+ watch: {
1428
+ value: {
1429
+ deep: true,
1430
+ handler() {
1431
+ this.checked = this.value;
1432
+ }
1433
+ }
1434
+ },
1435
+ methods: {
1436
+ getItemClass(item) {
1437
+ let cls = [];
1438
+ const isChecked = this.checked === item.value;
1439
+ if (isChecked) {
1440
+ cls.push('nb-radio-group__item--checked');
1441
+ }
1442
+ if (item.disabled) {
1443
+ cls.push('nb-radio-group__item--disabled');
1444
+ }
1445
+ return cls;
1446
+ },
1447
+ handleClick(item) {
1448
+ if (item.disabled) {
1449
+ return;
1450
+ }
1451
+ this.checked = item.value;
1452
+ this.$emit('input', this.checked);
1453
+ }
1454
+ }
1455
+ });
1456
+ ;// ./packages/components/NBRadioGroup/src/index.vue?vue&type=script&lang=js
1457
+ /* harmony default export */ var NBRadioGroup_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1458
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1459
+ var componentNormalizer = __webpack_require__(1656);
1460
+ ;// ./packages/components/NBRadioGroup/src/index.vue
1461
+
1462
+
1463
+
1464
+
1465
+
1466
+ /* normalize component */
1467
+ ;
1468
+ var component = (0,componentNormalizer/* default */.A)(
1469
+ NBRadioGroup_srcvue_type_script_lang_js,
1470
+ render,
1471
+ staticRenderFns,
1472
+ false,
1473
+ null,
1474
+ "479965ae",
1475
+ null
1476
+
1477
+ )
1478
+
1479
+ /* harmony default export */ var src = (component.exports);
1480
+ ;// ./packages/components/NBRadioGroup/index.js
1481
+
1482
+ src.install = function (Vue) {
1483
+ Vue.component(src.name, src);
1484
+ };
1485
+ /* harmony default export */ var NBRadioGroup = (src);
1486
+
1487
+ /***/ }),
1488
+
1258
1489
  /***/ 8626:
1259
1490
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1260
1491
 
@@ -1378,6 +1609,105 @@ src.install = function (Vue) {
1378
1609
 
1379
1610
  /***/ }),
1380
1611
 
1612
+ /***/ 4249:
1613
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1614
+
1615
+ "use strict";
1616
+ // ESM COMPAT FLAG
1617
+ __webpack_require__.r(__webpack_exports__);
1618
+
1619
+ // EXPORTS
1620
+ __webpack_require__.d(__webpack_exports__, {
1621
+ "default": function() { return /* binding */ NBTabs; }
1622
+ });
1623
+
1624
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1625
+ var render = function render() {
1626
+ var _vm = this,
1627
+ _c = _vm._self._c;
1628
+ return _c('div', {
1629
+ staticClass: "nb-tabs"
1630
+ }, _vm._l(_vm.data, function (item, index) {
1631
+ return _c('div', {
1632
+ key: index,
1633
+ staticClass: "nb-tab-item",
1634
+ class: index === _vm.modelValue ? 'is-active' : '',
1635
+ on: {
1636
+ "click": function ($event) {
1637
+ $event.stopPropagation();
1638
+ return _vm.handleChange(item, index);
1639
+ }
1640
+ }
1641
+ }, [_vm._t("default", function () {
1642
+ return [_vm._v(_vm._s(item.label))];
1643
+ }, {
1644
+ "item": item
1645
+ })], 2);
1646
+ }), 0);
1647
+ };
1648
+ var staticRenderFns = [];
1649
+
1650
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
1651
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
1652
+ name: 'NBTabs',
1653
+ model: {
1654
+ prop: 'modelValue',
1655
+ event: 'update'
1656
+ },
1657
+ props: {
1658
+ // v-model 索引
1659
+ modelValue: {
1660
+ type: [Number, String],
1661
+ default: null
1662
+ },
1663
+ // 数据源
1664
+ data: {
1665
+ type: Array,
1666
+ default: () => {
1667
+ return [];
1668
+ }
1669
+ }
1670
+ },
1671
+ methods: {
1672
+ handleChange(item, index) {
1673
+ this.$emit('update', index);
1674
+ this.$emit('change', item);
1675
+ }
1676
+ }
1677
+ });
1678
+ ;// ./packages/components/NBTabs/src/index.vue?vue&type=script&lang=js
1679
+ /* harmony default export */ var NBTabs_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1680
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1681
+ var componentNormalizer = __webpack_require__(1656);
1682
+ ;// ./packages/components/NBTabs/src/index.vue
1683
+
1684
+
1685
+
1686
+
1687
+
1688
+ /* normalize component */
1689
+ ;
1690
+ var component = (0,componentNormalizer/* default */.A)(
1691
+ NBTabs_srcvue_type_script_lang_js,
1692
+ render,
1693
+ staticRenderFns,
1694
+ false,
1695
+ null,
1696
+ "5159391f",
1697
+ null
1698
+
1699
+ )
1700
+
1701
+ /* harmony default export */ var src = (component.exports);
1702
+ ;// ./packages/components/NBTabs/index.js
1703
+
1704
+ src.install = function (Vue) {
1705
+ Vue.component(src.name, src);
1706
+ };
1707
+ /* harmony default export */ var NBTabs = (src);
1708
+
1709
+ /***/ }),
1710
+
1381
1711
  /***/ 3705:
1382
1712
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1383
1713
 
@@ -1448,58 +1778,26 @@ var component = (0,componentNormalizer/* default */.A)(
1448
1778
  /* harmony default export */ var src = (component.exports);
1449
1779
  ;// ./packages/components/NBTag/index.js
1450
1780
 
1451
- src.install = function (Vue) {
1452
- Vue.component(src.name, src);
1453
- };
1454
- /* harmony default export */ var NBTag = (src);
1455
-
1456
- /***/ }),
1457
-
1458
- /***/ 1970:
1459
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1460
-
1461
- // style-loader: Adds some css to the DOM by adding a <style> tag
1462
-
1463
- // load the styles
1464
- var content = __webpack_require__(1093);
1465
- if(content.__esModule) content = content.default;
1466
- if(typeof content === 'string') content = [[module.id, content, '']];
1467
- if(content.locals) module.exports = content.locals;
1468
- // add the styles to the DOM
1469
- var add = (__webpack_require__(9548)/* ["default"] */ .A)
1470
- var update = add("5a1800c6", content, true, {"sourceMap":false,"shadowMode":false});
1471
-
1472
- /***/ }),
1473
-
1474
- /***/ 9722:
1475
- /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1476
-
1477
- // style-loader: Adds some css to the DOM by adding a <style> tag
1478
-
1479
- // load the styles
1480
- var content = __webpack_require__(5772);
1481
- if(content.__esModule) content = content.default;
1482
- if(typeof content === 'string') content = [[module.id, content, '']];
1483
- if(content.locals) module.exports = content.locals;
1484
- // add the styles to the DOM
1485
- var add = (__webpack_require__(9548)/* ["default"] */ .A)
1486
- var update = add("1485bda7", content, true, {"sourceMap":false,"shadowMode":false});
1781
+ src.install = function (Vue) {
1782
+ Vue.component(src.name, src);
1783
+ };
1784
+ /* harmony default export */ var NBTag = (src);
1487
1785
 
1488
1786
  /***/ }),
1489
1787
 
1490
- /***/ 7187:
1788
+ /***/ 1970:
1491
1789
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1492
1790
 
1493
1791
  // style-loader: Adds some css to the DOM by adding a <style> tag
1494
1792
 
1495
1793
  // load the styles
1496
- var content = __webpack_require__(8513);
1794
+ var content = __webpack_require__(1093);
1497
1795
  if(content.__esModule) content = content.default;
1498
1796
  if(typeof content === 'string') content = [[module.id, content, '']];
1499
1797
  if(content.locals) module.exports = content.locals;
1500
1798
  // add the styles to the DOM
1501
1799
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
1502
- var update = add("3f76f8d0", content, true, {"sourceMap":false,"shadowMode":false});
1800
+ var update = add("5a1800c6", content, true, {"sourceMap":false,"shadowMode":false});
1503
1801
 
1504
1802
  /***/ }),
1505
1803
 
@@ -1821,13 +2119,17 @@ webpackContext.id = 1603;
1821
2119
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1822
2120
 
1823
2121
  var map = {
1824
- "./NBDialog/index.js": 5158,
2122
+ "./NBCheckboxGroup/index.js": 3179,
1825
2123
  "./NBEmpty/index.js": 1946,
1826
- "./NBFullDialog/index.js": 6054,
2124
+ "./NBFullscreenDialog/index.js": 3315,
1827
2125
  "./NBHeader/index.js": 9812,
1828
- "./NBIcon/index.js": 5963,
2126
+ "./NBIcon/index.js": 9939,
2127
+ "./NBOutFooterDialog/index.js": 2503,
1829
2128
  "./NBPagination/index.js": 5449,
2129
+ "./NBProgress/index.js": 73,
2130
+ "./NBRadioGroup/index.js": 6163,
1830
2131
  "./NBSummaryBar/index.js": 8626,
2132
+ "./NBTabs/index.js": 4249,
1831
2133
  "./NBTag/index.js": 3705
1832
2134
  };
1833
2135
 
@@ -1933,14 +2235,6 @@ module.exports = __webpack_require__.p + "fonts/iconfont.c068c01a.woff";
1933
2235
 
1934
2236
  /***/ }),
1935
2237
 
1936
- /***/ 4100:
1937
- /***/ (function(module) {
1938
-
1939
- "use strict";
1940
- module.exports = require("vue");
1941
-
1942
- /***/ }),
1943
-
1944
2238
  /***/ 9306:
1945
2239
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1946
2240
 
@@ -2071,6 +2365,26 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2071
2365
  };
2072
2366
 
2073
2367
 
2368
+ /***/ }),
2369
+
2370
+ /***/ 6319:
2371
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2372
+
2373
+ "use strict";
2374
+
2375
+ var anObject = __webpack_require__(8551);
2376
+ var iteratorClose = __webpack_require__(9539);
2377
+
2378
+ // call something on iterator step with safe closing on error
2379
+ module.exports = function (iterator, fn, value, ENTRIES) {
2380
+ try {
2381
+ return ENTRIES ? fn(anObject(value)[0], value[1]) : fn(value);
2382
+ } catch (error) {
2383
+ iteratorClose(iterator, 'throw', error);
2384
+ }
2385
+ };
2386
+
2387
+
2074
2388
  /***/ }),
2075
2389
 
2076
2390
  /***/ 2195:
@@ -2168,6 +2482,20 @@ module.exports = !fails(function () {
2168
2482
  });
2169
2483
 
2170
2484
 
2485
+ /***/ }),
2486
+
2487
+ /***/ 2529:
2488
+ /***/ (function(module) {
2489
+
2490
+ "use strict";
2491
+
2492
+ // `CreateIterResultObject` abstract operation
2493
+ // https://tc39.es/ecma262/#sec-createiterresultobject
2494
+ module.exports = function (value, done) {
2495
+ return { value: value, done: done };
2496
+ };
2497
+
2498
+
2171
2499
  /***/ }),
2172
2500
 
2173
2501
  /***/ 6699:
@@ -2274,6 +2602,21 @@ module.exports = function (O, key, value, options) {
2274
2602
  };
2275
2603
 
2276
2604
 
2605
+ /***/ }),
2606
+
2607
+ /***/ 6279:
2608
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2609
+
2610
+ "use strict";
2611
+
2612
+ var defineBuiltIn = __webpack_require__(6840);
2613
+
2614
+ module.exports = function (target, src, options) {
2615
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
2616
+ return target;
2617
+ };
2618
+
2619
+
2277
2620
  /***/ }),
2278
2621
 
2279
2622
  /***/ 9433:
@@ -3181,6 +3524,122 @@ module.exports = function (iterator, kind, value) {
3181
3524
  };
3182
3525
 
3183
3526
 
3527
+ /***/ }),
3528
+
3529
+ /***/ 9462:
3530
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3531
+
3532
+ "use strict";
3533
+
3534
+ var call = __webpack_require__(9565);
3535
+ var create = __webpack_require__(2360);
3536
+ var createNonEnumerableProperty = __webpack_require__(6699);
3537
+ var defineBuiltIns = __webpack_require__(6279);
3538
+ var wellKnownSymbol = __webpack_require__(8227);
3539
+ var InternalStateModule = __webpack_require__(1181);
3540
+ var getMethod = __webpack_require__(5966);
3541
+ var IteratorPrototype = (__webpack_require__(7657).IteratorPrototype);
3542
+ var createIterResultObject = __webpack_require__(2529);
3543
+ var iteratorClose = __webpack_require__(9539);
3544
+
3545
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
3546
+ var ITERATOR_HELPER = 'IteratorHelper';
3547
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
3548
+ var setInternalState = InternalStateModule.set;
3549
+
3550
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
3551
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
3552
+
3553
+ return defineBuiltIns(create(IteratorPrototype), {
3554
+ next: function next() {
3555
+ var state = getInternalState(this);
3556
+ // for simplification:
3557
+ // for `%WrapForValidIteratorPrototype%.next` our `nextHandler` returns `IterResultObject`
3558
+ // for `%IteratorHelperPrototype%.next` - just a value
3559
+ if (IS_ITERATOR) return state.nextHandler();
3560
+ try {
3561
+ var result = state.done ? undefined : state.nextHandler();
3562
+ return createIterResultObject(result, state.done);
3563
+ } catch (error) {
3564
+ state.done = true;
3565
+ throw error;
3566
+ }
3567
+ },
3568
+ 'return': function () {
3569
+ var state = getInternalState(this);
3570
+ var iterator = state.iterator;
3571
+ state.done = true;
3572
+ if (IS_ITERATOR) {
3573
+ var returnMethod = getMethod(iterator, 'return');
3574
+ return returnMethod ? call(returnMethod, iterator) : createIterResultObject(undefined, true);
3575
+ }
3576
+ if (state.inner) try {
3577
+ iteratorClose(state.inner.iterator, 'normal');
3578
+ } catch (error) {
3579
+ return iteratorClose(iterator, 'throw', error);
3580
+ }
3581
+ if (iterator) iteratorClose(iterator, 'normal');
3582
+ return createIterResultObject(undefined, true);
3583
+ }
3584
+ });
3585
+ };
3586
+
3587
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
3588
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
3589
+
3590
+ createNonEnumerableProperty(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
3591
+
3592
+ module.exports = function (nextHandler, IS_ITERATOR) {
3593
+ var IteratorProxy = function Iterator(record, state) {
3594
+ if (state) {
3595
+ state.iterator = record.iterator;
3596
+ state.next = record.next;
3597
+ } else state = record;
3598
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
3599
+ state.nextHandler = nextHandler;
3600
+ state.counter = 0;
3601
+ state.done = false;
3602
+ setInternalState(this, state);
3603
+ };
3604
+
3605
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
3606
+
3607
+ return IteratorProxy;
3608
+ };
3609
+
3610
+
3611
+ /***/ }),
3612
+
3613
+ /***/ 713:
3614
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3615
+
3616
+ "use strict";
3617
+
3618
+ var call = __webpack_require__(9565);
3619
+ var aCallable = __webpack_require__(9306);
3620
+ var anObject = __webpack_require__(8551);
3621
+ var getIteratorDirect = __webpack_require__(1767);
3622
+ var createIteratorProxy = __webpack_require__(9462);
3623
+ var callWithSafeIterationClosing = __webpack_require__(6319);
3624
+
3625
+ var IteratorProxy = createIteratorProxy(function () {
3626
+ var iterator = this.iterator;
3627
+ var result = anObject(call(this.next, iterator));
3628
+ var done = this.done = !!result.done;
3629
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
3630
+ });
3631
+
3632
+ // `Iterator.prototype.map` method
3633
+ // https://github.com/tc39/proposal-iterator-helpers
3634
+ module.exports = function map(mapper) {
3635
+ anObject(this);
3636
+ aCallable(mapper);
3637
+ return new IteratorProxy(getIteratorDirect(this), {
3638
+ mapper: mapper
3639
+ });
3640
+ };
3641
+
3642
+
3184
3643
  /***/ }),
3185
3644
 
3186
3645
  /***/ 7657:
@@ -4238,6 +4697,49 @@ $({ global: true, constructor: true, forced: FORCED }, {
4238
4697
  });
4239
4698
 
4240
4699
 
4700
+ /***/ }),
4701
+
4702
+ /***/ 2489:
4703
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4704
+
4705
+ "use strict";
4706
+
4707
+ var $ = __webpack_require__(6518);
4708
+ var call = __webpack_require__(9565);
4709
+ var aCallable = __webpack_require__(9306);
4710
+ var anObject = __webpack_require__(8551);
4711
+ var getIteratorDirect = __webpack_require__(1767);
4712
+ var createIteratorProxy = __webpack_require__(9462);
4713
+ var callWithSafeIterationClosing = __webpack_require__(6319);
4714
+ var IS_PURE = __webpack_require__(6395);
4715
+
4716
+ var IteratorProxy = createIteratorProxy(function () {
4717
+ var iterator = this.iterator;
4718
+ var predicate = this.predicate;
4719
+ var next = this.next;
4720
+ var result, done, value;
4721
+ while (true) {
4722
+ result = anObject(call(next, iterator));
4723
+ done = this.done = !!result.done;
4724
+ if (done) return;
4725
+ value = result.value;
4726
+ if (callWithSafeIterationClosing(iterator, predicate, [value, this.counter++], true)) return value;
4727
+ }
4728
+ });
4729
+
4730
+ // `Iterator.prototype.filter` method
4731
+ // https://tc39.es/ecma262/#sec-iterator.prototype.filter
4732
+ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
4733
+ filter: function filter(predicate) {
4734
+ anObject(this);
4735
+ aCallable(predicate);
4736
+ return new IteratorProxy(getIteratorDirect(this), {
4737
+ predicate: predicate
4738
+ });
4739
+ }
4740
+ });
4741
+
4742
+
4241
4743
  /***/ }),
4242
4744
 
4243
4745
  /***/ 7588:
@@ -4266,6 +4768,24 @@ $({ target: 'Iterator', proto: true, real: true }, {
4266
4768
  });
4267
4769
 
4268
4770
 
4771
+ /***/ }),
4772
+
4773
+ /***/ 1701:
4774
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4775
+
4776
+ "use strict";
4777
+
4778
+ var $ = __webpack_require__(6518);
4779
+ var map = __webpack_require__(713);
4780
+ var IS_PURE = __webpack_require__(6395);
4781
+
4782
+ // `Iterator.prototype.map` method
4783
+ // https://tc39.es/ecma262/#sec-iterator.prototype.map
4784
+ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
4785
+ map: map
4786
+ });
4787
+
4788
+
4269
4789
  /***/ }),
4270
4790
 
4271
4791
  /***/ 8992:
@@ -4277,6 +4797,17 @@ $({ target: 'Iterator', proto: true, real: true }, {
4277
4797
  __webpack_require__(8111);
4278
4798
 
4279
4799
 
4800
+ /***/ }),
4801
+
4802
+ /***/ 4520:
4803
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4804
+
4805
+ "use strict";
4806
+
4807
+ // TODO: Remove from `core-js@4`
4808
+ __webpack_require__(2489);
4809
+
4810
+
4280
4811
  /***/ }),
4281
4812
 
4282
4813
  /***/ 3949:
@@ -4288,6 +4819,17 @@ __webpack_require__(8111);
4288
4819
  __webpack_require__(7588);
4289
4820
 
4290
4821
 
4822
+ /***/ }),
4823
+
4824
+ /***/ 1454:
4825
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
4826
+
4827
+ "use strict";
4828
+
4829
+ // TODO: Remove from `core-js@4`
4830
+ __webpack_require__(1701);
4831
+
4832
+
4291
4833
  /***/ })
4292
4834
 
4293
4835
  /******/ });
@@ -4571,281 +5113,6 @@ const i18n = function (fn) {
4571
5113
  t,
4572
5114
  i18n
4573
5115
  });
4574
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
4575
- var render = function render() {
4576
- var _vm = this,
4577
- _c = _vm._self._c;
4578
- return _c('transition', {
4579
- attrs: {
4580
- "name": "el-notification-fade"
4581
- }
4582
- }, [_c('div', {
4583
- directives: [{
4584
- name: "show",
4585
- rawName: "v-show",
4586
- value: _vm.visible,
4587
- expression: "visible"
4588
- }],
4589
- class: ['nb-notify', `nb-notify--${_vm.type}`],
4590
- style: _vm.positionStyle,
4591
- attrs: {
4592
- "role": "alert"
4593
- },
4594
- on: {
4595
- "mouseenter": function ($event) {
4596
- return _vm.clearTimer();
4597
- },
4598
- "mouseleave": function ($event) {
4599
- return _vm.startTimer();
4600
- },
4601
- "click": _vm.click
4602
- }
4603
- }, [_vm.type === 'success' ? _c('nb-icon', {
4604
- staticClass: "nb-notify__icon",
4605
- attrs: {
4606
- "icon": "circle-check-filled"
4607
- }
4608
- }) : _vm._e(), _vm.type === 'error' ? _c('nb-icon', {
4609
- staticClass: "nb-notify__icon",
4610
- attrs: {
4611
- "icon": "circle-close-filled"
4612
- }
4613
- }) : _vm._e(), _vm.type === 'warning' ? _c('nb-icon', {
4614
- staticClass: "nb-notify__icon",
4615
- attrs: {
4616
- "icon": "warning-filled"
4617
- }
4618
- }) : _vm._e(), _c('div', {
4619
- staticClass: "nb-notify__message",
4620
- domProps: {
4621
- "innerHTML": _vm._s(_vm.message)
4622
- }
4623
- })], 1)]);
4624
- };
4625
- var staticRenderFns = [];
4626
-
4627
- ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
4628
- /* harmony default export */ var srcvue_type_script_lang_js = ({
4629
- name: 'NBNotify',
4630
- data() {
4631
- return {
4632
- visible: false,
4633
- message: '',
4634
- duration: 3000,
4635
- type: '',
4636
- showClose: false,
4637
- customClass: '',
4638
- onClose: null,
4639
- onClick: null,
4640
- closed: false,
4641
- verticalOffset: 248,
4642
- timer: null,
4643
- position: 'top-right'
4644
- };
4645
- },
4646
- computed: {
4647
- horizontalClass() {
4648
- return this.position.indexOf('right') > -1 ? 'right' : 'left';
4649
- },
4650
- verticalProperty() {
4651
- return /^top-/.test(this.position) ? 'top' : 'bottom';
4652
- },
4653
- positionStyle() {
4654
- return {
4655
- [this.verticalProperty]: `${this.verticalOffset}px`
4656
- };
4657
- }
4658
- },
4659
- watch: {
4660
- closed(newVal) {
4661
- if (newVal) {
4662
- this.visible = false;
4663
- this.$el.addEventListener('transitionend', this.destroyElement);
4664
- }
4665
- }
4666
- },
4667
- methods: {
4668
- destroyElement() {
4669
- this.$el.removeEventListener('transitionend', this.destroyElement);
4670
- this.$destroy(true);
4671
- this.$el.parentNode.removeChild(this.$el);
4672
- },
4673
- click() {
4674
- if (typeof this.onClick === 'function') {
4675
- this.onClick();
4676
- }
4677
- },
4678
- close() {
4679
- this.closed = true;
4680
- if (typeof this.onClose === 'function') {
4681
- this.onClose();
4682
- }
4683
- },
4684
- clearTimer() {
4685
- clearTimeout(this.timer);
4686
- },
4687
- startTimer() {
4688
- if (this.duration > 0) {
4689
- this.timer = setTimeout(() => {
4690
- if (!this.closed) {
4691
- this.close();
4692
- }
4693
- }, this.duration);
4694
- }
4695
- },
4696
- keydown(e) {
4697
- if (e.keyCode === 46 || e.keyCode === 8) {
4698
- this.clearTimer(); // detele 取消倒计时
4699
- } else if (e.keyCode === 27) {
4700
- // esc关闭消息
4701
- if (!this.closed) {
4702
- this.close();
4703
- }
4704
- } else {
4705
- this.startTimer(); // 恢复倒计时
4706
- }
4707
- }
4708
- },
4709
- mounted() {
4710
- if (this.duration > 0) {
4711
- this.timer = setTimeout(() => {
4712
- if (!this.closed) {
4713
- this.close();
4714
- }
4715
- }, this.duration);
4716
- }
4717
- document.addEventListener('keydown', this.keydown);
4718
- },
4719
- beforeDestroy() {
4720
- document.removeEventListener('keydown', this.keydown);
4721
- }
4722
- });
4723
- ;// ./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
4724
- /* harmony default export */ var NBNotify_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
4725
- // EXTERNAL MODULE: ./node_modules/vue-style-loader/index.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.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
4726
- var srcvue_type_style_index_0_id_7bbf5e3c_prod_lang_scss_scoped_true = __webpack_require__(7187);
4727
- ;// ./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=7bbf5e3c&prod&lang=scss&scoped=true
4728
-
4729
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4730
- var componentNormalizer = __webpack_require__(1656);
4731
- ;// ./packages/components/NBNotify/src/index.vue
4732
-
4733
-
4734
-
4735
- ;
4736
-
4737
-
4738
- /* normalize component */
4739
-
4740
- var component = (0,componentNormalizer/* default */.A)(
4741
- NBNotify_srcvue_type_script_lang_js,
4742
- render,
4743
- staticRenderFns,
4744
- false,
4745
- null,
4746
- "7bbf5e3c",
4747
- null
4748
-
4749
- )
4750
-
4751
- /* harmony default export */ var NBNotify_src = (component.exports);
4752
- ;// ./packages/components/NBNotify/src/notify.js
4753
-
4754
-
4755
-
4756
- /*
4757
- * @Author: chenghuan.dong
4758
- * @Date: 2024-11-14 09:44:58
4759
- * @LastEditTime: 2024-11-14 14:36:01
4760
- * @LastEditors: chenghuan.dong
4761
- * @Description:
4762
- * @FilePath: \nubomed-ui\packages\components\NBNotify\src\notify.js
4763
- */
4764
- // import Vue from 'vue'
4765
- const Vue = __webpack_require__(4100);
4766
-
4767
- // import merge from '../../../utils/merge'
4768
- // import { PopupManager } from '../../../utils/popup'
4769
- // import { isVNode } from '../../../utils/vdom'
4770
-
4771
- let instance;
4772
- let instances = [];
4773
- let seed = 1;
4774
- const Notify = function (options) {
4775
- console.log('Vue', Vue);
4776
- if (!Vue) {
4777
- return;
4778
- }
4779
- if (Vue.prototype.$isServer) return;
4780
- options = Object.assign({}, options);
4781
- const userOnClose = options.onClose;
4782
- const id = 'notification_' + seed++;
4783
- const position = options.position || 'top-right';
4784
- options.onClose = function () {
4785
- Notify.close(id, userOnClose);
4786
- };
4787
- const NotificationConstructor = Vue.extend(NBNotify_src);
4788
- instance = new NotificationConstructor({
4789
- data: options
4790
- });
4791
- instance.$slots.default = [options.message];
4792
- instance.id = id;
4793
- instance.$mount();
4794
- document.body.appendChild(instance.$el);
4795
- instance.visible = true;
4796
- instance.dom = instance.$el;
4797
- // instance.dom.style.zIndex = PopupManager.nextZIndex()
4798
-
4799
- let verticalOffset = options.offset || 248;
4800
- instances.filter(item => item.position === position).forEach(item => {
4801
- verticalOffset += item.$el.offsetHeight + 16;
4802
- });
4803
- verticalOffset += 16;
4804
- instance.verticalOffset = verticalOffset;
4805
- instances.push(instance);
4806
- return instance;
4807
- };
4808
- ['success', 'warning', 'info', 'error'].forEach(type => {
4809
- Notify[type] = options => {
4810
- if (typeof options === 'string') {
4811
- options = {
4812
- message: options
4813
- };
4814
- }
4815
- options.type = type;
4816
- return Notify(options);
4817
- };
4818
- });
4819
- Notify.close = function (id, userOnClose) {
4820
- let index = -1;
4821
- const len = instances.length;
4822
- const instance = instances.filter((instance, i) => {
4823
- if (instance.id === id) {
4824
- index = i;
4825
- return true;
4826
- }
4827
- return false;
4828
- })[0];
4829
- if (!instance) return;
4830
- if (typeof userOnClose === 'function') {
4831
- userOnClose(instance);
4832
- }
4833
- instances.splice(index, 1);
4834
- if (len <= 1) return;
4835
- const position = instance.position;
4836
- const removedHeight = instance.dom.offsetHeight;
4837
- for (let i = index; i < len - 1; i++) {
4838
- if (instances[i].position === position) {
4839
- instances[i].dom.style[instance.verticalProperty] = parseInt(instances[i].dom.style[instance.verticalProperty], 10) - removedHeight - 16 + 'px';
4840
- }
4841
- }
4842
- };
4843
- Notify.closeAll = function () {
4844
- for (let i = instances.length - 1; i >= 0; i--) {
4845
- instances[i].close();
4846
- }
4847
- };
4848
- /* harmony default export */ var notify = (Notify);
4849
5116
  // EXTERNAL MODULE: ./packages/iconfont/iconfont.css
4850
5117
  var iconfont = __webpack_require__(1970);
4851
5118
  ;// ./packages/index.js
@@ -4855,7 +5122,7 @@ var iconfont = __webpack_require__(1970);
4855
5122
  /*
4856
5123
  * @Author: chenghuan.dong
4857
5124
  * @Date: 2024-11-08 17:23:47
4858
- * @LastEditTime: 2024-11-14 14:32:18
5125
+ * @LastEditTime: 2024-11-14 16:40:00
4859
5126
  * @LastEditors: chenghuan.dong
4860
5127
  * @Description: 主index.js导出全部组件
4861
5128
  * @FilePath: \nubomed-ui\packages\index.js
@@ -4863,7 +5130,7 @@ var iconfont = __webpack_require__(1970);
4863
5130
 
4864
5131
 
4865
5132
 
4866
-
5133
+ // import nbNotify from './components/NBNotify/src/notify.js'
4867
5134
 
4868
5135
  // 使用iconfont图标
4869
5136
 
@@ -4883,7 +5150,11 @@ const install = function (Vue, options = {}) {
4883
5150
  if (install.installed) return;
4884
5151
  components.forEach(component => {
4885
5152
  const name = 'nb-' + camelToKebab(component.name.slice(2));
4886
- const installNames = ['nb-icon', 'nb-tag', 'nb-empty', 'nb-header', 'nb-summary-bar', 'nb-pagination'];
5153
+ 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'
5154
+ // 'nb-fullscreen-dialog',
5155
+ // 'nb-out-footer-dialog',
5156
+ // 'nb-progress'
5157
+ ];
4887
5158
  if (installNames.includes(name)) {
4888
5159
  console.log('%c' + '√ ' + name, 'color: #00A572;');
4889
5160
  } else {
@@ -4895,7 +5166,7 @@ const install = function (Vue, options = {}) {
4895
5166
  });
4896
5167
 
4897
5168
  // 全局
4898
- Vue.prototype.$nbNotify = notify;
5169
+ // Vue.prototype.$nbNotify = nbNotify
4899
5170
  };
4900
5171
 
4901
5172
  // if (typeof window !== 'undefined' && window.Vue) {