@tplc/business 0.4.17 → 0.4.18
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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [0.4.18](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.17...v0.4.18) (2025-03-25)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* 新增provinceId ([c3651bf](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/c3651bf906a82f19b3ced7d6d4279d54e6a073c2))
|
|
11
|
+
|
|
5
12
|
### [0.4.17](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.4...v0.4.17) (2025-03-25)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -55,12 +55,12 @@
|
|
|
55
55
|
</view>
|
|
56
56
|
</scroll-view>
|
|
57
57
|
</view>
|
|
58
|
-
<ActionView :disabled="
|
|
58
|
+
<ActionView :disabled="disabled" @cancel="onCancel" @submit="onSubmit" />
|
|
59
59
|
</view>
|
|
60
60
|
</template>
|
|
61
61
|
|
|
62
62
|
<script setup lang="ts">
|
|
63
|
-
import { getCurrentInstance, nextTick, watch, ref } from 'vue'
|
|
63
|
+
import { getCurrentInstance, nextTick, watch, ref, computed, onMounted } from 'vue'
|
|
64
64
|
import { TreeSelectProps } from './type'
|
|
65
65
|
import useSelect from '../../hooks/useSelect'
|
|
66
66
|
import SelectTagView from '../SelectTagView/index.vue'
|
|
@@ -88,6 +88,9 @@ const onOpen = () => {
|
|
|
88
88
|
...props.filterValue,
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
+
const disabled = computed(() => {
|
|
92
|
+
return modelKeys.value?.every((v) => !extraModel.value[v]) && !innerValue.value
|
|
93
|
+
})
|
|
91
94
|
const { onItemClick, options, getChecked } = useSelect(props, {
|
|
92
95
|
model: innerValue,
|
|
93
96
|
extraModel,
|
|
@@ -138,7 +141,13 @@ const onGridScroll = (e) => {
|
|
|
138
141
|
}
|
|
139
142
|
const onCancel = () => {
|
|
140
143
|
innerValue.value = undefined
|
|
141
|
-
extraModel.value =
|
|
144
|
+
extraModel.value = modelKeys.value!.reduce(
|
|
145
|
+
(acc, v) => {
|
|
146
|
+
acc[v] = undefined
|
|
147
|
+
return acc
|
|
148
|
+
},
|
|
149
|
+
{} as Record<string, any>,
|
|
150
|
+
)
|
|
142
151
|
}
|
|
143
152
|
</script>
|
|
144
153
|
<style lang="scss" scoped>
|