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.
package/nubomed-ui.umd.js CHANGED
@@ -260,7 +260,7 @@ __webpack_require__.d(__webpack_exports__, {
260
260
  /*
261
261
  * @Author: chenghuan.dong
262
262
  * @Date: 2024-11-11 11:59:27
263
- * @LastEditTime: 2024-11-19 16:55:30
263
+ * @LastEditTime: 2024-11-21 13:39:59
264
264
  * @LastEditors: chenghuan.dong
265
265
  * @Description:
266
266
  * @FilePath: \nubomed-ui\locale\lang\zh-CN.js
@@ -279,6 +279,7 @@ __webpack_require__.d(__webpack_exports__, {
279
279
  count: '数量',
280
280
  totalCount: '总数',
281
281
  stockCount: '库存',
282
+ coefficient: '系数',
282
283
  position: '位置',
283
284
  curPosition: '当前位置',
284
285
  lastPosition: '上次位置',
@@ -551,6 +552,201 @@ src.install = function (Vue) {
551
552
 
552
553
  /***/ }),
553
554
 
555
+ /***/ 1285:
556
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
557
+
558
+ "use strict";
559
+ // ESM COMPAT FLAG
560
+ __webpack_require__.r(__webpack_exports__);
561
+
562
+ // EXPORTS
563
+ __webpack_require__.d(__webpack_exports__, {
564
+ "default": function() { return /* binding */ NBBarcodeCard; }
565
+ });
566
+
567
+ ;// ./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
568
+ 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)])}
569
+ var staticRenderFns = []
570
+
571
+
572
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
573
+ var es_array_push = __webpack_require__(4114);
574
+ // EXTERNAL MODULE: ./packages/mixins/index.js
575
+ var mixins = __webpack_require__(7389);
576
+ ;// ./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/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
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
+ //
639
+ //
640
+ //
641
+ //
642
+ //
643
+ //
644
+ //
645
+ //
646
+
647
+
648
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
649
+ name: 'NBBarcodeCard',
650
+ mixins: [mixins/* default */.A],
651
+ props: {
652
+ // 数据对象
653
+ item: {
654
+ type: Object,
655
+ default: () => {
656
+ return {};
657
+ }
658
+ },
659
+ // 是否显示近效期标识
660
+ showExpiry: {
661
+ type: Boolean,
662
+ default: false
663
+ },
664
+ // 是否显示品牌
665
+ showBrand: {
666
+ type: Boolean,
667
+ default: true
668
+ },
669
+ // 是否显示位置
670
+ showPosition: {
671
+ type: Boolean,
672
+ default: false
673
+ },
674
+ // 是否显示系数
675
+ showCoefficient: {
676
+ type: Boolean,
677
+ default: false
678
+ }
679
+ },
680
+ data() {
681
+ return {};
682
+ },
683
+ computed: {
684
+ // 分类样式
685
+ getCateClassList() {
686
+ let cls = [];
687
+ if (this.item.toggle) {
688
+ cls.push('nb-toggle-cate--toggle');
689
+ }
690
+ if (this.item[this.optionProps.name] === this.value) {
691
+ cls.push('nb-toggle-cate--active');
692
+ }
693
+ // 样式类型
694
+ if (this.item.styleType === 'danger') {
695
+ cls.push('nb-toggle-cate--danger');
696
+ }
697
+ return cls;
698
+ }
699
+ },
700
+ methods: {
701
+ // 展开
702
+ handleToggle(item) {
703
+ if (this.showToggle) {
704
+ item.toggle = !item.toggle;
705
+ }
706
+ },
707
+ // 勾选单选框
708
+ handleChangeRadio() {
709
+ this.$emit('input', this.item[this.optionProps.name]);
710
+ },
711
+ // 勾选单号
712
+ handleChangeCheckbox(value, item) {
713
+ this.$emit('change', value, item);
714
+ }
715
+ }
716
+ });
717
+ ;// ./packages/components/NBBarcodeCard/src/index.vue?vue&type=script&lang=js
718
+ /* harmony default export */ var NBBarcodeCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
719
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
720
+ var componentNormalizer = __webpack_require__(1656);
721
+ ;// ./packages/components/NBBarcodeCard/src/index.vue
722
+
723
+
724
+
725
+
726
+
727
+ /* normalize component */
728
+ ;
729
+ var component = (0,componentNormalizer/* default */.A)(
730
+ NBBarcodeCard_srcvue_type_script_lang_js,
731
+ render,
732
+ staticRenderFns,
733
+ false,
734
+ null,
735
+ "17f18b82",
736
+ null
737
+
738
+ )
739
+
740
+ /* harmony default export */ var src = (component.exports);
741
+ ;// ./packages/components/NBBarcodeCard/index.js
742
+
743
+ src.install = function (Vue) {
744
+ Vue.component(src.name, src);
745
+ };
746
+ /* harmony default export */ var NBBarcodeCard = (src);
747
+
748
+ /***/ }),
749
+
554
750
  /***/ 5927:
