nubomed-ui 2.0.79 → 2.0.81

Sign up to get free protection for your applications and to get access to all the features.
@@ -1528,7 +1528,7 @@ src.install = function (Vue) {
1528
1528
 
1529
1529
  /***/ }),
1530
1530
 
1531
- /***/ 6261:
1531
+ /***/ 2364:
1532
1532
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
1533
1533
 
1534
1534
  "use strict";
@@ -1540,8 +1540,8 @@ __webpack_require__.d(__webpack_exports__, {
1540
1540
  "default": function() { return /* binding */ NBCheckboxGroup; }
1541
1541
  });
1542
1542
 
1543
- ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=template&id=481f29cb&scoped=true
1544
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-checkbox-group"},_vm._l((_vm.options),function(item,index){return _c('div',{key:index,staticClass:"nb-checkbox-group__item",class:_vm.getItemClass(item),style:(("min-width: " + _vm.minWidth + "px")),on:{"click":function($event){$event.stopPropagation();return _vm.handleClick(item)}}},[_c('nb-icon',{attrs:{"icon":"checked-corner-bottom"}}),_c('span',[_vm._t("default",function(){return [_vm._v(_vm._s(item.label))]},{"row":item})],2)],1)}),0)}
1543
+ ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=template&id=36060e84&scoped=true
1544
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-checkbox-group"},_vm._l((_vm.options),function(item,index){return _c('div',{key:index,staticClass:"nb-checkbox-group__item",class:_vm.getItemClass(item),style:(("min-width: " + _vm.minWidth + "px")),on:{"click":function($event){$event.stopPropagation();return _vm.handleClick(item)}}},[_c('nb-icon',{attrs:{"icon":"checked-corner-bottom"}}),_vm._t("default",function(){return [( true)?_c('span',[_vm._v(_vm._s(item.label)+" ")]):0]},{"row":item})],2)}),0)}
1545
1545
  var staticRenderFns = []
1546
1546
 
1547
1547
 
@@ -1584,10 +1584,6 @@ var esnext_iterator_map = __webpack_require__(1454);
1584
1584
  //
1585
1585
  //
1586
1586
  //
1587
- //
1588
- //
1589
- //
1590
- //
1591
1587
 
1592
1588
  /* harmony default export */ var srcvue_type_script_lang_js = ({
1593
1589
  name: 'NBCheckboxGroup',
@@ -1672,7 +1668,7 @@ var component = (0,componentNormalizer/* default */.A)(
1672
1668
  staticRenderFns,
1673
1669
  false,
1674
1670
  null,
1675
- "481f29cb",
1671
+ "36060e84",
1676
1672
  null
1677
1673
 
1678
1674
  )
@@ -2696,6 +2692,131 @@ src.install = function (Vue) {
2696
2692
 
2697
2693
  /***/ }),
2698
2694
 
2695
+ /***/ 2782:
2696
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2697
+
2698
+ "use strict";
2699
+ // ESM COMPAT FLAG
2700
+ __webpack_require__.r(__webpack_exports__);
2701
+
2702
+ // EXPORTS
2703
+ __webpack_require__.d(__webpack_exports__, {
2704
+ "default": function() { return /* binding */ NBInputTime; }
2705
+ });
2706
+
2707
+ ;// ./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/NBInputTime/src/index.vue?vue&type=template&id=2dd24afd&scoped=true
2708
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-input-time"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.hour),expression:"hour"}],ref:"refHour",attrs:{"placeholder":"00"},domProps:{"value":(_vm.hour)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.hour=$event.target.value},_vm.onInputHour]}}),_c('i',[_vm._v(":")]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.minute),expression:"minute"}],ref:"refMinute",attrs:{"placeholder":"00"},domProps:{"value":(_vm.minute)},on:{"input":[function($event){if($event.target.composing){ return; }_vm.minute=$event.target.value},_vm.onInputMinute]}})])}
2709
+ var staticRenderFns = []
2710
+
2711
+
2712
+ ;// ./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/NBInputTime/src/index.vue?vue&type=script&lang=js
2713
+ //
2714
+ //
2715
+ //
2716
+ //
2717
+ //
2718
+ //
2719
+ //
2720
+ //
2721
+ //
2722
+ //
2723
+ //
2724
+ //
2725
+ //
2726
+ //
2727
+ //
2728
+ //
2729
+
2730
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
2731
+ name: 'NBInputTime',
2732
+ props: {
2733
+ // 默认值
2734
+ value: {
2735
+ type: [String, Number, null, undefined],
2736
+ default: ''
2737
+ }
2738
+ },
2739
+ data() {
2740
+ return {
2741
+ hour: null,
2742
+ minute: null
2743
+ };
2744
+ },
2745
+ computed: {},
2746
+ watch: {
2747
+ value: {
2748
+ deep: true,
2749
+ immediate: true,
2750
+ handler(val) {
2751
+ if ((val || '').split(':')[0]) {
2752
+ this.hour = String((val || '').split(':')[0]);
2753
+ }
2754
+ if ((val || '').split(':')[1]) {
2755
+ this.minute = String((val || '').split(':')[1]);
2756
+ }
2757
+ }
2758
+ }
2759
+ },
2760
+ created() {},
2761
+ mounted() {},
2762
+ beforeDestroy() {},
2763
+ filters: {},
2764
+ methods: {
2765
+ onInputHour(e) {
2766
+ const currentInput = e.target;
2767
+ const value = currentInput.value;
2768
+ // console.log(currentInput, { selectionStart: currentInput.selectionStart, value: currentInput.value })
2769
+ if (value.length === 2 && Number(value) > 0 && Number(value) <= 24) {
2770
+ this.$refs.refMinute && this.$refs.refMinute.focus();
2771
+ }
2772
+ this.$emit('input', (this.hour || '') + ':' + (this.minute || ''));
2773
+ },
2774
+ onInputMinute(e) {
2775
+ this.$emit('input', (this.hour || '') + ':' + (this.minute || ''));
2776
+ }
2777
+ }
2778
+ });
2779
+ ;// ./packages/components/NBInputTime/src/index.vue?vue&type=script&lang=js
2780
+ /* harmony default export */ var NBInputTime_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
2781
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
2782
+ var componentNormalizer = __webpack_require__(1656);
2783
+ ;// ./packages/components/NBInputTime/src/index.vue
2784
+
2785
+
2786
+
2787
+
2788
+
2789
+ /* normalize component */
2790
+ ;
2791
+ var component = (0,componentNormalizer/* default */.A)(
2792
+ NBInputTime_srcvue_type_script_lang_js,
2793
+ render,
2794
+ staticRenderFns,
2795
+ false,
2796
+ null,
2797
+ "2dd24afd",
2798
+ null
2799
+
2800
+ )
2801
+
2802
+ /* harmony default export */ var src = (component.exports);
2803
+ ;// ./packages/components/NBInputTime/index.js
2804
+ /*
2805
+ * @Author: chenghuan.dong
2806
+ * @Date: 2024-11-12 11:27:05
2807
+ * @LastEditTime: 2024-11-12 14:38:34
2808
+ * @LastEditors: chenghuan.dong
2809
+ * @Description:
2810
+ * @FilePath: \nubomed-ui\packages\components\NBIcon\index.js
2811
+ */
2812
+
2813
+ src.install = function (Vue) {
2814
+ Vue.component(src.name, src);
2815
+ };
2816
+ /* harmony default export */ var NBInputTime = (src);
2817
+
2818
+ /***/ }),
2819
+
2699
2820
  /***/ 5550:
2700
2821
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2701
2822
 
@@ -6871,13 +6992,14 @@ var map = {
6871
6992
  "./NBCabinetInventoryCarousel/index.js": 5118,
6872
6993
  "./NBCabinetLockState/index.js": 6925,
6873
6994
  "./NBCabinetState/index.js": 2208,
6874
- "./NBCheckboxGroup/index.js": 6261,
6995
+ "./NBCheckboxGroup/index.js": 2364,
6875
6996
  "./NBDialog/index.js": 8914,
6876
6997
  "./NBEmpty/index.js": 8776,
6877
6998
  "./NBExpiryIcon/index.js": 9075,
6878
6999
  "./NBFullscreenDialog/index.js": 4531,
6879
7000
  "./NBHeader/index.js": 1001,
6880
7001
  "./NBIcon/index.js": 4332,
7002
+ "./NBInputTime/index.js": 2782,
6881
7003
  "./NBMessageDialog/index.js": 5550,
6882
7004
  "./NBNameSpecCard/index.js": 5790,
6883
7005
  "./NBNameToggleCard/index.js": 1228,
@@ -9751,15 +9873,7 @@ var locale = __webpack_require__(4820);
9751
9873
  /*
9752
9874
  * @Author: chenghuan.dong
9753
9875
  * @Date: 2024-11-11 13:46:54
9754
- * @LastEditTime: 2024-11-26 15:14:51
9755
- * @LastEditors: chenghuan.dong
9756
- * @Description:
9757
- * @FilePath: \nubomed-ui\packages\index.js
9758
- */
9759
- /*
9760
- * @Author: chenghuan.dong
9761
- * @Date: 2024-11-08 17:23:47
9762
- * @LastEditTime: 2024-11-25 18:00:56
9876
+ * @LastEditTime: 2024-11-26 17:35:36
9763
9877
  * @LastEditors: chenghuan.dong
9764
9878
  * @Description: 主index.js导出全部组件
9765
9879
  * @FilePath: \nubomed-ui\packages\index.js
@@ -9783,7 +9897,7 @@ const install = function (Vue, options = {}) {
9783
9897
  if (install.installed) return;
9784
9898
  components.forEach(component => {
9785
9899
  const name = 'nb-' + camelToKebab(component.name.slice(2));
9786
- 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', 'nb-name-toggle-card', 'nb-search-keyboard', 'nb-cabinet-state', 'nb-cabinet-lock-state', 'nb-uv-dialog', 'nb-status-bar'];
9900
+ 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', 'nb-name-toggle-card', 'nb-search-keyboard', 'nb-cabinet-state', 'nb-cabinet-lock-state', 'nb-uv-dialog', 'nb-status-bar', 'nb-input-time'];
9787
9901
  // if (installNames.includes(name)) {
9788
9902
  // console.log('%c' + '√ ' + name, 'color: #00A572;')
9789
9903
  // } else {