ソースを参照

Merge branch 'next' of https://github.com/jdf2e/nutui into next

Drjnigfubo 3 年 前
コミット
c9e0c1f789
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/packages/__VUE/form/common.ts

+ 1 - 1
src/packages/__VUE/form/common.ts

@@ -39,7 +39,7 @@ export const component = {
       vnodes.forEach((vnode: VNode, index: number) => {
         let type = vnode.type;
         type = (type as any).name || type;
-        if (type == 'nut-form-item') {
+        if (type == 'nut-form-item' || type?.toString().endsWith('form-item')) {
           task.push({
             prop: vnode.props?.['prop'],
             rules: vnode.props?.['rules'] || []