nubomed-ui 2.0.177 → 2.0.179

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/nubomed-ui.umd.js CHANGED
@@ -974,7 +974,7 @@ src.install = function (Vue) {
974
974
 
975
975
  /***/ }),
976
976
 
977
- /***/ 2724:
977
+ /***/ 5999:
978
978
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
979
979
 
980
980
  "use strict";
@@ -993,29 +993,8 @@ var staticRenderFns = []
993
993
 
994
994
  // EXTERNAL MODULE: ./packages/mixins/index.js
995
995
  var mixins = __webpack_require__(869);
996
- ;// ./packages/utils/util.js
997
- function hasOwn(obj, key) {
998
- return hasOwnProperty.call(obj, key);
999
- }
1000
-
1001
- /**
1002
- * @param {string} content 需要复制的内容文本
1003
- */
1004
- function copyText(content) {
1005
- let copyEl = document.createElement('input');
1006
- copyEl.style.position = 'fixed';
1007
- copyEl.style.top = '0';
1008
- copyEl.style.left = '-1000em';
1009
- copyEl.readonly = 'readonly';
1010
- document.body.appendChild(copyEl);
1011
- copyEl.value = content;
1012
- copyEl.focus();
1013
- document.execCommand('selectAll');
1014
- const res = document.execCommand('copy');
1015
- copyEl.blur();
1016
- document.body.removeChild(copyEl);
1017
- return res;
1018
- }
996
+ // EXTERNAL MODULE: ./packages/utils/util.js
997
+ var util = __webpack_require__(5594);
1019
998
  // EXTERNAL MODULE: ./packages/utils/date-util.js
1020
999
  var date_util = __webpack_require__(2127);
1021
1000
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBBarcodeReviewDialog/src/index.vue?vue&type=script&lang=js
@@ -1171,7 +1150,7 @@ var date_util = __webpack_require__(2127);
1171
1150
  },
1172
1151
  // 复制
1173
1152
  handleCopy(text) {
1174
- copyText(text);
1153
+ (0,util/* copyText */.Dk)(text);
1175
1154
  this.$emit('copy', text);
1176
1155
  },
1177
1156
  // 弹框关闭
@@ -1227,7 +1206,7 @@ __webpack_require__.d(__webpack_exports__, {
1227
1206
  });
1228
1207
 
1229
1208
  ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBBattery/src/index.vue?vue&type=template&id=869c2dc8&scoped=true
1230
- var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-battery",class:_vm.batteryClass},[_c('div',{staticClass:"nb-battery__battery"},[_c('span',{style:(("width: " + _vm.value + "%"))}),(_vm.charging)?_c('img',{staticClass:"nb-battery__charging",attrs:{"src":__webpack_require__(5594)("./batter-charging-" + _vm.batteryStatus + ".png")}}):_vm._e()]),(_vm.showValue)?_c('span',{staticClass:"nb-battery__value"},[_vm._v(_vm._s(_vm.batteryValue))]):_vm._e()])}
1209
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-battery",class:_vm.batteryClass},[_c('div',{staticClass:"nb-battery__battery"},[_c('span',{style:(("width: " + _vm.value + "%"))}),(_vm.charging)?_c('img',{staticClass:"nb-battery__charging",attrs:{"src":__webpack_require__(3213)("./batter-charging-" + _vm.batteryStatus + ".png")}}):_vm._e()]),(_vm.showValue)?_c('span',{staticClass:"nb-battery__value"},[_vm._v(_vm._s(_vm.batteryValue))]):_vm._e()])}
1231
1210
  var staticRenderFns = []
1232
1211
 
1233
1212
 
@@ -2943,7 +2922,7 @@ src.install = function (Vue) {
2943
2922
 
2944
2923
  /***/ }),
2945
2924
 
2946
- /***/ 4854:
2925
+ /***/ 2562:
2947
2926
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2948
2927
 
2949
2928
  "use strict";
@@ -2955,7 +2934,7 @@ __webpack_require__.d(__webpack_exports__, {
2955
2934
  "default": function() { return /* binding */ NBDialog; }
2956
2935
  });
2957
2936
 
