vue2-client 1.12.72 → 1.12.74
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 +3 -2
- package/src/base-client/components/common/XCollapse/XCollapse.vue +2 -9
- package/src/base-client/components/common/XReportGrid/XReportTrGroup.vue +3 -2
- package/src/base-client/components/common/XTimeline/XTimeline.vue +354 -0
- package/src/base-client/components/his/XList/XList.vue +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue2-client",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.74",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"core-js": "^3.33.0",
|
|
35
35
|
"crypto-js": "^4.1.1",
|
|
36
36
|
"date-fns": "^2.29.3",
|
|
37
|
+
"dayjs": "^1.11.13",
|
|
37
38
|
"default-passive-events": "^2.0.0",
|
|
38
39
|
"dotenv": "^16.3.1",
|
|
39
40
|
"echarts": "^5.5.0",
|
|
@@ -72,12 +73,12 @@
|
|
|
72
73
|
"@babel/core": "^7.22.20",
|
|
73
74
|
"@babel/eslint-parser": "^7.22.15",
|
|
74
75
|
"@babel/preset-env": "^7.22.20",
|
|
76
|
+
"@jest/globals": "^29.7.0",
|
|
75
77
|
"@vue/cli-plugin-babel": "^5.0.8",
|
|
76
78
|
"@vue/cli-plugin-eslint": "^5.0.8",
|
|
77
79
|
"@vue/cli-service": "^5.0.8",
|
|
78
80
|
"@vue/eslint-config-standard": "^8.0.1",
|
|
79
81
|
"@vue/test-utils": "^1.3.6",
|
|
80
|
-
"@jest/globals": "^29.7.0",
|
|
81
82
|
"babel-plugin-transform-remove-console": "^6.9.4",
|
|
82
83
|
"compression-webpack-plugin": "^10.0.0",
|
|
83
84
|
"css-minimizer-webpack-plugin": "^5.0.1",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
:show-arrow="false"
|
|
11
11
|
>
|
|
12
12
|
<template #header>
|
|
13
|
-
<a-button @click="handleClick">666</a-button>
|
|
14
13
|
<div class="header-content">
|
|
15
14
|
<span
|
|
16
15
|
class="header-text"
|
|
@@ -42,7 +41,7 @@
|
|
|
42
41
|
<a-input-search
|
|
43
42
|
v-if="panel.search"
|
|
44
43
|
v-model="searchText[panelIndex]"
|
|
45
|
-
placeholder="
|
|
44
|
+
placeholder="panel.searchPlace"
|
|
46
45
|
class="search-input"
|
|
47
46
|
@search="(value) => onSearch(value, panelIndex)"
|
|
48
47
|
@click.stop
|
|
@@ -61,7 +60,6 @@
|
|
|
61
60
|
:show-img-in-cell="true"
|
|
62
61
|
:display-only="true"
|
|
63
62
|
:edit-mode="false"
|
|
64
|
-
:parentContext="parentContext"
|
|
65
63
|
:show-save-button="false"
|
|
66
64
|
:no-padding="true"
|
|
67
65
|
:dont-format="true">
|
|
@@ -87,8 +85,7 @@ export default {
|
|
|
87
85
|
activeKey: [],
|
|
88
86
|
config: {},
|
|
89
87
|
configName: '',
|
|
90
|
-
searchText: {}
|
|
91
|
-
parentContext: null
|
|
88
|
+
searchText: {}
|
|
92
89
|
}
|
|
93
90
|
},
|
|
94
91
|
props: {
|
|
@@ -118,10 +115,6 @@ export default {
|
|
|
118
115
|
window.removeEventListener('setItem', this.handleStorageChange)
|
|
119
116
|
},
|
|
120
117
|
methods: {
|
|
121
|
-
handleClick () {
|
|
122
|
-
console.log('xc按钮被点击了!')
|
|
123
|
-
console.warn(this.getComponentByName)
|
|
124
|
-
},
|
|
125
118
|
handleStorageChange (e) {
|
|
126
119
|
console.log('监听到sessionStorage的变化:', e)
|
|
127
120
|
if (e.key === 'klcf_id') {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
<template v-else-if="cell.type === 'slot'">
|
|
27
27
|
<template
|
|
28
|
-
v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse','x-h-descriptions', 'x-sidebar', 'x-list','x-input'].includes(cell.slotType)">
|
|
28
|
+
v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse','x-h-descriptions', 'x-sidebar', 'x-list','x-input','x-time-line'].includes(cell.slotType)">
|
|
29
29
|
<component
|
|
30
30
|
:is="getComponentName(cell.slotConfig, cell.serviceName, cell.slotType)"
|
|
31
31
|
:key="cellIndex"
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</template>
|
|
61
61
|
<template v-else-if="cell.type === 'slot'">
|
|
62
62
|
<template
|
|
63
|
-
v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse', 'x-h-descriptions', 'x-sidebar', 'x-list','x-input'].includes(cell.slotType)">
|
|
63
|
+
v-if="['x-form-table','x-add-native-form','x-tree-pro', 'x-his-editor', 'x-tab', 'x-form-group', 'x-report', 'x-buttons', 'x-label-select', 'x-conversation', 'x-check-list', 'x-cardSet', 'x-collapse', 'x-h-descriptions', 'x-sidebar', 'x-list','x-input','x-time-line'].includes(cell.slotType)">
|
|
64
64
|
<component
|
|
65
65
|
:is="getComponentName(cell.slotConfig, cell.serviceName, cell.slotType)"
|
|
66
66
|
:key="cellIndex"
|
|
@@ -110,6 +110,7 @@ export default {
|
|
|
110
110
|
XSidebar: () => import('@vue2-client/base-client/components/his/XSidebar/XSidebar.vue'),
|
|
111
111
|
XList: () => import('@vue2-client/base-client/components/his/XList/XList.vue'),
|
|
112
112
|
XInput: () => import('@vue2-client/base-client/components/common/XInput/XInput.vue'),
|
|
113
|
+
XTimeline: () => import('@vue2-client/base-client/components/common/XTimeline/XTimeline.vue'),
|
|
113
114
|
},
|
|
114
115
|
props: {
|
|
115
116
|
// 每一行的配置
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<!-- 时间轴主容器 -->
|
|
3
|
+
<div class='x-timeline'>
|
|
4
|
+
<!-- 时间轴导航栏 -->
|
|
5
|
+
<div class='x-timeline-nav'>
|
|
6
|
+
<!-- 导航按钮:前一周、前一天 -->
|
|
7
|
+
<a-button type="link" @click='goToPrevWeek'>
|
|
8
|
+
<a-icon type="double-left" />
|
|
9
|
+
{{ config?.prevWeekText || '前一周' }}
|
|
10
|
+
</a-button>
|
|
11
|
+
<a-button type="link" @click='goToPrevDay'>
|
|
12
|
+
<a-icon type="left" />
|
|
13
|
+
{{ config?.prevDayText || '前一天' }}
|
|
14
|
+
</a-button>
|
|
15
|
+
<!-- 日期显示区域 -->
|
|
16
|
+
<div class='timeline-dates'>
|
|
17
|
+
<div v-for='(date, index) in displayDates'
|
|
18
|
+
:key='index'
|
|
19
|
+
class='date-item'
|
|
20
|
+
:class='{
|
|
21
|
+
"ant-btn-primary": isCurrentDate(date),
|
|
22
|
+
"date-weekend": isWeekend(date),
|
|
23
|
+
"ant-btn-disabled": isDisabled(date)
|
|
24
|
+
}'
|
|
25
|
+
@click='selectDate(date)'
|
|
26
|
+
>
|
|
27
|
+
<div class='weekday'>{{ getWeekDay(date) }}</div>
|
|
28
|
+
<div class='date'>{{ formatDate(date) }}</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
<!-- 导航按钮:后一天、后一周 -->
|
|
32
|
+
<a-button type="link" @click='goToNextDay'>
|
|
33
|
+
{{ config?.nextDayText || '后一天' }}
|
|
34
|
+
<a-icon type="right" />
|
|
35
|
+
</a-button>
|
|
36
|
+
<a-button type="link" @click='goToNextWeek'>
|
|
37
|
+
{{ config?.nextWeekText || '后一周' }}
|
|
38
|
+
<a-icon type="double-right" />
|
|
39
|
+
</a-button>
|
|
40
|
+
</div>
|
|
41
|
+
</div>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import dayjs from 'dayjs'
|
|
46
|
+
import 'dayjs/locale/zh-cn'
|
|
47
|
+
import { getConfigByName, runLogic } from '@vue2-client/services/api/common'
|
|
48
|
+
|
|
49
|
+
// 设置 dayjs 为中文语言环境
|
|
50
|
+
dayjs.locale('zh-cn')
|
|
51
|
+
|
|
52
|
+
export default ({
|
|
53
|
+
name: 'XTimeline',
|
|
54
|
+
components: {
|
|
55
|
+
},
|
|
56
|
+
props: {
|
|
57
|
+
// 当前选中日期,默认为空(不选中)
|
|
58
|
+
modelValue: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: ''
|
|
61
|
+
},
|
|
62
|
+
// 配置参数名称,用于获取时间轴配置
|
|
63
|
+
queryParamsName: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: 'XTimelineExampleConfig'
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
|
|
69
|
+
// 定义组件事件
|
|
70
|
+
emits: ['update:modelValue', 'change', 'prev-week', 'next-week', 'prev-day', 'next-day'],
|
|
71
|
+
|
|
72
|
+
data () {
|
|
73
|
+
return {
|
|
74
|
+
currentDate: this.modelValue, // 当前选中日期
|
|
75
|
+
baseDate: dayjs().format('YYYY-MM-DD'), // 基准日期,默认今天,用于计算显示范围
|
|
76
|
+
config: {
|
|
77
|
+
// 基础配置
|
|
78
|
+
range: null, // 显示的天数范围,默认7天
|
|
79
|
+
dateFormat: null, // 日期显示格式
|
|
80
|
+
weekFormat: null, // 星期显示格式
|
|
81
|
+
// 按钮文字配置
|
|
82
|
+
prevWeekText: null,
|
|
83
|
+
nextWeekText: null,
|
|
84
|
+
prevDayText: null,
|
|
85
|
+
nextDayText: null,
|
|
86
|
+
// 周末高亮配置
|
|
87
|
+
highlightWeekend: true
|
|
88
|
+
},
|
|
89
|
+
disabledDates: [] // 禁用日期列表
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
computed: {
|
|
93
|
+
// 计算需要显示的日期范围
|
|
94
|
+
displayDates () {
|
|
95
|
+
const dates = []
|
|
96
|
+
const range = this.config?.range || 7 // 显示天数,默认7天
|
|
97
|
+
const halfRange = Math.floor(range / 2)
|
|
98
|
+
let currentDate = dayjs(this.baseDate).subtract(halfRange, 'day')
|
|
99
|
+
for (let i = 0; i < range; i++) {
|
|
100
|
+
dates.push(currentDate.format('YYYY-MM-DD'))
|
|
101
|
+
currentDate = currentDate.add(1, 'day')
|
|
102
|
+
}
|
|
103
|
+
return dates
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
watch: {
|
|
108
|
+
// 监听外部传入的选中日期变化
|
|
109
|
+
modelValue: {
|
|
110
|
+
handler (newVal) {
|
|
111
|
+
this.currentDate = newVal
|
|
112
|
+
if (newVal) {
|
|
113
|
+
this.baseDate = newVal
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
immediate: true
|
|
117
|
+
},
|
|
118
|
+
// 监听配置参数名称变化
|
|
119
|
+
queryParamsName: {
|
|
120
|
+
handler (newValue) {
|
|
121
|
+
this.getData(newValue)
|
|
122
|
+
},
|
|
123
|
+
immediate: true
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
|
|
127
|
+
created () {
|
|
128
|
+
// 组件创建时获取配置
|
|
129
|
+
this.getData(this.queryParamsName)
|
|
130
|
+
},
|
|
131
|
+
|
|
132
|
+
methods: {
|
|
133
|
+
// 获取时间轴配置数据
|
|
134
|
+
async getData (data) {
|
|
135
|
+
getConfigByName(data, 'af-his', res => {
|
|
136
|
+
// var res = {
|
|
137
|
+
// // 基础配置
|
|
138
|
+
// range: 7, // 显示的天数范围,默认7天
|
|
139
|
+
// defaultValue: '', // 默认选中日期,不设置则默认今天
|
|
140
|
+
// // 日期格式化
|
|
141
|
+
// dateFormat: 'MM/DD', // 日期显示格式,如 03/21
|
|
142
|
+
// weekFormat: '周dd', // 星期显示格式,如 周四
|
|
143
|
+
// // 按钮文字配置
|
|
144
|
+
// prevWeekText: '前一周', // 上一周按钮文字
|
|
145
|
+
// nextWeekText: '后一周', // 下一周按钮文字
|
|
146
|
+
// prevDayText: '前一天', // 前一天按钮文字
|
|
147
|
+
// nextDayText: '后一天', // 后一天按钮文字
|
|
148
|
+
// // 日期范围限制
|
|
149
|
+
// minDate: '2024-01-01', // 最小可选日期
|
|
150
|
+
// maxDate: '2025-12-31', // 最大可选日期
|
|
151
|
+
// // 周末高亮配置
|
|
152
|
+
// highlightWeekend: true, // 是否高亮周末
|
|
153
|
+
// // 业务逻辑配置
|
|
154
|
+
// logicName: 'getDisabledDates', // 获取禁用日期的逻辑名称
|
|
155
|
+
// parameter: {
|
|
156
|
+
// userId: 'xxx',
|
|
157
|
+
// type: 'workday'
|
|
158
|
+
// }
|
|
159
|
+
// }
|
|
160
|
+
this.config = res
|
|
161
|
+
if (res.defaultValue) {
|
|
162
|
+
// 如果有默认值,则设置当前选中日期和基准日期
|
|
163
|
+
this.currentDate = res.defaultValue
|
|
164
|
+
this.baseDate = res.defaultValue
|
|
165
|
+
this.$emit('update:modelValue', res.defaultValue)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// 执行配置中指定的业务逻辑
|
|
169
|
+
if (res.logicName) {
|
|
170
|
+
runLogic(res.logicName, res.parameter, 'af-his').then(result => {
|
|
171
|
+
// var result = {
|
|
172
|
+
// disabledDates: [ // 禁用的日期列表
|
|
173
|
+
// '2025-03-23', // 周六
|
|
174
|
+
// '2025-03-24', // 周日
|
|
175
|
+
// '2025-03-25' // 其他需要禁用的日期
|
|
176
|
+
// ],
|
|
177
|
+
// currentDate: '' // 指定当前选中日期(可选)
|
|
178
|
+
// }
|
|
179
|
+
if (result) {
|
|
180
|
+
this.handleLogicResult(result)
|
|
181
|
+
}
|
|
182
|
+
})
|
|
183
|
+
}
|
|
184
|
+
})
|
|
185
|
+
},
|
|
186
|
+
|
|
187
|
+
// 处理业务逻辑返回结果
|
|
188
|
+
handleLogicResult (result) {
|
|
189
|
+
if (result.disabledDates) {
|
|
190
|
+
this.disabledDates = result.disabledDates
|
|
191
|
+
}
|
|
192
|
+
if (result.currentDate) {
|
|
193
|
+
this.currentDate = result.currentDate
|
|
194
|
+
this.baseDate = result.currentDate
|
|
195
|
+
this.$emit('update:modelValue', result.currentDate)
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
|
|
199
|
+
// 格式化日期显示
|
|
200
|
+
formatDate (date) {
|
|
201
|
+
const format = this.config?.dateFormat || 'MM/DD'
|
|
202
|
+
return dayjs(date).format(format)
|
|
203
|
+
},
|
|
204
|
+
|
|
205
|
+
// 获取星期显示
|
|
206
|
+
getWeekDay (date) {
|
|
207
|
+
const format = this.config?.weekFormat || '周dd'
|
|
208
|
+
return dayjs(date).format(format)
|
|
209
|
+
},
|
|
210
|
+
|
|
211
|
+
// 判断是否为周末
|
|
212
|
+
isWeekend (date) {
|
|
213
|
+
if (!this.config?.highlightWeekend) return false
|
|
214
|
+
const day = dayjs(date).day()
|
|
215
|
+
return day === 0 || day === 6
|
|
216
|
+
},
|
|
217
|
+
|
|
218
|
+
// 判断日期是否禁用
|
|
219
|
+
isDisabled (date) {
|
|
220
|
+
if (this.config?.minDate && dayjs(date).isBefore(this.config.minDate)) {
|
|
221
|
+
return true
|
|
222
|
+
}
|
|
223
|
+
if (this.config?.maxDate && dayjs(date).isAfter(this.config.maxDate)) {
|
|
224
|
+
return true
|
|
225
|
+
}
|
|
226
|
+
return this.disabledDates.includes(date)
|
|
227
|
+
},
|
|
228
|
+
|
|
229
|
+
// 判断是否为当前选中日期
|
|
230
|
+
isCurrentDate (date) {
|
|
231
|
+
if (!this.currentDate) return false
|
|
232
|
+
return dayjs(date).format('YYYY-MM-DD') === dayjs(this.currentDate).format('YYYY-MM-DD')
|
|
233
|
+
},
|
|
234
|
+
|
|
235
|
+
// 选择日期
|
|
236
|
+
selectDate (date) {
|
|
237
|
+
if (this.isDisabled(date)) return
|
|
238
|
+
this.currentDate = date
|
|
239
|
+
this.$emit('update:modelValue', date)
|
|
240
|
+
this.$emit('change', date)
|
|
241
|
+
},
|
|
242
|
+
|
|
243
|
+
// 前一天
|
|
244
|
+
goToPrevDay () {
|
|
245
|
+
const newDate = dayjs(this.baseDate).subtract(1, 'day')
|
|
246
|
+
if (this.config?.minDate && newDate.isBefore(this.config.minDate)) {
|
|
247
|
+
return
|
|
248
|
+
}
|
|
249
|
+
this.baseDate = newDate.format('YYYY-MM-DD')
|
|
250
|
+
this.$emit('prev-day', this.baseDate)
|
|
251
|
+
},
|
|
252
|
+
|
|
253
|
+
// 后一天
|
|
254
|
+
goToNextDay () {
|
|
255
|
+
const newDate = dayjs(this.baseDate).add(1, 'day')
|
|
256
|
+
if (this.config?.maxDate && newDate.isAfter(this.config.maxDate)) {
|
|
257
|
+
return
|
|
258
|
+
}
|
|
259
|
+
this.baseDate = newDate.format('YYYY-MM-DD')
|
|
260
|
+
this.$emit('next-day', this.baseDate)
|
|
261
|
+
},
|
|
262
|
+
|
|
263
|
+
// 前一周
|
|
264
|
+
goToPrevWeek () {
|
|
265
|
+
const newDate = dayjs(this.baseDate).subtract(7, 'day')
|
|
266
|
+
if (this.config?.minDate && newDate.isBefore(this.config.minDate)) {
|
|
267
|
+
return
|
|
268
|
+
}
|
|
269
|
+
this.baseDate = newDate.format('YYYY-MM-DD')
|
|
270
|
+
this.$emit('prev-week', this.baseDate)
|
|
271
|
+
},
|
|
272
|
+
|
|
273
|
+
// 后一周
|
|
274
|
+
goToNextWeek () {
|
|
275
|
+
const newDate = dayjs(this.baseDate).add(7, 'day')
|
|
276
|
+
if (this.config?.maxDate && newDate.isAfter(this.config.maxDate)) {
|
|
277
|
+
return
|
|
278
|
+
}
|
|
279
|
+
this.baseDate = newDate.format('YYYY-MM-DD')
|
|
280
|
+
this.$emit('next-week', this.baseDate)
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
})
|
|
284
|
+
</script>
|
|
285
|
+
|
|
286
|
+
<style scoped>
|
|
287
|
+
.x-timeline {
|
|
288
|
+
width: 100%;
|
|
289
|
+
border: 1px solid #f0f0f0;
|
|
290
|
+
border-radius: 2px;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.x-timeline-nav {
|
|
294
|
+
display: flex;
|
|
295
|
+
align-items: center;
|
|
296
|
+
padding: 16px;
|
|
297
|
+
border-bottom: 1px solid #f0f0f0;
|
|
298
|
+
width: 100%;
|
|
299
|
+
justify-content: space-between;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.timeline-dates {
|
|
303
|
+
display: flex;
|
|
304
|
+
flex: 1;
|
|
305
|
+
justify-content: space-around;
|
|
306
|
+
align-items: center;
|
|
307
|
+
margin: 0 16px;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.date-item {
|
|
311
|
+
padding: 8px 12px;
|
|
312
|
+
text-align: center;
|
|
313
|
+
cursor: pointer;
|
|
314
|
+
border-radius: 2px;
|
|
315
|
+
flex: 1;
|
|
316
|
+
margin: 0 8px;
|
|
317
|
+
transition: all 0.3s;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.date-item:hover:not(.ant-btn-disabled) {
|
|
321
|
+
background: #fafafa;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.date-item.ant-btn-primary {
|
|
325
|
+
background: #1890ff;
|
|
326
|
+
color: #fff;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
.date-item.ant-btn-primary .weekday,
|
|
330
|
+
.date-item.ant-btn-primary .date {
|
|
331
|
+
color: #fff;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.date-item.date-weekend:not(.ant-btn-disabled):not(.ant-btn-primary) {
|
|
335
|
+
color: #ff4d4f;
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
.date-item.ant-btn-disabled {
|
|
339
|
+
color: rgba(0, 0, 0, 0.25);
|
|
340
|
+
background: #f5f5f5;
|
|
341
|
+
cursor: not-allowed;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
.weekday {
|
|
345
|
+
font-size: 12px;
|
|
346
|
+
margin-bottom: 8px;
|
|
347
|
+
color: rgba(0, 0, 0, 0.45);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.date {
|
|
351
|
+
font-size: 14px;
|
|
352
|
+
color: rgba(0, 0, 0, 0.85);
|
|
353
|
+
}
|
|
354
|
+
</style>
|
|
@@ -36,10 +36,6 @@ export default {
|
|
|
36
36
|
})
|
|
37
37
|
},
|
|
38
38
|
handleClick (index) {
|
|
39
|
-
console.log('xlist按钮被点击了!')
|
|
40
|
-
console.warn(this.getComponentByName)
|
|
41
|
-
const xCollapseComponent = this.getComponentByName('XCollapse')
|
|
42
|
-
console.warn('xCollapseComponent', xCollapseComponent)
|
|
43
39
|
this.$emit('listClick', this.data[index])
|
|
44
40
|
},
|
|
45
41
|
refreshList () {
|