开始做登录

This commit is contained in:
2024-03-15 17:20:54 +08:00
parent b9335b4ff8
commit 633cff358d
1423 changed files with 35817 additions and 19 deletions

1
node_modules/@vant/weapp/dist/sidebar/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export {};

34
node_modules/@vant/weapp/dist/sidebar/index.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
relation: useChildren('sidebar-item', function () {
this.setActive(this.data.activeKey);
}),
props: {
activeKey: {
type: Number,
value: 0,
observer: 'setActive',
},
},
beforeCreate() {
this.currentActive = -1;
},
methods: {
setActive(activeKey) {
const { children, currentActive } = this;
if (!children.length) {
return Promise.resolve();
}
this.currentActive = activeKey;
const stack = [];
if (currentActive !== activeKey && children[currentActive]) {
stack.push(children[currentActive].setActive(false));
}
if (children[activeKey]) {
stack.push(children[activeKey].setActive(true));
}
return Promise.all(stack);
},
},
});

3
node_modules/@vant/weapp/dist/sidebar/index.json generated vendored Normal file
View File

@@ -0,0 +1,3 @@
{
"component": true
}

3
node_modules/@vant/weapp/dist/sidebar/index.wxml generated vendored Normal file
View File

@@ -0,0 +1,3 @@
<view class="van-sidebar custom-class">
<slot />
</view>

1
node_modules/@vant/weapp/dist/sidebar/index.wxss generated vendored Normal file
View File

@@ -0,0 +1 @@
@import '../common/index.wxss';.van-sidebar{width:var(--sidebar-width,80px)}