nubomed-ui 2.0.161 → 2.0.163

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/lang/en-US.js CHANGED
@@ -1 +1 @@
1
- export default{nb:{name:"Item Name",consumableInfo:"Medical Supply Info",spec:"Spec",model:"Model",barcode:"Unique Code",combineCode:"品规码",batch:"Batch No.",expiry:"Expiry",count:"Quantity",totalCount:"Total",stockCount:"Inventory",coefficient:"Coefficient",position:"Location",curPosition:"Current Location",lastPosition:"Last Known Location",manufacturer:"Manufacturer",brand:"Brand",supplier:"Supplier",unit:"Unit",price:"Amount",unitPrice:"Unit Price",currentUser:"当前用户",operation:"Operation",operator:"Operator",operateTime:"Operation Time",operateType:"Operation Type",female:"Female",male:"Male",sex:"性别",age:"年龄",inpatientNum:"住院号",patientName:"患者姓名",yesterday:"昨天",today:"今天",tomorrow:"明天",oneWeekAgo:"近一周",oneMonthAgo:"近一月",status:"状态",dept:"科室",time:"时间",type:"类型",remark:"备注",temperature:"Temperature",humidity:"Humidity",invSurplus:"Inventory Surplus",invLoss:"Inventory Loss",invAccount:"System Count",invActual:"Auto Count",invIng:"Counting...",upperStrata:"Upper Level",onlineVersion:"Online Version",offlineVersion:"Offline Version",middleground:"Middleware",middlegroundVersion:"Middleware Version",embedded:"Embedded",deviceNumber:"Device Number",plateType:"Board Type",version:"Version Number",handwareAdress:"Hardware Address",cabinetBoard:"Cabinet Board",tempHumBoard:"Temperature and Humidity Display Board",alarmBoard:"Vibration Alarm Board",state:{normal:"正常",abnormal:"异常",temporaryStop:"Temporarily Disabled",disabled:"Disabled",unopenedBottle:"Unopened",openedBottle:"Opened"},button:{back:"Back",backToMain:"Main Menu",logout:"Exit",close:"Close",add:"Add",search:"Search",detail:"Details",cancel:"Cancel",confirm:"Confirm",iKnown:"I Understand",known:"Understood",refresh:"Refresh",retest:"Retesting",copy:"Copy",clear:"Clear",ignore:"Ignore",ignoreSign:"Ignore and Delete",look:"Go to View",print:"Print",retry:"Retry",edit:"Edit",save:"Save",submit:"Submit",againSubmit:"Resubmit",continueSubmit:"Continue Submitting",replyDelete:"Backspace",retrospect:"追溯",inventory:"Inventory Count",login:"Login",openLock:"开锁",allOpenLock:"全部开锁",openCabinet:"Open",openAllCabinet:"Open All Cabinets",hide:"Collapse"},form:{all:"全部",startTime:"开始时间",endTime:"结束时间"},msg:{copySuccess:"Copy Successful!",deleteFail:"删除失败!",deleteSuccess:"删除成功!",submitFail:"提交失败!",submitSuccess:"提交成功!",saveFail:"保存失败!",saveSuccess:"保存成功!",noDataAndRefresh:"暂无数据,请刷新试试~",noSearchRecord:"暂无搜索记录~",noData:"暂无数据"},expriy:{overdue:"Expired",oneMonth:"EXP 1M",threeMonth:"EXP 3M",sixMonth:"EXP 6M"},cabinet:{upCabinet:"Top Section of Cabinet",downCabinet:"Bottom Section of Cabinet",leftCabinet:"Left Cabinet",rightCabinet:"Right Cabinet",cabinetUnconnected:"{0} Not Connected",cabinetUnlock:"{0} Not Locked",cabinetLock:"{0} Locked",cabinetUnclosed:"{0} Not Closed",cabinetClosed:"{0} Closed"},reagentType:{mediumPackage:"Medium Pack",singleMultiple:"Single Dose Multiple Use",singleOnce:"Single Dose One Time Use",opened:"Opened",unopened:"Unopened"},uv:{startTitle:"请离开终端",startTips:"<strong>{0}</strong>秒后开始消毒",cancelTask:"取消任务",ingPopupTitle:"正在紫外线消毒",ingPopupTips:"已消毒<i>{0}</i>分钟,剩余<strong>{1}</strong>小时<strong>{2}</strong>分钟",endTask:"结束消毒",endPopupTitle:"已消毒完毕",endPopupTips1:"等待",endPopupTips2:"秒后自动退出消毒模式",logout:"立即退出",pleaseLeaveCabinet:"正在紫外线消毒,请远离柜门"},loading:"Loading...",release:"Release Update",pullRefresh:"Pull to Refresh",isEnd:"Reached the End",noMoreData:"No More Available",traceDetail:"Full Process Traceability Details",notConfiguredOffline:"Offline service not configured!"}};
1
+ export default{nb:{name:"Item Name",consumableInfo:"Medical Supply Info",spec:"Spec",model:"Model",barcode:"Unique Code",combineCode:"品规码",batch:"Batch No.",expiry:"Expiry",count:"Quantity",totalCount:"Total",stockCount:"Inventory",coefficient:"Coefficient",position:"Location",curPosition:"Current Location",lastPosition:"Last Known Location",manufacturer:"Manufacturer",brand:"Brand",supplier:"Supplier",unit:"Unit",price:"Amount",unitPrice:"Unit Price",currentUser:"Current User",operation:"Operation",operator:"Operator",operateTime:"Operation Time",operateType:"Operation Type",female:"Female",male:"Male",sex:"性别",age:"年龄",inpatientNum:"住院号",patientName:"患者姓名",yesterday:"Yesterday",today:"Today",tomorrow:"Tomorrow",oneWeekAgo:"Last Week",oneMonthAgo:"Last Month",status:"Status",dept:"科室",time:"Time",type:"Types",remark:"备注",temperature:"Temperature",humidity:"Humidity",invSurplus:"Inventory Surplus",invLoss:"Inventory Loss",invAccount:"System Count",invActual:"Auto Count",invIng:"Counting...",upperStrata:"Upper Level",onlineVersion:"Online Version",offlineVersion:"Offline Version",middleground:"Middleware",middlegroundVersion:"Middleware Version",embedded:"Embedded",deviceNumber:"Device Number",plateType:"Board Type",version:"Version Number",handwareAdress:"Hardware Address",cabinetBoard:"Cabinet Board",tempHumBoard:"Temperature and Humidity Display Board",alarmBoard:"Vibration Alarm Board",state:{normal:"正常",abnormal:"异常",temporaryStop:"Temporarily Disabled",disabled:"Disabled",unopenedBottle:"Unopened",openedBottle:"Opened"},button:{back:"Back",backToMain:"Main Menu",logout:"Exit",close:"Close",add:"Add",search:"Search",detail:"Details",cancel:"Cancel",confirm:"Confirm",iKnown:"I Understand",known:"Understood",refresh:"Refresh",retest:"Retesting",copy:"Copy",clear:"Clear",ignore:"Ignore",ignoreSign:"Ignore and Delete",look:"Go to View",print:"Print",retry:"Retry",edit:"Edit",save:"Save",submit:"Submit",againSubmit:"Resubmit",continueSubmit:"Continue Submitting",replyDelete:"Backspace",retrospect:"追溯",inventory:"Inventory Count",login:"Login",openLock:"Unlock",allOpenLock:"Unlock All",openCabinet:"Open",openAllCabinet:"Open All Cabinets",hide:"Collapse"},form:{all:"All",startTime:"Start Time",endTime:"End Time"},msg:{copySuccess:"Copy Successful!",deleteFail:"删除失败!",deleteSuccess:"删除成功!",submitFail:"提交失败!",submitSuccess:"提交成功!",saveFail:"保存失败!",saveSuccess:"保存成功!",noDataAndRefresh:"暂无数据,请刷新试试~",noSearchRecord:"暂无搜索记录~",noData:"暂无数据"},expriy:{overdue:"Expired",oneMonth:"EXP 1M",threeMonth:"EXP 3M",sixMonth:"EXP 6M"},cabinet:{upCabinet:"Top Section of Cabinet",downCabinet:"Bottom Section of Cabinet",leftCabinet:"Left Cabinet",rightCabinet:"Right Cabinet",cabinetUnconnected:"{0} Not Connected",cabinetUnlock:"{0} Not Locked",cabinetLock:"{0} Locked",cabinetUnclosed:"{0} Not Closed",cabinetClosed:"{0} Closed"},reagentType:{mediumPackage:"Medium Pack",singleMultiple:"Single Dose Multiple Use",singleOnce:"Single Dose One Time Use",opened:"Opened",unopened:"Unopened"},uv:{startTitle:"请离开终端",startTips:"<strong>{0}</strong>秒后开始消毒",cancelTask:"取消任务",ingPopupTitle:"正在紫外线消毒",ingPopupTips:"已消毒<i>{0}</i>分钟,剩余<strong>{1}</strong>小时<strong>{2}</strong>分钟",endTask:"结束消毒",endPopupTitle:"已消毒完毕",endPopupTips1:"等待",endPopupTips2:"秒后自动退出消毒模式",logout:"立即退出",pleaseLeaveCabinet:"正在紫外线消毒,请远离柜门"},loading:"Loading...",release:"Release Update",pullRefresh:"Pull to Refresh",isEnd:"Reached the End",noMoreData:"No More Available",traceDetail:"Full Process Traceability Details",notConfiguredOffline:"Offline service not configured!"}};
@@ -2180,7 +2180,7 @@ src.install = function (Vue) {
2180
2180
 
2181
2181
  /***/ }),
