vue2-client 1.16.81 → 1.16.82
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/package.json +112 -112
- package/src/assets/img/paymentMethod/icon1.png +0 -0
- package/src/assets/img/paymentMethod/icon2.png +0 -0
- package/src/assets/img/paymentMethod/icon3.png +0 -0
- package/src/assets/img/paymentMethod/icon4.png +0 -0
- package/src/assets/img/paymentMethod/icon5.png +0 -0
- package/src/assets/img/paymentMethod/icon6.png +0 -0
- package/src/assets/svg/female.svg +1 -1
- package/src/assets/svg/male.svg +1 -1
- package/src/base-client/components/common/HIS/HFormGroup/index.js +3 -3
- package/src/base-client/components/common/HIS/HFormTable/HFormTable.vue +394 -379
- package/src/base-client/components/common/HIS/HTab/HTab.vue +418 -418
- package/src/base-client/components/common/XCollapse/XCollapse.vue +833 -833
- package/src/base-client/components/common/XInput/XInput.vue +194 -194
- package/src/base-client/components/common/XReport/XReportHospitalizationDemo.vue +45 -0
- package/src/base-client/components/common/XTable/XTable.vue +1610 -1610
- package/src/base-client/components/common/XTimeline/XTimeline.vue +454 -454
- package/src/base-client/components/his/XCheckbox/XCheckbox.vue +31 -2
- package/src/base-client/components/his/XHDescriptions/XHDescriptions.vue +1031 -1022
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +705 -705
- package/src/base-client/components/his/XIcon/XIcon.vue +73 -73
- package/src/base-client/components/his/XIcon/index.js +3 -3
- package/src/base-client/components/his/XIcon/index.md +177 -177
- package/src/base-client/components/his/XList/XList.vue +829 -829
- package/src/base-client/components/his/XRadio/XRadio.vue +1 -1
- package/src/base-client/components/his/XSimpleTable/XSimpleTable.vue +159 -159
- package/src/base-client/components/his/XTitle/XTitle.vue +255 -255
- package/src/base-client/components/his/XTreeRows/XTreeRows.vue +341 -341
- package/src/base-client/components/his/threeTestOrders/editor.vue +113 -113
- package/src/pages/userInfoDetailManage/ExceptionRecordQuery/index.vue +45 -45
- package/src-base-client/components/his/XCharge/XCharge.vue +0 -0
- /package/src-base-client/components/{common/XCollapse/XCollapse.vue → his/XCharge/README.md} +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>
|