nubomed-ui 2.0.20 → 2.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nubomed-ui might be problematic. Click here for more details.

package/nubomed-ui.umd.js CHANGED
@@ -76763,22 +76763,19 @@ var esnext_iterator_for_each = __webpack_require__(3949);
76763
76763
  function camelToKebab(camelCaseStr) {
76764
76764
  return camelCaseStr.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
76765
76765
  }
76766
- // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
76767
- var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
76768
- var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
76769
76766
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
76770
76767
  var element_ui_common = __webpack_require__(1052);
76771
76768
  ;// ./packages/feedback/nb-notify.js
76772
76769
  /*
76773
76770
  * @Author: chenghuan.dong
76774
- * @Date: 2021-10-03 10:48:34
76771
+ * @Date: 2024-11-12 17:58:53
76772
+ * @LastEditTime: 2024-11-13 10:54:08
76775
76773
  * @LastEditors: chenghuan.dong
76776
- * @LastEditTime: 2024-11-13 08:59:37
76777
- * @Description: el-message
76774
+ * @Description: 对应样式styles/element-ui/notification.scss
76775
+ * @FilePath: \nubomed-ui\packages\feedback\nb-notify.js
76778
76776
  */
76779
76777
 
76780
76778
 
76781
-
76782
76779
  const types = ['success', 'warning', 'error'];
76783
76780
  const defaultDuration = 2000;
76784
76781
 
@@ -76788,7 +76785,9 @@ const defaultDuration = 2000;
76788
76785
  * @param {string} obj.customClass 自定义样式
76789
76786
  * @param {string} obj.duration 显示时间, 毫秒。设为 0 则不会自动关闭
76790
76787
  */
76788
+
76791
76789
  const nbNotify = obj => {
76790
+ console.log('nbNotify', obj);
76792
76791
  return (0,element_ui_common.Notification)({
76793
76792
  duration: obj.duration === undefined ? defaultDuration : obj.duration,
76794
76793
  center: true,
@@ -76822,11 +76821,7 @@ types.forEach(type => {
76822
76821
  return nbNotify(obj);
76823
76822
  };
76824
76823
  });
76825
-
76826
- // 对应样式styles/element-ui/notification.scss
76827
- (external_commonjs_vue_commonjs2_vue_root_Vue_default()).prototype.$nbNotify = nbNotify;
76828
- ;// ./packages/feedback/index.js
76829
-
76824
+ /* harmony default export */ var nb_notify = (nbNotify);
76830
76825
  // EXTERNAL MODULE: ./packages/iconfont/iconfont.css
76831
76826
  var iconfont = __webpack_require__(3050);
76832
76827
  ;// ./locale/lang/zh-CN.js
@@ -76959,7 +76954,7 @@ const i18n = function (fn) {
76959
76954
  /*
76960
76955
  * @Author: chenghuan.dong
76961
76956
  * @Date: 2024-11-08 17:23:47
76962
- * @LastEditTime: 2024-11-13 08:58:15
76957
+ * @LastEditTime: 2024-11-13 11:00:16
76963
76958
  * @LastEditors: chenghuan.dong
76964
76959
  * @Description: 主index.js导出全部组件
76965
76960
  * @FilePath: \nubomed-ui\packages\index.js
@@ -76988,6 +76983,15 @@ const install = function (Vue, options = {}) {
76988
76983
  console.log('nb-' + camelToKebab(component.name.slice(2)));
76989
76984
  Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
76990
76985
  });
76986
+
76987
+ // 全局
76988
+ try {
76989
+ console.log('nbNotify', nb_notify);
76990
+ console.log(typeof Vue, Vue);
76991
+ Vue.prototype.$nbNotify = nb_notify;
76992
+ } catch (error) {
76993
+ console.error('error', error);
76994
+ }
76991
76995
  };
76992
76996
  if (typeof window !== 'undefined' && window.Vue) {
76993
76997
  install(window.Vue);