|
@@ -0,0 +1,58 @@
|
|
|
+<template>
|
|
|
+ <div class="divider">
|
|
|
+ <ModuleBase>
|
|
|
+ <template #title>
|
|
|
+ <span>分割线</span>
|
|
|
+ </template>
|
|
|
+ <template #content>
|
|
|
+ <el-divider />
|
|
|
+ </template>
|
|
|
+ </ModuleBase>
|
|
|
+ <ModuleProperty>
|
|
|
+ <template #property>
|
|
|
+ <el-form :label-position="labelPosition" label-width="80px">
|
|
|
+ <el-form-item label="高度">
|
|
|
+ <el-input />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="类型">
|
|
|
+ <el-select>
|
|
|
+ <el-option label="实线" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </template>
|
|
|
+ </ModuleProperty>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import ModuleMixin from '../common/ModuleMixin';
|
|
|
+export default {
|
|
|
+ name: 'Divider',
|
|
|
+ components: {},
|
|
|
+ mixins: [ModuleMixin],
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ labelPosition: 'right',
|
|
|
+ };
|
|
|
+ },
|
|
|
+ methods: {},
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.divider{
|
|
|
+
|
|
|
+ .content {
|
|
|
+ display: flex;
|
|
|
+ justify-content: flex-start;
|
|
|
+ width: 50%;
|
|
|
+ height: 100px;
|
|
|
+ border: 1px solid red;
|
|
|
+
|
|
|
+ .property {
|
|
|
+ width: 200px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|