nubomed-ui 2.0.177 → 2.0.178
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/css/nb-ui/index.css +1 -1
- package/nubomed-ui.common.js +372 -35
- package/nubomed-ui.umd.js +375 -38
- package/nubomed-ui.umd.min.js +2 -2
- package/package.json +1 -1
package/nubomed-ui.umd.js
CHANGED
@@ -974,7 +974,7 @@ src.install = function (Vue) {
|
|
974
974
|
|
975
975
|
/***/ }),
|
976
976
|
|
977
|
-
/***/
|
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
|
-
|
997
|
-
|
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__(
|
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
|
-
/***/
|
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=
|
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
|
-
"
|
3181
|
+
"63a48e3a",
|
3202
3182
|
null
|
3203
3183
|
|
3204
3184
|
)
|
@@ -3799,7 +3779,7 @@ src.install = function (Vue) {
|
|
3799
3779
|
|
3800
3780
|
/***/ }),
|
3801
3781
|
|
3802
|
-
/***/
|
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=
|
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
|
-
"
|
3890
|
+
"f084d420",
|
3910
3891
|
null
|
3911
3892
|
|
3912
3893
|
)
|
@@ -4596,6 +4577,280 @@ src.install = function (Vue) {
|
|
4596
4577
|
|
4597
4578
|
/***/ }),
|
4598
4579
|
|
4580
|
+
/***/ 4134:
|
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=07ebb246&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.t('nb.msg.noData')))]):_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.t('nb.msg.noData')))]):_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/mixins/index.js
|
4602
|
+
var mixins = __webpack_require__(869);
|
4603
|
+
// EXTERNAL MODULE: ./packages/utils/util.js
|
4604
|
+
var util = __webpack_require__(5594);
|
4605
|
+
;// ./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
|
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
|
+
|
4655
|
+
|
4656
|
+
|
4657
|
+
/* harmony default export */ var srcvue_type_script_lang_js = ({
|
4658
|
+
name: 'NBInputFilter',
|
4659
|
+
mixins: [mixins/* default */.A],
|
4660
|
+
model: {
|
4661
|
+
prop: 'modelValue',
|
4662
|
+
event: 'input'
|
4663
|
+
},
|
4664
|
+
props: {
|
4665
|
+
// 输入框的值,使用v-model
|
4666
|
+
modelValue: [String, Array, Object, Boolean, Number, null],
|
4667
|
+
selected: {
|
4668
|
+
type: [String, Array, Object, Boolean, Number, null],
|
4669
|
+
default: null
|
4670
|
+
},
|
4671
|
+
loading: {
|
4672
|
+
type: Boolean,
|
4673
|
+
default: false
|
4674
|
+
},
|
4675
|
+
// 下拉选项数据
|
4676
|
+
options: {
|
4677
|
+
type: Array,
|
4678
|
+
default: () => {
|
4679
|
+
return [];
|
4680
|
+
}
|
4681
|
+
},
|
4682
|
+
// value 选中值,label 显示值
|
4683
|
+
props: {
|
4684
|
+
type: Object,
|
4685
|
+
default: () => {
|
4686
|
+
return {};
|
4687
|
+
}
|
4688
|
+
},
|
4689
|
+
// 大小:不指定:400*72px | mini: 184*48px | small:240*56px | medium:280*64px | large: 480*80px
|
4690
|
+
size: {
|
4691
|
+
type: String,
|
4692
|
+
default: ''
|
4693
|
+
},
|
4694
|
+
// 输入框的placeholder
|
4695
|
+
placeholder: {
|
4696
|
+
type: String,
|
4697
|
+
default: ''
|
4698
|
+
},
|
4699
|
+
// 是否禁用
|
4700
|
+
disabled: {
|
4701
|
+
type: Boolean,
|
4702
|
+
default: false
|
4703
|
+
},
|
4704
|
+
// 是否允许清除
|
4705
|
+
clearable: {
|
4706
|
+
type: Boolean,
|
4707
|
+
default: true
|
4708
|
+
}
|
4709
|
+
},
|
4710
|
+
data() {
|
4711
|
+
return {
|
4712
|
+
visible: false,
|
4713
|
+
isFocus: false,
|
4714
|
+
showOptions: this.options,
|
4715
|
+
checked: null
|
4716
|
+
};
|
4717
|
+
},
|
4718
|
+
computed: {
|
4719
|
+
// 输入框的值
|
4720
|
+
inputValue: {
|
4721
|
+
get() {
|
4722
|
+
// 获取传入的v-model
|
4723
|
+
return this.$props.modelValue;
|
4724
|
+
},
|
4725
|
+
set(newValue) {
|
4726
|
+
// 修改时同时修改v-model
|
4727
|
+
this.$emit('input', newValue);
|
4728
|
+
return newValue;
|
4729
|
+
}
|
4730
|
+
},
|
4731
|
+
// 是否是远程搜索
|
4732
|
+
isRemote() {
|
4733
|
+
return typeof this.$listeners['remote-method'] === 'function';
|
4734
|
+
},
|
4735
|
+
optionProps() {
|
4736
|
+
return Object.assign({
|
4737
|
+
value: 'value',
|
4738
|
+
label: 'label',
|
4739
|
+
filterText: 'filterText' // 名称首拼(用于本地筛选,远程搜索不需要)
|
4740
|
+
}, this.props);
|
4741
|
+
}
|
4742
|
+
},
|
4743
|
+
watch: {
|
4744
|
+
inputValue: {
|
4745
|
+
// 添加防抖
|
4746
|
+
handler: (0,util/* debounce */.sg)(function (val) {
|
4747
|
+
this.handleFilter();
|
4748
|
+
}, 300),
|
4749
|
+
immediate: true // 初始时立即执行一次
|
4750
|
+
}
|
4751
|
+
},
|
4752
|
+
created() {},
|
4753
|
+
mounted() {},
|
4754
|
+
beforeDestroy() {},
|
4755
|
+
methods: {
|
4756
|
+
onInput(value) {
|
4757
|
+
this.$emit('input', value);
|
4758
|
+
},
|
4759
|
+
onInputFocus() {
|
4760
|
+
this.visible = true;
|
4761
|
+
this.isFocus = true;
|
4762
|
+
},
|
4763
|
+
onInputBlur() {
|
4764
|
+
this.isFocus = false;
|
4765
|
+
this.visible = false;
|
4766
|
+
},
|
4767
|
+
onChecked(item) {
|
4768
|
+
this.inputValue = item[this.optionProps.label];
|
4769
|
+
this.checked = item;
|
4770
|
+
this.visible = false;
|
4771
|
+
this.$emit('change', item);
|
4772
|
+
},
|
4773
|
+
// 搜索
|
4774
|
+
handleFilter() {
|
4775
|
+
if (this.$listeners['remote-method']) {
|
4776
|
+
this.$emit('remote-method');
|
4777
|
+
} else {
|
4778
|
+
if (this.inputValue) {
|
4779
|
+
this.showOptions = this.options.filter(x => ((x[this.optionProps.filterText] || '') + (x[this.optionProps.label] || '')).toLowerCase().includes(this.inputValue.toLowerCase()));
|
4780
|
+
} else {
|
4781
|
+
this.showOptions = this.options;
|
4782
|
+
}
|
4783
|
+
}
|
4784
|
+
},
|
4785
|
+
// 选择项的class
|
4786
|
+
optionClass(item) {
|
4787
|
+
if (this.inputValue && ((item[this.optionProps.filterText] || '').toLowerCase() === this.inputValue.toLowerCase() || (item[this.optionProps.label] || '').toLowerCase() === this.inputValue.toLowerCase())) {
|
4788
|
+
return 'active';
|
4789
|
+
}
|
4790
|
+
},
|
4791
|
+
// 聚焦输入框并弹出键盘
|
4792
|
+
getFocus() {
|
4793
|
+
this.$nextTick(() => {
|
4794
|
+
if (this.$refs.input) {
|
4795
|
+
this.$refs.input.focus();
|
4796
|
+
// 模拟主动执行mouseup
|
4797
|
+
let e = new Event('mouseup', {
|
4798
|
+
bubbles: true,
|
4799
|
+
cancelable: true
|
4800
|
+
});
|
4801
|
+
const inputDOM = this.$refs.input.$el.querySelector('input');
|
4802
|
+
if (inputDOM) {
|
4803
|
+
inputDOM.dispatchEvent(e); // 主动触发事件
|
4804
|
+
}
|
4805
|
+
}
|
4806
|
+
});
|
4807
|
+
},
|
4808
|
+
onInputClear() {
|
4809
|
+
this.$emit('clear-input');
|
4810
|
+
}
|
4811
|
+
}
|
4812
|
+
});
|
4813
|
+
;// ./packages/components/NBInputFilter/src/index.vue?vue&type=script&lang=js
|
4814
|
+
/* harmony default export */ var NBInputFilter_srcvue_type_script_lang_js = (srcvue_type_script_lang_js);
|
4815
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
4816
|
+
var componentNormalizer = __webpack_require__(1656);
|
4817
|
+
;// ./packages/components/NBInputFilter/src/index.vue
|
4818
|
+
|
4819
|
+
|
4820
|
+
|
4821
|
+
|
4822
|
+
|
4823
|
+
/* normalize component */
|
4824
|
+
;
|
4825
|
+
var component = (0,componentNormalizer/* default */.A)(
|
4826
|
+
NBInputFilter_srcvue_type_script_lang_js,
|
4827
|
+
render,
|
4828
|
+
staticRenderFns,
|
4829
|
+
false,
|
4830
|
+
null,
|
4831
|
+
"07ebb246",
|
4832
|
+
null
|
4833
|
+
|
4834
|
+
)
|
4835
|
+
|
4836
|
+
/* harmony default export */ var src = (component.exports);
|
4837
|
+
;// ./packages/components/NBInputFilter/index.js
|
4838
|
+
/*
|
4839
|
+
* @Author: chenghuan.dong
|
4840
|
+
* @Date: 2024-11-12 11:27:05
|
4841
|
+
* @LastEditTime: 2024-11-12 14:38:34
|
4842
|
+
* @LastEditors: chenghuan.dong
|
4843
|
+
* @Description:
|
4844
|
+
* @FilePath: \nubomed-ui\packages\components\NBIcon\index.js
|
4845
|
+
*/
|
4846
|
+
|
4847
|
+
src.install = function (Vue) {
|
4848
|
+
Vue.component(src.name, src);
|
4849
|
+
};
|
4850
|
+
/* harmony default export */ var NBInputFilter = (src);
|
4851
|
+
|
4852
|
+
/***/ }),
|
4853
|
+
|
4599
4854
|
/***/ 38:
|
4600
4855
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
4601
4856
|
|
@@ -21769,6 +22024,87 @@ const trim = function (string) {
|
|
21769
22024
|
|
21770
22025
|
/***/ }),
|
21771
22026
|
|
22027
|
+
/***/ 5594:
|
22028
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
22029
|
+
|
22030
|
+
"use strict";
|
22031
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
22032
|
+
/* harmony export */ Dk: function() { return /* binding */ copyText; },
|
22033
|
+
/* harmony export */ sg: function() { return /* binding */ debounce; }
|
22034
|
+
/* harmony export */ });
|
22035
|
+
/* unused harmony exports hasOwn, throttle */
|
22036
|
+
/*
|
22037
|
+
* @Author: rui.zhang
|
22038
|
+
* @Date: 2024-12-03 16:17:07
|
22039
|
+
* @LastEditors: rui.zhang
|
22040
|
+
* @LastEditTime: 2025-03-12 11:20:52
|
22041
|
+
* @Description:
|
22042
|
+
*/
|
22043
|
+
function hasOwn(obj, key) {
|
22044
|
+
return hasOwnProperty.call(obj, key);
|
22045
|
+
}
|
22046
|
+
|
22047
|
+
/**
|
22048
|
+
* @param {string} content 需要复制的内容文本
|
22049
|
+
*/
|
22050
|
+
function copyText(content) {
|
22051
|
+
let copyEl = document.createElement('input');
|
22052
|
+
copyEl.style.position = 'fixed';
|
22053
|
+
copyEl.style.top = '0';
|
22054
|
+
copyEl.style.left = '-1000em';
|
22055
|
+
copyEl.readonly = 'readonly';
|
22056
|
+
document.body.appendChild(copyEl);
|
22057
|
+
copyEl.value = content;
|
22058
|
+
copyEl.focus();
|
22059
|
+
document.execCommand('selectAll');
|
22060
|
+
const res = document.execCommand('copy');
|
22061
|
+
copyEl.blur();
|
22062
|
+
document.body.removeChild(copyEl);
|
22063
|
+
return res;
|
22064
|
+
}
|
22065
|
+
|
22066
|
+
/**
|
22067
|
+
* 节流函数
|
22068
|
+
* 思路:在规定时间内只触发一次
|
22069
|
+
* @param {Function} fn 函数
|
22070
|
+
* @param {Number} delay 规定时间内触发一次
|
22071
|
+
*/
|
22072
|
+
function throttle(fn, delay) {
|
22073
|
+
// 利用闭包保存时间
|
22074
|
+
let prev = Date.now();
|
22075
|
+
return function () {
|
22076
|
+
let context = this;
|
22077
|
+
let arg = arguments;
|
22078
|
+
let now = Date.now();
|
22079
|
+
if (now - prev >= delay) {
|
22080
|
+
fn.apply(context, arg);
|
22081
|
+
prev = Date.now();
|
22082
|
+
}
|
22083
|
+
};
|
22084
|
+
}
|
22085
|
+
|
22086
|
+
/**
|
22087
|
+
* 防抖函数
|
22088
|
+
* 思路:在规定时间内未触发第二次,则执行
|
22089
|
+
* @param {Function} fn 函数
|
22090
|
+
* @param {Number} delay 在规定时间内未触发第二次,则执行
|
22091
|
+
*/
|
22092
|
+
function debounce(fn, delay) {
|
22093
|
+
// 利用闭包保存定时器
|
22094
|
+
let timer = null;
|
22095
|
+
return function () {
|
22096
|
+
let context = this;
|
22097
|
+
let arg = arguments;
|
22098
|
+
// 在规定时间内再次触发会先清除定时器后再重设定时器
|
22099
|
+
clearTimeout(timer);
|
22100
|
+
timer = setTimeout(function () {
|
22101
|
+
fn.apply(context, arg);
|
22102
|
+
}, delay);
|
22103
|
+
};
|
22104
|
+
}
|
22105
|
+
|
22106
|
+
/***/ }),
|
22107
|
+
|
21772
22108
|
/***/ 6157:
|
21773
22109
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
21774
22110
|
|
@@ -23269,7 +23605,7 @@ var index = {
|
|
23269
23605
|
|
23270
23606
|
/***/ }),
|
23271
23607
|
|
23272
|
-
/***/
|
23608
|
+
/***/ 3213:
|
23273
23609
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
23274
23610
|
|
23275
23611
|
var map = {
|
@@ -23296,7 +23632,7 @@ webpackContext.keys = function webpackContextKeys() {
|
|
23296
23632
|
};
|
23297
23633
|
webpackContext.resolve = webpackContextResolve;
|
23298
23634
|
module.exports = webpackContext;
|
23299
|
-
webpackContext.id =
|
23635
|
+
webpackContext.id = 3213;
|
23300
23636
|
|
23301
23637
|
/***/ }),
|
23302
23638
|
|
@@ -23338,7 +23674,7 @@ webpackContext.id = 1603;
|
|
23338
23674
|
var map = {
|
23339
23675
|
"./NBBadge/index.js": 7345,
|
23340
23676
|
"./NBBarcodeCard/index.js": 5831,
|
23341
|
-
"./NBBarcodeReviewDialog/index.js":
|
23677
|
+
"./NBBarcodeReviewDialog/index.js": 5999,
|
23342
23678
|
"./NBBattery/index.js": 5383,
|
23343
23679
|
"./NBCabinetBall/index.js": 1736,
|
23344
23680
|
"./NBCabinetInventoryCarousel/index.js": 1875,
|
@@ -23348,17 +23684,18 @@ var map = {
|
|
23348
23684
|
"./NBCheckboxGroup/index.js": 4261,
|
23349
23685
|
"./NBDatePicker/index.js": 9611,
|
23350
23686
|
"./NBDaterangePicker/index.js": 3757,
|
23351
|
-
"./NBDialog/index.js":
|
23687
|
+
"./NBDialog/index.js": 2562,
|
23352
23688
|
"./NBEmpty/index.js": 1870,
|
23353
23689
|
"./NBExpiryCard/index.js": 4931,
|
23354
23690
|
"./NBExpiryIcon/index.js": 996,
|
23355
23691
|
"./NBFooter/index.js": 6090,
|
23356
|
-
"./NBFullscreenDialog/index.js":
|
23692
|
+
"./NBFullscreenDialog/index.js": 527,
|
23357
23693
|
"./NBGridMenu/index.js": 1083,
|
23358
23694
|
"./NBGroupList/index.js": 8995,
|
23359
23695
|
"./NBGroupListItem/index.js": 8696,
|
23360
23696
|
"./NBHeader/index.js": 8140,
|
23361
23697
|
"./NBIcon/index.js": 4865,
|
23698
|
+
"./NBInputFilter/index.js": 4134,
|
23362
23699
|
"./NBInputGroup/index.js": 38,
|
23363
23700
|
"./NBInputNumber/index.js": 7698,
|
23364
23701
|
"./NBInputTime/index.js": 640,
|
@@ -26362,7 +26699,7 @@ var esnext_iterator_constructor = __webpack_require__(8992);
|
|
26362
26699
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.for-each.js
|
26363
26700
|
var esnext_iterator_for_each = __webpack_require__(3949);
|
26364
26701
|
;// ./package.json
|
26365
|
-
var package_namespaceObject = {"rE":"2.0.
|
26702
|
+
var package_namespaceObject = {"rE":"2.0.178"};
|
26366
26703
|
;// ./packages/utils/convert.js
|
26367
26704
|
/**
|
26368
26705
|
* 将大驼峰(camelCase)字符串转换为小写且带有空格分隔的形式(kebab-case)
|