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.
@@ -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
 
@@ -1445,61 +1775,29 @@ var component = (0,componentNormalizer/* default */.A)(
1445
1775
 
1446
1776
  )
1447
1777
 
1448
- /* harmony default export */ var src = (component.exports);
1449
- ;// ./packages/components/NBTag/index.js
1450
-
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
1778
+ /* harmony default export */ var src = (component.exports);
1779
+ ;// ./packages/components/NBTag/index.js
1478
1780
 
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
 
@@ -2063,6 +2365,26 @@ module.exports = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
2063
2365
  };
2064
2366
 
2065
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
+
2066
2388
  /***/ }),
2067
2389
 
2068
2390
  /***/ 2195:
@@ -2160,6 +2482,20 @@ module.exports = !fails(function () {
2160
2482
  });
2161
2483
 
2162
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
+
2163
2499
  /***/ }),
2164
2500
 
2165
2501
  /***/ 6699:
@@ -2266,6 +2602,21 @@ module.exports = function (O, key, value, options) {
2266
2602
  };
2267
2603
 
2268
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
+
2269
2620
  /***/ }),
2270
2621
 
2271
2622
  /***/ 9433:
@@ -3173,6 +3524,122 @@ module.exports = function (iterator, kind, value) {
3173
3524
  };
3174
3525
 
3175
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
+
3176
3643
  /***/ }),
3177
3644
 
3178
3645
  /***/ 7657:
@@ -4230,6 +4697,49 @@ $({ global: true, constructor: true, forced: FORCED }, {
4230
4697
  });
4231
4698
 
4232
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
+
4233
4743
  /***/ }),
4234
4744
 
4235
4745
  /***/ 7588:
@@ -4258,6 +4768,24 @@ $({ target: 'Iterator', proto: true, real: true }, {
4258
4768
  });
4259
4769
 
4260
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
+
4261
4789
  /***/ }),
4262
4790
 
4263
4791
  /***/ 8992:
@@ -4269,6 +4797,17 @@ $({ target: 'Iterator', proto: true, real: true }, {
4269
4797
  __webpack_require__(8111);
4270
4798
 
4271
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
+
4272
4811
  /***/ }),
4273
4812
 
4274
4813
  /***/ 3949:
@@ -4280,6 +4819,17 @@ __webpack_require__(8111);
4280
4819
  __webpack_require__(7588);
4281
4820
 
4282
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
+
4283
4833
  /***/ })
4284
4834
 
4285
4835
  /******/ });
@@ -4563,283 +5113,6 @@ const i18n = function (fn) {
4563
5113
  t,
4564
5114
  i18n
4565
5115
  });
