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