1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <el-row class="form-group">
- <el-col :span="3" style="min-height:50px;padding-top:10px;">
- <label style="margin-left:10px;vertical-align: middle;" class="control-label">{{label ? label : 'start-end-time'}}</label>
- </el-col>
- <el-col :span="14">
- <el-time-select
- :placeholder="params.start.placeholder ? params.start.placeholder : 'start time ...'"
- :name="params.start.name"
- v-model="value_start"
- :editable="params.start.editable ? 'false' : 'true'"
- :clearable="clearable"
- :picker-options="params.start.options">
- </el-time-select>
- <el-time-select
- :placeholder="params.end.placeholder ? params.end.placeholder : 'end time ...'"
- :name="params.end.name"
- v-model="value_end"
- :editable="params.end.editable ? 'false' : 'true'"
- :clearable="clearable"
- :picker-options="params.end.options">
- </el-time-select>
- </el-col>
- <el-col :span="7">
- <div class="classJs">
- <div v-if="tips">
- <span class="red">*</span> {{tips}}
- </div>
- </div>
- </el-col>
- </el-row>
- </template>
- <script>
- export default {
- props: ['label' , 'params', 'tips'],
- data() {
- return {
- value_start : this.params.start.value,
- value_end: this.params.end.value,
- clearable: false
- };
- },
- mounted() {},
- methods: {}
- }
- </script>
- <style scoped>
- .classJs {
- margin-left: 10px;
- vertical-align: middle;
- height:42px;
- line-height:42px;
- }
- .red{
- color: red;
- }
- </style>
|