修改本地请求地址
This commit is contained in:
1
node_modules/@vant/weapp/dist/sidebar/index.d.ts
generated
vendored
1
node_modules/@vant/weapp/dist/sidebar/index.d.ts
generated
vendored
@@ -1 +0,0 @@
|
||||
export {};
|
34
node_modules/@vant/weapp/dist/sidebar/index.js
generated
vendored
34
node_modules/@vant/weapp/dist/sidebar/index.js
generated
vendored
@@ -1,34 +0,0 @@
|
||||
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
3
node_modules/@vant/weapp/dist/sidebar/index.json
generated
vendored
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
3
node_modules/@vant/weapp/dist/sidebar/index.wxml
generated
vendored
3
node_modules/@vant/weapp/dist/sidebar/index.wxml
generated
vendored
@@ -1,3 +0,0 @@
|
||||
<view class="van-sidebar custom-class">
|
||||
<slot />
|
||||
</view>
|
1
node_modules/@vant/weapp/dist/sidebar/index.wxss
generated
vendored
1
node_modules/@vant/weapp/dist/sidebar/index.wxss
generated
vendored
@@ -1 +0,0 @@
|
||||
@import '../common/index.wxss';.van-sidebar{width:var(--sidebar-width,80px)}
|
Reference in New Issue
Block a user