2182
2182
 
2183
- /***/ 4767:
2183
+ /***/ 9941:
2184
2184
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2185
2185
 
2186
2186
  "use strict";
@@ -2192,8 +2192,8 @@ __webpack_require__.d(__webpack_exports__, {
2192
2192
  "default": function() { return /* binding */ NBCheckboxGroup; }
2193
2193
  });
2194
2194
 
2195
- ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=template&id=3c42eac0&scoped=true
2196
- 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"}}),(item.hasOwnProperty('label'))?[_vm._v(_vm._s(item.label))]:_vm._e(),_vm._t("default",null,{"row":item})],2)}),0)}
2195
+ ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=template&id=61c0227c&scoped=true
2196
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-checkbox-group"},[(_vm.showAll)?_c('div',{staticClass:"nb-checkbox-group__item",class:_vm.checkedAll ? 'nb-checkbox-group__item--checked' : '',style:(("min-width: " + _vm.minWidth + "px")),on:{"click":function($event){$event.stopPropagation();return _vm.handleClickAll($event)}}},[_c('nb-icon',{attrs:{"icon":"checked-corner-bottom"}}),_vm._v(_vm._s(_vm.t('nb.form.all'))+" ")],1):_vm._e(),_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"}}),(item.hasOwnProperty('label'))?[_vm._v(_vm._s(item.label))]:_vm._e(),_vm._t("default",null,{"row":item})],2)})],2)}
2197
2197
  var staticRenderFns = []
