| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <script >
- export default {
- name: 'inputRow',
- props: {
- label: {
- type: String,
- default: ''
- },
- form: {
- type: Object,
- default: () => {}
- },
- checkFormItem: {
- type: Function,
- default: () => {}
- },
- state: {
- type: Number,
- default: 0
- },
- msg: {
- type: String,
- default: ''
- }
- },
- data(){
- return {
- }
- },
- methods: {
- }
- }
- </script>
- <template>
- <div class="w-full px-1.5 flex">
- <div class="w-4/12 flex items-center u px-1">
- <p class="w-full text-justify">{{ label }}</p>
- </div>
- <div class="w-8/12">
- <slot></slot>
- <div :class="`w-full ${state===0?'text-red-600':'text-green-300'}`" v-show="msg" >
- {{msg}}
- </div>
- <slot name="extra"></slot>
- </div>
- </div>
- </template>
- <style scoped>
- </style>
|