project init & fix ui

This commit is contained in:
2023-01-06 14:24:11 +08:00
parent abc4f65a8e
commit ac9b479805
866 changed files with 39916 additions and 53 deletions

View File

@@ -0,0 +1,20 @@
<import src="../common/template/badge" />
<wxs src="../common/utils.wxs" module="_" />
<view
class="{{_.cls(classPrefix, [['active', active], ['disabled', disabled]])}} {{prefix}}-class"
bind:tap="handleClick"
aria-role="button"
aria-label="{{ active ? '已选中' + label : label}}"
aria-disabled="{{disabled}}"
>
<block wx:if="{{active}}">
<view class="{{classPrefix}}__line"></view>
<view class="{{classPrefix}}__prefix"></view>
<view class="{{classPrefix}}__suffix"></view>
</block>
<block wx:if="{{badgeProps}}">
<template is="badge" data="{{ ...badgeProps, content: label }}" />
</block>
<block wx:else>{{label}}</block>
</view>