index.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <template>
  2. <view class="width100 borderBottom1pxf2f2f2" @tap.stop.prevent="show">
  3. <QStemplate :title="title" :titleHide="titleHide" :fontSize="fontSize" :width="width" :titleFlex="titleFlex"
  4. :contentFlex="contentFlex" :titleStyle="titleStyle" :contentStyle="contentStyle" :required="required" :requiredSign="requiredSign"
  5. :layout="layout" :titleLayout="titleLayout" :itemDisabled="itemDisabled" :titleColor="titleColor">
  6. <view class="flex_row width100">
  7. <view class="flex_row_e_c padding_10rpx_15rpx Flex5" :class="nValue.data?'':'fontColorADADAD'">
  8. {{nValue.data||placherhold}}
  9. </view>
  10. <view class="Flex1_5 flex_row_c_c">
  11. <uniIcon type="forward" :size="fontSize" color="#666"></uniIcon>
  12. </view>
  13. </view>
  14. </QStemplate>
  15. <pickerDate
  16. ref="inputsRef"
  17. :height="height"
  18. :fontScale="fontScale"
  19. :buttonSet="buttonSet"
  20. :dataSet="dataSet"
  21. :showReset="showReset"
  22. :title="pickerTitle"
  23. :mode="mode"
  24. :zIndex="zIndex"
  25. :bgColor_title="bgColor_title"
  26. :titleColor="pickerTitleColor"
  27. :autoHide="autoHide"
  28. @confirm="confirm"
  29. @pickerChange="pickerChange"></pickerDate>
  30. </view>
  31. </template>
  32. <script>
  33. import _app from '../../js/app.js';
  34. import QStemplate from '../../template/template.vue';
  35. import QSInputsMixin from '../../js/QSInputsMixin.js';
  36. import QSInputsPickerMixin from '../../js/QSInputsPickerMixin.js';
  37. import pickerDate from '../../template/QS-picker/elements/QS-picker-date.vue';
  38. import uniIcon from '../../uniIcons/uni-icons.vue';
  39. export default {
  40. components: {
  41. QStemplate,
  42. pickerDate,
  43. uniIcon
  44. },
  45. mixins: [QSInputsMixin({
  46. QSInputsType: _app.typeObj.picker_date
  47. }), QSInputsPickerMixin()]
  48. };
  49. </script>
  50. <style scoped>
  51. @import url("../../css/inputs.css");
  52. </style>