@bsgoal/common 2.5.6 → 2.5.7
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/dist/index.mjs +1348 -1345
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/components/bsgoal-base-time-range/index.vue +15 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @Author: canlong.shen
|
|
3
3
|
* @Date: 2023-05-24 14:09:57
|
|
4
4
|
* @LastEditors: canlong.shen
|
|
5
|
-
* @LastEditTime: 2023-05-
|
|
5
|
+
* @LastEditTime: 2023-05-25 11:20:07
|
|
6
6
|
* @FilePath: \common\src\components\bsgoal-base-time-range\index.vue
|
|
7
7
|
* @Description: 时间选择 公共组件
|
|
8
8
|
*
|
|
@@ -96,7 +96,7 @@ watchEffect(() => {
|
|
|
96
96
|
* @return {*}
|
|
97
97
|
*/
|
|
98
98
|
const triggerChange = (range = []) => {
|
|
99
|
-
const { startTime = '', endTime = ''
|
|
99
|
+
const { startTime = '', endTime = '' } = props
|
|
100
100
|
|
|
101
101
|
const { 0: startDate, 1: endDate } = range
|
|
102
102
|
const startDateFormat = dateToString(startDate)
|
|
@@ -109,6 +109,18 @@ const triggerChange = (range = []) => {
|
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* @Author: canlong.shen
|
|
114
|
+
* @description: 触发 面板显隐事件
|
|
115
|
+
* @default:
|
|
116
|
+
* @return {*}
|
|
117
|
+
*/
|
|
118
|
+
const triggerVisibleChange = (visibility = false) => {
|
|
119
|
+
if (!visibility) {
|
|
120
|
+
triggerChange(unref(bindValue))
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
112
124
|
// ---> E 值绑定 <---
|
|
113
125
|
</script>
|
|
114
126
|
<script>
|
|
@@ -128,6 +140,7 @@ export default {
|
|
|
128
140
|
start-placeholder="开始时间"
|
|
129
141
|
end-placeholder="结束时间"
|
|
130
142
|
@change="triggerChange"
|
|
143
|
+
@visible-change="triggerVisibleChange"
|
|
131
144
|
/>
|
|
132
145
|
</el-config-provider>
|
|
133
146
|
</div>
|