lanmu.vue 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <template>
  2. <div id="columnDetail">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="24" class="top"> </el-col>
  6. <el-col :span="24" class="messgae">
  7. <el-form ref="form" :model="form" label-width="80px">
  8. <el-form-item label="栏目名称">
  9. <el-input v-model="form.name"></el-input>
  10. </el-form-item>
  11. <el-form-item>
  12. <el-button type="primary" @click="onSubmit()">提交</el-button>
  13. </el-form-item>
  14. </el-form>
  15. </el-col>
  16. </el-col>
  17. </el-row>
  18. </div>
  19. </template>
  20. <script>
  21. export default {
  22. name: 'columnDetail',
  23. props: {
  24. form: null,
  25. },
  26. components: {},
  27. data: () => ({}),
  28. created() {},
  29. computed: {},
  30. methods: {
  31. onSubmit() {
  32. this.$emit('submitDate', { data: this.form });
  33. },
  34. returnBtn() {},
  35. },
  36. };
  37. </script>
  38. <style lang="less" scoped>
  39. .top {
  40. padding: 15px 0;
  41. }
  42. .top .topTitle {
  43. text-align: left;
  44. }
  45. .top .topBtn {
  46. text-align: right;
  47. padding: 0 5px;
  48. }
  49. </style>