2958
- ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBDialog/src/index.vue?vue&type=template&id=144f3ca4&scoped=true
2937
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBDialog/src/index.vue?vue&type=template&id=63a48e3a&scoped=true
2959
2938
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:"nb-dialog__wrapper",attrs:{"visible":_vm.visible,"show-close":_vm.showClose,"close-on-click-modal":false,"close-on-press-escape":false,"center":_vm.center,"dialog-center":_vm.dialogCenter,"type":_vm.size,"title":_vm.$slots['title-right'] ? '' : _vm.title,"custom-class":_vm.dialogCustomClass,"before-close":_vm.handleClose,"append-to-body":"","destroy-on-close":""},on:{"closed":_vm.closedDialog}},[_c('template',{slot:"title"},[_vm._t("title"),(_vm.$slots['title-right'])?_c('div',{staticClass:"nb-dialog__header--has-form"},[_c('span',{staticClass:"el-dialog__title"},[_vm._v(_vm._s(_vm.title))]),_c('div',{staticClass:"el-dialog__right"},[_vm._t("title-right")],2)]):_vm._e()],2),_vm._t("default"),_c('template',{slot:"footer"},[(_vm.$slots.footer)?_vm._t("footer"):[(_vm.showCancelButton)?_c('el-button',{on:{"click":_vm.handleCancel}},[_vm._v(_vm._s(_vm.cancelButtonText || _vm.t('nb.button.cancel'))),(_vm.cancelButtonTime > -1)?[_vm._v("("+_vm._s(_vm.cancelAutoTime)+"S)")]:_vm._e()],2):_vm._e(),(_vm.showConfirmButton)?_c('el-button',{attrs:{"type":"primary","plain":_vm.confirmButtonPlain},on:{"click":_vm.handleConfirm}},[_vm._v(_vm._s(_vm.confirmButtonText || _vm.t('nb.button.confirm'))),(_vm.confirmButtonTime > -1)?[_vm._v("("+_vm._s(_vm.confirmAutoTime)+"S)")]:_vm._e()],2):_vm._e()]],2)],2)}
2960
2939
  var staticRenderFns = []
2961
2940
 
@@ -3171,6 +3150,7 @@ var mixins = __webpack_require__(869);
3171
3150
  // 点击右上角关闭按钮
3172
3151
  handleClose() {
3173
3152
  this.$emit('update', false);
3153
+ this.$emit('close');
3174
3154
  },
3175
3155
  // 关闭弹框
3176
3156
  closedDialog() {
@@ -3198,7 +3178,7 @@ var component = (0,componentNormalizer/* default */.A)(
3198
3178
  staticRenderFns,
3199
3179
  false,
3200
3180
  null,
3201
- "144f3ca4",
3181
+ "63a48e3a",
3202
3182
  null
3203
3183
 
3204
3184
  )
@@ -3799,7 +3779,7 @@ src.install = function (Vue) {
3799
3779
 
3800
3780
  /***/ }),
3801
3781
 
3802
- /***/ 5836:
3782
+ /***/ 527:
3803
3783
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3804
3784
 
3805
3785
  "use strict";
@@ -3811,7 +3791,7 @@ __webpack_require__.d(__webpack_exports__, {
3811
3791
  "default": function() { return /* binding */ NBFullscreenDialog; }
3812
3792
  });
3813
3793
 
3814
- ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBFullscreenDialog/src/index.vue?vue&type=template&id=5990c3a8&scoped=true
3794
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBFullscreenDialog/src/index.vue?vue&type=template&id=f084d420&scoped=true
3815
3795
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:"nb-dialog__wrapper nb-fullscreen-dialog__wrapper",style:({ '--nb-fullscreen-dialog-top': (_vm.top + "px") }),attrs:{"visible":_vm.visible,"show-close":_vm.showClose,"close-on-click-modal":false,"close-on-press-escape":false,"modal":false,"fullscreen":"","append-to-body":"","destroy-on-close":"","custom-class":("nb-dialog nb-fullscreen-dialog " + _vm.customClass),"before-close":_vm.handleClose},on:{"closed":_vm.closedDialog}},[_vm._t("default"),_c('template',{slot:"footer"},[_vm._t("footer")],2)],2)}
3816
3796
  var staticRenderFns = []
3817
3797
 