555
751
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
556
752
 
@@ -2421,6 +2617,186 @@ src.install = function (Vue) {
2421
2617
 
2422
2618
  /***/ }),
2423
2619
 
2620
+ /***/ 8183:
2621
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2622
+
2623
+ "use strict";
2624
+ // ESM COMPAT FLAG
2625
+ __webpack_require__.r(__webpack_exports__);
2626
+
2627
+ // EXPORTS
2628
+ __webpack_require__.d(__webpack_exports__, {
2629
+ "default": function() { return /* binding */ NBNameSpecCard; }
2630
+ });
2631
+
2632
+ ;// ./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
2633
+ 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)])}
2634
+ var staticRenderFns = []
2635
+
2636
+
2637
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
2638
+ var es_array_push = __webpack_require__(4114);
2639
+ // EXTERNAL MODULE: ./packages/mixins/index.js
2640
+ var mixins = __webpack_require__(7389);
2641
+ ;// ./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/NBNameSpecCard/src/index.vue?vue&type=script&lang=js
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
+ //
2689
+ //
2690
+ //
2691
+ //
2692
+ //
2693
+ //
2694
+ //
2695
+ //
2696
+
2697
+
2698
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
2699
+ name: 'NBNameSpecCard',
2700
+ mixins: [mixins/* default */.A],
2701
+ props: {
2702
+ // 数据对象
2703
+ item: {
2704
+ type: Object,
2705
+ default: () => {
2706
+ return {};
2707
+ }
2708
+ },
2709
+ // 是否显示近效期标识
2710
+ showExpiry: {
2711
+ type: Boolean,
2712
+ default: false
2713
+ },
2714
+ // 是否显示品牌
2715
+ showBrand: {
2716
+ type: Boolean,
2717
+ default: true
2718
+ },
2719
+ // 是否显示位置
2720
+ showPosition: {
2721
+ type: Boolean,
2722
+ default: false
2723
+ },
2724
+ // 是否显示系数
2725
+ showCoefficient: {
2726
+ type: Boolean,
2727
+ default: false
2728
+ }
2729
+ },
2730
+ data() {
2731
+ return {};
2732
+ },
2733
+ computed: {
2734
+ // 分类样式
2735
+ getCateClassList() {
2736
+ let cls = [];
2737
+ if (this.item.toggle) {
2738
+ cls.push('nb-toggle-cate--toggle');
2739
+ }
2740
+ if (this.item[this.optionProps.name] === this.value) {
2741
+ cls.push('nb-toggle-cate--active');
2742
+ }
2743
+ // 样式类型
2744
+ if (this.item.styleType === 'danger') {
2745
+ cls.push('nb-toggle-cate--danger');
2746
+ }
2747
+ return cls;
2748
+ }
2749
+ },
2750
+ methods: {
2751
+ // 展开
2752
+ handleToggle(item) {
2753
+ if (this.showToggle) {
2754
+ item.toggle = !item.toggle;
2755
+ }
2756
+ },
2757
+ // 勾选单选框
2758
+ handleChangeRadio() {
2759
+ this.$emit('input', this.item[this.optionProps.name]);
2760
+ },
2761
+ // 勾选单号
2762
+ handleChangeCheckbox(value, item) {
2763
+ this.$emit('change', value, item);
2764
+ }
2765
+ }
2766
+ });
2767
+ ;// ./packages/components/NBNameSpecCard/src/index.vue?vue&type=script&lang=js
2768
+ /* harmony default export */ var NBNameSpecCard_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2769
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2770
+ var componentNormalizer = __webpack_require__(1656);
2771
+ ;// ./packages/components/NBNameSpecCard/src/index.vue
2772
+
2773
+
2774
+
2775
+
2776
+
2777
+ /* normalize component */
2778
+ ;
2779
+ var component = (0,componentNormalizer/* default */.A)(
2780
+ NBNameSpecCard_srcvue_type_script_lang_js,
2781
+ render,
2782
+ staticRenderFns,
2783
+ false,
2784
+ null,
2785
+ "08d2f36e",
2786
+ null
2787
+
2788
+ )
2789
+
2790
+ /* harmony default export */ var src = (component.exports);
2791
+ ;// ./packages/components/NBNameSpecCard/index.js
2792
+
2793
+ src.install = function (Vue) {
2794
+ Vue.component(src.name, src);
2795
+ };
2796
+ /* harmony default export */ var NBNameSpecCard = (src);
2797
+
2798
+ /***/ }),
2799
+
2424
2800
  /***/ 9213:
