diff --git a/docs/rules-plus.md b/docs/rules-plus.md new file mode 100644 index 0000000..30eb769 --- /dev/null +++ b/docs/rules-plus.md @@ -0,0 +1,41 @@ +```vue + + + +``` diff --git a/src/components/render-form-item.vue b/src/components/render-form-item.vue index ddca7a4..9de8557 100644 --- a/src/components/render-form-item.vue +++ b/src/components/render-form-item.vue @@ -3,7 +3,7 @@ v-if="_show" :prop="prop" :label="typeof data.label === 'string' ? data.label : ''" - :rules="!readonly && Array.isArray(data.rules) ? data.rules : []" + :rules="!readonly && Array.isArray(data.rules) ? data.rules : undefined" v-bind="data.attrs" class="render-form-item" >