ai-form-field-text.vue 774 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <uv-input v-model="formModel[rule.fieldName]" :placeholder="placeholder" v-bind="formInputBinding"
  3. @blur="clearValidate" @change="clearValidate">
  4. <text slot="prefix" class="f14 f-333">{{ rule.label }}</text>
  5. <text slot="suffix" class="f14 f-333">{{ rule.description }}</text>
  6. </uv-input>
  7. </template>
  8. <script>
  9. import AIFormRuleField from "@/pages/ie/components/ai-form/items/templates/AIFormRuleField";
  10. import AIFormCommonStyle from "@/pages/ie/components/AIFormCommonStyle";
  11. export default {
  12. name: "ai-form-field-text",
  13. mixins: [AIFormRuleField, AIFormCommonStyle],
  14. computed: {
  15. placeholder() {
  16. return this.rule.placeholder || '请输入'
  17. }
  18. }
  19. }
  20. </script>
  21. <style scoped>
  22. </style>