修改本地请求地址

This commit is contained in:
2024-03-21 10:24:06 +08:00
parent c102434221
commit e07641732f
909 changed files with 2 additions and 22854 deletions

View File

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

View File

@@ -1,46 +0,0 @@
import { VantComponent } from '../common/component';
import { useChildren } from '../common/relation';
VantComponent({
relation: useChildren('collapse-item'),
props: {
value: {
type: null,
observer: 'updateExpanded',
},
accordion: {
type: Boolean,
observer: 'updateExpanded',
},
border: {
type: Boolean,
value: true,
},
},
methods: {
updateExpanded() {
this.children.forEach((child) => {
child.updateExpanded();
});
},
switch(name, expanded) {
const { accordion, value } = this.data;
const changeItem = name;
if (!accordion) {
name = expanded
? (value || []).concat(name)
: (value || []).filter((activeName) => activeName !== name);
}
else {
name = expanded ? name : '';
}
if (expanded) {
this.$emit('open', changeItem);
}
else {
this.$emit('close', changeItem);
}
this.$emit('change', name);
this.$emit('input', name);
},
},
});

View File

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

View File

@@ -1,3 +0,0 @@
<view class="custom-class van-collapse {{ border ? 'van-hairline--top-bottom' : '' }}">
<slot />
</view>

View File

@@ -1 +0,0 @@
@import '../common/index.wxss';