nubomed-ui 2.0.66 → 2.0.68

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

@@ -250,7 +250,7 @@ __webpack_require__.d(__webpack_exports__, {
250
250
  /*
251
251
  * @Author: chenghuan.dong
252
252
  * @Date: 2024-11-11 11:59:27
253
- * @LastEditTime: 2024-11-19 16:55:30
253
+ * @LastEditTime: 2024-11-21 13:39:59
254
254
  * @LastEditors: chenghuan.dong
255
255
  * @Description:
256
256
  * @FilePath: \nubomed-ui\locale\lang\zh-CN.js
@@ -269,6 +269,7 @@ __webpack_require__.d(__webpack_exports__, {
269
269
  count: '数量',
270
270
  totalCount: '总数',
271
271
  stockCount: '库存',
272
+ coefficient: '系数',
272
273
  position: '位置',
273
274
  curPosition: '当前位置',
274
275
  lastPosition: '上次位置',
@@ -541,6 +542,201 @@ src.install = function (Vue) {
541
542
 
542
543
  /***/ }),
543
544
 
545
+ /***/ 8351:
546
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
547
+
548
+ "use strict";
549
+ // ESM COMPAT FLAG
550
+ __webpack_require__.r(__webpack_exports__);
551
+
552
+ // EXPORTS
553
+ __webpack_require__.d(__webpack_exports__, {
554
+ "default": function() { return /* binding */ NBBarcodeCard; }
555
+ });
556
+
557
+ ;// ./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/NBBarcodeCard/src/index.vue?vue&type=template&id=17f18b82&scoped=true
558
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-barcode-card"},[_c('div',{staticClass:"card__name-row"},[_c('strong',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.item.sDrugName || '- -'))]),_c('nb-reagent-type',{attrs:{"value":_vm.item.reagentType}}),(_vm.item.iTempDisable === 0)?_c('nb-tag',{attrs:{"type":"warning","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.temporaryStop')))]):_vm._e(),(_vm.item.isDisable === 1)?_c('nb-tag',{attrs:{"type":"danger"}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_vm._e(),(_vm.showExpiry)?_c('nb-expiry-icon',{attrs:{"value":_vm.item.expiryState}}):_vm._e(),_vm._t("name-append",null,{"item":_vm.item})],2),_c('div',{staticClass:"card__spec-row"},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model')))]),_c('span',[_vm._v(_vm._s(_vm.item.sSpecs || '- -')+"/"+_vm._s(_vm.item.sModel || '- -'))])]),(_vm.showBrand)?_c('div',{staticClass:"card__attr card__attr--brand"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.brand')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBrand || '- -'))])]):_vm._e(),(_vm.showPosition)?[(_vm.item.lastTerDesc)?_c('div',{staticClass:"card__attr card__attr--position-move"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.lastTerDesc || '--'))]),_c('nb-icon',{attrs:{"icon":"arrow-right-fill"}}),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])],1):_c('div',{staticClass:"card__attr card__attr--position"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])])]:_vm._e(),(_vm.showCoefficient)?_c('div',{staticClass:"card__attr card__attr--num"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.coefficient')))]),_c('span',[_vm._v(_vm._s(_vm.item.iCount || '- -'))])]):_vm._e(),_vm._t("spec-append"),(_vm.$slots.default)?_vm._t("default"):_vm._e()],2),_c('div',{staticClass:"card__barcode-row"},[_c('div',{staticClass:"card__attr card__attr--barcode"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.barcode')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBarcode || '- -'))])]),_c('div',{staticClass:"card__attr card__attr--batch"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.batch')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBatch || '- -'))])]),_c('div',{staticClass:"card__attr card__attr--expiry"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.expiry')))]),_c('span',[_vm._v(_vm._s(_vm.item.dExpiry || '- -'))])]),_vm._t("barcode-append")],2)])}
559
+ var staticRenderFns = []
560
+
561
+
562
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
563
+ var es_array_push = __webpack_require__(4114);
564
+ // EXTERNAL MODULE: ./packages/mixins/index.js
565
+ var mixins = __webpack_require__(1137);
566
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
567
+
568
+ //
569
+ //
570
+ //
571
+ //
572
+ //
573
+ //
574
+ //
575
+ //
576
+ //
577
+ //
578
+ //
579
+ //
580
+ //
581
+ //
582
+ //
583
+ //
584
+ //
585
+ //
586
+ //
587
+ //
588
+ //
589
+ //
590
+ //
591
+ //
592
+ //
593
+ //
594
+ //
595
+ //
596
+ //
597
+ //
598
+ //
599
+ //
600
+ //
601
+ //
602
+ //
603
+ //
604
+ //
605
+ //
606
+ //
607
+ //
608
+ //
609
+ //
610
+ //
611
+ //
612
+ //
613
+ //
614
+ //
615
+ //
616
+ //
617
+ //
618
+ //
619
+ //
620
+ //
621
+ //
622
+ //
623
+ //
624
+ //
625
+ //
626
+ //
627
+ //
628
+ //
629
+ //
630
+ //
631
+ //
632
+ //
633
+ //
634
+ //
635
+ //
636
+
637
+
638
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
639
+ name: 'NBBarcodeCard',
640
+ mixins: [mixins/* default */.A],
641
+ props: {
642
+ // 数据对象
643
+ item: {
644
+ type: Object,
645
+ default: () => {
646
+ return {};
647
+ }
648
+ },
649
+ // 是否显示近效期标识
650
+ showExpiry: {
651
+ type: Boolean,
652
+ default: false
653
+ },
654
+ // 是否显示品牌
655
+ showBrand: {
656
+ type: Boolean,
657
+ default: true
658
+ },
659
+ // 是否显示位置
660
+ showPosition: {
661
+ type: Boolean,
662
+ default: false
663
+ },
664
+ // 是否显示系数
665
+ showCoefficient: {
666
+ type: Boolean,
667
+ default: false
668
+ }
669
+ },
670
+ data() {
671
+ return {};
672
+ },
673
+ computed: {
674
+ // 分类样式
675
+ getCateClassList() {
676
+ let cls = [];
677
+ if (this.item.toggle) {
678
+ cls.push('nb-toggle-cate--toggle');
679
+ }
680
+ if (this.item[this.optionProps.name] === this.value) {
681
+ cls.push('nb-toggle-cate--active');
682
+ }
683
+ // 样式类型
684
+ if (this.item.styleType === 'danger') {
685
+ cls.push('nb-toggle-cate--danger');
686
+ }
687
+ return cls;
688
+ }
689
+ },
690
+ methods: {
691
+ // 展开
692
+ handleToggle(item) {
693
+ if (this.showToggle) {
694
+ item.toggle = !item.toggle;
695
+ }
696
+ },
697
+ // 勾选单选框
698
+ handleChangeRadio() {
699
+ this.$emit('input', this.item[this.optionProps.name]);
700
+ },
701
+ // 勾选单号
702
+ handleChangeCheckbox(value, item) {
703
+ this.$emit('change', value, item);
704
+ }
705
+ }
706
+ });
707
+ ;// ./packages/components/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
708
+ /* harmony default export */ var NBBarcodeCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
709
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
710
+ var componentNormalizer = __webpack_require__(1656);
711
+ ;// ./packages/components/NBBarcodeCard/src/index.vue
712
+
713
+
714
+
715
+
716
+
717
+ /* normalize component */
718
+ ;
719
+ var component = (0,componentNormalizer/* default */.A)(
720
+ NBBarcodeCard_srcvue_type_script_lang_js,
721
+ render,
722
+ staticRenderFns,
723
+ false,
724
+ null,
725
+ "17f18b82",
726
+ null
727
+
728
+ )
729
+
730
+ /* harmony default export */ var src = (component.exports);
731
+ ;// ./packages/components/NBBarcodeCard/index.js
732
+
733
+ src.install = function (Vue) {
734
+ Vue.component(src.name, src);
735
+ };
736
+ /* harmony default export */ var NBBarcodeCard = (src);
737
+
738
+ /***/ }),
739
+
544
740
  /***/ 4412:
