1234567891011121314151617181920212223242526 |
- <template>
- <uv-input v-model="formModel[rule.fieldName]" :placeholder="placeholder" v-bind="formInputBinding"
- @blur="clearValidate" @change="clearValidate">
- <text slot="prefix" class="f14 f-333">{{ rule.label }}</text>
- <text slot="suffix" class="f14 f-333">{{ rule.description }}</text>
- </uv-input>
- </template>
- <script>
- import AIFormRuleField from "@/pages/ie/components/ai-form/items/templates/AIFormRuleField";
- import AIFormCommonStyle from "@/pages/ie/components/AIFormCommonStyle";
- export default {
- name: "ai-form-field-text",
- mixins: [AIFormRuleField, AIFormCommonStyle],
- computed: {
- placeholder() {
- return this.rule.placeholder || '请输入'
- }
- }
- }
- </script>
- <style scoped>
- </style>
|