2198
2198
 
2199
2199
 
@@ -2201,15 +2201,24 @@ var staticRenderFns = []
2201
2201
  var es_array_push = __webpack_require__(4114);
2202
2202
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
2203
2203
  var esnext_iterator_constructor = __webpack_require__(8992);
2204
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.every.js
2205
+ var esnext_iterator_every = __webpack_require__(3215);
2204
2206
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
2205
2207
  var esnext_iterator_filter = __webpack_require__(4520);
2206
2208
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
2207
2209
  var esnext_iterator_map = __webpack_require__(1454);
2210
+ // EXTERNAL MODULE: ./packages/mixins/index.js
2211
+ var mixins = __webpack_require__(5289);
2208
2212
  ;// ./node_modules/thread-loader/dist/cjs.js!./node_modules/@vue/cli-plugin-babel/node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./packages/components/NBCheckboxGroup/src/index.vue?vue&type=script&lang=js
2209
2213
 
2210
2214
 
2211
2215
 
2212
2216
 
2217
+
2218
+ //
2219
+ //
2220
+ //
2221
+ //
2213
2222
  //
2214
2223
  //
2215
2224
  //
@@ -2235,9 +2244,16 @@ var esnext_iterator_map = __webpack_require__(1454);
2235
2244
  //
2236
2245
  //
2237
2246
  //
2247
+ //
2248
+ //
2249
+ //
2250
+ //
2251
+ //
2252
+
2238
2253
 
