diff --git a/uni-app/src/addon/components/diy-form-detail/index.vue b/uni-app/src/addon/components/diy-form-detail/index.vue
new file mode 100644
index 000000000..b095948bf
--- /dev/null
+++ b/uni-app/src/addon/components/diy-form-detail/index.vue
@@ -0,0 +1,59 @@
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/addon/components/diy-form/index.vue b/uni-app/src/addon/components/diy-form/index.vue
new file mode 100644
index 000000000..8ac1171ab
--- /dev/null
+++ b/uni-app/src/addon/components/diy-form/index.vue
@@ -0,0 +1,191 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/uni-app/src/addon/components/diy/group/index.vue b/uni-app/src/addon/components/diy/group/index.vue
index 00ce92e25..07c3abeea 100644
--- a/uni-app/src/addon/components/diy/group/index.vue
+++ b/uni-app/src/addon/components/diy/group/index.vue
@@ -8,53 +8,113 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
@@ -65,19 +125,22 @@
import { useDiyGroup } from './useDiyGroup'
import useDiyStore from '@/app/stores/diy';
- import { ref } from 'vue';
+ import { ref,getCurrentInstance } from 'vue';
- const props = defineProps(['data', 'pullDownRefreshCount']);
+ const props = defineProps(['data']);
+
+ const instance: any = getCurrentInstance();
+ const getFormRef = () => {
+ return {
+ componentRefs: instance.refs
+ }
+ }
- const topTabbarRef = ref(null);
const diyStore = useDiyStore();
+
const diyGroup = useDiyGroup({
...props,
- getFormRef() {
- return {
- topTabbarRef: topTabbarRef.value
- }
- }
+ getFormRef
});
const data = ref(diyGroup.data)
@@ -89,7 +152,8 @@
diyGroup.onPageScroll()
defineExpose({
- refresh: diyGroup.refresh
+ refresh: diyGroup.refresh,
+ getFormRef
})
diff --git a/uni-app/src/addon/end.vue b/uni-app/src/addon/end.vue
deleted file mode 100644
index aee126479..000000000
--- a/uni-app/src/addon/end.vue
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
-