换ubuntu
This commit is contained in:
2
utils/dist/index-anchor/index.d.ts
vendored
2
utils/dist/index-anchor/index.d.ts
vendored
@@ -1 +1 @@
|
||||
export {};
|
||||
export {};
|
||||
|
||||
44
utils/dist/index-anchor/index.js
vendored
44
utils/dist/index-anchor/index.js
vendored
@@ -1,22 +1,22 @@
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
relation: {
|
||||
name: 'index-bar',
|
||||
type: 'ancestor',
|
||||
linked(target) {
|
||||
this.parent = target;
|
||||
},
|
||||
unlinked() {
|
||||
this.parent = null;
|
||||
}
|
||||
},
|
||||
props: {
|
||||
useSlot: Boolean,
|
||||
index: null
|
||||
},
|
||||
data: {
|
||||
active: false,
|
||||
wrapperStyle: '',
|
||||
anchorStyle: ''
|
||||
}
|
||||
});
|
||||
import { VantComponent } from '../common/component';
|
||||
VantComponent({
|
||||
relation: {
|
||||
name: 'index-bar',
|
||||
type: 'ancestor',
|
||||
linked(target) {
|
||||
this.parent = target;
|
||||
},
|
||||
unlinked() {
|
||||
this.parent = null;
|
||||
}
|
||||
},
|
||||
props: {
|
||||
useSlot: Boolean,
|
||||
index: null
|
||||
},
|
||||
data: {
|
||||
active: false,
|
||||
wrapperStyle: '',
|
||||
anchorStyle: ''
|
||||
}
|
||||
});
|
||||
|
||||
6
utils/dist/index-anchor/index.json
vendored
6
utils/dist/index-anchor/index.json
vendored
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
|
||||
28
utils/dist/index-anchor/index.wxml
vendored
28
utils/dist/index-anchor/index.wxml
vendored
@@ -1,14 +1,14 @@
|
||||
<view
|
||||
class="van-index-anchor-wrapper"
|
||||
style="{{ wrapperStyle }}"
|
||||
>
|
||||
<view
|
||||
class="van-index-anchor {{ active ? 'van-index-anchor--active van-hairline--bottom' : '' }}"
|
||||
style="{{ anchorStyle }}"
|
||||
>
|
||||
<slot wx:if="{{ useSlot }}"/>
|
||||
<block wx:else>
|
||||
<text>{{ index }}</text>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="van-index-anchor-wrapper"
|
||||
style="{{ wrapperStyle }}"
|
||||
>
|
||||
<view
|
||||
class="van-index-anchor {{ active ? 'van-index-anchor--active van-hairline--bottom' : '' }}"
|
||||
style="{{ anchorStyle }}"
|
||||
>
|
||||
<slot wx:if="{{ useSlot }}"/>
|
||||
<block wx:else>
|
||||
<text>{{ index }}</text>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user