2239
2254
  /* harmony default export */ var srcvue_type_script_lang_js = ({
2240
2255
  name: 'NBCheckboxGroup',
2256
+ mixins: [mixins/* default */.A],
2241
2257
  props: {
2242
2258
  // v-model
2243
2259
  value: {
@@ -2255,11 +2271,17 @@ var esnext_iterator_map = __webpack_require__(1454);
2255
2271
  minWidth: {
2256
2272
  type: [Number, String],
2257
2273
  default: 88
2274
+ },
2275
+ // 是否显示全部
2276
+ showAll: {
2277
+ type: Boolean,
2278
+ default: false
2258
2279
  }
2259
2280
  },
2260
2281
  data() {
2261
2282
  return {
2262
- checkList: this.options.filter(x => this.value.includes(x.value))
2283
+ checkList: this.options.filter(x => this.value.includes(x.value)),
2284
+ checkedAll: this.options.every(v => this.value.includes(v.value))
2263
2285
  };
2264
2286
  },
2265
2287
  watch: {
@@ -2267,6 +2289,7 @@ var esnext_iterator_map = __webpack_require__(1454);
2267
2289
  deep: true,
2268
2290
  handler() {
2269
2291
  this.checkList = this.options.filter(x => this.value.includes(x.value));
2292
+ this.checkedAll = this.options.every(v => this.value.includes(v.value));
2270
2293
  }
2271
2294
  }
2272
2295
  },
@@ -2298,6 +2321,20 @@ var esnext_iterator_map = __webpack_require__(1454);
2298
2321
  }
2299
2322
  this.$emit('input', this.checkList.map(x => x.value));
2300
2323
  this.$emit('change', item, this.checkList.map(x => x.value));
2324
+ if (this.showAll) {
2325
+ this.checkedAll = this.options.every(v => this.checkList.map(x => x.value).includes(v.value));
2326
+ }
2327
+ },
2328
+ // 点击全部
2329
+ handleClickAll() {
2330
+ this.checkedAll = !this.checkedAll;
2331
+ if (this.checkedAll) {
2332
+ this.checkList = this.options.filter(v => !v.disabled);
2333
+ } else {
2334
+ this.checkList = [];
2335
+ }
2336
+ this.$emit('input', this.checkList.map(x => x.value));
2337
+ this.$emit('change', null, this.checkList.map(x => x.value));
2301
2338
  }
2302
2339
  }
2303
2340
  });
@@ -2319,7 +2356,7 @@ var component = (0,componentNormalizer/* default */.A)(
2319
2356
  staticRenderFns,
2320
2357
  false,
2321
2358
  null,
2322
- "3c42eac0",
2359
+ "61c0227c",
2323
2360
  null
2324
2361
 
2325
2362
  )
@@ -16137,7 +16174,7 @@ const nbLoading = options => {
16137
16174
  /*
16138
16175
  * @Author: chenghuan.dong
16139
16176
  * @Date: 2024-11-12 11:27:05
16140
- * @LastEditTime: 2025-01-21 09:11:49
16177
+ * @LastEditTime: 2025-01-21 10:41:24
16141
16178
  * @LastEditors: chenghuan.dong
16142
16179
  * @Description:
16143
16180
  * @FilePath: \nubomed-ui\packages\components\NBLoading\index.js
@@ -21582,7 +21619,7 @@ var map = {
21582
21619
  "./NBCabinetLockState/index.js": 2014,
21583
21620
  "./NBCabinetState/index.js": 1402,
21584
21621
  "./NBCabinetTempHumCarousel/index.js": 2047,
21585
- "./NBCheckboxGroup/index.js": 4767,
21622
+ "./NBCheckboxGroup/index.js": 9941,
21586
21623
  "./NBDialog/index.js": 7341,
21587
21624
  "./NBEmpty/index.js": 7419,
21588
21625
  "./NBExpiryCard/index.js": 695,
@@ -24227,6 +24264,34 @@ $({ global: true, constructor: true, forced: FORCED }, {
24227
24264
  });
24228
24265
 
24229
24266
 
24267
+ /***/ }),
24268
+
24269
+ /***/ 1148:
24270
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
24271
+
24272
+ "use strict";
24273
+
24274
+ var $ = __webpack_require__(6518);
24275
+ var iterate = __webpack_require__(2652);
24276
+ var aCallable = __webpack_require__(9306);
24277
+ var anObject = __webpack_require__(8551);
24278
+ var getIteratorDirect = __webpack_require__(1767);
24279
+
24280
+ // `Iterator.prototype.every` method
24281
+ // https://tc39.es/ecma262/#sec-iterator.prototype.every
24282
+ $({ target: 'Iterator', proto: true, real: true }, {
24283
+ every: function every(predicate) {
24284
+ anObject(this);
24285
+ aCallable(predicate);
24286
+ var record = getIteratorDirect(this);
24287
+ var counter = 0;
24288
+ return !iterate(record, function (value, stop) {
24289
+ if (!predicate(value, counter++)) return stop();
24290
+ }, { IS_RECORD: true, INTERRUPTED: true }).stopped;
24291
+ }
24292
+ });
24293
+
24294
+
24230
24295
  /***/ }),