545
741
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
546
742
 
@@ -2411,6 +2607,186 @@ src.install = function (Vue) {
2411
2607
 
2412
2608
  /***/ }),
2413
2609
 
2610
+ /***/ 2842:
2611
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2612
+
2613
+ "use strict";
2614
+ // ESM COMPAT FLAG
2615
+ __webpack_require__.r(__webpack_exports__);
2616
+
2617
+ // EXPORTS
2618
+ __webpack_require__.d(__webpack_exports__, {
2619
+ "default": function() { return /* binding */ NBNameSpecCard; }
2620
+ });
2621
+
2622
+ ;// ./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/NBNameSpecCard/src/index.vue?vue&type=template&id=08d2f36e&scoped=true
2623
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-name-spec-card"},[_c('div',{staticClass:"card__name-row"},[_c('strong',{staticClass:"card__name"},[_vm._v(_vm._s(_vm.item.sDrugName || '- -'))]),_c('nb-reagent-type',{attrs:{"value":_vm.item.reagentType}}),(_vm.item.iTempDisable === 0)?_c('nb-tag',{attrs:{"type":"warning","fill":""}},[_vm._v(_vm._s(_vm.t('nb.state.temporaryStop')))]):_vm._e(),(_vm.item.isDisable === 1)?_c('nb-tag',{attrs:{"type":"danger"}},[_vm._v(_vm._s(_vm.t('nb.state.disabled')))]):_vm._e(),(_vm.showExpiry)?_c('nb-expiry-icon',{attrs:{"value":_vm.item.expiryState}}):_vm._e(),_vm._t("name-append",null,{"item":_vm.item})],2),_c('div',{staticClass:"card__spec-row"},[_c('div',{staticClass:"card__attr card__attr--spec"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.spec'))+"/"+_vm._s(_vm.t('nb.model')))]),_c('span',[_vm._v(_vm._s(_vm.item.sSpecs || '- -')+"/"+_vm._s(_vm.item.sModel || '- -'))])]),(_vm.showBrand)?_c('div',{staticClass:"card__attr card__attr--brand"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.brand')))]),_c('span',[_vm._v(_vm._s(_vm.item.sBrand || '- -'))])]):_vm._e(),(_vm.showPosition)?[(_vm.item.lastTerDesc)?_c('div',{staticClass:"card__attr card__attr--position-move"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.lastTerDesc || '--'))]),_c('nb-icon',{attrs:{"icon":"arrow-right-fill"}}),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])],1):_c('div',{staticClass:"card__attr card__attr--position"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.position')))]),_c('span',[_vm._v(_vm._s(_vm.item.sTerDesc || '--'))])])]:_vm._e(),(_vm.showCoefficient)?_c('div',{staticClass:"card__attr card__attr--num"},[_c('i',[_vm._v(_vm._s(_vm.t('nb.coefficient')))]),_c('span',[_vm._v(_vm._s(_vm.item.iCount || '- -'))])]):_vm._e(),_vm._t("spec-append"),(_vm.$slots.default)?_vm._t("default"):_vm._e()],2)])}
2624
+ var staticRenderFns = []
2625
+
2626
+
2627
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2628
+ var es_array_push = __webpack_require__(4114);
2629
+ // EXTERNAL MODULE: ./packages/mixins/index.js
2630
+ var mixins = __webpack_require__(1137);
2631
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/components/NBNameSpecCard/src/index.vue?vue&type=script&lang=js
2632
+
2633
+ //
2634
+ //
2635
+ //
2636
+ //
2637
+ //
2638
+ //
2639
+ //
2640
+ //
2641
+ //
2642
+ //
2643
+ //
2644
+ //
2645
+ //
2646
+ //
2647
+ //
2648
+ //
2649
+ //
2650
+ //
2651
+ //
2652
+ //
2653
+ //
2654
+ //
2655
+ //
2656
+ //
2657
+ //
2658
+ //
2659
+ //
2660
+ //
2661
+ //
2662
+ //
2663
+ //
2664
+ //
2665
+ //
2666
+ //
2667
+ //
2668
+ //
2669
+ //
2670
+ //
2671
+ //
2672
+ //
2673
+ //
2674
+ //
2675
+ //
2676
+ //
2677
+ //
2678
+ //
2679
+ //
2680
+ //
2681
+ //
2682
+ //
2683
+ //
2684
+ //
2685
+ //
2686
+
2687
+
2688
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
2689
+ name: 'NBNameSpecCard',
2690
+ mixins: [mixins/* default */.A],
2691
+ props: {
2692
+ // 数据对象
2693
+ item: {
2694
+ type: Object,
2695
+ default: () => {
2696
+ return {};
2697
+ }
2698
+ },
2699
+ // 是否显示近效期标识
2700
+ showExpiry: {
2701
+ type: Boolean,
2702
+ default: false
2703
+ },
2704
+ // 是否显示品牌
2705
+ showBrand: {
2706
+ type: Boolean,
2707
+ default: true
2708
+ },
2709
+ // 是否显示位置
2710
+ showPosition: {
2711
+ type: Boolean,
2712
+ default: false
2713
+ },
2714
+ // 是否显示系数
2715
+ showCoefficient: {
2716
+ type: Boolean,
2717
+ default: false
2718
+ }
2719
+ },
2720
+ data() {
2721
+ return {};
2722
+ },
2723
+ computed: {
2724
+ // 分类样式
2725
+ getCateClassList() {
2726
+ let cls = [];
2727
+ if (this.item.toggle) {
2728
+ cls.push('nb-toggle-cate--toggle');
2729
+ }
2730
+ if (this.item[this.optionProps.name] === this.value) {
2731
+ cls.push('nb-toggle-cate--active');
2732
+ }
2733
+ // 样式类型
2734
+ if (this.item.styleType === 'danger') {
2735
+ cls.push('nb-toggle-cate--danger');
2736
+ }
2737
+ return cls;
2738
+ }
2739
+ },
2740
+ methods: {
2741
+ // 展开
2742
+ handleToggle(item) {
2743
+ if (this.showToggle) {
2744
+ item.toggle = !item.toggle;
2745
+ }
2746
+ },
2747
+ // 勾选单选框
2748
+ handleChangeRadio() {
2749
+ this.$emit('input', this.item[this.optionProps.name]);
2750
+ },
2751
+ // 勾选单号
2752
+ handleChangeCheckbox(value, item) {
2753
+ this.$emit('change', value, item);
2754
+ }
2755
+ }
2756
+ });
2757
+ ;// ./packages/components/NBNameSpecCard/src/index.vue?vue&type=script&lang=js
2758
+ /* harmony default export */ var NBNameSpecCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2759
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2760
+ var componentNormalizer = __webpack_require__(1656);
2761
+ ;// ./packages/components/NBNameSpecCard/src/index.vue
2762
+
2763
+
2764
+
2765
+
2766
+
2767
+ /* normalize component */
2768
+ ;
2769
+ var component = (0,componentNormalizer/* default */.A)(
2770
+ NBNameSpecCard_srcvue_type_script_lang_js,
2771
+ render,
2772
+ staticRenderFns,
2773
+ false,
2774
+ null,
2775
+ "08d2f36e",
2776
+ null
2777
+
2778
+ )
2779
+
2780
+ /* harmony default export */ var src = (component.exports);
2781
+ ;// ./packages/components/NBNameSpecCard/index.js
2782
+
2783
+ src.install = function (Vue) {
2784
+ Vue.component(src.name, src);
2785
+ };
2786
+ /* harmony default export */ var NBNameSpecCard = (src);
2787
+
2788
+ /***/ }),
2789
+
2414
2790
  /***/ 5592:
