lincl 3 years ago
parent
commit
7220dac769
2 changed files with 12 additions and 3 deletions
  1. 8 2
      src/App.vue
  2. 4 1
      src/components/Form/form.vue

+ 8 - 2
src/App.vue

@ -1,22 +1,28 @@
<template>
  <div id="app">
    <Form></Form>
    <!-- <Form></Form> -->
    <SearchForm/>
  </div>
</template>
<script>
import TablePage from './components/TablePage/example/list1'
import Form from './components/Form/example/index'
import SearchForm from './components/SearchForm/example/list1'
export default {
  name: 'app',
  components:{
    TablePage,
    Form
    Form,
    SearchForm
  },
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  methods:{
    
  }
}
</script>

+ 4 - 1
src/components/Form/form.vue

@ -72,7 +72,10 @@
									</el-checkbox>
								</el-checkbox-group>
							</template>
							<el-input-number v-else-if="item.type=='inputNumber'" v-model="form[item.id]" :controls-position="item.controlsPosition||''" :placeholder="item.placeholder" :min="item.min||''" :max="item.max"></el-input-number>
							<div v-else-if="item.type=='inputNumber'">
								<el-input-number  v-model="form[item.id]" :controls-position="item.controlsPosition||''" v-bind="item.elmentCfg" :placeholder="item.placeholder" :min="item.min||0" :max="item.max"></el-input-number>
								<span v-if="item.afterText" class="ml5">{{item.afterText}}</span>
							</div>
							<template v-else-if="item.type=='richtext'">
								<QuillEditor 
									ref="formQuillTextEditor"