24231
24296
 
24232
24297
  /***/ 2489:
@@ -24355,6 +24420,17 @@ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
24355
24420
  __webpack_require__(8111);
24356
24421
 
24357
24422
 
24423
+ /***/ }),
24424
+
24425
+ /***/ 3215:
24426
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
24427
+
24428
+ "use strict";
24429
+
24430
+ // TODO: Remove from `core-js@4`
24431
+ __webpack_require__(1148);
24432
+
24433
+
24358
24434
  /***/ }),
24359
24435
 
24360
24436
  /***/ 4520:
@@ -24550,7 +24626,7 @@ var NBTag = __webpack_require__(3588);
24550
24626
  /*
24551
24627
  * @Author: chenghuan.dong
24552
24628
  * @Date: 2024-11-11 13:46:54
24553
- * @LastEditTime: 2025-01-21 10:07:40
24629
+ * @LastEditTime: 2025-01-21 16:39:15
24554
24630
  * @LastEditors: chenghuan.dong
24555
24631
  * @Description: 主index.js导出全部组件
24556
24632
  * @FilePath: \nubomed-ui\packages\index.js
@@ -24567,7 +24643,6 @@ const cabinetHelp = {
24567
24643
  getCabinetStatus: cabinet_help/* getCabinetStatus */.rQ
24568
24644
  };
24569
24645
 
24570
- // import loadingDirective from './directives/loading/loading.js'
24571
24646
 
24572
24647
 
24573
24648
 
@@ -24584,7 +24659,7 @@ req.keys().forEach(v => {
24584
24659
  components.push(reqDefault);
24585
24660
  }
24586
24661
  });
24587
- const notInstallNames = ['nb-mescroll-view', 'nb-loading']; // 不注册的组件
24662
+ const notInstallNames = ['nb-mescroll-view']; // 不注册的组件
24588
24663
  const install = function (Vue, options = {}) {
24589
24664
  //设置多语言
24590
24665
  locale/* default.use */.Ay.use(options.locale);
@@ -24630,5 +24705,4 @@ const i18n = locale/* default.i18n */.Ay.i18n;
24630
24705
  }();
24631
24706
  module.exports = __webpack_exports__;
24632
24707
  /******/ })()
24633
- ;
24634
- //# sourceMappingURL=nubomed-ui.common.js.map
24708
+ ;
package/nubomed-ui.umd.js CHANGED
@@ -2190,7 +2190,7 @@ src.install = function (Vue) {
2190
2190
 
2191
2191
  /***/ }),
2192
2192
 
2193
- /***/ 1481:
2193
+ /***/ 4261:
2194
2194
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
2195
2195
 
2196
2196
  "use strict";
@@ -2202,8 +2202,8 @@ __webpack_require__.d(__webpack_exports__, {
2202
2202
  "default": function() { return /* binding */ NBCheckboxGroup; }
2203
2203
  });
2204
2204
 
