mirror of
https://github.com/tenrok/vue2-datepicker.git
synced 2026-06-16 13:40:36 +03:00
updated confirm text as prop
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
:show="showPopup"></calendar-panel>
|
||||
</template>
|
||||
<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>
|
||||
@@ -107,6 +107,10 @@ export default {
|
||||
inputClass: {
|
||||
type: String,
|
||||
default: 'input'
|
||||
},
|
||||
confirm_text: {
|
||||
type: String,
|
||||
default: 'Ok'
|
||||
}
|
||||
},
|
||||
data () {
|
||||
|
||||
Reference in New Issue
Block a user