nubomed-ui 2.0.26 → 2.0.28

Sign up to get free protection for your applications and to get access to all the features.
package/nubomed-ui.umd.js CHANGED
@@ -169,7 +169,7 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".iconfont[data-v-1d7955de]{display:inl
169
169
 
170
170
  /***/ }),
171
171
 
172
- /***/ 1808:
172
+ /***/ 9836:
173
173
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
174
174
 
175
175
  "use strict";
@@ -183,7 +183,7 @@ __webpack_require__.r(__webpack_exports__);
183
183
 
184
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
185
  // Module
186
- ___CSS_LOADER_EXPORT___.push([module.id, ".el-pagination--left[data-v-28549249]{text-align:left}.el-pagination--center[data-v-28549249]{text-align:center}.el-pagination--right[data-v-28549249]{text-align:right}", ""]);
186
+ ___CSS_LOADER_EXPORT___.push([module.id, ".el-pagination--left[data-v-1e725708]{text-align:left}.el-pagination--center[data-v-1e725708]{text-align:center}.el-pagination--right[data-v-1e725708]{text-align:right}", ""]);
187
187
  // Exports
188
188
  /* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
189
189
 
@@ -703,6 +703,127 @@ src.install = function (Vue) {
703
703
 
704
704
  /***/ }),
705
705
 
706
+ /***/ 2064:
707
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
708
+
709
+ "use strict";
710
+ // ESM COMPAT FLAG
711
+ __webpack_require__.r(__webpack_exports__);
712
+
713
+ // EXPORTS
714
+ __webpack_require__.d(__webpack_exports__, {
715
+ "default": function() { return /* binding */ NBFullDialog; }
716
+ });
717
+
718
+ ;// ./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
719
+ var render = function render() {
720
+ var _vm = this,
721
+ _c = _vm._self._c;
722
+ return _c('el-dialog', {
723
+ staticClass: "nb-fullscreen-dialog",
724
+ style: {
725
+ '--full-dialog-top': `${_vm.top}px`
726
+ },
727
+ attrs: {
728
+ "visible": _vm.visible,
729
+ "show-close": _vm.showClose,
730
+ "close-on-click-modal": false,
731
+ "close-on-press-escape": false,
732
+ "modal": false,
733
+ "fullscreen": "",
734
+ "append-to-body": "",
735
+ "destroy-on-close": "",
736
+ "custom-class": _vm.customClass,
737
+ "before-close": _vm.handleClose
738
+ },
739
+ on: {
740
+ "closed": _vm.closedDialog
741
+ }
742
+ }, [_vm._t("default"), _c('template', {
743
+ slot: "footer"
744
+ }, [_vm._t("footer")], 2)], 2);
745
+ };
746
+ var staticRenderFns = [];
747
+
748
+ ;// ./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
749
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
750
+ name: 'NBFullDialog',
751
+ // 使用v-model即可
752
+ model: {
753
+ prop: 'visible',
754
+ event: 'update'
755
+ },
756
+ props: {
757
+ // 是否显示弹框
758
+ visible: {
759
+ type: Boolean,
760
+ default: false
761
+ },
762
+ // 是否显示关闭按钮
763
+ showClose: {
764
+ type: Boolean,
765
+ default: false
766
+ },
767
+ // 自定义样式
768
+ customClass: {
769
+ type: String,
770
+ default: ''
771
+ },
772
+ // 距离顶部距离
773
+ top: {
774
+ type: [Number, String],
775
+ default: 56
776
+ }
777
+ },
778
+ data() {
779
+ return {};
780
+ },
781
+ computed: {},
782
+ watch: {},
783
+ beforeDestroy() {},
784
+ methods: {
785
+ handleClose() {
786
+ this.$emit('update', false);
787
+ },
788
+ // 关闭弹框
789
+ closedDialog() {
790
+ this.$emit('closed');
791
+ }
792
+ }
793
+ });
794
+ ;// ./packages/components/NBFullDialog/src/index.vue?vue&type=script&lang=js
795
+ /* harmony default export */ var NBFullDialog_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
796
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
797
+ var componentNormalizer = __webpack_require__(1656);
798
+ ;// ./packages/components/NBFullDialog/src/index.vue
799
+
800
+
801
+
802
+
803
+
804
+ /* normalize component */
805
+ ;
806
+ var component = (0,componentNormalizer/* default */.A)(
807
+ NBFullDialog_srcvue_type_script_lang_js,
808
+ render,
809
+ staticRenderFns,
810
+ false,
811
+ null,
812
+ "59fab8ae",
813
+ null
814
+
815
+ )
816
+
817
+ /* harmony default export */ var src = (component.exports);
818
+ ;// ./packages/components/NBFullDialog/index.js
819
+
820
+ src.install = function (Vue) {
821
+ Vue.component(src.name, src);
822
+ };
823
+ /* harmony default export */ var NBFullDialog = (src);
824
+
825
+ /***/ }),
826
+
706
827
  /***/ 1678:
707
828
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
708
829
 
@@ -1001,7 +1122,7 @@ src.install = function (Vue) {
1001
1122
 
1002
1123
  /***/ }),
1003
1124
 
1004
- /***/ 4541:
1125
+ /***/ 5168:
1005
1126
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1006
1127
 
1007
1128
  "use strict";
@@ -1013,12 +1134,12 @@ __webpack_require__.d(__webpack_exports__, {
1013
1134
  "default": function() { return /* binding */ NBPagination; }
1014
1135
  });
1015
1136
 
1016
- ;// ./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=28549249&scoped=true
1137
+ ;// ./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
1017
1138
  var render = function render() {
1018
1139
  var _vm = this,
1019
1140
  _c = _vm._self._c;
1020
1141
  return _c('el-pagination', {
1021
- class: `el-pagination--${_vm.position}`,
1142
+ class: `nb-pagination el-pagination--${_vm.position}`,
1022
1143
  attrs: {
1023
1144
  "current-page": _vm.currentPage,
1024
1145
  "page-size": _vm.pageSize,
@@ -1087,9 +1208,9 @@ var staticRenderFns = [];
1087
1208
  });
1088
1209
  ;// ./packages/components/NBPagination/src/index.vue?vue&type=script&lang=js
1089
1210
  /* harmony default export */ var NBPagination_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
1090
- // 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=28549249&prod&lang=scss&scoped=true
1091
- var srcvue_type_style_index_0_id_28549249_prod_lang_scss_scoped_true = __webpack_require__(1860);
1092
- ;// ./packages/components/NBPagination/src/index.vue?vue&type=style&index=0&id=28549249&prod&lang=scss&scoped=true
1211
+ // 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
1212
+ var srcvue_type_style_index_0_id_1e725708_prod_lang_scss_scoped_true = __webpack_require__(4136);
1213
+ ;// ./packages/components/NBPagination/src/index.vue?vue&type=style&index=0&id=1e725708&prod&lang=scss&scoped=true
1093
1214
 
1094
1215
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
1095
1216
  var componentNormalizer = __webpack_require__(1656);
@@ -1108,7 +1229,7 @@ var component = (0,componentNormalizer/* default */.A)(
1108
1229
  staticRenderFns,
1109
1230
  false,
1110
1231
  null,
1111
- "28549249",
1232
+ "1e725708",
1112
1233
  null
1113
1234
 
1114
1235
  )
@@ -1355,19 +1476,19 @@ var update = add("7cd5ae63", content, true, {"sourceMap":false,"shadowMode":fals
1355
1476
 
1356
1477
  /***/ }),
1357
1478
 
1358
- /***/ 1860:
1479
+ /***/ 4136:
1359
1480
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
1360
1481
 
1361
1482
  // style-loader: Adds some css to the DOM by adding a <style> tag
1362
1483
 
1363
1484
  // load the styles
1364
- var content = __webpack_require__(1808);
1485
+ var content = __webpack_require__(9836);
1365
1486
  if(content.__esModule) content = content.default;
1366
1487
  if(typeof content === 'string') content = [[module.id, content, '']];
1367
1488
  if(content.locals) module.exports = content.locals;
1368
1489
  // add the styles to the DOM
1369
1490
  var add = (__webpack_require__(9548)/* ["default"] */ .A)
1370
- var update = add("6d704d71", content, true, {"sourceMap":false,"shadowMode":false});
1491
+ var update = add("1e6bb207", content, true, {"sourceMap":false,"shadowMode":false});
1371
1492
 
1372
1493
  /***/ }),
1373
1494
 
@@ -1675,9 +1796,10 @@ webpackContext.id = 1603;
1675
1796
  var map = {
1676
1797
  "./NBDialog/index.js": 5977,
1677
1798
  "./NBEmpty/index.js": 6102,
1799
+ "./NBFullDialog/index.js": 2064,
1678
1800
  "./NBHeader/index.js": 1678,
1679
1801
  "./NBIcon/index.js": 1343,
1680
- "./NBPagination/index.js": 4541,
1802
+ "./NBPagination/index.js": 5168,
1681
1803
  "./NBSummaryBar/index.js": 5749,
1682
1804
  "./NBTag/index.js": 7996
1683
1805
  };
@@ -4423,7 +4545,7 @@ const i18n = function (fn) {
4423
4545
  /*
4424
4546
  * @Author: chenghuan.dong
4425
4547
  * @Date: 2024-11-08 17:23:47
4426
- * @LastEditTime: 2024-11-13 14:54:53
4548
+ * @LastEditTime: 2024-11-13 17:17:10
4427
4549
  * @LastEditors: chenghuan.dong
4428
4550
  * @Description: 主index.js导出全部组件
4429
4551
  * @FilePath: \nubomed-ui\packages\index.js
@@ -4448,17 +4570,25 @@ const install = function (Vue, options = {}) {
4448
4570
  locale.i18n(options.i18n);
4449
4571
 
4450
4572
  // 组件
4573
+ if (install.installed) return;
4451
4574
  components.forEach(component => {
4452
- console.log('nb-' + camelToKebab(component.name.slice(2)));
4453
- Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
4575
+ const name = 'nb-' + camelToKebab(component.name.slice(2));
4576
+ const successNames = ['nb-icon', 'nb-empty', 'nb-tag', 'nb-summary-bar'];
4577
+ console.log(name + (successNames.includes(name) ? ' √' : ' ?'));
4578
+ const installNames = ['nb-icon', 'nb-empty', 'nb-tag', 'nb-summary-bar'];
4579
+ if (installNames.includes(name)) {
4580
+ Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
4581
+ }
4454
4582
  });
4455
4583
 
4456
4584
  // 全局
4457
4585
  // Vue.prototype.$nbNotify = nbNotify
4458
4586
  };
4459
- if (typeof window !== 'undefined' && window.Vue) {
4460
- install(window.Vue);
4461
- }
4587
+
4588
+ // if (typeof window !== 'undefined' && window.Vue) {
4589
+ // install(window.Vue)
4590
+ // }
4591
+
4462
4592
  const packages_i18n = locale.i18n;
4463
4593
  /* harmony default export */ var packages_0 = ({
4464
4594
  install,