Skip to content

Commit

Permalink
chore: Updated dependencies (#23)
Browse files Browse the repository at this point in the history
* 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 <dustin@edgemarketingdesign.com>
Co-authored-by: tolking <qw13131wang@gmail.com>
  • Loading branch information
3 people authored Sep 2, 2023
1 parent 89b381d commit fa69d3c
Show file tree
Hide file tree
Showing 4 changed files with 2,039 additions and 1,631 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@
"vant": ">=4"
},
"dependencies": {
"@nuxt/kit": "^3.4.2",
"@nuxt/kit": "^3.7.0",
"magic-string": "^0.29.0",
"unplugin": "^1.3.1"
},
"devDependencies": {
"@nuxt/module-builder": "^0.2.1",
"@nuxt/schema": "^3.4.2",
"@nuxt/module-builder": "^0.5.0",
"@nuxt/schema": "^3.7.0",
"@nuxtjs/eslint-config-typescript": "^12.0.0",
"@types/node": "^18.15.13",
"eslint": "^8.39.0",
"nuxt": "^3.4.2",
"typescript": "^4.9.5",
"vant": "^4.2.0",
"vue": "^3.2.47"
"eslint": "^8.46.0",
"nuxt": "^3.7.0",
"typescript": "^5.1.6",
"vant": "^4.6.6",
"vue": "^3.3.4"
},
"publishConfig": {
"access": "public",
Expand Down
17 changes: 17 additions & 0 deletions playground/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
const showCalendar = ref(false)
const showPopup = ref(false)
const showCascader = ref(false)
const showFloatingPanel = ref(false)
const showKeyboard = ref(false)
const input = ref('')
const date = ref('')
Expand Down Expand Up @@ -29,6 +30,9 @@ const imageList = [
const openPopup = () => {
showPopup.value = true
}
const openFloatingPanel = () => {
showFloatingPanel.value = true
}
const formatDate = (date: Date) => `${date.getMonth() + 1}/${date.getDate()}`
const onConfirm = (value: Date) => {
showCalendar.value = false
Expand Down Expand Up @@ -80,6 +84,9 @@ onMounted(() => {
<LazyVanButton type="success" @click="openPopup">
lazy button
</LazyVanButton>
<LazyVanButton type="success" @click="openFloatingPanel">
Open Floating Panel
</LazyVanButton>
</van-col>
<van-col span="4">
<van-icon name="chat-o" />
Expand Down Expand Up @@ -162,6 +169,16 @@ onMounted(() => {
@close="showCascader = false"
/>
</van-popup>
<van-floating-panel
v-model:show="showFloatingPanel"
:content-draggable="false"
:lock-scroll="true"
:anchors="[240, 480, 680]"
>
<van-cell-group>
<van-cell v-for=" (n, i) in 150" :key="i" :title="n" :value="n" />
</van-cell-group>
</van-floating-panel>

<van-back-top bottom="70" />
<van-sticky position="bottom">
Expand Down
Loading

0 comments on commit fa69d3c

Please sign in to comment.