Skip to content

Commit fa69d3c

Browse files
retrogradeMTDustin Stewarttolking
authored
chore: Updated dependencies (#23)
* Updated dependencies for nuxt, vue and vant packages * Reverted mistaken code formatting * Replaced 'as' with a type guard. * reverting module.ts back to origina, removing type declaration * chore: update the type of sourcemap --------- Co-authored-by: Dustin Stewart <[email protected]> Co-authored-by: tolking <[email protected]>
1 parent 89b381d commit fa69d3c

File tree

4 files changed

+2039
-1631
lines changed

4 files changed

+2039
-1631
lines changed

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@
3838
"vant": ">=4"
3939
},
4040
"dependencies": {
41-
"@nuxt/kit": "^3.4.2",
41+
"@nuxt/kit": "^3.7.0",
4242
"magic-string": "^0.29.0",
4343
"unplugin": "^1.3.1"
4444
},
4545
"devDependencies": {
46-
"@nuxt/module-builder": "^0.2.1",
47-
"@nuxt/schema": "^3.4.2",
46+
"@nuxt/module-builder": "^0.5.0",
47+
"@nuxt/schema": "^3.7.0",
4848
"@nuxtjs/eslint-config-typescript": "^12.0.0",
4949
"@types/node": "^18.15.13",
50-
"eslint": "^8.39.0",
51-
"nuxt": "^3.4.2",
52-
"typescript": "^4.9.5",
53-
"vant": "^4.2.0",
54-
"vue": "^3.2.47"
50+
"eslint": "^8.46.0",
51+
"nuxt": "^3.7.0",
52+
"typescript": "^5.1.6",
53+
"vant": "^4.6.6",
54+
"vue": "^3.3.4"
5555
},
5656
"publishConfig": {
5757
"access": "public",

playground/app.vue

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const showCalendar = ref(false)
33
const showPopup = ref(false)
44
const showCascader = ref(false)
5+
const showFloatingPanel = ref(false)
56
const showKeyboard = ref(false)
67
const input = ref('')
78
const date = ref('')
@@ -29,6 +30,9 @@ const imageList = [
2930
const openPopup = () => {
3031
showPopup.value = true
3132
}
33+
const openFloatingPanel = () => {
34+
showFloatingPanel.value = true
35+
}
3236
const formatDate = (date: Date) => `${date.getMonth() + 1}/${date.getDate()}`
3337
const onConfirm = (value: Date) => {
3438
showCalendar.value = false
@@ -80,6 +84,9 @@ onMounted(() => {
8084
<LazyVanButton type="success" @click="openPopup">
8185
lazy button
8286
</LazyVanButton>
87+
<LazyVanButton type="success" @click="openFloatingPanel">
88+
Open Floating Panel
89+
</LazyVanButton>
8390
</van-col>
8491
<van-col span="4">
8592
<van-icon name="chat-o" />
@@ -162,6 +169,16 @@ onMounted(() => {
162169
@close="showCascader = false"
163170
/>
164171
</van-popup>
172+
<van-floating-panel
173+
v-model:show="showFloatingPanel"
174+
:content-draggable="false"
175+
:lock-scroll="true"
176+
:anchors="[240, 480, 680]"
177+
>
178+
<van-cell-group>
179+
<van-cell v-for=" (n, i) in 150" :key="i" :title="n" :value="n" />
180+
</van-cell-group>
181+
</van-floating-panel>
165182

166183
<van-back-top bottom="70" />
167184
<van-sticky position="bottom">

0 commit comments

Comments
 (0)