@@ -3881,6 +3861,7 @@ var staticRenderFns = []
3881
3861
  methods: {
3882
3862
  handleClose() {
3883
3863
  this.$emit('update', false);
3864
+ this.$emit('close');
3884
3865
  },
3885
3866
  // 关闭弹框
3886
3867
  closedDialog() {
@@ -3906,7 +3887,7 @@ var component = (0,componentNormalizer/* default */.A)(
3906
3887
  staticRenderFns,
3907
3888
  false,
3908
3889
  null,
3909
- "5990c3a8",
3890
+ "f084d420",
3910
3891
  null
3911
3892
 
3912
3893
  )
@@ -4596,6 +4577,281 @@ src.install = function (Vue) {
4596
4577
 
4597
4578
  /***/ }),
4598
4579
 
4580
+ /***/ 4125:
4581
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4582
+
4583
+ "use strict";
4584
+ // ESM COMPAT FLAG
4585
+ __webpack_require__.r(__webpack_exports__);
4586
+
4587
+ // EXPORTS
4588
+ __webpack_require__.d(__webpack_exports__, {
4589
+ "default": function() { return /* binding */ NBInputFilter; }
4590
+ });
4591
+
4592
+ ;// ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBInputFilter/src/index.vue?vue&type=template&id=3067983c&scoped=true
4593
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"loading",rawName:"v-loading",value:(_vm.loading),expression:"loading"}],staticClass:"nb-input-filter",class:[_vm.isFocus ? 'is-focus' : '', _vm.size]},[_c('el-input',{ref:"input",attrs:{"size":_vm.size,"clearable":_vm.clearable,"disabled":_vm.disabled,"placeholder":_vm.placeholder},on:{"input":_vm.onInput,"focus":_vm.onInputFocus,"blur":_vm.onInputBlur,"clear":_vm.onInputClear},model:{value:(_vm.inputValue),callback:function ($$v) {_vm.inputValue=$$v},expression:"inputValue"}}),_c('el-popover',{attrs:{"placement":"bottom-start","trigger":"manual","popper-class":("nb-select-filter-popover nb-select-filter-popover--" + _vm.size)},model:{value:(_vm.visible),callback:function ($$v) {_vm.visible=$$v},expression:"visible"}},[(_vm.isRemote)?_c('ul',{staticClass:"nb-select-filter-options"},[(_vm.options.length === 0)?_c('li',{staticClass:"null"},[_vm._v(_vm._s(_vm.emptyText))]):_vm._e(),_vm._l((_vm.options),function(item,index){return _c('li',{key:index,class:_vm.optionClass(item),on:{"click":function($event){$event.stopPropagation();return _vm.onChecked(item)}}},[_vm._v(" "+_vm._s(item[_vm.optionProps.label])+" ")])})],2):_c('ul',{staticClass:"nb-select-filter-options"},[(_vm.showOptions.length === 0)?_c('li',{staticClass:"null"},[_vm._v(_vm._s(_vm.emptyText))]):_vm._e(),_vm._l((_vm.showOptions),function(item,index){return _c('li',{key:index,class:_vm.optionClass(item),on:{"click":function($event){$event.stopPropagation();return _vm.onChecked(item)}}},[_vm._v(" "+_vm._s(item[_vm.optionProps.label])+" ")])})],2)])],1)}
4594
+ var staticRenderFns = []
4595
+
4596
+
4597
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
4598
+ var esnext_iterator_constructor = __webpack_require__(8992);
4599
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
4600
+ var esnext_iterator_filter = __webpack_require__(4520);
4601
+ // EXTERNAL MODULE: ./packages/utils/util.js
4602
+ var util = __webpack_require__(5594);
4603
+ ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-80.use[1]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBInputFilter/src/index.vue?vue&type=script&lang=js
4604
+
4605
+
4606
+ //
4607
+ //
4608
+ //
4609
+ //
4610
+ //
4611
+ //
4612
+ //
4613
+ //
4614
+ //
4615
+ //
4616
+ //
4617
+ //
4618
+ //
4619
+ //
4620
+ //
4621
+ //
4622
+ //
4623
+ //
4624
+ //
4625
+ //
4626
+ //
4627
+ //
4628
+ //
4629
+ //
4630
+ //
4631
+ //
4632
+ //
4633
+ //
4634
+ //
4635
+ //
4636
+ //
4637
+ //
4638
+ //
4639
+ //
4640
+ //
4641
+ //
4642
+ //
4643
+ //
4644
+ //
4645
+ //
4646
+ //
4647
+ //
4648
+ //
4649
+ //
4650
+ //
4651
+ //
4652
+
4653
+
4654
+ /* harmony default export */ var srcvue_type_script_lang_js = ({
4655
+ name: 'NBInputFilter',
4656
+ model: {
4657
+ prop: 'modelValue',
4658
+ event: 'input'
4659
+ },
4660
+ props: {
4661
+ // 输入框的值,使用v-model
4662
+ modelValue: [String, Array, Object, Boolean, Number, null],
4663
+ selected: {
4664
+ type: [String, Array, Object, Boolean, Number, null],
4665
+ default: null
4666
+ },
4667
+ loading: {
4668
+ type: Boolean,
4669
+ default: false
4670
+ },
4671
+ // 下拉选项数据
4672
+ options: {
4673
+ type: Array,
4674
+ default: () => {
4675
+ return [];
4676
+ }
4677
+ },
4678
+ // value 选中值,label 显示值
4679
+ props: {
4680
+ type: Object,
4681
+ default: () => {
4682
+ return {};
4683
+ }
4684
+ },
4685
+ // 无数据时显示的文字
4686
+ emptyText: {
4687
+ type: String,
4688
+ default: ''
4689
+ },
4690
+ // 大小:不指定:400*72px | mini: 184*48px | small:240*56px | medium:280*64px | large: 480*80px
4691
+ size: {
4692
+ type: String,
4693
+ default: ''
4694
+ },
4695
+ // 输入框的placeholder
4696
+ placeholder: {
4697
+ type: String,
4698
+ default: ''
4699
+ },
4700
+ // 是否禁用
4701
+ disabled: {
4702
+ type: Boolean,
4703
+ default: false
4704
+ },
4705
+ // 是否允许清除
4706
+ clearable: {
4707
+ type: Boolean,
4708
+ default: true
4709
+ }
4710
+ },
4711
+ data() {
4712
+ return {
4713
+ visible: false,
4714
+ isFocus: false,
4715
+ showOptions: this.options,
4716
+ checked: null
4717
+ };
4718
+ },
4719
+ computed: {
4720
+ // 输入框的值
4721
+ inputValue: {
4722
+ get() {
4723
+ // 获取传入的v-model
4724
+ return this.$props.modelValue;
4725
+ },
4726
+ set(newValue) {
4727
+ // 修改时同时修改v-model
4728
+ this.$emit('input', newValue);
4729
+ return newValue;
4730
+ }
4731
+ },
4732
+ // 是否是远程搜索
4733
+ isRemote() {
4734
+ return typeof this.$listeners['remote-method'] === 'function';
4735
+ },
4736
+ optionProps() {
4737
+ return Object.assign({
4738
+ value: 'value',
4739
+ label: 'label',
4740
+ filterText: 'filterText' // 名称首拼(用于本地筛选,远程搜索不需要)
4741
+ }, this.props);
4742
+ }
4743
+ },
4744
+ watch: {
4745
+ inputValue: {
4746
+ // 添加防抖
4747
+ handler: (0,util/* debounce */.sg)(function (val) {
4748
+ this.handleFilter();
4749
+ }, 300),
4750
+ immediate: true // 初始时立即执行一次
4751
+ }
4752
+ },
4753
+ created() {},
4754
+ mounted() {},
4755
+ beforeDestroy() {},
4756
+ methods: {
4757
+ onInput(value) {
4758
+ this.$emit('input', value);
4759
+ },
4760
+ onInputFocus() {
4761
+ this.visible = true;
4762
+ this.isFocus = true;
4763
+ },
4764
+ onInputBlur() {
4765
+ this.isFocus = false;
4766
+ this.visible = false;
4767
+ },
4768
+ onChecked(item) {
4769
+ this.inputValue = item[this.optionProps.label];
4770
+ this.checked = item;
4771
+ this.visible = false;
4772
+ this.$emit('change', item);
4773
+ },
4774
+ // 搜索
4775
+ handleFilter() {
4776
+ if (this.$listeners['remote-method']) {
4777
+ this.$emit('remote-method');
4778
+ } else {
4779
+ if (this.inputValue) {
4780
+ this.showOptions = this.options.filter(x => ((x[this.optionProps.filterText] || '') + (x[this.optionProps.label] || '')).toLowerCase().includes(this.inputValue.toLowerCase()));
4781
+ } else {
4782
+ this.showOptions = this.options;
4783
+ }
4784
+ }
4785
+ },
4786
+ // 选择项的class
4787
+ optionClass(item) {
4788
+ if (this.inputValue && ((item[this.optionProps.filterText] || '').toLowerCase() === this.inputValue.toLowerCase() || (item[this.optionProps.label] || '').toLowerCase() === this.inputValue.toLowerCase())) {
4789
+ return 'active';
4790
+ }
4791
+ },
4792
+ // 聚焦输入框并弹出键盘
4793
+ getFocus() {
4794
+ this.$nextTick(() => {
4795
+ if (this.$refs.input) {
4796
+ this.$refs.input.focus();
4797
+ // 模拟主动执行mouseup
4798
+ let e = new Event('mouseup', {
4799
+ bubbles: true,
4800
+ cancelable: true
4801
+ });
4802
+ const inputDOM = this.$refs.input.$el.querySelector('input');
4803
+ if (inputDOM) {
4804
+ inputDOM.dispatchEvent(e); // 主动触发事件
4805
+ }
4806
+ }
4807
+ });
4808
+ },
4809
+ onInputClear() {
4810
+ this.$emit('clear-input');
4811
+ }
4812
+ }
4813
+ });
4814
+ ;// ./packages/components/NBInputFilter/src/index.vue?vue&type=script&lang=js
4815
+ /* harmony default export */ var NBInputFilter_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
4816
+ // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
4817
+ var componentNormalizer = __webpack_require__(1656);
4818
+ ;// ./packages/components/NBInputFilter/src/index.vue
4819
+
4820
+
4821
+
4822
+
4823
+
4824
+ /* normalize component */
4825
+ ;
4826
+ var component = (0,componentNormalizer/* default */.A)(
4827
+ NBInputFilter_srcvue_type_script_lang_js,
4828
+ render,
4829
+ staticRenderFns,
4830
+ false,
4831
+ null,
4832
+ "3067983c",
4833
+ null
4834
+
4835
+ )
4836
+
4837
+ /* harmony default export */ var src = (component.exports);
4838
+ ;// ./packages/components/NBInputFilter/index.js
4839
+ /*
4840
+ * @Author: chenghuan.dong
4841
+ * @Date: 2024-11-12 11:27:05
4842
+ * @LastEditTime: 2024-11-12 14:38:34
4843
+ * @LastEditors: chenghuan.dong
4844
+ * @Description:
4845
+ * @FilePath: \nubomed-ui\packages\components\NBIcon\index.js
4846
+ */
4847
+
4848
+ src.install = function (Vue) {
4849
+ Vue.component(src.name, src);
4850
+ };
4851
+ /* harmony default export */ var NBInputFilter = (src);
4852
+
4853
+ /***/ }),
4854
+
4599
4855
  /***/ 38:
