Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
temple_material_request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-07-23 16:41:22 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
497aa8886ab487f2a1544a0c71a23c45f75106fc
497aa888
1 parent
91ce1d0b
新增选择物资组件
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
src/components/chooseMaterial/index.vue
src/components/chooseMaterial/index.vue
0 → 100644
View file @
497aa88
<!--
* @Date: 2024-07-23 16:24:08
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-23 16:33:39
* @FilePath: /temple_material_request/src/components/chooseMaterial/index.vue
* @Description: 选择物资组件
-->
<template>
<div class="choose-material-page">
<van-popup
v-model:show="showBottom"
position="bottom"
closeable
@close="onClose"
:style="{ height: '100%' }"
></van-popup>
</div>
</template>
<script setup>
import { ref } from 'vue'
import { useRoute, useRouter } from 'vue-router'
import { Cookies, $, _, axios, storeToRefs, mainStore, Toast, useTitle } from '@/utils/generatePackage.js'
//import { } from '@/utils/generateModules.js'
//import { } from '@/utils/generateIcons.js'
//import { } from '@/composables'
const $route = useRoute();
const $router = useRouter();
useTitle($route.meta.title);
const props = defineProps({
show: Boolean,
});
const emit = defineEmits(['close']);
const showBottom = ref(false);
onMounted(() => {
});
// 监听字段变化
watch(
() => props.show,
(v) => {
showBottom.value = v;
}
);
const onClose = () => {
emit('close');
}
</script>
<style lang="less" scoped>
.choose-material-page {}
</style>
Please
register
or
login
to post a comment