4566
- ;// external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
4567
- var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
4568
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject);
4569
- ;// ./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
4570
- var render = function render() {
4571
- var _vm = this,
4572
- _c = _vm._self._c;
4573
- return _c('transition', {
4574
- attrs: {
4575
- "name": "el-notification-fade"
4576
- }
4577
- }, [_c('div', {
4578
- directives: [{
4579
- name: "show",
4580
- rawName: "v-show",
4581
- value: _vm.visible,
4582
- expression: "visible"
4583
- }],
4584
- class: ['nb-notify', `nb-notify--${_vm.type}`],
4585
- style: _vm.positionStyle,
4586
- attrs: {
4587
- "role": "alert"
4588
- },
4589
- on: {
4590
- "mouseenter": function ($event) {
4591
- return _vm.clearTimer();
4592
- },
4593
- "mouseleave": function ($event) {
4594
- return _vm.startTimer();
4595
- },
4596
- "click": _vm.click
4597
- }
4598
- }, [_vm.type === 'success' ? _c('nb-icon', {
4599
- staticClass: "nb-notify__icon",
4600
- attrs: {
4601
- "icon": "circle-check-filled"
4602
- }
4603
- }) : _vm._e(), _vm.type === 'error' ? _c('nb-icon', {
4604
- staticClass: "nb-notify__icon",
4605
- attrs: {
4606
- "icon": "circle-close-filled"
4607
- }
4608
- }) : _vm._e(), _vm.type === 'warning' ? _c('nb-icon', {
4609
- staticClass: "nb-notify__icon",
4610
- attrs: {
4611
- "icon": "warning-filled"
4612
- }
4613
- }) : _vm._e(), _c('div', {
4614
- staticClass: "nb-notify__message",
4615
- domProps: {
4616
- "innerHTML": _vm._s(_vm.message)
4617
- }
4618
- })], 1)]);
4619
- };
4620
- var staticRenderFns = [];
4621
-
4622
- ;// ./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
4623
- /* harmony default export */ var srcvue_type_script_lang_js = ({
4624
- name: 'NBNotify',
4625
- data() {
4626
- return {
4627
- visible: false,
4628
- message: '',
4629
- duration: 3000,
4630
- type: '',
4631
- showClose: false,
4632
- customClass: '',
4633
- onClose: null,
4634
- onClick: null,
4635
- closed: false,
4636
- verticalOffset: 248,
4637
- timer: null,
4638
- position: 'top-right'
4639
- };
4640
- },
4641
- computed: {
4642
- horizontalClass() {
4643
- return this.position.indexOf('right') > -1 ? 'right' : 'left';
4644
- },
4645
- verticalProperty() {
4646
- return /^top-/.test(this.position) ? 'top' : 'bottom';
4647
- },
4648
- positionStyle() {
4649
- return {
4650
- [this.verticalProperty]: `${this.verticalOffset}px`
4651
- };
4652
- }
4653
- },
4654
- watch: {
4655
- closed(newVal) {
4656
- if (newVal) {
4657
- this.visible = false;
4658
- this.$el.addEventListener('transitionend', this.destroyElement);
4659
- }
4660
- }
4661
- },
4662
- methods: {
4663
- destroyElement() {
4664
- this.$el.removeEventListener('transitionend', this.destroyElement);
4665
- this.$destroy(true);
4666
- this.$el.parentNode.removeChild(this.$el);
4667
- },
4668
- click() {
4669
- if (typeof this.onClick === 'function') {
4670
- this.onClick();
4671
- }
4672
- },
4673
- close() {
4674
- this.closed = true;
4675
- if (typeof this.onClose === 'function') {
4676
- this.onClose();
4677
- }
4678
- },
4679
- clearTimer() {
4680
- clearTimeout(this.timer);
4681
- },
4682
- startTimer() {
4683
- if (this.duration > 0) {
4684
- this.timer = setTimeout(() => {
4685
- if (!this.closed) {
4686
- this.close();
4687
- }
4688
- }, this.duration);
4689
- }
4690
- },
4691
- keydown(e) {
4692
- if (e.keyCode === 46 || e.keyCode === 8) {
4693
- this.clearTimer(); // detele 取消倒计时
4694
- } else if (e.keyCode === 27) {
4695
- // esc关闭消息
4696
- if (!this.closed) {
4697
- this.close();
4698
- }
4699
- } else {
4700
- this.startTimer(); // 恢复倒计时
4701
- }
4702
- }
4703
- },
4704
- mounted() {
4705
- if (this.duration > 0) {
4706
- this.timer = setTimeout(() => {
4707
- if (!this.closed) {
4708
- this.close();
4709
- }
4710
- }, this.duration);
4711
- }
4712
- document.addEventListener('keydown', this.keydown);
4713
- },
4714
- beforeDestroy() {
4715
- document.removeEventListener('keydown', this.keydown);
4716
- }
4717
- });
4718
- ;// ./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
4719
- /* harmony default export */ var NBNotify_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
4720
- // 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
4721
- var srcvue_type_style_index_0_id_7bbf5e3c_prod_lang_scss_scoped_true = __webpack_require__(7187);
4722
- ;// ./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=7bbf5e3c&prod&lang=scss&scoped=true
4723
-
4724
- // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4725
- var componentNormalizer = __webpack_require__(1656);
4726
- ;// ./packages/components/NBNotify/src/index.vue
4727
-
4728
-
4729
-
4730
- ;
4731
-
4732
-
4733
- /* normalize component */
4734
-
4735
- var component = (0,componentNormalizer/* default */.A)(
4736
- NBNotify_srcvue_type_script_lang_js,
4737
- render,
4738
- staticRenderFns,
4739
- false,
4740
- null,
4741
- "7bbf5e3c",
4742
- null
4743
-
4744
- )
4745
-
4746
- /* harmony default export */ var NBNotify_src = (component.exports);
4747
- ;// ./packages/components/NBNotify/src/notify.js
4748
-
4749
-
4750
-
4751
- /*
4752
- * @Author: chenghuan.dong
4753
- * @Date: 2024-11-14 09:44:58
4754
- * @LastEditTime: 2024-11-14 14:03:08
4755
- * @LastEditors: chenghuan.dong
4756
- * @Description:
4757
- * @FilePath: \nubomed-ui\packages\components\NBNotify\src\notify.js
4758
- */
4759
-
4760
-
4761
- // import merge from '../../../utils/merge'
4762
- // import { PopupManager } from '../../../utils/popup'
4763
- // import { isVNode } from '../../../utils/vdom'
4764
-
4765
- let instance;
4766
- let instances = [];
4767
- let seed = 1;
4768
- const Notify = function (options) {
4769
- console.log('Vue', (external_commonjs_vue_commonjs2_vue_root_Vue_default()));
4770
- if (!(external_commonjs_vue_commonjs2_vue_root_Vue_default())) {
4771
- return;
4772
- }
4773
- if ((external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$isServer) return;
4774
- options = Object.assign({}, options);
4775
- const userOnClose = options.onClose;
4776
- const id = 'notification_' + seed++;
4777
- const position = options.position || 'top-right';
4778
- options.onClose = function () {
4779
- Notify.close(id, userOnClose);
4780
- };
4781
- const NotificationConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(NBNotify_src);
4782
- instance = new NotificationConstructor({
4783
- data: options
4784
- });
4785
- instance.$slots.default = [options.message];
4786
- instance.id = id;
4787
- instance.$mount();
4788
- document.body.appendChild(instance.$el);
4789
- instance.visible = true;
4790
- instance.dom = instance.$el;
4791
- // instance.dom.style.zIndex = PopupManager.nextZIndex()
4792
-
4793
- let verticalOffset = options.offset || 248;
4794
- instances.filter(item => item.position === position).forEach(item => {
4795
- verticalOffset += item.$el.offsetHeight + 16;
4796
- });
4797
- verticalOffset += 16;
4798
- instance.verticalOffset = verticalOffset;
4799
- instances.push(instance);
4800
- return instance;
4801
- };
4802
- ['success', 'warning', 'info', 'error'].forEach(type => {
4803
- Notify[type] = options => {
4804
- if (typeof options === 'string') {
4805
- options = {
4806
- message: options
4807
- };
4808
- }
4809
- options.type = type;
4810
- return Notify(options);
4811
- };
4812
- });
4813
- Notify.close = function (id, userOnClose) {
4814
- let index = -1;
4815
- const len = instances.length;
4816
- const instance = instances.filter((instance, i) => {
4817
- if (instance.id === id) {
4818
- index = i;
4819
- return true;
4820
- }
4821
- return false;
4822
- })[0];
4823
- if (!instance) return;
4824
- if (typeof userOnClose === 'function') {
4825
- userOnClose(instance);
4826
- }
4827
- instances.splice(index, 1);
4828
- if (len <= 1) return;
4829
- const position = instance.position;
4830
- const removedHeight = instance.dom.offsetHeight;
4831
- for (let i = index; i < len - 1; i++) {
4832
- if (instances[i].position === position) {
4833
- instances[i].dom.style[instance.verticalProperty] = parseInt(instances[i].dom.style[instance.verticalProperty], 10) - removedHeight - 16 + 'px';
4834
- }
4835
- }
4836
- };
4837
- Notify.closeAll = function () {
4838
- for (let i = instances.length - 1; i >= 0; i--) {
4839
- instances[i].close();
4840
- }
4841
- };
4842
- /* harmony default export */ var notify = (Notify);
4843
5116
  // EXTERNAL MODULE: ./packages/iconfont/iconfont.css
4844
5117
  var iconfont = __webpack_require__(1970);
4845
5118
  ;// ./packages/index.js
@@ -4849,7 +5122,7 @@ var iconfont = __webpack_require__(1970);
4849
5122
  /*
4850
5123
  * @Author: chenghuan.dong
4851
5124
  * @Date: 2024-11-08 17:23:47
4852
- * @LastEditTime: 2024-11-14 14:00:53
5125
+ * @LastEditTime: 2024-11-14 16:40:00
4853
5126
  * @LastEditors: chenghuan.dong
4854
5127
  * @Description: 主index.js导出全部组件
4855
5128
  * @FilePath: \nubomed-ui\packages\index.js
@@ -4857,7 +5130,7 @@ var iconfont = __webpack_require__(1970);
4857
5130
 
4858
5131
 
4859
5132
 
4860
-
5133
+ // import nbNotify from './components/NBNotify/src/notify.js'
4861
5134
 
4862
5135
  // 使用iconfont图标
4863
5136
 
@@ -4877,7 +5150,11 @@ const install = function (Vue, options = {}) {
4877
5150
  if (install.installed) return;
4878
5151
  components.forEach(component => {
4879
5152
  const name = 'nb-' + camelToKebab(component.name.slice(2));
4880
- 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
+ ];
4881
5158
  if (installNames.includes(name)) {
4882
5159
  console.log('%c' + '√ ' + name, 'color: #00A572;');
4883
5160
  } else {
@@ -4889,7 +5166,7 @@ const install = function (Vue, options = {}) {
4889
5166
  });
4890
5167
 
4891
5168
  // 全局
4892
- Vue.prototype.$nbNotify = notify;
5169
+ // Vue.prototype.$nbNotify = nbNotify
4893
5170
  };
4894
5171
 
4895
5172
  // if (typeof window !== 'undefined' && window.Vue) {