vue2-client 1.15.132 → 1.15.135

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.
@@ -1,165 +1,165 @@
1
- <script setup lang="ts">
2
- import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
3
- import { ref } from 'vue'
4
-
5
- defineProps({
6
- // HFormTable特有的属性
7
- tableStyle: {
8
- type: String,
9
- default: 'formtable-col1'
10
- }
11
- })
12
-
13
- // 创建对XFormTable组件的引用
14
- const xFormTableRef = ref()
15
-
16
- // 暴露方法给父组件使用
17
- defineExpose({
18
- // 为了兼容性,保留getXFormTableInstance方法
19
- getXFormTableInstance: () => xFormTableRef.value
20
- })
21
- </script>
22
-
23
- <template>
24
- <div
25
- class="h-form-table-wrapper"
26
- :class="[
27
- `h-form-table-${tableStyle}`
28
- ]"
29
- >
30
- <x-form-table
31
- ref="xFormTableRef"
32
- v-bind="$attrs"
33
- v-on="$listeners"
34
- >
35
- <template v-for="(_, name) in $slots" #[name]="slotData">
36
- <slot :name="name" v-bind="slotData" />
37
- </template>
38
- </x-form-table>
39
- </div>
40
- </template>
41
-
42
- <style scoped lang="less">
43
- .h-form-table-wrapper {
44
- // 基础样式
45
- :deep(.table-wrapper) {
46
- .ant-table {
47
- .ant-table-row {
48
- margin: 0px;
49
-
50
- .ant-form-item {
51
- margin: 0px;
52
-
53
- .ant-form-item-control-wrapper {
54
- .ant-form-item-control {
55
- line-height: 0px;
56
-
57
- .ant-select-selection--multiple {
58
- padding-bottom: 2px;
59
- }
60
- }
61
- width: 100%;
62
- }
63
- }
64
- }
65
- font-size: 16px;
66
- }
67
-
68
- .ant-alert-info {
69
- display: none;
70
- }
71
- }
72
-
73
- :deep(.ant-card) {
74
- margin: -10px 0px 29px 0px;
75
- }
76
-
77
- :deep(.ant-btn) {
78
- border: 0px;
79
- box-shadow: none;
80
- padding: 0px;
81
- color: #5D5C5C;
82
- font-weight: bold;
83
- letter-spacing: 0em;
84
- font-size: 18px;
85
- line-height: normal;
86
- font-family: "Source Han Sans";
87
- }
88
-
89
- :deep(.ant-card-body) {
90
- padding: 0 6px;
91
- }
92
-
93
- :deep(.ant-table-small) {
94
- border-width: 0;
95
-
96
- .ant-table-fixed {
97
- border-radius: 0;
98
- border-bottom: 1px solid #f0f0f0;
99
- }
100
- }
101
-
102
- // 表格高度样式
103
- &.h-form-table-height {
104
- :deep(.table-wrapper) {
105
- .ant-select-open ~ .ant-table-content {
106
- height: 500px !important;
107
- }
108
- }
109
- }
110
-
111
- // 表格样式
112
- &.h-form-table-table {
113
- :deep(.ant-table-small .ant-table-fixed-header) {
114
- .ant-table-content {
115
- .ant-table-content {
116
- .ant-table-body {
117
- border-radius: 0 0 4px 4px;
118
- overflow: visible !important;
119
- }
120
- }
121
- }
122
- }
123
- }
124
-
125
- // 隐藏按钮区域
126
- &.h-form-table-button-area-hide {
127
- :deep(.ant-btn) {
128
- display: none;
129
- }
130
-
131
- :deep(.table-wrapper) {
132
- margin-top: -39px;
133
- }
134
- }
135
-
136
- // 列样式1
137
- &.h-form-table-formtable-col1 {
138
- :deep(.table-wrapper) {
139
- .ant-row {
140
- .ant-col span {
141
- border: none;
142
- width: auto;
143
- margin-bottom: auto;
144
- }
145
- }
146
-
147
- .ant-table {
148
- .ant-table-body {
149
- .ant-table-fixed colgroup col:nth-child(2) {
150
- width: 50px;
151
- min-width: 50px;
152
- }
153
- }
154
-
155
- .ant-table-header {
156
- .ant-table-fixed colgroup col:nth-child(2) {
157
- width: 50px;
158
- min-width: 50px;
159
- }
160
- }
161
- }
162
- }
163
- }
164
- }
165
- </style>
1
+ <script setup lang="ts">
2
+ import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable.vue'
3
+ import { ref } from 'vue'
4
+
5
+ defineProps({
6
+ // HFormTable特有的属性
7
+ tableStyle: {
8
+ type: String,
9
+ default: 'formtable-col1'
10
+ }
11
+ })
12
+
13
+ // 创建对XFormTable组件的引用
14
+ const xFormTableRef = ref()
15
+
16
+ // 暴露方法给父组件使用
17
+ defineExpose({
18
+ // 为了兼容性,保留getXFormTableInstance方法
19
+ getXFormTableInstance: () => xFormTableRef.value
20
+ })
21
+ </script>
22
+
23
+ <template>
24
+ <div
25
+ class="h-form-table-wrapper"
26
+ :class="[
27
+ `h-form-table-${tableStyle}`
28
+ ]"
29
+ >
30
+ <x-form-table
31
+ ref="xFormTableRef"
32
+ v-bind="$attrs"
33
+ v-on="$listeners"
34
+ >
35
+ <template v-for="(_, name) in $slots" #[name]="slotData">
36
+ <slot :name="name" v-bind="slotData" />
37
+ </template>
38
+ </x-form-table>
39
+ </div>
40
+ </template>
41
+
42
+ <style scoped lang="less">
43
+ .h-form-table-wrapper {
44
+ // 基础样式
45
+ :deep(.table-wrapper) {
46
+ .ant-table {
47
+ .ant-table-row {
48
+ margin: 0px;
49
+
50
+ .ant-form-item {
51
+ margin: 0px;
52
+
53
+ .ant-form-item-control-wrapper {
54
+ .ant-form-item-control {
55
+ line-height: 0px;
56
+
57
+ .ant-select-selection--multiple {
58
+ padding-bottom: 2px;
59
+ }
60
+ }
61
+ width: 100%;
62
+ }
63
+ }
64
+ }
65
+ font-size: 16px;
66
+ }
67
+
68
+ .ant-alert-info {
69
+ display: none;
70
+ }
71
+ }
72
+
73
+ :deep(.ant-card) {
74
+ margin: -10px 0px 29px 0px;
75
+ }
76
+
77
+ :deep(.ant-btn) {
78
+ border: 0px;
79
+ box-shadow: none;
80
+ padding: 0px;
81
+ color: #5D5C5C;
82
+ font-weight: bold;
83
+ letter-spacing: 0em;
84
+ font-size: 18px;
85
+ line-height: normal;
86
+ font-family: "Source Han Sans";
87
+ }
88
+
89
+ :deep(.ant-card-body) {
90
+ padding: 0 6px;
91
+ }
92
+
93
+ :deep(.ant-table-small) {
94
+ border-width: 0;
95
+
96
+ .ant-table-fixed {
97
+ border-radius: 0;
98
+ border-bottom: 1px solid #f0f0f0;
99
+ }
100
+ }
101
+
102
+ // 表格高度样式
103
+ &.h-form-table-height {
104
+ :deep(.table-wrapper) {
105
+ .ant-select-open ~ .ant-table-content {
106
+ height: 500px !important;
107
+ }
108
+ }
109
+ }
110
+
111
+ // 表格样式
112
+ &.h-form-table-table {
113
+ :deep(.ant-table-small .ant-table-fixed-header) {
114
+ .ant-table-content {
115
+ .ant-table-content {
116
+ .ant-table-body {
117
+ border-radius: 0 0 4px 4px;
118
+ overflow: visible !important;
119
+ }
120
+ }
121
+ }
122
+ }
123
+ }
124
+
125
+ // 隐藏按钮区域
126
+ &.h-form-table-button-area-hide {
127
+ :deep(.ant-btn) {
128
+ display: none;
129
+ }
130
+
131
+ :deep(.table-wrapper) {
132
+ margin-top: -39px;
133
+ }
134
+ }
135
+
136
+ // 列样式1
137
+ &.h-form-table-formtable-col1 {
138
+ :deep(.table-wrapper) {
139
+ .ant-row {
140
+ .ant-col span {
141
+ border: none;
142
+ width: auto;
143
+ margin-bottom: auto;
144
+ }
145
+ }
146
+
147
+ .ant-table {
148
+ .ant-table-body {
149
+ .ant-table-fixed colgroup col:nth-child(2) {
150
+ width: 50px;
151
+ min-width: 50px;
152
+ }
153
+ }
154
+
155
+ .ant-table-header {
156
+ .ant-table-fixed colgroup col:nth-child(2) {
157
+ width: 50px;
158
+ min-width: 50px;
159
+ }
160
+ }
161
+ }
162
+ }
163
+ }
164
+ }
165
+ </style>