vue2-client 1.16.81 → 1.16.83

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.
Files changed (23) hide show
  1. package/package.json +112 -112
  2. package/src/assets/svg/female.svg +1 -1
  3. package/src/assets/svg/male.svg +1 -1
  4. package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
  5. package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +394 -379
  6. package/src/base-client/components/common/HIS/HTab/HTab.vue +418 -418
  7. package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
  8. package/src/base-client/components/common/XFormGroupDetails/XFormGroupDetails.vue +1 -1
  9. package/src/base-client/components/common/XInput/XInput.vue +194 -194
  10. package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
  11. package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
  12. package/src/base-client/components/his/XCheckbox/XCheckbox.vue +31 -2
  13. package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +1031 -1022
  14. package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
  15. package/src/base-client/components/his/XList/XList.vue +829 -829
  16. package/src/base-client/components/his/XRadio/XRadio.vue +1 -1
  17. package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
  18. package/src/base-client/components/his/XTitle/XTitle.vue +255 -255
  19. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
  20. package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
  21. package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
  22. package/src/router/async/router.map.js +2 -1
  23. package/src-base-client/components/common/XCollapse/XCollapse.vue +0 -0
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="x-checkbox-container">
2
+ <div class="x-checkbox-container" :class="wrapperClassObject()">
3
3
  <a-checkbox-group v-model="innerValue" @change="onChange" class="x-checkbox-group">
4
4
  <div v-for="item in data" :key="item.value" class="x-checkbox-item-container">
5
5
  <a-checkbox :value="item.value" class="x-checkbox-item">
@@ -70,6 +70,19 @@ export default {
70
70
  }
71
71
  })
72
72
  },
73
+ wrapperClassObject () {
74
+ const attrs = this.$attrs || {}
75
+ const classes = {}
76
+ const booleanStyleKeys = [
77
+ 'compact'
78
+ ]
79
+ booleanStyleKeys.forEach(key => {
80
+ const val = attrs[key]
81
+ const truthy = val === true || val === '' || val === 'true'
82
+ if (truthy) classes[`x-checkbox-${key}`] = true
83
+ })
84
+ return classes
85
+ },
73
86
  onChange (checkedValues) {
74
87
  this.innerValue = checkedValues
75
88
  this.$emit('change', checkedValues)
@@ -78,7 +91,7 @@ export default {
78
91
  }
79
92
  </script>
80
93
 
81
- <style scoped>
94
+ <style scoped lang="less">
82
95
  .x-checkbox-container {
83
96
  display: flex;
84
97
  flex-direction: column;
@@ -102,4 +115,20 @@ export default {
102
115
  .x-checkbox-item {
103
116
  margin-bottom: 8px;
104
117
  }
118
+ .x-checkbox-compact {
119
+ &.x-checkbox-container,
120
+ .x-checkbox-container {
121
+ :deep(.x-checkbox-item-container){
122
+ padding: 0px !important;
123
+ flex: auto !important;
124
+ }
125
+ :deep(.x-checkbox-item){
126
+ margin: 0px;
127
+ }
128
+ :deep(.x-checkbox-item) > span:last-child {
129
+ padding-right: 2px;
130
+ padding-left: 2px;
131
+ }
132
+ }
133
+ }
105
134
  </style>