currentVideo

This commit is contained in:
2024-06-25 17:07:59 +08:00
parent f8081fbec2
commit 6d0addb743
72 changed files with 11772 additions and 7898 deletions

View File

@@ -45,6 +45,7 @@
:class="[effect === 'dark' ? 'u-alert__text--dark' : `u-alert__text--${type}--light`]"
>{{ description }}</text>
</view>
<slot name="rightSlot" ></slot>
<view
class="u-alert__close"

View File

@@ -7,6 +7,7 @@
:ref="`u-index-anchor-${text}`"
:style="{
height: $u.addUnit(height),
backgroundColor: bgColor
}"
>
@@ -37,6 +38,7 @@
* @property {String | Number} size 列表锚点文字大小单位默认px ( 默认 14 )
* @property {String} bgColor 列表锚点背景颜色 ( 默认 '#dedede' )
* @property {String | Number} height 列表锚点高度单位默认px ( 默认 32 )
* @example <u-index-anchor :text="indexList[index]"></u-index-anchor>
*/
export default {

View File

@@ -13,7 +13,7 @@ export default {
// 索引字符列表,数组形式
indexList: {
type: Array,
default: uni.$u.props.indexList.indexList
default: []
},
// 是否开启锚点自动吸顶
sticky: {
@@ -24,6 +24,11 @@ export default {
customNavHeight: {
type: [String, Number],
default: uni.$u.props.indexList.customNavHeight
},
// 自定义导航栏的高度
uIndexStyle: {
type:Object,
default: {}
}
}
}

View File

@@ -54,10 +54,10 @@
@touchcancel.stop.prevent="touchEnd"
>
<view
class="u-index-list__letter__item"
class="u-index-list__letter__item"
v-for="(item, index) in uIndexList"
:key="index"
:style="{
:style="{...uIndexStyle,
backgroundColor: activeIndex === index ? activeColor : 'transparent'
}"
>
@@ -77,16 +77,17 @@
zIndex: 2
}"
>
<view
<!-- <view
class="u-index-list__indicator"
:class="['u-index-list__indicator--show']"
:style="{
height: $u.addUnit(indicatorHeight),
width: $u.addUnit(indicatorHeight)
width: $u.addUnit(indicatorHeight),
}"
>
<text class="u-index-list__indicator__text">{{ uIndexList[activeIndex] }}</text>
</view>
<text class="u-index-list__indicator__text" >{{ uIndexList[activeIndex] }}</text>
</view> -->
</u-transition>
</view>
</template>
@@ -94,10 +95,10 @@
<script>
const indexList = () => {
const indexList = [];
const charCodeOfA = 'A'.charCodeAt(0);
for (let i = 0; i < 26; i++) {
indexList.push(String.fromCharCode(charCodeOfA + i));
}
// const charCodeOfA = 'A'.charCodeAt(0);
// for (let i = 0; i < 26; i++) {
// indexList.push(String.fromCharCode(charCodeOfA + i));
// }
return indexList;
}
import props from './props.js';
@@ -114,6 +115,7 @@
* @property {Array} indexList 索引字符列表,数组形式
* @property {Boolean} sticky 是否开启锚点自动吸顶 ( 默认 true )
* @property {String | Number} customNavHeight 自定义导航栏的高度 ( 默认 0 )
* @property {object} uIndexStyle 自定义导航栏的高度 ( 默认 0 )
* */
export default {
name: 'u-index-list',