yh-mobile-components 1.4.9 → 1.4.11
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/info/yhmList.vue +8 -1
- package/package.json +1 -1
package/info/yhmList.vue
CHANGED
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
<script setup lang="ts">
|
|
80
80
|
import type { ListConfig, ParamConfig } from "../types";
|
|
81
81
|
import type { ListInstance } from "vant";
|
|
82
|
-
import { ref, reactive, computed, watch, onMounted, onActivated } from "vue";
|
|
82
|
+
import { ref, reactive, computed, watch, onMounted, onActivated, nextTick } from "vue";
|
|
83
83
|
|
|
84
84
|
const props = withDefaults(
|
|
85
85
|
defineProps<{
|
|
@@ -115,6 +115,12 @@ const props = withDefaults(
|
|
|
115
115
|
|
|
116
116
|
const scrollContent = ref<ListInstance>();
|
|
117
117
|
const keyword = ref("");
|
|
118
|
+
function setKeyowrd(k) {
|
|
119
|
+
keyword.value = k;
|
|
120
|
+
nextTick(() => {
|
|
121
|
+
getList(true);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
118
124
|
const params = reactive({});
|
|
119
125
|
const list = ref<any[]>([]);
|
|
120
126
|
const listLoading = ref(false);
|
|
@@ -236,6 +242,7 @@ onActivated(() => {});
|
|
|
236
242
|
|
|
237
243
|
defineExpose({
|
|
238
244
|
getList,
|
|
245
|
+
setKeyowrd,
|
|
239
246
|
});
|
|
240
247
|
</script>
|
|
241
248
|
<style lang="scss">
|