uib-datepicker-popup 日期不可输入 只可以选择 :readonly="true"

时间:2022-08-22 07:06:31
<div name="{{property.name}}" style="display: flex" ng-switch-when="date">
<input type="text" class="form-control" uib-datepicker-popup="dd/MM/yyyy" ng-model="property.value" is-open="property.opened" datepicker-options="{minMode: 'day'}"
datepicker-mode="'day'" placeholder="{{'COMMON.INPUT_TIP' | translate : property.tip }}" current-text="{{'CALENDAR.TODAY' | translate }}"
clear-text="{{'CALENDAR.CLEAR' | translate }}" close-text="{{'CALENDAR.DONE' | translate }}" readonly="true"/>
<span>
<button type="button" class="btn btn-default" ng-click="open(property)"><i class="glyphicon glyphicon-calendar"></i></button>
</span>
</div>