Commit a6036426 authored by tangfh's avatar tangfh

+

parent 71c4c6d6
## 1.0.1(2024-05-28)
1.0.1
## 1.0.0(2024-05-28) ## 1.0.0(2024-05-28)
1.0.0 1.0.0
...@@ -6,13 +6,13 @@ ...@@ -6,13 +6,13 @@
<view class="f-multi-text-v-left flex-row row-center-v"> <view class="f-multi-text-v-left flex-row row-center-v">
<text class="f-multi-text-v-left-t-left">{{ ui.prefix }}</text> <text class="f-multi-text-v-left-t-left">{{ ui.prefix }}</text>
<text class="f-multi-text-v-left-t-left2" v-if="ui.isShowFlag">*</text> <text class="f-multi-text-v-left-t-left2" v-if="ui.isShowFlag">*</text>
<image class="f-multi-text-v-left-i-icon" @click="onPrefixIcon1Click" <image class="f-multi-text-v-left-i-icon" @click="onPrefixIcon1Click" :src="ui.prefixIcon1"
:src="ui.prefixIcon1" v-if="ui.prefixIcon1Show"></image> v-if="ui.prefixIcon1Show"></image>
</view> </view>
<view class="f-multi-text-v-right flex-row row-center-v"> <view class="f-multi-text-v-right flex-row row-center-v">
<input class="f-multi-text-v-right-c-text" placeholder-class="placeholder-class" <input class="f-multi-text-v-right-c-text" placeholder-class="placeholder-class" :placeholder="ui.hint"
:placeholder="ui.hint" :type="ui.inputType" :maxlength="ui.maxlength" :disabled="ui.inputDisable" :type="ui.inputType" :maxlength="ui.maxlength" :disabled="ui.inputDisable" :value="ui.value"
:value="ui.value" @input="onInputChanage" :confirm-type="ui.confirmType" /> @input="onInputChanage" :confirm-type="ui.confirmType" />
</view> </view>
<image class="i-right" :src="ui.iconRight" v-if="ui.isShowIconRight"></image> <image class="i-right" :src="ui.iconRight" v-if="ui.isShowIconRight"></image>
</view> </view>
...@@ -35,12 +35,17 @@ ...@@ -35,12 +35,17 @@
default: constant.CONST.cMultiTextUI default: constant.CONST.cMultiTextUI
} }
}, },
created() {}, created() {
},
methods: { methods: {
onInputChanage(event) { onInputChanage(event) {
let value = event.detail.value; let value = event.detail.value;
this.inputValue = value; this.inputValue = value;
this.$emit("input", value) this.$emit("input", {
value: value,
ui: this.ui
})
}, },
getInputValue() { getInputValue() {
return this.inputValue; return this.inputValue;
...@@ -60,7 +65,7 @@ ...@@ -60,7 +65,7 @@
background-color: #f2f4f5; background-color: #f2f4f5;
border-radius: 16rpx; border-radius: 16rpx;
} }
.f-multi-text { .f-multi-text {
width: auto; width: auto;
height: 96rpx; height: 96rpx;
...@@ -71,54 +76,54 @@ ...@@ -71,54 +76,54 @@
margin-top: 24rpx; margin-top: 24rpx;
border-radius: 16rpx; border-radius: 16rpx;
} }
.f-multi-text-v-middle { .f-multi-text-v-middle {
height: 100%; height: 100%;
margin-left: 32rpx; margin-left: 32rpx;
margin-right: 32rpx; margin-right: 32rpx;
} }
.f-multi-text-v-left { .f-multi-text-v-left {
height: 100%; height: 100%;
} }
.f-multi-text-v-left-t-left { .f-multi-text-v-left-t-left {
flex-shrink: 0; flex-shrink: 0;
margin-right: 16rpx; margin-right: 16rpx;
} }
.f-multi-text-v-left-t-left2 { .f-multi-text-v-left-t-left2 {
color: #F24C26; color: #F24C26;
padding-top: 10rpx; padding-top: 10rpx;
} }
.f-multi-text-v-left-i-icon { .f-multi-text-v-left-i-icon {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin-right: 16rpx; margin-right: 16rpx;
} }
.f-multi-text-v-right { .f-multi-text-v-right {
height: 100%; height: 100%;
flex-grow: 1; flex-grow: 1;
justify-content: flex-end; justify-content: flex-end;
} }
.f-multi-text-v-right-c-text { .f-multi-text-v-right-c-text {
line-height: 100%; line-height: 100%;
width: 100%; width: 100%;
font-size: $uni-font-size-base; font-size: $uni-font-size-base;
text-align: right; text-align: right;
} }
.f-multi-text-line-h { .f-multi-text-line-h {
margin-left: 32rpx; margin-left: 32rpx;
width: 100%; width: 100%;
height: 1rpx; height: 1rpx;
background-color: #EBEBEB; background-color: #EBEBEB;
} }
.i-right { .i-right {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
......
{ {
"id": "f-multi-text-01", "id": "f-multi-text-01",
"displayName": "f-multi-text-01", "displayName": "f-multi-text-01",
"version": "1.0.0", "version": "1.0.1",
"description": "f-multi-text-01", "description": "f-multi-text-01",
"keywords": [ "keywords": [
"f-multi-text-01" "f-multi-text-01"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment