diff --git a/src/components/Form/DataForm/index.vue b/src/components/Form/DataForm/index.vue
index 7b71c4e29..73d2d2b73 100644
--- a/src/components/Form/DataForm/index.vue
+++ b/src/components/Form/DataForm/index.vue
@@ -5,7 +5,7 @@
:class="mobile ? 'mobile' : 'desktop'"
:content="fields"
:form="basicForm"
- :label-position="labelPosition"
+ :label-position="iLabelPosition"
label-width="25%"
v-bind="$attrs"
v-on="$listeners"
@@ -121,6 +121,10 @@ export default {
isSubmitting: {
type: Boolean,
default: false
+ },
+ labelPosition: {
+ type: String,
+ default: ''
}
},
data() {
@@ -137,8 +141,14 @@ export default {
mobile() {
return this.$store.state.app.device === 'mobile'
},
- labelPosition() {
- return this.mobile ? 'top' : 'right'
+ drawer() {
+ return this.$store.state.common.inDrawer
+ },
+ iLabelPosition() {
+ if (this.labelPosition) {
+ return this.labelPosition
+ }
+ return this.drawer || this.mobile ? 'top' : 'right'
}
},
mounted() {
diff --git a/src/components/Table/DrawerListTable/PageDrawer.vue b/src/components/Table/DrawerListTable/PageDrawer.vue
new file mode 100644
index 000000000..25afe94b7
--- /dev/null
+++ b/src/components/Table/DrawerListTable/PageDrawer.vue
@@ -0,0 +1,96 @@
+
+
+
+
+
+
+
diff --git a/src/components/Table/DrawerListTable/index.vue b/src/components/Table/DrawerListTable/index.vue
new file mode 100644
index 000000000..1ab52f809
--- /dev/null
+++ b/src/components/Table/DrawerListTable/index.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
diff --git a/src/layout/components/GenericListDrawerPage/index.vue b/src/layout/components/GenericListDrawerPage/index.vue
index c3104fbab..5f7a41d24 100644
--- a/src/layout/components/GenericListDrawerPage/index.vue
+++ b/src/layout/components/GenericListDrawerPage/index.vue
@@ -1,51 +1,25 @@
-
+