2415
2791
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2416
2792
 
@@ -3608,6 +3984,182 @@ src.install = function (Vue) {
3608
3984
 
3609
3985
  /***/ }),
3610
3986
 
3987
+ /***/ 7571:
3988
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3989
+
3990
+ "use strict";
3991
+ // ESM COMPAT FLAG
3992
+ __webpack_require__.r(__webpack_exports__);
3993
+
3994
+ // EXPORTS
3995
+ __webpack_require__.d(__webpack_exports__, {
3996
+ "default": function() { return /* binding */ NBToggleCate; }
3997
+ });
3998
+
3999
+ ;// ./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
4000
+ 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)}
4001
+ var staticRenderFns = []
4002
+
4003
+
4004
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
4005
+ var es_array_push = __webpack_require__(4114);
4006
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.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
4007
+
4008
+ //
4009
+ //
4010
+ //
4011
+ //
4012
+ //
4013
+ //
4014
+ //
4015
+ //
4016
+ //
4017
+ //
4018
+ //
4019
+ //
4020
+ //
4021
+ //
4022
+ //
4023
+ //
4024
+ //
4025
+ //
4026
+ //
4027
+ //
4028
+ //
4029
+ //
4030
+ //
4031
+ //
4032
+ //
4033
+ //
4034
+ //
4035
+ //
4036
+ //
4037
+ //
4038
+ //
4039
+ //
4040
+ //
4041
+ //
4042
+ //
4043
+
4044
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
4045
+ name: 'NBToggleCate',
4046
+ props: {
4047
+ // v-model,对应item.name,值必须唯一
4048
+ value: {
4049
+ type: [Object, Number, String],
4050
+ default: null
4051
+ },
4052
+ /**
4053
+ * 数据对象
4054
+ * @param {String/Number} item.name 唯一值,必填
4055
+ * @param {Boolean} item.checked 是否选中(选择类型是多选即props.type=2时必填)
4056
+ * @param {Boolean} item.indeterminate checkbox 的不确定状态(选择类型是多选即props.type=2时必填)
4057
+ * @param {String} item.text 显示的文本,必填
4058
+ * @param {String} item.date 时间
4059
+ * @param {String} item.tips 提示语,绿色字体
4060
+ * @param {String} item.styleType 样式类型(danger-红色显示)
4061
+ */
4062
+ item: {
4063
+ type: Object,
4064
+ default: () => {
4065
+ return {};
4066
+ }
4067
+ },
4068
+ // name: 名称,唯一值,icon 图标字段,text 文字字段,num 数量字段,badge 角标数量,state 状态(danger-异常)
4069
+ props: {
4070
+ type: Object,
4071
+ default: () => {
4072
+ return {};
4073
+ }
4074
+ },
4075
+ // 选择类型:0-不支持选择,1-单选,2-多选
4076
+ type: {
4077
+ type: Number,
4078
+ default: 0
4079
+ },
4080
+ // 是否显示toggle箭头
4081
+ showToggle: {
4082
+ type: Boolean,
4083
+ default: true
4084
+ }
4085
+ },
4086
+ data() {
4087
+ return {};
4088
+ },
4089
+ computed: {
4090
+ optionProps() {
4091
+ return Object.assign({
4092
+ name: 'name',
4093
+ icon: 'icon',
4094
+ text: 'text'
4095
+ }, this.props);
4096
+ },
4097
+ // 分类样式
4098
+ getCateClassList() {
4099
+ let cls = [];
4100
+ if (this.item.toggle) {
4101
+ cls.push('nb-toggle-cate--toggle');
4102
+ }
4103
+ if (this.item[this.optionProps.name] === this.value) {
4104
+ cls.push('nb-toggle-cate--active');
4105
+ }
4106
+ // 样式类型
4107
+ if (this.item.styleType === 'danger') {
4108
+ cls.push('nb-toggle-cate--danger');
4109
+ }
4110
+ return cls;
4111
+ }
4112
+ },
4113
+ methods: {
4114
+ // 展开
4115
+ handleToggle(item) {
4116
+ if (this.showToggle) {
4117
+ item.toggle = !item.toggle;
4118
+ }
4119
+ },
4120
+ // 勾选单选框
4121
+ handleChangeRadio() {
4122
+ this.$emit('input', this.item[this.optionProps.name]);
4123
+ },
4124
+ // 勾选单号
4125
+ handleChangeCheckbox(value, item) {
4126
+ this.$emit('change', value, item);
4127
+ }
4128
+ }
4129
+ });
4130
+ ;// ./packages/components/NBToggleCate/src/index.vue?vue&type=script&lang=js
4131
+ /* harmony default export */ var NBToggleCate_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
4132
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4133
+ var componentNormalizer = __webpack_require__(1656);
4134
+ ;// ./packages/components/NBToggleCate/src/index.vue
4135
+
4136
+
4137
+
4138
+
4139
+
4140
+ /* normalize component */
4141
+ ;
4142
+ var component = (0,componentNormalizer/* default */.A)(
4143
+ NBToggleCate_srcvue_type_script_lang_js,
4144
+ render,
4145
+ staticRenderFns,
4146
+ false,
4147
+ null,
4148
+ "41b59d20",
4149
+ null
4150
+
4151
+ )
4152
+
4153
+ /* harmony default export */ var src = (component.exports);
4154
+ ;// ./packages/components/NBToggleCate/index.js
4155
+
4156
+ src.install = function (Vue) {
4157
+ Vue.component(src.name, src);
4158
+ };
4159
+ /* harmony default export */ var NBToggleCate = (src);
4160
+
4161
+ /***/ }),
4162
+
3611
4163
  /***/ 247:
3612
4164
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3613
4165
 
@@ -4107,6 +4659,7 @@ webpackContext.id = 1603;
4107
4659
 
4108
4660
  var map = {
4109
4661
  "./NBBadge/index.js": 3250,
4662
+ "./NBBarcodeCard/index.js": 8351,
4110
4663
  "./NBBarcodeReviewDialog/index.js": 4412,
4111
4664
  "./NBCabinetInventoryCarousel/index.js": 5118,
4112
4665
  "./NBCheckboxGroup/index.js": 9070,
@@ -4117,6 +4670,7 @@ var map = {
4117
4670
  "./NBHeader/index.js": 1001,
4118
4671
  "./NBIcon/index.js": 3685,
4119
4672
  "./NBMessageDialog/index.js": 5550,
4673
+ "./NBNameSpecCard/index.js": 2842,
4120
4674
  "./NBOutFooterDialog/index.js": 5592,
4121
4675
  "./NBPagination/index.js": 8369,
4122
4676
  "./NBProgress/index.js": 8207,
@@ -4127,6 +4681,7 @@ var map = {
4127
4681
  "./NBSummaryBar/index.js": 4918,
4128
4682
  "./NBTabs/index.js": 1694,
4129
4683
  "./NBTag/index.js": 6290,
4684
+ "./NBToggleCate/index.js": 7571,
4130
4685
  "./NBVersionDialog/index.js": 247
4131
4686
  };
4132
4687
 
@@ -6967,7 +7522,7 @@ var locale = __webpack_require__(4820);
6967
7522
  /*
6968
7523
  * @Author: chenghuan.dong
6969
7524
  * @Date: 2024-11-08 17:23:47
6970
- * @LastEditTime: 2024-11-20 13:31:55
7525
+ * @LastEditTime: 2024-11-21 11:46:33
6971
7526
  * @LastEditors: chenghuan.dong
6972
7527
  * @Description: 主index.js导出全部组件
6973
7528
  * @FilePath: \nubomed-ui\packages\index.js
@@ -6977,8 +7532,6 @@ var locale = __webpack_require__(4820);
6977
7532
 
6978
7533
  // import nbNotify from './components/NBNotify/src/notify.js'
6979
7534
 
6980
- // import './styles/reset.scss'
6981
-
6982
7535
  // 获取所有组件
6983
7536
  const components = [];
6984
7537
  const req = __webpack_require__(3798);
@@ -6994,7 +7547,7 @@ const install = function (Vue, options = {}) {
6994
7547
  if (install.installed) return;
6995
7548
  components.forEach(component => {
6996
7549
  const name = 'nb-' + camelToKebab(component.name.slice(2));
6997
- 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'];
7550
+ 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', 'nb-name-spec-card', 'nb-barcode-card'];
6998
7551
  if (installNames.includes(name)) {
6999
7552
  console.log('%c' + '√ ' + name, 'color: #00A572;');
7000
7553
  } else {