第一次提交
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<view class="uni-countdown">
|
||||
<text v-if="showDay" :style="timeStyle" class="uni-countdown__number">{{ d }}</text>
|
||||
<text v-if="showDay" :style="splitorStyle" class="uni-countdown__splitor">{{dayText}}</text>
|
||||
<text :style="timeStyle" class="uni-countdown__number">{{ h }}</text>
|
||||
<text :style="splitorStyle" class="uni-countdown__splitor">{{ showColon ? ':' : hourText }}</text>
|
||||
<text :style="timeStyle" class="uni-countdown__number">{{ i }}</text>
|
||||
<text :style="splitorStyle" class="uni-countdown__splitor">{{ showColon ? ':' : minuteText }}</text>
|
||||
<text :style="timeStyle" class="uni-countdown__number">{{ s }}</text>
|
||||
<text v-if="!showColon" :style="splitorStyle" class="uni-countdown__splitor">{{secondText}}</text>
|
||||
<text v-if="showHour" :style="timeStyle" class="uni-countdown__number">{{ h }}</text>
|
||||
<text v-if="showHour" :style="splitorStyle" class="uni-countdown__splitor">{{ showColon ? ':' : hourText }}</text>
|
||||
<text v-if="showMinute" :style="timeStyle" class="uni-countdown__number">{{ i }}</text>
|
||||
<text v-if="showMinute" :style="splitorStyle" class="uni-countdown__splitor">{{ showColon ? ':' : minuteText }}</text>
|
||||
<text v-if="showSecond" :style="timeStyle" class="uni-countdown__number">{{ s }}</text>
|
||||
<text v-if="!showColon" :style="splitorStyle" class="uni-countdown__splitor">{{secondText}}</text>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
@@ -39,6 +39,18 @@
|
||||
name: 'UniCountdown',
|
||||
emits: ['timeup'],
|
||||
props: {
|
||||
showSecond: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showMinute: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showHour: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showDay: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<!-- <view v-if="candidate.length==0"> {{letfText=='企业'?'个人':'企业'}}</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<uni-icons v-if="prefixIcon" class="content-clear-icon" :type="prefixIcon" color="#c0c4cc" @click="onClickIcon('prefix')"></uni-icons>
|
||||
<uni-icons v-if="prefixIcon" class="content-clear-icon" :size="prefixIconSize" :type="prefixIcon" color="#c0c4cc" @click="onClickIcon('prefix')"></uni-icons>
|
||||
<textarea v-if="type === 'textarea'" class="uni-easyinput__content-textarea" :class="{'input-padding':inputBorder}"
|
||||
:name="name" :value="val" :placeholder="placeholder" :placeholderStyle="placeholderStyle" :disabled="disabled" placeholder-class="uni-easyinput__placeholder-class"
|
||||
:maxlength="inputMaxlength" :focus="focused" :autoHeight="autoHeight" @input="onInput" @blur="onBlur" @focus="onFocus"
|
||||
@@ -51,6 +51,7 @@
|
||||
* @property {String} value 输入内容
|
||||
* @property {String } type 输入框的类型(默认text) password/text/textarea/..
|
||||
* @value text 文本输入键盘
|
||||
* @value prefixIconSize 图标大小
|
||||
* @value textarea 多行文本输入键盘
|
||||
* @value password 密码输入键盘
|
||||
* @value number 数字输入键盘,注意iOS上app-vue弹出的数字键盘并非9宫格方式
|
||||
@@ -94,6 +95,10 @@
|
||||
event:'update:modelValue'
|
||||
},
|
||||
props: {
|
||||
prefixIconSize:{
|
||||
type:String,
|
||||
default:''
|
||||
},
|
||||
name: String,
|
||||
value: [Number, String],
|
||||
letfText:{
|
||||
|
||||
Reference in New Issue
Block a user