2205
- ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=template&id=3c42eac0&scoped=true
2206
- 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"}}),(item.hasOwnProperty('label'))?[_vm._v(_vm._s(item.label))]:_vm._e(),_vm._t("default",null,{"row":item})],2)}),0)}
2205
+ ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=template&id=61c0227c&scoped=true
2206
+ var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"nb-checkbox-group"},[(_vm.showAll)?_c('div',{staticClass:"nb-checkbox-group__item",class:_vm.checkedAll ? 'nb-checkbox-group__item--checked' : '',style:(("min-width: " + _vm.minWidth + "px")),on:{"click":function($event){$event.stopPropagation();return _vm.handleClickAll($event)}}},[_c('nb-icon',{attrs:{"icon":"checked-corner-bottom"}}),_vm._v(_vm._s(_vm.t('nb.form.all'))+" ")],1):_vm._e(),_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"}}),(item.hasOwnProperty('label'))?[_vm._v(_vm._s(item.label))]:_vm._e(),_vm._t("default",null,{"row":item})],2)})],2)}
2207
2207
  var staticRenderFns = []
2208
2208
 
2209
2209
 
@@ -2211,15 +2211,24 @@ var staticRenderFns = []
2211
2211
  var es_array_push = __webpack_require__(4114);
2212
2212
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.constructor.js
2213
2213
  var esnext_iterator_constructor = __webpack_require__(8992);
2214
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.every.js
2215
+ var esnext_iterator_every = __webpack_require__(3215);
2214
2216
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.filter.js
2215
2217
  var esnext_iterator_filter = __webpack_require__(4520);
2216
2218
  // EXTERNAL MODULE: ./node_modules/core-js/modules/esnext.iterator.map.js
2217
2219
  var esnext_iterator_map = __webpack_require__(1454);
2220
+ // EXTERNAL MODULE: ./packages/mixins/index.js
2221
+ var mixins = __webpack_require__(869);
2218
2222
  ;// ./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/NBCheckboxGroup/src/index.vue?vue&type=script&lang=js
2219
2223
 
2220
2224
 
2221
2225
 
2222
2226
 
2227
+
2228
+ //
2229
+ //
2230
+ //
2231
+ //
2223
2232
  //
2224
2233
  //
2225
2234
  //
@@ -2245,9 +2254,16 @@ var esnext_iterator_map = __webpack_require__(1454);
2245
2254
  //
2246
2255
  //
2247
2256
  //
2257
+ //
2258
+ //
2259
+ //
2260
+ //
2261
+ //
2262
+
2248
2263
 
2249
2264
  /* harmony default export */ var srcvue_type_script_lang_js = ({
2250
2265
  name: 'NBCheckboxGroup',
2266
+ mixins: [mixins/* default */.A],
2251
2267
  props: {
2252
2268
  // v-model
2253
2269
  value: {
@@ -2265,11 +2281,17 @@ var esnext_iterator_map = __webpack_require__(1454);
2265
2281
  minWidth: {
2266
2282
  type: [Number, String],
2267
2283
  default: 88
2284
+ },
2285
+ // 是否显示全部
2286
+ showAll: {
2287
+ type: Boolean,
2288
+ default: false
2268
2289
  }
2269
2290
  },
2270
2291
  data() {
2271
2292
  return {
2272
- checkList: this.options.filter(x => this.value.includes(x.value))
2293
+ checkList: this.options.filter(x => this.value.includes(x.value)),
2294
+ checkedAll: this.options.every(v => this.value.includes(v.value))
2273
2295
  };
2274
2296
  },
2275
2297
  watch: {
@@ -2277,6 +2299,7 @@ var esnext_iterator_map = __webpack_require__(1454);
2277
2299
  deep: true,
2278
2300
  handler() {
2279
2301
  this.checkList = this.options.filter(x => this.value.includes(x.value));
2302
+ this.checkedAll = this.options.every(v => this.value.includes(v.value));
2280
2303
  }
2281
2304
  }
2282
2305
  },
@@ -2308,6 +2331,20 @@ var esnext_iterator_map = __webpack_require__(1454);
2308
2331
  }
2309
2332
  this.$emit('input', this.checkList.map(x => x.value));
2310
2333
  this.$emit('change', item, this.checkList.map(x => x.value));
2334
+ if (this.showAll) {
2335
+ this.checkedAll = this.options.every(v => this.checkList.map(x => x.value).includes(v.value));
2336
+ }
2337
+ },
2338
+ // 点击全部
2339
+ handleClickAll() {
2340
+ this.checkedAll = !this.checkedAll;
2341
+ if (this.checkedAll) {
2342
+ this.checkList = this.options.filter(v => !v.disabled);
2343
+ } else {
2344
+ this.checkList = [];
2345
+ }
2346
+ this.$emit('input', this.checkList.map(x => x.value));
2347
+ this.$emit('change', null, this.checkList.map(x => x.value));
2311
2348
  }
2312
2349
  }
2313
2350
  });
@@ -2329,7 +2366,7 @@ var component = (0,componentNormalizer/* default */.A)(
2329
2366
  staticRenderFns,
2330
2367
  false,
2331
2368
  null,
2332
- "3c42eac0",
2369
+ "61c0227c",
2333
2370
  null
2334
2371
 
2335
2372
  )
