nubomed-ui 2.0.34 → 2.0.36
Sign up to get free protection for your applications and to get access to all the features.
- package/css/nb-ui/index.css +1 -1
- package/nubomed-ui.common.js +61 -114
- package/nubomed-ui.common.js.map +1 -1
- package/nubomed-ui.umd.js +61 -114
- 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 +1 -1
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
|
-
/***/
|
172
|
+
/***/ 5953:
|
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-
|
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
187
|
// Exports
|
188
188
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
189
189
|
|
@@ -1497,19 +1497,19 @@ var update = add("7cd5ae63", content, true, {"sourceMap":false,"shadowMode":fals
|
|
1497
1497
|
|
1498
1498
|
/***/ }),
|
1499
1499
|
|
1500
|
-
/***/
|
1500
|
+
/***/ 1413:
|
1501
1501
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
1502
1502
|
|
1503
1503
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
1504
1504
|
|
1505
1505
|
// load the styles
|
1506
|
-
var content = __webpack_require__(
|
1506
|
+
var content = __webpack_require__(5953);
|
1507
1507
|
if(content.__esModule) content = content.default;
|
1508
1508
|
if(typeof content === 'string') content = [[module.id, content, '']];
|
1509
1509
|
if(content.locals) module.exports = content.locals;
|
1510
1510
|
// add the styles to the DOM
|
1511
1511
|
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
1512
|
-
var update = add("
|
1512
|
+
var update = add("58e4aae8", content, true, {"sourceMap":false,"shadowMode":false});
|
1513
1513
|
|
1514
1514
|
/***/ }),
|
1515
1515
|
|
@@ -4423,10 +4423,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
4423
4423
|
|
4424
4424
|
// EXPORTS
|
4425
4425
|
__webpack_require__.d(__webpack_exports__, {
|
4426
|
-
|
4427
|
-
"default": function() { return /* binding */ entry_lib; },
|
4428
|
-
i18n: function() { return /* reexport */ packages_i18n; },
|
4429
|
-
locale: function() { return /* reexport */ locale; }
|
4426
|
+
"default": function() { return /* binding */ entry_lib; }
|
4430
4427
|
});
|
4431
4428
|
|
4432
4429
|
;// ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
@@ -4587,7 +4584,7 @@ const i18n = function (fn) {
|
|
4587
4584
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
4588
4585
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
4589
4586
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
4590
|
-
;// ./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=
|
4587
|
+
;// ./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
|
4591
4588
|
var render = function render() {
|
4592
4589
|
var _vm = this,
|
4593
4590
|
_c = _vm._self._c;
|
@@ -4602,7 +4599,7 @@ var render = function render() {
|
|
4602
4599
|
value: _vm.visible,
|
4603
4600
|
expression: "visible"
|
4604
4601
|
}],
|
4605
|
-
class: ['
|
4602
|
+
class: ['nb-notify', `nb-notify--${_vm.type}`],
|
4606
4603
|
style: _vm.positionStyle,
|
4607
4604
|
attrs: {
|
4608
4605
|
"role": "alert"
|
@@ -4616,77 +4613,50 @@ var render = function render() {
|
|
4616
4613
|
},
|
4617
4614
|
"click": _vm.click
|
4618
4615
|
}
|
4619
|
-
}, [_vm.type
|
4620
|
-
staticClass: "
|
4621
|
-
|
4622
|
-
|
4623
|
-
staticClass: "el-notification__group",
|
4624
|
-
class: {
|
4625
|
-
'is-with-icon': _vm.typeClass || _vm.iconClass
|
4616
|
+
}, [_vm.type === 'success' ? _c('nb-icon', {
|
4617
|
+
staticClass: "nb-notify__icon",
|
4618
|
+
attrs: {
|
4619
|
+
"icon": "circle-check-filled"
|
4626
4620
|
}
|
4627
|
-
},
|
4628
|
-
staticClass: "
|
4629
|
-
|
4630
|
-
"
|
4621
|
+
}) : _vm._e(), _vm.type === 'error' ? _c('nb-icon', {
|
4622
|
+
staticClass: "nb-notify__icon",
|
4623
|
+
attrs: {
|
4624
|
+
"icon": "circle-close-filled"
|
4631
4625
|
}
|
4632
|
-
}), _c('
|
4633
|
-
|
4634
|
-
|
4635
|
-
|
4636
|
-
value: _vm.message,
|
4637
|
-
expression: "message"
|
4638
|
-
}],
|
4639
|
-
staticClass: "el-notification__content"
|
4640
|
-
}, [_vm._t("default", function () {
|
4641
|
-
return [!_vm.dangerouslyUseHTMLString ? _c('p', [_vm._v(_vm._s(_vm.message))]) : _vm._e(), _c('p', {
|
4642
|
-
domProps: {
|
4643
|
-
"innerHTML": _vm._s(_vm.message)
|
4644
|
-
}
|
4645
|
-
})];
|
4646
|
-
})], 2), _vm.showClose ? _c('div', {
|
4647
|
-
staticClass: "el-notification__closeBtn el-icon-close",
|
4648
|
-
on: {
|
4649
|
-
"click": function ($event) {
|
4650
|
-
$event.stopPropagation();
|
4651
|
-
return _vm.close.apply(null, arguments);
|
4652
|
-
}
|
4626
|
+
}) : _vm._e(), _vm.type === 'warning' ? _c('nb-icon', {
|
4627
|
+
staticClass: "nb-notify__icon",
|
4628
|
+
attrs: {
|
4629
|
+
"icon": "warning-filled"
|
4653
4630
|
}
|
4654
|
-
}) : _vm._e()
|
4631
|
+
}) : _vm._e(), _c('div', {
|
4632
|
+
staticClass: "nb-notify__message",
|
4633
|
+
domProps: {
|
4634
|
+
"innerHTML": _vm._s(_vm.message)
|
4635
|
+
}
|
4636
|
+
})], 1)]);
|
4655
4637
|
};
|
4656
4638
|
var staticRenderFns = [];
|
4657
4639
|
|
4658
4640
|
;// ./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
|
4659
|
-
let typeMap = {
|
4660
|
-
success: 'success',
|
4661
|
-
info: 'info',
|
4662
|
-
warning: 'warning',
|
4663
|
-
error: 'error'
|
4664
|
-
};
|
4665
4641
|
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
4666
4642
|
name: 'NBNotify',
|
4667
4643
|
data() {
|
4668
4644
|
return {
|
4669
4645
|
visible: false,
|
4670
|
-
title: '',
|
4671
4646
|
message: '',
|
4672
|
-
duration:
|
4647
|
+
duration: 3000,
|
4673
4648
|
type: '',
|
4674
4649
|
showClose: false,
|
4675
4650
|
customClass: '',
|
4676
|
-
iconClass: '',
|
4677
4651
|
onClose: null,
|
4678
4652
|
onClick: null,
|
4679
4653
|
closed: false,
|
4680
|
-
verticalOffset:
|
4654
|
+
verticalOffset: 248,
|
4681
4655
|
timer: null,
|
4682
|
-
dangerouslyUseHTMLString: true,
|
4683
4656
|
position: 'top-right'
|
4684
4657
|
};
|
4685
4658
|
},
|
4686
4659
|
computed: {
|
4687
|
-
typeClass() {
|
4688
|
-
return this.type && typeMap[this.type] ? `el-icon-${typeMap[this.type]}` : '';
|
4689
|
-
},
|
4690
4660
|
horizontalClass() {
|
4691
4661
|
return this.position.indexOf('right') > -1 ? 'right' : 'left';
|
4692
4662
|
},
|
@@ -4765,9 +4735,9 @@ let typeMap = {
|
|
4765
4735
|
});
|
4766
4736
|
;// ./packages/components/NBNotify/src/index.vue?vue&type=script&lang=js
|
4767
4737
|
/* harmony default export */ var NBNotify_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
4768
|
-
// 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=
|
4769
|
-
var
|
4770
|
-
;// ./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=
|
4738
|
+
// 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
|
4739
|
+
var srcvue_type_style_index_0_id_7bbf5e3c_prod_lang_scss_scoped_true = __webpack_require__(1413);
|
4740
|
+
;// ./packages/components/NBNotify/src/index.vue?vue&type=style&index=0&id=7bbf5e3c&prod&lang=scss&scoped=true
|
4771
4741
|
|
4772
4742
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
4773
4743
|
var componentNormalizer = __webpack_require__(1656);
|
@@ -4786,7 +4756,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
4786
4756
|
staticRenderFns,
|
4787
4757
|
false,
|
4788
4758
|
null,
|
4789
|
-
"
|
4759
|
+
"7bbf5e3c",
|
4790
4760
|
null
|
4791
4761
|
|
4792
4762
|
)
|
@@ -4799,7 +4769,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
4799
4769
|
/*
|
4800
4770
|
* @Author: chenghuan.dong
|
4801
4771
|
* @Date: 2024-11-14 09:44:58
|
4802
|
-
* @LastEditTime: 2024-11-14
|
4772
|
+
* @LastEditTime: 2024-11-14 14:03:08
|
4803
4773
|
* @LastEditors: chenghuan.dong
|
4804
4774
|
* @Description:
|
4805
4775
|
* @FilePath: \nubomed-ui\packages\components\NBNotify\src\notify.js
|
@@ -4813,7 +4783,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
4813
4783
|
let instance;
|
4814
4784
|
let instances = [];
|
4815
4785
|
let seed = 1;
|
4816
|
-
const
|
4786
|
+
const Notify = function (options) {
|
4817
4787
|
console.log('Vue', (external_commonjs_vue_commonjs2_vue_root_Vue_default()));
|
4818
4788
|
if (!(external_commonjs_vue_commonjs2_vue_root_Vue_default())) {
|
4819
4789
|
return;
|
@@ -4824,14 +4794,13 @@ const Notification = function (options) {
|
|
4824
4794
|
const id = 'notification_' + seed++;
|
4825
4795
|
const position = options.position || 'top-right';
|
4826
4796
|
options.onClose = function () {
|
4827
|
-
|
4797
|
+
Notify.close(id, userOnClose);
|
4828
4798
|
};
|
4829
4799
|
const NotificationConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(NBNotify_src);
|
4830
4800
|
instance = new NotificationConstructor({
|
4831
4801
|
data: options
|
4832
4802
|
});
|
4833
4803
|
instance.$slots.default = [options.message];
|
4834
|
-
options.message = 'REPLACED_BY_VNODE';
|
4835
4804
|
instance.id = id;
|
4836
4805
|
instance.$mount();
|
4837
4806
|
document.body.appendChild(instance.$el);
|
@@ -4839,7 +4808,7 @@ const Notification = function (options) {
|
|
4839
4808
|
instance.dom = instance.$el;
|
4840
4809
|
// instance.dom.style.zIndex = PopupManager.nextZIndex()
|
4841
4810
|
|
4842
|
-
let verticalOffset = options.offset ||
|
4811
|
+
let verticalOffset = options.offset || 248;
|
4843
4812
|
instances.filter(item => item.position === position).forEach(item => {
|
4844
4813
|
verticalOffset += item.$el.offsetHeight + 16;
|
4845
4814
|
});
|
@@ -4849,17 +4818,17 @@ const Notification = function (options) {
|
|
4849
4818
|
return instance;
|
4850
4819
|
};
|
4851
4820
|
['success', 'warning', 'info', 'error'].forEach(type => {
|
4852
|
-
|
4821
|
+
Notify[type] = options => {
|
4853
4822
|
if (typeof options === 'string') {
|
4854
4823
|
options = {
|
4855
4824
|
message: options
|
4856
4825
|
};
|
4857
4826
|
}
|
4858
4827
|
options.type = type;
|
4859
|
-
return
|
4828
|
+
return Notify(options);
|
4860
4829
|
};
|
4861
4830
|
});
|
4862
|
-
|
4831
|
+
Notify.close = function (id, userOnClose) {
|
4863
4832
|
let index = -1;
|
4864
4833
|
const len = instances.length;
|
4865
4834
|
const instance = instances.filter((instance, i) => {
|
@@ -4883,12 +4852,12 @@ Notification.close = function (id, userOnClose) {
|
|
4883
4852
|
}
|
4884
4853
|
}
|
4885
4854
|
};
|
4886
|
-
|
4855
|
+
Notify.closeAll = function () {
|
4887
4856
|
for (let i = instances.length - 1; i >= 0; i--) {
|
4888
4857
|
instances[i].close();
|
4889
4858
|
}
|
4890
4859
|
};
|
4891
|
-
/* harmony default export */ var notify = (
|
4860
|
+
/* harmony default export */ var notify = (Notify);
|
4892
4861
|
// EXTERNAL MODULE: ./packages/iconfont/iconfont.css
|
4893
4862
|
var iconfont = __webpack_require__(3050);
|
4894
4863
|
;// ./packages/index.js
|
@@ -4898,7 +4867,7 @@ var iconfont = __webpack_require__(3050);
|
|
4898
4867
|
/*
|
4899
4868
|
* @Author: chenghuan.dong
|
4900
4869
|
* @Date: 2024-11-08 17:23:47
|
4901
|
-
* @LastEditTime: 2024-11-14
|
4870
|
+
* @LastEditTime: 2024-11-14 14:00:53
|
4902
4871
|
* @LastEditors: chenghuan.dong
|
4903
4872
|
* @Description: 主index.js导出全部组件
|
4904
4873
|
* @FilePath: \nubomed-ui\packages\index.js
|
@@ -4917,63 +4886,41 @@ const req = __webpack_require__(3798);
|
|
4917
4886
|
req.keys().forEach(v => {
|
4918
4887
|
components.push(req(v).default);
|
4919
4888
|
});
|
4920
|
-
console.log('components', components);
|
4921
4889
|
const install = function (Vue, options = {}) {
|
4922
4890
|
//设置多语言
|
4923
4891
|
locale.use(options.locale);
|
4924
4892
|
locale.i18n(options.i18n);
|
4893
|
+
|
4925
4894
|
// 组件
|
4926
4895
|
if (install.installed) return;
|
4927
4896
|
components.forEach(component => {
|
4928
4897
|
const name = 'nb-' + camelToKebab(component.name.slice(2));
|
4929
|
-
const installNames = ['nb-icon', 'nb-tag', 'nb-empty', 'nb-header', 'nb-summary-bar', 'nb-pagination'];
|
4930
|
-
|
4898
|
+
const installNames = ['nb-icon', 'nb-tag', 'nb-empty', 'nb-header', 'nb-summary-bar', 'nb-pagination'];
|
4899
|
+
if (installNames.includes(name)) {
|
4900
|
+
console.log('%c' + '√ ' + name, 'color: #00A572;');
|
4901
|
+
} else {
|
4902
|
+
console.log('? ' + name);
|
4903
|
+
}
|
4931
4904
|
if (installNames.includes(name)) {
|
4932
|
-
Vue.component(name, component);
|
4905
|
+
Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
|
4933
4906
|
}
|
4934
4907
|
});
|
4908
|
+
|
4909
|
+
// 全局
|
4935
4910
|
Vue.prototype.$nbNotify = notify;
|
4936
4911
|
};
|
4937
|
-
const packages_i18n = locale.i18n;
|
4938
|
-
const API = {
|
4939
|
-
install
|
4940
|
-
};
|
4941
|
-
/* harmony default export */ var packages_0 = (API);
|
4942
|
-
|
4943
4912
|
|
4944
|
-
//
|
4945
|
-
//
|
4946
|
-
// locale.use(options.locale)
|
4947
|
-
// locale.i18n(options.i18n)
|
4948
|
-
|
4949
|
-
// // 组件
|
4950
|
-
// if (install.installed) return
|
4951
|
-
// components.forEach((component) => {
|
4952
|
-
// const name = 'nb-' + camelToKebab(component.name.slice(2))
|
4953
|
-
// const installNames = ['nb-icon', 'nb-tag', 'nb-empty', 'nb-header', 'nb-summary-bar', 'nb-pagination'] //
|
4954
|
-
// console.log((installNames.includes(name) ? '√ ' : '? ') + name)
|
4955
|
-
|
4956
|
-
// if (installNames.includes(name)) {
|
4957
|
-
// Vue.component('nb-' + camelToKebab(component.name.slice(2)), component)
|
4958
|
-
// }
|
4959
|
-
// })
|
4960
|
-
|
4961
|
-
// // 全局
|
4962
|
-
// Vue.prototype.$nbNotify = nbNotify
|
4913
|
+
// if (typeof window !== 'undefined' && window.Vue) {
|
4914
|
+
// install(window.Vue)
|
4963
4915
|
// }
|
4964
4916
|
|
4965
|
-
|
4966
|
-
|
4967
|
-
|
4968
|
-
|
4969
|
-
|
4970
|
-
|
4971
|
-
|
4972
|
-
// install,
|
4973
|
-
// ...components,
|
4974
|
-
// locale,
|
4975
|
-
// i18n
|
4976
|
-
// }
|
4917
|
+
const packages_i18n = locale.i18n;
|
4918
|
+
/* harmony default export */ var packages_0 = ({
|
4919
|
+
install,
|
4920
|
+
...components,
|
4921
|
+
locale: locale,
|
4922
|
+
i18n: packages_i18n
|
4923
|
+
});
|
4977
4924
|
;// ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
4978
4925
|
|
4979
4926
|
|