mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-24 14:50:36 +03:00
updated confirm text as prop
This commit is contained in:
@@ -41,7 +41,7 @@
|
|||||||
:show="showPopup"></calendar-panel>
|
:show="showPopup"></calendar-panel>
|
||||||
</template>
|
</template>
|
||||||
<div class="datepicker-footer" v-if="confirm">
|
<div class="datepicker-footer" v-if="confirm">
|
||||||
<button type="button" class="datepicker-btn datepicker-btn-confirm" @click="confirmDate">确定</button>
|
<button type="button" class="datepicker-btn datepicker-btn-confirm" @click="confirmDate"> {{ translation.confirm_text}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -107,6 +107,10 @@ export default {
|
|||||||
inputClass: {
|
inputClass: {
|
||||||
type: String,
|
type: String,
|
||||||
default: 'input'
|
default: 'input'
|
||||||
|
},
|
||||||
|
confirm_text: {
|
||||||
|
type: String,
|
||||||
|
default: 'Ok'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
data () {
|
data () {
|
||||||
|
|||||||
Reference in New Issue
Block a user