4600
4856
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
4601
4857
 
@@ -21769,6 +22025,87 @@ const trim = function (string) {
21769
22025
 
21770
22026
  /***/ }),
21771
22027
 
22028
+ /***/ 5594:
22029
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
22030
+
22031
+ "use strict";
22032
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
22033
+ /* harmony export */ Dk: function() { return /* binding */ copyText; },
22034
+ /* harmony export */ sg: function() { return /* binding */ debounce; }
22035
+ /* harmony export */ });
22036
+ /* unused harmony exports hasOwn, throttle */
22037
+ /*
22038
+ * @Author: rui.zhang
22039
+ * @Date: 2024-12-03 16:17:07
22040
+ * @LastEditors: rui.zhang
22041
+ * @LastEditTime: 2025-03-12 11:20:52
22042
+ * @Description:
22043
+ */
22044
+ function hasOwn(obj, key) {
22045
+ return hasOwnProperty.call(obj, key);
22046
+ }
22047
+
22048
+ /**
22049
+ * @param {string} content 需要复制的内容文本
22050
+ */
22051
+ function copyText(content) {
22052
+ let copyEl = document.createElement('input');
22053
+ copyEl.style.position = 'fixed';
22054
+ copyEl.style.top = '0';
22055
+ copyEl.style.left = '-1000em';
22056
+ copyEl.readonly = 'readonly';
22057
+ document.body.appendChild(copyEl);
22058
+ copyEl.value = content;
22059
+ copyEl.focus();
22060
+ document.execCommand('selectAll');
22061
+ const res = document.execCommand('copy');
22062
+ copyEl.blur();
22063
+ document.body.removeChild(copyEl);
22064
+ return res;
22065
+ }
22066
+
22067
+ /**
22068
+ * 节流函数
22069
+ * 思路:在规定时间内只触发一次
22070
+ * @param {Function} fn 函数
22071
+ * @param {Number} delay 规定时间内触发一次
22072
+ */
22073
+ function throttle(fn, delay) {
22074
+ // 利用闭包保存时间
22075
+ let prev = Date.now();
22076
+ return function () {
22077
+ let context = this;
22078
+ let arg = arguments;
22079
+ let now = Date.now();
22080
+ if (now - prev >= delay) {
22081
+ fn.apply(context, arg);
22082
+ prev = Date.now();
22083
+ }
22084
+ };
22085
+ }
22086
+
22087
+ /**
22088
+ * 防抖函数
22089
+ * 思路:在规定时间内未触发第二次,则执行
22090
+ * @param {Function} fn 函数
22091
+ * @param {Number} delay 在规定时间内未触发第二次,则执行
22092
+ */
22093
+ function debounce(fn, delay) {
22094
+ // 利用闭包保存定时器
22095
+ let timer = null;
22096
+ return function () {
22097
+ let context = this;
22098
+ let arg = arguments;
22099
+ // 在规定时间内再次触发会先清除定时器后再重设定时器
22100
+ clearTimeout(timer);
22101
+ timer = setTimeout(function () {
22102
+ fn.apply(context, arg);
22103
+ }, delay);
22104
+ };
22105
+ }
22106
+
22107
+ /***/ }),
22108
+
21772
22109
  /***/ 6157:
21773
22110
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
21774
22111
 
@@ -23269,7 +23606,7 @@ var index = {
23269
23606
 
23270
23607
  /***/ }),
23271
23608
 
23272
- /***/ 5594:
23609
+ /***/ 3213:
23273
23610
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
23274
23611
 
23275
23612
  var map = {
@@ -23296,7 +23633,7 @@ webpackContext.keys = function webpackContextKeys() {
23296
23633
  };
23297
23634
  webpackContext.resolve = webpackContextResolve;
23298
23635
  module.exports = webpackContext;
23299
- webpackContext.id = 5594;
23636
+ webpackContext.id = 3213;
23300
23637
 
23301
23638
  /***/ }),
23302
23639
 
@@ -23338,7 +23675,7 @@ webpackContext.id = 1603;
23338
23675
  var map = {
23339
23676
  "./NBBadge/index.js": 7345,
23340
23677
  "./NBBarcodeCard/index.js": 5831,
23341
- "./NBBarcodeReviewDialog/index.js": 2724,
23678
+ "./NBBarcodeReviewDialog/index.js": 5999,
23342
23679
  "./NBBattery/index.js": 5383,
23343
23680
  "./NBCabinetBall/index.js": 1736,
23344
23681
  "./NBCabinetInventoryCarousel/index.js": 1875,
@@ -23348,17 +23685,18 @@ var map = {
23348
23685
  "./NBCheckboxGroup/index.js": 4261,
23349
23686
  "./NBDatePicker/index.js": 9611,
23350
23687
  "./NBDaterangePicker/index.js": 3757,
23351
- "./NBDialog/index.js": 4854,
23688
+ "./NBDialog/index.js": 2562,
23352
23689
  "./NBEmpty/index.js": 1870,
23353
23690
  "./NBExpiryCard/index.js": 4931,
23354
23691
  "./NBExpiryIcon/index.js": 996,
23355
23692
  "./NBFooter/index.js": 6090,
23356
- "./NBFullscreenDialog/index.js": 5836,
23693
+ "./NBFullscreenDialog/index.js": 527,
23357
23694
  "./NBGridMenu/index.js": 1083,
23358
23695
  "./NBGroupList/index.js": 8995,
23359
23696
  "./NBGroupListItem/index.js": 8696,
23360
23697
  "./NBHeader/index.js": 8140,
23361
23698
  "./NBIcon/index.js": 4865,
23699
+ "./NBInputFilter/index.js": 4125,
23362
23700
  "./NBInputGroup/index.js": 38,
23363
23701
  "./NBInputNumber/index.js": 7698,
23364
23702
  "./NBInputTime/index.js": 640,
@@ -26362,7 +26700,7 @@ var esnext_iterator_constructor = __webpack_require__(8992);
26362
26700
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
26363
26701
  var esnext_iterator_for_each = __webpack_require__(3949);
26364
26702
  ;// ./package.json
26365
- var package_namespaceObject = {"rE":"2.0.177"};
26703
+ var package_namespaceObject = {"rE":"2.0.179"};
26366
26704
  ;// ./packages/utils/convert.js
26367
26705
  /**
26368
26706
  * 将大驼峰(camelCase)字符串转换为小写且带有空格分隔的形式(kebab-case)