@@ -16147,7 +16184,7 @@ const nbLoading = options => {
16147
16184
  /*
16148
16185
  * @Author: chenghuan.dong
16149
16186
  * @Date: 2024-11-12 11:27:05
16150
- * @LastEditTime: 2025-01-21 09:11:49
16187
+ * @LastEditTime: 2025-01-21 10:41:24
16151
16188
  * @LastEditors: chenghuan.dong
16152
16189
  * @Description:
16153
16190
  * @FilePath: \nubomed-ui\packages\components\NBLoading\index.js
@@ -21592,7 +21629,7 @@ var map = {
21592
21629
  "./NBCabinetLockState/index.js": 5971,
21593
21630
  "./NBCabinetState/index.js": 1793,
21594
21631
  "./NBCabinetTempHumCarousel/index.js": 8354,
21595
- "./NBCheckboxGroup/index.js": 1481,
21632
+ "./NBCheckboxGroup/index.js": 4261,
21596
21633
  "./NBDialog/index.js": 4854,
21597
21634
  "./NBEmpty/index.js": 9890,
21598
21635
  "./NBExpiryCard/index.js": 7881,
@@ -24237,6 +24274,34 @@ $({ global: true, constructor: true, forced: FORCED }, {
24237
24274
  });
24238
24275
 
24239
24276
 
24277
+ /***/ }),
24278
+
24279
+ /***/ 1148:
24280
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
24281
+
24282
+ "use strict";
24283
+
24284
+ var $ = __webpack_require__(6518);
24285
+ var iterate = __webpack_require__(2652);
24286
+ var aCallable = __webpack_require__(9306);
24287
+ var anObject = __webpack_require__(8551);
24288
+ var getIteratorDirect = __webpack_require__(1767);
24289
+
24290
+ // `Iterator.prototype.every` method
24291
+ // https://tc39.es/ecma262/#sec-iterator.prototype.every
24292
+ $({ target: 'Iterator', proto: true, real: true }, {
24293
+ every: function every(predicate) {
24294
+ anObject(this);
24295
+ aCallable(predicate);
24296
+ var record = getIteratorDirect(this);
24297
+ var counter = 0;
24298
+ return !iterate(record, function (value, stop) {
24299
+ if (!predicate(value, counter++)) return stop();
24300
+ }, { IS_RECORD: true, INTERRUPTED: true }).stopped;
24301
+ }
24302
+ });
24303
+
24304
+
24240
24305
  /***/ }),
24241
24306
 
24242
24307
  /***/ 2489:
@@ -24365,6 +24430,17 @@ $({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
24365
24430
  __webpack_require__(8111);
24366
24431
 
24367
24432
 
24433
+ /***/ }),
24434
+
24435
+ /***/ 3215:
24436
+ /***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {
24437
+
24438
+ "use strict";
24439
+
24440
+ // TODO: Remove from `core-js@4`
24441
+ __webpack_require__(1148);
24442
+
24443
+
24368
24444
  /***/ }),
24369
24445
 
24370
24446
  /***/ 4520:
@@ -24560,7 +24636,7 @@ var NBTag = __webpack_require__(983);
24560
24636
  /*
24561
24637
  * @Author: chenghuan.dong
24562
24638
  * @Date: 2024-11-11 13:46:54
24563
- * @LastEditTime: 2025-01-21 10:07:40
24639
+ * @LastEditTime: 2025-01-21 16:39:15
24564
24640
  * @LastEditors: chenghuan.dong
24565
24641
  * @Description: 主index.js导出全部组件
24566
24642
  * @FilePath: \nubomed-ui\packages\index.js
@@ -24577,7 +24653,6 @@ const cabinetHelp = {
24577
24653
  getCabinetStatus: cabinet_help/* getCabinetStatus */.rQ
24578
24654
  };
24579
24655
 
24580
- // import loadingDirective from './directives/loading/loading.js'
24581
24656
 
24582
24657
 
24583
24658
 
@@ -24594,7 +24669,7 @@ req.keys().forEach(v => {
24594
24669
  components.push(reqDefault);
24595
24670
  }
24596
24671
  });
24597
- const notInstallNames = ['nb-mescroll-view', 'nb-loading']; // 不注册的组件
24672
+ const notInstallNames = ['nb-mescroll-view']; // 不注册的组件
24598
24673
  const install = function (Vue, options = {}) {
24599
24674
  //设置多语言
24600
24675
  locale/* default.use */.Ay.use(options.locale);
@@ -24641,5 +24716,4 @@ const i18n = locale/* default.i18n */.Ay.i18n;
24641
24716
  /******/ return __webpack_exports__;
24642
24717
  /******/ })()
24643
24718
  ;
24644
- });
24645
- //# sourceMappingURL=nubomed-ui.umd.js.map
24719
+ });