nubomed-ui 2.0.69 → 2.0.71

Sign up to get free protection for your applications and to get access to all the features.
@@ -3981,7 +3981,7 @@ src.install = function (Vue) {
3981
3981
 
3982
3982
  /***/ }),
3983
3983
 
3984
- /***/ 7571:
3984
+ /***/ 3070:
3985
3985
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
3986
3986
 
3987
3987
  "use strict";
@@ -3993,8 +3993,8 @@ __webpack_require__.d(__webpack_exports__, {
3993
3993
  "default": function() { return /* binding */ NBToggleCate; }
3994
3994
  });
3995
3995
 
3996
- ;// ./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
3997
- 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)}
3996
+ ;// ./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=348ae4ea&scoped=true
3997
+ 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"},[_c('nb-icon',{staticClass:"cate__toggle",attrs:{"icon":_vm.item.toggle ? 'caret-down' : 'caret-right'}}),(_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"},[_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)}
3998
3998
  var staticRenderFns = []
3999
3999
 
4000
4000
 
@@ -4073,11 +4073,6 @@ var es_array_push = __webpack_require__(4114);
4073
4073
  type: {
4074
4074
  type: Number,
4075
4075
  default: 0
4076
- },
4077
- // 是否显示toggle箭头
4078
- showToggle: {
4079
- type: Boolean,
4080
- default: true
4081
4076
  }
4082
4077
  },
4083
4078
  data() {
@@ -4110,9 +4105,7 @@ var es_array_push = __webpack_require__(4114);
4110
4105
  methods: {
4111
4106
  // 展开
4112
4107
  handleToggle(item) {
4113
- if (this.showToggle) {
4114
- item.toggle = !item.toggle;
4115
- }
4108
+ item.toggle = !item.toggle;
4116
4109
  },
4117
4110
  // 勾选单选框
4118
4111
  handleChangeRadio() {
@@ -4142,7 +4135,7 @@ var component = (0,componentNormalizer/* default */.A)(
4142
4135
  staticRenderFns,
4143
4136
  false,
4144
4137
  null,
4145
- "41b59d20",
4138
+ "348ae4ea",
4146
4139
  null
4147
4140
 
4148
4141
  )
@@ -4680,7 +4673,7 @@ var map = {
4680
4673
  "./NBSummaryBar/index.js": 4918,
4681
4674
  "./NBTabs/index.js": 1694,
4682
4675
  "./NBTag/index.js": 6290,
4683
- "./NBToggleCate/index.js": 7571,
4676
+ "./NBToggleCate/index.js": 3070,
4684
4677
  "./NBVersionDialog/index.js": 5305
4685
4678
  };
4686
4679
 
@@ -7521,7 +7514,7 @@ var locale = __webpack_require__(4820);
7521
7514
  /*
7522
7515
  * @Author: chenghuan.dong
7523
7516
  * @Date: 2024-11-08 17:23:47
7524
- * @LastEditTime: 2024-11-21 11:46:33
7517
+ * @LastEditTime: 2024-11-21 16:51:44
7525
7518
  * @LastEditors: chenghuan.dong
7526
7519
  * @Description: 主index.js导出全部组件
7527
7520
  * @FilePath: \nubomed-ui\packages\index.js
@@ -7547,11 +7540,12 @@ const install = function (Vue, options = {}) {
7547
7540
  components.forEach(component => {
7548
7541
  const name = 'nb-' + camelToKebab(component.name.slice(2));
7549
7542
  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'];
7550
- if (installNames.includes(name)) {
7551
- console.log('%c' + '√ ' + name, 'color: #00A572;');
7552
- } else {
7553
- console.log('? ' + name);
7554
- }
7543
+ // if (installNames.includes(name)) {
7544
+ // console.log('%c' + '√ ' + name, 'color: #00A572;')
7545
+ // } else {
7546
+ // console.log('? ' + name)
7547
+ // }
7548
+
7555
7549
  if (installNames.includes(name)) {
7556
7550
  Vue.component('nb-' + camelToKebab(component.name.slice(2)), component);
7557
7551
  }