2425
2801
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2426
2802
 
@@ -3618,6 +3994,182 @@ src.install = function (Vue) {
3618
3994
 
3619
3995
  /***/ }),
3620
3996
 
3997
+ /***/ 2914:
3998
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3999
+
4000
+ "use strict";
4001
+ // ESM COMPAT FLAG
4002
+ __webpack_require__.r(__webpack_exports__);
4003
+
4004
+ // EXPORTS
4005
+ __webpack_require__.d(__webpack_exports__, {
4006
+ "default": function() { return /* binding */ NBToggleCate; }
4007
+ });
4008
+
4009
+ ;// ./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
4010
+ 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)}
4011
+ var staticRenderFns = []
4012
+
4013
+
4014
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
4015
+ var es_array_push = __webpack_require__(4114);
4016
+ ;// ./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
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
+ //
4045
+ //
4046
+ //
4047
+ //
4048
+ //
4049
+ //
4050
+ //
4051
+ //
4052
+ //
4053
+
4054
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
4055
+ name: 'NBToggleCate',
4056
+ props: {
4057
+ // v-model,对应item.name,值必须唯一
4058
+ value: {
4059
+ type: [Object, Number, String],
4060
+ default: null
4061
+ },
4062
+ /**
4063
+ * 数据对象
4064
+ * @param {String/Number} item.name 唯一值,必填
4065
+ * @param {Boolean} item.checked 是否选中(选择类型是多选即props.type=2时必填)
4066
+ * @param {Boolean} item.indeterminate checkbox 的不确定状态(选择类型是多选即props.type=2时必填)
4067
+ * @param {String} item.text 显示的文本,必填
4068
+ * @param {String} item.date 时间
4069
+ * @param {String} item.tips 提示语,绿色字体
4070
+ * @param {String} item.styleType 样式类型(danger-红色显示)
4071
+ */
4072
+ item: {
4073
+ type: Object,
4074
+ default: () => {
4075
+ return {};
4076
+ }
4077
+ },
4078
+ // name: 名称,唯一值,icon 图标字段,text 文字字段,num 数量字段,badge 角标数量,state 状态(danger-异常)
4079
+ props: {
4080
+ type: Object,
4081
+ default: () => {
4082
+ return {};
4083
+ }
4084
+ },
4085
+ // 选择类型:0-不支持选择,1-单选,2-多选
4086
+ type: {
4087
+ type: Number,
4088
+ default: 0
4089
+ },
4090
+ // 是否显示toggle箭头
4091
+ showToggle: {
4092
+ type: Boolean,
4093
+ default: true
4094
+ }
4095
+ },
4096
+ data() {
4097
+ return {};
4098
+ },
4099
+ computed: {
4100
+ optionProps() {
4101
+ return Object.assign({
4102
+ name: 'name',
4103
+ icon: 'icon',
4104
+ text: 'text'
4105
+ }, this.props);
4106
+ },
4107
+ // 分类样式
4108
+ getCateClassList() {
4109
+ let cls = [];
4110
+ if (this.item.toggle) {
4111
+ cls.push('nb-toggle-cate--toggle');
4112
+ }
4113
+ if (this.item[this.optionProps.name] === this.value) {
4114
+ cls.push('nb-toggle-cate--active');
4115
+ }
4116
+ // 样式类型
4117
+ if (this.item.styleType === 'danger') {
4118
+ cls.push('nb-toggle-cate--danger');
4119
+ }
4120
+ return cls;
4121
+ }
4122
+ },
4123
+ methods: {
4124
+ // 展开
4125
+ handleToggle(item) {
4126
+ if (this.showToggle) {
4127
+ item.toggle = !item.toggle;
4128
+ }
4129
+ },
4130
+ // 勾选单选框
4131
+ handleChangeRadio() {
4132
+ this.$emit('input', this.item[this.optionProps.name]);
4133
+ },
4134
+ // 勾选单号
4135
+ handleChangeCheckbox(value, item) {
4136
+ this.$emit('change', value, item);
4137
+ }
4138
+ }
4139
+ });
4140
+ ;// ./packages/components/NBToggleCate/src/index.vue?vue&type=script&lang=js
4141
+ /* harmony default export */ var NBToggleCate_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
4142
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4143
+ var componentNormalizer = __webpack_require__(1656);
4144
+ ;// ./packages/components/NBToggleCate/src/index.vue
4145
+
4146
+
4147
+
4148
+
4149
+
4150
+ /* normalize component */
4151
+ ;
4152
+ var component = (0,componentNormalizer/* default */.A)(
4153
+ NBToggleCate_srcvue_type_script_lang_js,
4154
+ render,
4155
+ staticRenderFns,
4156
+ false,
4157
+ null,
4158
+ "41b59d20",
4159
+ null
4160
+
4161
+ )
4162
+
4163
+ /* harmony default export */ var src = (component.exports);
4164
+ ;// ./packages/components/NBToggleCate/index.js
4165
+
4166
+ src.install = function (Vue) {
4167
+ Vue.component(src.name, src);
4168
+ };
4169
+ /* harmony default export */ var NBToggleCate = (src);
4170
+
4171
+ /***/ }),
4172
+
3621
4173
  /***/ 1785:
3622
4174
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3623
4175
 
@@ -4117,6 +4669,7 @@ webpackContext.id = 1603;
4117
4669
 
4118
4670
  var map = {
4119
4671
  "./NBBadge/index.js": 3134,
4672
+ "./NBBarcodeCard/index.js": 1285,
4120
4673
  "./NBBarcodeReviewDialog/index.js": 5927,
4121
4674
  "./NBCabinetInventoryCarousel/index.js": 5433,
4122
4675
  "./NBCheckboxGroup/index.js": 2129,
@@ -4127,6 +4680,7 @@ var map = {
4127
4680
  "./NBHeader/index.js": 6523,
4128
4681
  "./NBIcon/index.js": 8311,
4129
4682
  "./NBMessageDialog/index.js": 5355,
4683
+ "./NBNameSpecCard/index.js": 8183,
4130
4684
  "./NBOutFooterDialog/index.js": 9213,
4131
4685
  "./NBPagination/index.js": 2407,
4132
4686
  "./NBProgress/index.js": 928,
@@ -4137,6 +4691,7 @@ var map = {
4137
4691
  "./NBSummaryBar/index.js": 6168,
4138
4692
  "./NBTabs/index.js": 5434,
4139
4693
  "./NBTag/index.js": 8681,
4694
+ "./NBToggleCate/index.js": 2914,
4140
4695
  "./NBVersionDialog/index.js": 1785
4141
4696
  };
4142
4697
 
@@ -6977,7 +7532,7 @@ var locale = __webpack_require__(7294);
6977
7532
  /*
6978
7533
  * @Author: chenghuan.dong
6979
7534
  * @Date: 2024-11-08 17:23:47
6980
- * @LastEditTime: 2024-11-20 13:31:55
7535
+ * @LastEditTime: 2024-11-21 11:46:33
6981
7536
  * @LastEditors: chenghuan.dong
6982
7537
  * @Description: 主index.js导出全部组件
6983
7538
  * @FilePath: \nubomed-ui\packages\index.js
@@ -6987,8 +7542,6 @@ var locale = __webpack_require__(7294);
6987
7542
 
6988
7543
  // import nbNotify from './components/NBNotify/src/notify.js'
6989
7544
 
6990
- // import './styles/reset.scss'
6991
-
6992
7545
  // 获取所有组件
6993
7546
  const components = [];
6994
7547
  const req = __webpack_require__(3798);
@@ -7004,7 +7557,7 @@ const install = function (Vue, options = {}) {
7004
7557
  if (install.installed) return;
7005
7558
  components.forEach(component => {
7006
7559
  const name = 'nb-' + camelToKebab(component.name.slice(2));
7007
- 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'];
7560
+ 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'];
7008
7561
  if (installNames.includes(name)) {
7009
7562
  console.log('%c' + '√ ' + name, 'color: #00A572;');
7010
7563
  } else {