nubomed-ui 2.0.65 → 2.0.67
Sign up to get free protection for your applications and to get access to all the features.
- package/css/element-ui/index.css +1 -1
- package/css/nb-ui/index.css +1 -1
- package/nubomed-ui.common.js +179 -43
- package/nubomed-ui.common.js.map +1 -1
- package/nubomed-ui.umd.js +179 -43
- 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.umd.js
CHANGED
@@ -137,27 +137,6 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".el-pagination--left[data-v-1e725708]{
|
|
137
137
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
138
138
|
|
139
139
|
|
140
|
-
/***/ }),
|
141
|
-
|
142
|
-
/***/ 5659:
|
143
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
144
|
-
|
145
|
-
"use strict";
|
146
|
-
__webpack_require__.r(__webpack_exports__);
|
147
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(1601);
|
148
|
-
/* 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__);
|
149
|
-
/* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6314);
|
150
|
-
/* 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__);
|
151
|
-
// Imports
|
152
|
-
|
153
|
-
|
154
|
-
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()));
|
155
|
-
// Module
|
156
|
-
___CSS_LOADER_EXPORT___.push([module.id, "html{font-size:.8333333333vw}b,strong{font-family:OPPOSans-B,OPPOSans B,OPPOSans;font-weight:400}i{font-style:normal}", ""]);
|
157
|
-
// Exports
|
158
|
-
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
159
|
-
|
160
|
-
|
161
140
|
/***/ }),
|
162
141
|
|
163
142
|
/***/ 6314:
|
@@ -3639,6 +3618,182 @@ src.install = function (Vue) {
|
|
3639
3618
|
|
3640
3619
|
/***/ }),
|
3641
3620
|
|
3621
|
+
/***/ 2914:
|
3622
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
3623
|
+
|
3624
|
+
"use strict";
|
3625
|
+
// ESM COMPAT FLAG
|
3626
|
+
__webpack_require__.r(__webpack_exports__);
|
3627
|
+
|
3628
|
+
// EXPORTS
|
3629
|
+
__webpack_require__.d(__webpack_exports__, {
|
3630
|
+
"default": function() { return /* binding */ NBToggleCate; }
|
3631
|
+
});
|
3632
|
+
|
3633
|
+
;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBToggleCate/src/index.vue?vue&type=template&id=41b59d20&scoped=true
|
3634
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-toggle-cate",class:_vm.getCateClassList,on:{"click":function($event){$event.stopPropagation();return _vm.handleToggle(_vm.item)}}},[_c('div',{staticClass:"nb-toggle-cate__left"},[(_vm.showToggle)?_c('nb-icon',{staticClass:"cate__toggle",attrs:{"icon":_vm.item.toggle ? 'caret-down' : 'caret-right'}}):_vm._e(),(_vm.type === 1)?_c('el-radio',{staticClass:"cate__radio",attrs:{"value":_vm.value,"label":_vm.item[_vm.optionProps.name]},on:{"update:value":function($event){_vm.value=$event},"change":_vm.handleChangeRadio}}):_vm._e(),(_vm.type === 2)?_c('el-checkbox',{staticClass:"cate__checkbox",attrs:{"indeterminate":_vm.item.indeterminate},on:{"change":function($event){return _vm.handleChangeCheckbox($event, _vm.item)}},model:{value:(_vm.item.checked),callback:function ($$v) {_vm.$set(_vm.item, "checked", $$v)},expression:"item.checked"}}):_vm._e(),_c('nb-icon',{staticClass:"cate__icon",attrs:{"icon":_vm.item[_vm.optionProps.icon]}}),_c('strong',{staticClass:"cate__name",on:{"click":function($event){$event.stopPropagation();_vm.item.toggle = !_vm.item.toggle}}},[_vm._v(_vm._s(_vm.item[_vm.optionProps.text] || '- -'))]),(_vm.optionProps.date && _vm.item[_vm.optionProps.date])?_c('span',{staticClass:"cate__date"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.date]))]):_vm._e(),(_vm.optionProps.tips && _vm.item[_vm.optionProps.tips])?_c('span',{staticClass:"cate__tips"},[_vm._v(_vm._s(_vm.item[_vm.optionProps.tips]))]):_vm._e(),_vm._t("left",null,{"item":_vm.item})],2),_vm._t("default")],2)}
|
3635
|
+
var staticRenderFns = []
|
3636
|
+
|
3637
|
+
|
3638
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
3639
|
+
var es_array_push = __webpack_require__(4114);
|
3640
|
+
;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBToggleCate/src/index.vue?vue&type=script&lang=js
|
3641
|
+
|
3642
|
+
//
|
3643
|
+
//
|
3644
|
+
//
|
3645
|
+
//
|
3646
|
+
//
|
3647
|
+
//
|
3648
|
+
//
|
3649
|
+
//
|
3650
|
+
//
|
3651
|
+
//
|
3652
|
+
//
|
3653
|
+
//
|
3654
|
+
//
|
3655
|
+
//
|
3656
|
+
//
|
3657
|
+
//
|
3658
|
+
//
|
3659
|
+
//
|
3660
|
+
//
|
3661
|
+
//
|
3662
|
+
//
|
3663
|
+
//
|
3664
|
+
//
|
3665
|
+
//
|
3666
|
+
//
|
3667
|
+
//
|
3668
|
+
//
|
3669
|
+
//
|
3670
|
+
//
|
3671
|
+
//
|
3672
|
+
//
|
3673
|
+
//
|
3674
|
+
//
|
3675
|
+
//
|
3676
|
+
//
|
3677
|
+
|
3678
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
3679
|
+
name: 'NBToggleCate',
|
3680
|
+
props: {
|
3681
|
+
// v-model,对应item.name,值必须唯一
|
3682
|
+
value: {
|
3683
|
+
type: [Object, Number, String],
|
3684
|
+
default: null
|
3685
|
+
},
|
3686
|
+
/**
|
3687
|
+
* 数据对象
|
3688
|
+
* @param {String/Number} item.name 唯一值,必填
|
3689
|
+
* @param {Boolean} item.checked 是否选中(选择类型是多选即props.type=2时必填)
|
3690
|
+
* @param {Boolean} item.indeterminate checkbox 的不确定状态(选择类型是多选即props.type=2时必填)
|
3691
|
+
* @param {String} item.text 显示的文本,必填
|
3692
|
+
* @param {String} item.date 时间
|
3693
|
+
* @param {String} item.tips 提示语,绿色字体
|
3694
|
+
* @param {String} item.styleType 样式类型(danger-红色显示)
|
3695
|
+
*/
|
3696
|
+
item: {
|
3697
|
+
type: Object,
|
3698
|
+
default: () => {
|
3699
|
+
return {};
|
3700
|
+
}
|
3701
|
+
},
|
3702
|
+
// name: 名称,唯一值,icon 图标字段,text 文字字段,num 数量字段,badge 角标数量,state 状态(danger-异常)
|
3703
|
+
props: {
|
3704
|
+
type: Object,
|
3705
|
+
default: () => {
|
3706
|
+
return {};
|
3707
|
+
}
|
3708
|
+
},
|
3709
|
+
// 选择类型:0-不支持选择,1-单选,2-多选
|
3710
|
+
type: {
|
3711
|
+
type: Number,
|
3712
|
+
default: 0
|
3713
|
+
},
|
3714
|
+
// 是否显示toggle箭头
|
3715
|
+
showToggle: {
|
3716
|
+
type: Boolean,
|
3717
|
+
default: true
|
3718
|
+
}
|
3719
|
+
},
|
3720
|
+
data() {
|
3721
|
+
return {};
|
3722
|
+
},
|
3723
|
+
computed: {
|
3724
|
+
optionProps() {
|
3725
|
+
return Object.assign({
|
3726
|
+
name: 'name',
|
3727
|
+
icon: 'icon',
|
3728
|
+
text: 'text'
|
3729
|
+
}, this.props);
|
3730
|
+
},
|
3731
|
+
// 分类样式
|
3732
|
+
getCateClassList() {
|
3733
|
+
let cls = [];
|
3734
|
+
if (this.item.toggle) {
|
3735
|
+
cls.push('nb-toggle-cate--toggle');
|
3736
|
+
}
|
3737
|
+
if (this.item[this.optionProps.name] === this.value) {
|
3738
|
+
cls.push('nb-toggle-cate--active');
|
3739
|
+
}
|
3740
|
+
// 样式类型
|
3741
|
+
if (this.item.styleType === 'danger') {
|
3742
|
+
cls.push('nb-toggle-cate--danger');
|
3743
|
+
}
|
3744
|
+
return cls;
|
3745
|
+
}
|
3746
|
+
},
|
3747
|
+
methods: {
|
3748
|
+
// 展开
|
3749
|
+
handleToggle(item) {
|
3750
|
+
if (this.showToggle) {
|
3751
|
+
item.toggle = !item.toggle;
|
3752
|
+
}
|
3753
|
+
},
|
3754
|
+
// 勾选单选框
|
3755
|
+
handleChangeRadio() {
|
3756
|
+
this.$emit('input', this.item[this.optionProps.name]);
|
3757
|
+
},
|
3758
|
+
// 勾选单号
|
3759
|
+
handleChangeCheckbox(value, item) {
|
3760
|
+
this.$emit('change', value, item);
|
3761
|
+
}
|
3762
|
+
}
|
3763
|
+
});
|
3764
|
+
;// ./packages/components/NBToggleCate/src/index.vue?vue&type=script&lang=js
|
3765
|
+
/* harmony default export */ var NBToggleCate_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
3766
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
3767
|
+
var componentNormalizer = __webpack_require__(1656);
|
3768
|
+
;// ./packages/components/NBToggleCate/src/index.vue
|
3769
|
+
|
3770
|
+
|
3771
|
+
|
3772
|
+
|
3773
|
+
|
3774
|
+
/* normalize component */
|
3775
|
+
;
|
3776
|
+
var component = (0,componentNormalizer/* default */.A)(
|
3777
|
+
NBToggleCate_srcvue_type_script_lang_js,
|
3778
|
+
render,
|
3779
|
+
staticRenderFns,
|
3780
|
+
false,
|
3781
|
+
null,
|
3782
|
+
"41b59d20",
|
3783
|
+
null
|
3784
|
+
|
3785
|
+
)
|
3786
|
+
|
3787
|
+
/* harmony default export */ var src = (component.exports);
|
3788
|
+
;// ./packages/components/NBToggleCate/index.js
|
3789
|
+
|
3790
|
+
src.install = function (Vue) {
|
3791
|
+
Vue.component(src.name, src);
|
3792
|
+
};
|
3793
|
+
/* harmony default export */ var NBToggleCate = (src);
|
3794
|
+
|
3795
|
+
/***/ }),
|
3796
|
+
|
3642
3797
|
/***/ 1785:
|
3643
3798
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
3644
3799
|
|
@@ -3835,22 +3990,6 @@ var update = add("6e23d4c3", content, true, {"sourceMap":false,"shadowMode":fals
|
|
3835
3990
|
|
3836
3991
|
/***/ }),
|
3837
3992
|
|
3838
|
-
/***/ 5975:
|
3839
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
3840
|
-
|
3841
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
3842
|
-
|
3843
|
-
// load the styles
|
3844
|
-
var content = __webpack_require__(5659);
|
3845
|
-
if(content.__esModule) content = content.default;
|
3846
|
-
if(typeof content === 'string') content = [[module.id, content, '']];
|
3847
|
-
if(content.locals) module.exports = content.locals;
|
3848
|
-
// add the styles to the DOM
|
3849
|
-
var add = (__webpack_require__(9548)/* ["default"] */ .A)
|
3850
|
-
var update = add("d3234ac6", content, true, {"sourceMap":false,"shadowMode":false});
|
3851
|
-
|
3852
|
-
/***/ }),
|
3853
|
-
|
3854
3993
|
/***/ 9548:
|
3855
3994
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
3856
3995
|
|
@@ -4174,6 +4313,7 @@ var map = {
|
|
4174
4313
|
"./NBSummaryBar/index.js": 6168,
|
4175
4314
|
"./NBTabs/index.js": 5434,
|
4176
4315
|
"./NBTag/index.js": 8681,
|
4316
|
+
"./NBToggleCate/index.js": 2914,
|
4177
4317
|
"./NBVersionDialog/index.js": 1785
|
4178
4318
|
};
|
4179
4319
|
|
@@ -7007,8 +7147,6 @@ function camelToKebab(camelCaseStr) {
|
|
7007
7147
|
}
|
7008
7148
|
// EXTERNAL MODULE: ./locale/index.js + 1 modules
|
7009
7149
|
var locale = __webpack_require__(7294);
|
7010
|
-
// EXTERNAL MODULE: ./packages/styles/reset.scss
|
7011
|
-
var styles_reset = __webpack_require__(5975);
|
7012
7150
|
;// ./packages/index.js
|
7013
7151
|
|
7014
7152
|
|
@@ -7016,7 +7154,7 @@ var styles_reset = __webpack_require__(5975);
|
|
7016
7154
|
/*
|
7017
7155
|
* @Author: chenghuan.dong
|
7018
7156
|
* @Date: 2024-11-08 17:23:47
|
7019
|
-
* @LastEditTime: 2024-11-20
|
7157
|
+
* @LastEditTime: 2024-11-20 13:58:43
|
7020
7158
|
* @LastEditors: chenghuan.dong
|
7021
7159
|
* @Description: 主index.js导出全部组件
|
7022
7160
|
* @FilePath: \nubomed-ui\packages\index.js
|
@@ -7026,8 +7164,6 @@ var styles_reset = __webpack_require__(5975);
|
|
7026
7164
|
|
7027
7165
|
// import nbNotify from './components/NBNotify/src/notify.js'
|
7028
7166
|
|
7029
|
-
|
7030
|
-
|
7031
7167
|
// 获取所有组件
|
7032
7168
|
const components = [];
|
7033
7169
|
const req = __webpack_require__(3798);
|
@@ -7043,7 +7179,7 @@ const install = function (Vue, options = {}) {
|
|
7043
7179
|
if (install.installed) return;
|
7044
7180
|
components.forEach(component => {
|
7045
7181
|
const name = 'nb-' + camelToKebab(component.name.slice(2));
|
7046
|
-
const installNames = ['nb-icon', 'nb-tag', 'nb-badge', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination', 'nb-progress', 'nb-dialog', 'nb-fullscreen-dialog', 'nb-out-footer-dialog', 'nb-message-dialog', 'nb-sidebar-nav-group', 'nb-sidebar-nav', 'nb-expiry-icon', 'nb-reagent-type', 'nb-cabinet-inventory-carousel', 'nb-version-dialog', 'nb-barcode-review-dialog'];
|
7182
|
+
const installNames = ['nb-icon', 'nb-tag', 'nb-badge', 'nb-empty', 'nb-radio-group', 'nb-checkbox-group', 'nb-header', 'nb-summary-bar', 'nb-header', 'nb-tabs', 'nb-pagination', 'nb-progress', 'nb-dialog', 'nb-fullscreen-dialog', 'nb-out-footer-dialog', 'nb-message-dialog', 'nb-sidebar-nav-group', 'nb-sidebar-nav', 'nb-expiry-icon', 'nb-reagent-type', 'nb-cabinet-inventory-carousel', 'nb-version-dialog', 'nb-barcode-review-dialog', 'nb-toggle-cate'];
|
7047
7183
|
if (installNames.includes(name)) {
|
7048
7184
|
console.log('%c' + '√ ' + name, 'color: #00A572;');
|
7049
7185
|
} else {
|