|
@@ -88,6 +88,16 @@ const types = computed(() => {
|
|
|
const items = computed(() => getItems(types.value));
|
|
|
const current = computed(() => getCurrentItem(props.value));
|
|
|
|
|
|
+if (props.count && props.all) {
|
|
|
+ watchEffect(() => {
|
|
|
+ if (
|
|
|
+ current.value.length === 0 ||
|
|
|
+ current.value[current.value.length - 1].count === 0
|
|
|
+ ) {
|
|
|
+ emit("update:value", allType.id);
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
const handleClick = (info: any) => {
|
|
|
emit("update:value", info.key);
|
|
|
};
|