nubomed-ui 2.0.25 → 2.0.27
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.common.js +11 -14
- package/nubomed-ui.common.js.map +1 -1
- package/nubomed-ui.umd.js +11 -14
- package/nubomed-ui.umd.js.map +1 -1
- package/nubomed-ui.umd.min.js +1 -1
- package/nubomed-ui.umd.min.js.map +1 -1
- package/package.json +2 -2
package/nubomed-ui.common.js
CHANGED
@@ -66983,16 +66983,13 @@ var esnext_iterator_for_each = __webpack_require__(3949);
|
|
66983
66983
|
function camelToKebab(camelCaseStr) {
|
66984
66984
|
return camelCaseStr.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();
|
66985
66985
|
}
|
66986
|
-
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
66987
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(4100);
|
66988
|
-
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
66989
66986
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/element-ui.common.js
|
66990
66987
|
var element_ui_common = __webpack_require__(1052);
|
66991
66988
|
;// ./packages/feedback/nb-notify.js
|
66992
66989
|
/*
|
66993
66990
|
* @Author: chenghuan.dong
|
66994
66991
|
* @Date: 2024-11-12 17:58:53
|
66995
|
-
* @LastEditTime: 2024-11-13 14:
|
66992
|
+
* @LastEditTime: 2024-11-13 14:52:42
|
66996
66993
|
* @LastEditors: chenghuan.dong
|
66997
66994
|
* @Description: 对应样式styles/element-ui/notification.scss
|
66998
66995
|
* @FilePath: \nubomed-ui\packages\feedback\nb-notify.js
|
@@ -67000,8 +66997,6 @@ var element_ui_common = __webpack_require__(1052);
|
|
67000
66997
|
|
67001
66998
|
|
67002
66999
|
|
67003
|
-
external_commonjs_vue_commonjs2_vue_root_Vue_default().use(element_ui_common.Notification);
|
67004
|
-
|
67005
67000
|
/**
|
67006
67001
|
* @param {string} obj.type 图标类型, 可选值: success warning error
|
67007
67002
|
* @param {string} obj.title 标题,支持换行显示,用<br>隔开
|
@@ -67009,7 +67004,7 @@ external_commonjs_vue_commonjs2_vue_root_Vue_default().use(element_ui_common.Not
|
|
67009
67004
|
* @param {string} obj.duration 显示时间, 毫秒。设为 0 则不会自动关闭
|
67010
67005
|
*/
|
67011
67006
|
|
67012
|
-
|
67007
|
+
const nbNotify = obj => {
|
67013
67008
|
return (0,element_ui_common.Notification)({
|
67014
67009
|
duration: obj.duration === undefined ? 2000 : obj.duration,
|
67015
67010
|
center: true,
|
@@ -67026,7 +67021,7 @@ function nbNotify(obj) {
|
|
67026
67021
|
}
|
67027
67022
|
}
|
67028
67023
|
});
|
67029
|
-
}
|
67024
|
+
};
|
67030
67025
|
|
67031
67026
|
// 可直接通过$notify[type]的形式调用
|
67032
67027
|
const types = ['success', 'warning', 'error'];
|
@@ -67044,7 +67039,7 @@ types.forEach(type => {
|
|
67044
67039
|
return nbNotify(obj);
|
67045
67040
|
};
|
67046
67041
|
});
|
67047
|
-
|
67042
|
+
/* harmony default export */ var nb_notify = (nbNotify);
|
67048
67043
|
// EXTERNAL MODULE: ./packages/iconfont/iconfont.css
|
67049
67044
|
var iconfont = __webpack_require__(1970);
|
67050
67045
|
;// ./locale/lang/zh-CN.js
|
@@ -67177,7 +67172,7 @@ const i18n = function (fn) {
|
|
67177
67172
|
/*
|
67178
67173
|
* @Author: chenghuan.dong
|
67179
67174
|
* @Date: 2024-11-08 17:23:47
|
67180
|
-
* @LastEditTime: 2024-11-13
|
67175
|
+
* @LastEditTime: 2024-11-13 15:13:12
|
67181
67176
|
* @LastEditors: chenghuan.dong
|
67182
67177
|
* @Description: 主index.js导出全部组件
|
67183
67178
|
* @FilePath: \nubomed-ui\packages\index.js
|
@@ -67208,11 +67203,13 @@ const install = function (Vue, options = {}) {
|
|
67208
67203
|
});
|
67209
67204
|
|
67210
67205
|
// 全局
|
67211
|
-
Vue.prototype.$nbNotify =
|
67206
|
+
Vue.prototype.$nbNotify = nb_notify;
|
67212
67207
|
};
|
67213
|
-
|
67214
|
-
|
67215
|
-
|
67208
|
+
|
67209
|
+
// if (typeof window !== 'undefined' && window.Vue) {
|
67210
|
+
// install(window.Vue)
|
67211
|
+
// }
|
67212
|
+
|
67216
67213
|
const packages_i18n = locale.i18n;
|
67217
67214
|
/* harmony default export */ var packages_0 = ({
|
67218
67215
|
install,
|