@mixd-id/web-scaffold 0.2.240706 → 0.2.250801010

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/docs/components/Dashboard.md +56 -0
  2. package/log.txt +7 -0
  3. package/package.json +27 -19
  4. package/src/components/404.vue +61 -0
  5. package/src/components/AccountIcon.vue +19 -0
  6. package/src/components/Ahref.vue +1 -1
  7. package/src/components/Alert.vue +4 -13
  8. package/src/components/ArrayList.vue +49 -0
  9. package/src/components/Article.vue +24 -30
  10. package/src/components/Button.vue +83 -169
  11. package/src/components/Card.vue +257 -0
  12. package/src/components/Carousel.vue +61 -60
  13. package/src/components/Cart.vue +192 -0
  14. package/src/components/CartIcon.vue +89 -0
  15. package/src/components/ChartBar.vue +2 -3
  16. package/src/components/Checkbox.vue +20 -11
  17. package/src/components/Checkout.vue +373 -0
  18. package/src/components/CheckoutDelivery.vue +267 -0
  19. package/src/components/CodeEditor.vue +5 -16
  20. package/src/components/CollapsiblePanel.vue +70 -0
  21. package/src/components/ColorPicker.vue +12 -5
  22. package/src/components/ColorPicker2.vue +41 -19
  23. package/src/components/ColorPicker3.vue +100 -0
  24. package/src/components/Confirm.vue +9 -7
  25. package/src/components/ContextMenu.vue +122 -206
  26. package/src/components/ContextMenuItem.vue +53 -0
  27. package/src/components/Dashboard.vue +243 -0
  28. package/src/components/Dashboard2.vue +118 -0
  29. package/src/components/DashboardComponentSelector.vue +96 -0
  30. package/src/components/DashboardConfigs.vue +202 -0
  31. package/src/components/Datepicker.vue +102 -41
  32. package/src/components/DayTimeRange.vue +3 -2
  33. package/src/components/Dropdown.vue +7 -4
  34. package/src/components/Flex.vue +14 -40
  35. package/src/components/GHeatMaps.vue +2 -2
  36. package/src/components/Grid.vue +6 -6
  37. package/src/components/HTMLEditor.vue +27 -14
  38. package/src/components/Image.vue +62 -108
  39. package/src/components/ImagePreview.vue +14 -4
  40. package/src/components/ImageUploader.vue +114 -0
  41. package/src/components/ImportModal.vue +3 -3
  42. package/src/components/Link.vue +62 -6
  43. package/src/components/List.vue +528 -403
  44. package/src/components/ListContextMenu.vue +88 -0
  45. package/src/components/ListItem.vue +6 -4
  46. package/src/components/ListPage1.vue +14 -15
  47. package/src/components/ListView.vue +5 -6
  48. package/src/components/ListViewSettings.vue +2 -2
  49. package/src/components/LogViewerItem.vue +1 -1
  50. package/src/components/MarkdownEdit.vue +128 -0
  51. package/src/components/MarkdownPreview.vue +102 -0
  52. package/src/components/MenuItem1.vue +36 -0
  53. package/src/components/Modal.vue +95 -43
  54. package/src/components/MultiDropdown.vue +124 -0
  55. package/src/components/MultilineText.vue +1 -4
  56. package/src/components/OTPField.vue +40 -26
  57. package/src/components/ObjectTree.vue +1 -1
  58. package/src/components/PageBuilder.vue +3 -3
  59. package/src/components/Paragraph.vue +1 -2
  60. package/src/components/PresetSelectorFilterItem.vue +107 -95
  61. package/src/components/Radio.vue +1 -1
  62. package/src/components/SearchModal.vue +153 -0
  63. package/src/components/Slider.vue +1 -1
  64. package/src/components/Svg.vue +1 -1
  65. package/src/components/SvgEditor.vue +173 -0
  66. package/src/components/Switch.vue +4 -5
  67. package/src/components/Table.vue +2 -2
  68. package/src/components/TableView.vue +2 -3
  69. package/src/components/TableViewHead.vue +2 -2
  70. package/src/components/Tabs.vue +1 -1
  71. package/src/components/Testimonial.vue +2 -2
  72. package/src/components/Text.vue +7 -22
  73. package/src/components/TextEditor.vue +3 -3
  74. package/src/components/TextWithTag.vue +61 -30
  75. package/src/components/Textarea.vue +16 -22
  76. package/src/components/Textbox.vue +9 -19
  77. package/src/components/Timepicker.vue +25 -15
  78. package/src/components/Toast.vue +5 -3
  79. package/src/components/TreeMenu.vue +122 -0
  80. package/src/components/TreeView.vue +15 -10
  81. package/src/components/TreeView2.vue +38 -0
  82. package/src/components/TreeViewItem.vue +58 -29
  83. package/src/components/TreeViewItem2.vue +55 -0
  84. package/src/components/Uploader.vue +45 -0
  85. package/src/components/Video.vue +119 -0
  86. package/src/components/VirtualGrid.vue +24 -7
  87. package/src/components/VirtualTable.vue +363 -128
  88. package/src/configs/dashboard/data-table.js +9 -0
  89. package/src/configs/web-page-builder.js +118 -0
  90. package/src/directives/intersect.js +26 -0
  91. package/src/hooks/device.js +14 -0
  92. package/src/index.js +62 -107
  93. package/src/mixin/component.js +151 -67
  94. package/src/themes/default/index.js +118 -159
  95. package/src/utils/dashboard.js +22 -962
  96. package/src/utils/helpers.cjs +635 -0
  97. package/src/utils/helpers.js +91 -60
  98. package/src/utils/helpers.mjs +245 -12
  99. package/src/utils/importer.js +22 -3
  100. package/src/utils/list.mjs +1509 -0
  101. package/src/utils/preset-selector.cjs +1455 -0
  102. package/src/utils/preset-selector.js +489 -95
  103. package/src/utils/preset-selector.mjs +59 -20
  104. package/src/utils/queue.js +63 -0
  105. package/src/utils/web.mjs +120 -0
  106. package/src/utils/wss.js +38 -36
  107. package/src/utils/wss.mjs +24 -19
  108. package/src/widgets/AhrefSetting.vue +16 -13
  109. package/src/widgets/ArticleSetting.vue +15 -27
  110. package/src/widgets/BackgroundColorSetting.vue +153 -0
  111. package/src/widgets/BorderColorSetting.vue +57 -0
  112. package/src/widgets/BotEditor/BotEditorActions.vue +3 -2
  113. package/src/widgets/BotEditor/BotEditorSettings.vue +21 -0
  114. package/src/widgets/BotEditor.vue +35 -15
  115. package/src/widgets/ButtonSetting.vue +12 -13
  116. package/src/widgets/CarouselSetting.vue +33 -45
  117. package/src/widgets/CartSetting.vue +46 -0
  118. package/src/widgets/CheckoutSetting.vue +46 -0
  119. package/src/widgets/CollapsiblePanelSetting.vue +46 -0
  120. package/src/widgets/ColumnSelector.vue +29 -5
  121. package/src/widgets/ComponentSetting.vue +1 -1
  122. package/src/widgets/ComponentSetting2.vue +145 -236
  123. package/src/widgets/ComponentSetting3.vue +1 -1
  124. package/src/widgets/ContactForm.vue +3 -3
  125. package/src/widgets/ContactFormSetting.vue +41 -30
  126. package/src/widgets/Dashboard/BarChart.vue +47 -11
  127. package/src/widgets/Dashboard/BarChartSetting.vue +1 -1
  128. package/src/widgets/Dashboard/DataTable.vue +125 -0
  129. package/src/widgets/Dashboard/DataTableSetting.vue +243 -0
  130. package/src/widgets/Dashboard/DatasourceSelector.vue +1 -1
  131. package/src/widgets/Dashboard/Doughnut.vue +49 -7
  132. package/src/widgets/Dashboard/DoughnutSetting.vue +2 -2
  133. package/src/widgets/Dashboard/Metric.vue +78 -19
  134. package/src/widgets/Dashboard/MetricSetting.vue +81 -28
  135. package/src/widgets/Dashboard/Pie.vue +55 -6
  136. package/src/widgets/Dashboard/PieSetting.vue +1 -1
  137. package/src/widgets/Dashboard/PolarArea.vue +49 -7
  138. package/src/widgets/Dashboard/PolarAreaSetting.vue +1 -1
  139. package/src/widgets/Dashboard/SharingModal.vue +4 -5
  140. package/src/widgets/Dashboard/ViewSelector.vue +2 -2
  141. package/src/widgets/Dashboard/VirtualTableSetting.vue +121 -184
  142. package/src/widgets/{Dashboard.vue → Dashboard0.vue} +426 -343
  143. package/src/widgets/EmbeddedVideoSetting.vue +7 -5
  144. package/src/widgets/FAQ.vue +16 -3
  145. package/src/widgets/FAQSetting.vue +53 -47
  146. package/src/widgets/FeatureList.vue +3 -0
  147. package/src/widgets/FeatureListSetting.vue +112 -102
  148. package/src/widgets/FlexSetting.vue +83 -106
  149. package/src/widgets/GridSetting.vue +71 -196
  150. package/src/widgets/Header2.vue +34 -71
  151. package/src/widgets/Header2Setting.vue +95 -179
  152. package/src/widgets/HeaderSetting.vue +16 -18
  153. package/src/widgets/IconListSetting.vue +69 -65
  154. package/src/widgets/ImageSetting.vue +33 -60
  155. package/src/widgets/LinkSetting.vue +60 -37
  156. package/src/widgets/LinkSettingModal.vue +173 -0
  157. package/src/widgets/LogViewer.vue +1 -1
  158. package/src/widgets/MarginSetting.vue +2 -2
  159. package/src/widgets/MenuEditor.vue +1 -1
  160. package/src/widgets/MenuItem1Setting.vue +78 -0
  161. package/src/widgets/ModalSetting.vue +42 -44
  162. package/src/widgets/MultiValueSetting.vue +2 -2
  163. package/src/widgets/MultiValueSetting2.vue +78 -45
  164. package/src/widgets/OGSettingModal.vue +103 -0
  165. package/src/widgets/PaddingSetting.vue +2 -2
  166. package/src/widgets/ParagraphSetting.vue +16 -13
  167. package/src/widgets/PositionSetting.vue +209 -0
  168. package/src/widgets/PresetBar.vue +359 -210
  169. package/src/widgets/PresetBarPivot.vue +31 -19
  170. package/src/widgets/PresetSelector.vue +29 -17
  171. package/src/widgets/SearchModalSetting.vue +70 -0
  172. package/src/widgets/Share.vue +1 -2
  173. package/src/widgets/ShareSetting.vue +67 -60
  174. package/src/widgets/StyleSetting.vue +365 -150
  175. package/src/widgets/TestimonialSetting.vue +97 -88
  176. package/src/widgets/TextBlockSetting.vue +16 -13
  177. package/src/widgets/UserActionBuilder/UserActionConsole.vue +30 -10
  178. package/src/widgets/UserActionBuilder/UserActionOutput.vue +2 -2
  179. package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +64 -87
  180. package/src/widgets/UserActionBuilder/UserActionProps.vue +3 -3
  181. package/src/widgets/UserActionBuilder.vue +4 -16
  182. package/src/widgets/WebComponentSelector.vue +15 -11
  183. package/src/widgets/WebLayoutSelector.vue +41 -270
  184. package/src/widgets/WebPageBuilder.vue +1019 -707
  185. package/src/widgets/WebPageBuilder2.vue +7 -7
  186. package/src/widgets/WebPageBuilder4/ButtonSetting.vue +0 -8
  187. package/src/widgets/WebPageBuilder4/CarouselSetting.vue +63 -7
  188. package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +3 -3
  189. package/src/widgets/WebPageBuilder4/FlexSetting.vue +1 -10
  190. package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +2 -2
  191. package/src/widgets/WebPageBuilder4/PropertySetting.vue +0 -7
  192. package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +1 -7
  193. package/src/widgets/WebPageBuilder4.vue +289 -575
  194. package/src/widgets/WebPageSelector.vue +1 -1
  195. package/src/widgets/YoutubeVideoSetting.vue +16 -13
  196. package/tailwind.config.js +3 -35
  197. package/docs/schema/user-action.json +0 -266
  198. package/src/App.vue +0 -25
  199. package/src/components/SearchButton.vue +0 -57
  200. package/src/entry-client.js +0 -27
  201. package/src/entry-server.js +0 -73
  202. package/src/events/event.js +0 -2
  203. package/src/main.js +0 -29
  204. package/src/mixin/website.js +0 -121
  205. package/src/router.js +0 -57
  206. package/src/widgets/MobileMenu.vue +0 -182
  207. package/src/widgets/WebPageBuilder4/ActionSetting.vue +0 -158
  208. package/src/widgets/WebPageBuilder4/ColorSetting.vue +0 -63
  209. package/src/widgets/WebPageBuilder4/DataSetting.vue +0 -92
  210. package/src/widgets/WebPageBuilder4/FontSizeSetting.vue +0 -76
  211. package/src/widgets/WebPageBuilder4/LinkSetting.vue +0 -68
  212. package/src/widgets/WebPageBuilder4/MobileMenuSetting.vue +0 -106
  213. package/src/widgets/WebPageBuilder4/Setting.vue +0 -73
  214. package/src/widgets/WebPageBuilder4/StyleSetting.vue +0 -77
  215. package/src/widgets/WebPageBuilder4/SvgSetting.vue +0 -207
  216. package/src/widgets/WebPageBuilder4/TextTransformSetting.vue +0 -70
  217. package/src/widgets/WebPageBuilder4/WebPageDataEdit.vue +0 -121
  218. package/test.json +0 -22
  219. /package/src/widgets/{Header1.vue → Header0.vue} +0 -0
  220. /package/src/widgets/{Header1Setting.vue → Header0Setting.vue} +0 -0
@@ -1,109 +1,90 @@
1
1
  <template>
2
2
  <div :class="$style.comp">
3
3
 
4
- <div>
5
- <div class="flex flex-row gap-1 items-center cursor-pointer">
6
- <svg v-if="!expanded['flex']" width="12" height="12" class="fill-text" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"/></svg>
7
- <svg v-else width="12" height="12" class="fill-text" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>
8
- <strong class="flex-1 text-text-400 line-clamp-1" @click="expanded['flex'] = !expanded['flex']">Flex</strong>
4
+ <div class="grid grid-cols-2 gap-4 p-6">
5
+
6
+ <div>
7
+ <small class="text-text-400">Direction</small>
8
+ <Dropdown v-model="direction[viewIndex]"
9
+ @change="$emit('change')">
10
+ <option value="">Default</option>
11
+ <option :value="`${viewType}flex-row`">Row</option>
12
+ <option :value="`${viewType}flex-col`">Column</option>
13
+ <option :value="`${viewType}flex-row-reverse`">Row Reverse</option>
14
+ <option :value="`${viewType}flex-col-reverse`">Column Reverse</option>
15
+ </Dropdown>
9
16
  </div>
10
17
 
11
- <div class="h-[1px] bg-text-100 mt-2 mb-4"></div>
12
-
13
- <div v-if="expanded['flex']" class="grid grid-cols-2 gap-4 mt-4">
14
-
15
- <div>
16
- <label class="text-text-400">Direction</label>
17
- <Dropdown v-for="(_, idx) in viewTypes"
18
- v-show="viewType === _.value"
19
- v-model="direction[idx]"
20
- @change="$emit('change')">
21
- <option value="">Default</option>
22
- <option :value="`${viewType}flex-row`">Row</option>
23
- <option :value="`${viewType}flex-col`">Column</option>
24
- <option :value="`${viewType}flex-row-reverse`">Row Reverse</option>
25
- <option :value="`${viewType}flex-col-reverse`">Column Reverse</option>
26
- </Dropdown>
27
- </div>
28
-
29
- <div>
30
- <label class="text-text-400">Gap</label>
31
- <Dropdown v-for="(_, idx) in viewTypes"
32
- v-show="viewType === _.value"
33
- v-model="gap[idx]"
34
- class="w-full"
35
- @change="$emit('change')">
36
- <option value="">Not Set</option>
37
- <option :value="`${viewType}gap-0`">0</option>
38
- <option :value="`${viewType}gap-1`">1</option>
39
- <option :value="`${viewType}gap-2`">2</option>
40
- <option :value="`${viewType}gap-3`">3</option>
41
- <option :value="`${viewType}gap-4`">4</option>
42
- <option :value="`${viewType}gap-5`">5</option>
43
- <option :value="`${viewType}gap-6`">6</option>
44
- <option :value="`${viewType}gap-7`">7</option>
45
- <option :value="`${viewType}gap-8`">8</option>
46
- </Dropdown>
47
- </div>
48
-
49
- <div>
50
- <label class="text-text-400">Align</label>
51
- <Dropdown v-for="(_, idx) in viewTypes"
52
- v-show="viewType === _.value"
53
- v-model="flexAlign[idx]"
54
- class="w-full"
55
- @change="$emit('change')">
56
- <option value="">Not Set</option>
57
- <option :value="`${viewType}items-start`">Start</option>
58
- <option :value="`${viewType}items-end`">End</option>
59
- <option :value="`${viewType}items-center`">Center</option>
60
- <option :value="`${viewType}items-baseline`">Baseline</option>
61
- <option :value="`${viewType}items-stretch`">Stretch</option>
62
- </Dropdown>
63
- </div>
64
-
65
- <div>
66
- <label class="text-text-400">Justify</label>
67
- <Dropdown v-for="(_, idx) in viewTypes"
68
- v-show="viewType === _.value"
69
- v-model="flexJustify[idx]"
70
- class="w-full"
71
- @change="$emit('change')">
72
- <option value="">Not Set</option>
73
- <option :value="`${viewType}justify-normal`">Normal</option>
74
- <option :value="`${viewType}justify-start`">Start</option>
75
- <option :value="`${viewType}justify-end`">End</option>
76
- <option :value="`${viewType}justify-center`">Center</option>
77
- <option :value="`${viewType}justify-between`">Between</option>
78
- <option :value="`${viewType}justify-around`">Around</option>
79
- <option :value="`${viewType}justify-evenly`">Evenly</option>
80
- <option :value="`${viewType}justify-stretch`">Stretch</option>
81
- </Dropdown>
82
- </div>
83
-
84
- <div>
85
- <label class="text-text-400">Wrap</label>
86
- <Dropdown v-for="(_, idx) in viewTypes"
87
- v-show="viewType === _.value"
88
- v-model="wrap[idx]"
89
- class="w-full"
90
- @change="$emit('change')">
91
- <option value="">Not Set</option>
92
- <option :value="`${viewType}flex-wrap`">Wrap</option>
93
- <option :value="`${viewType}flex-wrap-reverse`">Wrap reverse</option>
94
- <option :value="`${viewType}flex-nowrap`">No wrap</option>
95
- </Dropdown>
96
- </div>
97
-
98
- </div>
99
- </div>
18
+ <div>
19
+ <small class="text-text-400">Gap</small>
20
+ <Dropdown v-model="gap[viewIndex]"
21
+ class="w-full"
22
+ @change="$emit('change')">
23
+ <option value="">Not Set</option>
24
+ <option :value="`${viewType}gap-0`">0</option>
25
+ <option :value="`${viewType}gap-1`">1</option>
26
+ <option :value="`${viewType}gap-2`">2</option>
27
+ <option :value="`${viewType}gap-3`">3</option>
28
+ <option :value="`${viewType}gap-4`">4</option>
29
+ <option :value="`${viewType}gap-5`">5</option>
30
+ <option :value="`${viewType}gap-6`">6</option>
31
+ <option :value="`${viewType}gap-7`">7</option>
32
+ <option :value="`${viewType}gap-8`">8</option>
33
+ </Dropdown>
34
+ </div>
35
+
36
+ <div>
37
+ <small class="text-text-400">Align</small>
38
+ <Dropdown v-model="flexAlign[viewIndex]"
39
+ class="w-full"
40
+ @change="$emit('change')">
41
+ <option value="">Not Set</option>
42
+ <option :value="`${viewType}items-start`">Start</option>
43
+ <option :value="`${viewType}items-end`">End</option>
44
+ <option :value="`${viewType}items-center`">Center</option>
45
+ <option :value="`${viewType}items-baseline`">Baseline</option>
46
+ <option :value="`${viewType}items-stretch`">Stretch</option>
47
+ </Dropdown>
48
+ </div>
49
+
50
+ <div>
51
+ <small class="text-text-400">Justify</small>
52
+ <Dropdown v-model="flexJustify[viewIndex]"
53
+ class="w-full"
54
+ @change="$emit('change')">
55
+ <option value="">Not Set</option>
56
+ <option :value="`${viewType}justify-normal`">Normal</option>
57
+ <option :value="`${viewType}justify-start`">Start</option>
58
+ <option :value="`${viewType}justify-end`">End</option>
59
+ <option :value="`${viewType}justify-center`">Center</option>
60
+ <option :value="`${viewType}justify-between`">Between</option>
61
+ <option :value="`${viewType}justify-around`">Around</option>
62
+ <option :value="`${viewType}justify-evenly`">Evenly</option>
63
+ <option :value="`${viewType}justify-stretch`">Stretch</option>
64
+ </Dropdown>
65
+ </div>
66
+
67
+ <div>
68
+ <small class="text-text-400">Wrap</small>
69
+ <Dropdown v-model="wrap[viewIndex]"
70
+ class="w-full"
71
+ @change="$emit('change')">
72
+ <option value="">Not Set</option>
73
+ <option :value="`${viewType}flex-wrap`">Wrap</option>
74
+ <option :value="`${viewType}flex-wrap-reverse`">Wrap reverse</option>
75
+ <option :value="`${viewType}flex-nowrap`">No wrap</option>
76
+ </Dropdown>
77
+ </div>
78
+
79
+ </div>
100
80
 
101
81
  <ComponentSetting2 :item="item"
102
- :view-type="viewType"
103
- :view-types="viewTypes"
104
- :excludes="['direction', 'gap', 'wrap', 'flexAlign', 'flexJustify']"
105
- defaultDisplay="flex"
106
- @change="$emit('change')" />
82
+ :excludes="[ 'direction', 'flexAlign', 'flexJustify', 'gap', 'wrap' ]"
83
+ :view-type="viewType"
84
+ :view-types="viewTypes"
85
+ :view-index="viewIndex"
86
+ defaultDisplay="block"
87
+ @change="$emit('change')" />
107
88
 
108
89
  </div>
109
90
  </template>
@@ -125,6 +106,8 @@ export default{
125
106
 
126
107
  viewType: String,
127
108
 
109
+ viewIndex: Number,
110
+
128
111
  viewTypes: Array,
129
112
 
130
113
  },
@@ -141,12 +124,6 @@ export default{
141
124
  return {}
142
125
  },
143
126
 
144
- expanded(){
145
- if(!this.componentStore['expanded'])
146
- this.componentStore['expanded'] = {}
147
- return this.componentStore['expanded']
148
- },
149
-
150
127
  direction(){
151
128
  if(!Array.isArray(this.item.props.direction))
152
129
  this.item.props.direction = [ 'flex-column' ]
@@ -191,7 +168,7 @@ export default{
191
168
  <style module>
192
169
 
193
170
  .comp{
194
- @apply flex flex-col gap-8;
171
+ @apply flex flex-col divide-y divide-border-50;
195
172
  }
196
173
 
197
174
  </style>
@@ -1,192 +1,80 @@
1
1
  <template>
2
2
  <div :class="$style.comp">
3
3
 
4
- <div>
5
- <div class="flex flex-row gap-1 items-center cursor-pointer">
6
- <svg v-if="!expanded['grid']" width="12" height="12" class="fill-text" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 192 512"><path d="M0 384.662V127.338c0-17.818 21.543-26.741 34.142-14.142l128.662 128.662c7.81 7.81 7.81 20.474 0 28.284L34.142 398.804C21.543 411.404 0 402.48 0 384.662z"/></svg>
7
- <svg v-else width="12" height="12" class="fill-text" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z"/></svg>
8
- <strong class="flex-1 text-text-400 line-clamp-1" @click="expanded['grid'] = !expanded['grid']">Grid</strong>
4
+ <div class="grid grid-cols-2 gap-4 p-6">
5
+
6
+ <div>
7
+ <small class="text-text-400">Columns</small>
8
+ <Dropdown v-model="columns[viewIndex]">
9
+ <option value="">Default</option>
10
+ <option v-for="i in 12" :value="`${viewTypes[viewIndex].value}grid-cols-${i}`">{{ i }}</option>
11
+ <option :value="`${viewTypes[viewIndex].value}grid-cols-none`">None</option>
12
+ </Dropdown>
9
13
  </div>
10
14
 
11
- <div class="h-[1px] bg-text-100 mt-2 mb-4"></div>
12
-
13
- <div v-if="expanded['grid']" class="mt-4 grid grid-cols-2 gap-4">
14
-
15
- <div>
16
- <div class="flex flex-row items-center gap-2">
17
- <label class="flex-1 text-text-400">Columns</label>
18
- <button type="button" v-if="columns.length < 2" @click="columns.push('')">
19
- <svg width="16" height="16" class="fill-text-300 hover:fill-primary-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
20
- </button>
21
- </div>
22
- <div class="mt-1 grid gap-2" :class="`grid-cols-${columns.length}`">
23
- <div v-for="(_, index) in columns" class="items-start">
24
- <div class="flex flex-row items-center" v-if="columns.length > 1">
25
- <small class="flex-1 text-text-300">{{ viewTypes[index].text }}</small>
26
- <button type="button" v-if="index > 0" @click="columns.splice(index, 1)">
27
- <svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
28
- </button>
29
- </div>
30
- <div>
31
- <Dropdown v-model="columns[index]" class="w-full max-w-[300px]">
32
- <option value="">Default</option>
33
- <option v-for="i in 12" :value="`${viewTypes[index].value}grid-cols-${i}`">{{ i }}</option>
34
- <option :value="`${viewTypes[index].value}grid-cols-none`">None</option>
35
- </Dropdown>
36
- </div>
37
- </div>
38
- </div>
39
- </div>
40
-
41
- <div>
42
- <div class="flex flex-row items-center gap-2">
43
- <label class="flex-1 text-text-400">Rows</label>
44
- <button type="button" v-if="rows.length < 2" @click="rows.push('')">
45
- <svg width="16" height="16" class="fill-text-300 hover:fill-primary-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
46
- </button>
47
- </div>
48
- <div class="mt-1 grid gap-2" :class="`grid-cols-${rows.length}`">
49
- <div v-for="(_, index) in rows" class="items-start">
50
- <div class="flex flex-row items-center" v-if="rows.length > 1">
51
- <small class="flex-1 text-text-300">{{ viewTypes[index].text }}</small>
52
- <button type="button" v-if="index > 0" @click="rows.splice(index, 1)">
53
- <svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
54
- </button>
55
- </div>
56
- <div>
57
- <Dropdown v-model="rows[index]" class="w-full max-w-[300px]">
58
- <option value="">Default</option>
59
- <option v-for="i in 12" :value="`${viewTypes[index].value}grid-rows-${i}`">{{ i }}</option>
60
- <option :value="`${viewTypes[index].value}grid-rows-none`">None</option>
61
- </Dropdown>
62
- </div>
63
- </div>
64
- </div>
65
- </div>
66
-
67
- <div>
68
- <div class="flex flex-row items-center gap-2">
69
- <label class="flex-1 text-text-400">Gap</label>
70
- <button type="button" v-if="gap.length < 2" @click="gap.push('')">
71
- <svg width="16" height="16" class="fill-text-300 hover:fill-primary-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
72
- </button>
73
- </div>
74
- <div class="mt-1 grid gap-2" :class="`grid-cols-${gap.length}`">
75
- <div v-for="(_, index) in gap" class="items-start">
76
- <div class="flex flex-row items-center" v-if="gap.length > 1">
77
- <small class="flex-1 text-text-300">{{ viewTypes[index].text }}</small>
78
- <button type="button" v-if="index > 0" @click="gap.splice(index, 1)">
79
- <svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
80
- </button>
81
- </div>
82
- <div>
83
- <Dropdown v-model="gap[index]" class="w-full max-w-[300px]">
84
- <option value="">Default</option>
85
- <option v-for="i in 13" :value="`${viewTypes[index].value}gap-${i - 1}`">{{ i - 1 }}</option>
86
- </Dropdown>
87
- </div>
88
- </div>
89
- </div>
90
- </div>
91
-
92
- <div>
93
- <div class="flex flex-row items-center gap-2">
94
- <label class="flex-1 text-text-400">Auto Flow</label>
95
- <button type="button" v-if="autoFlow.length < 2" @click="autoFlow.push('')">
96
- <svg width="16" height="16" class="fill-text-300 hover:fill-primary-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
97
- </button>
98
- </div>
99
- <div class="mt-1 grid gap-2" :class="`grid-cols-${autoFlow.length}`">
100
- <div v-for="(_, index) in autoFlow" class="items-start">
101
- <div class="flex flex-row items-center" v-if="autoFlow.length > 1">
102
- <small class="flex-1 text-text-300">{{ viewTypes[index].text }}</small>
103
- <button type="button" v-if="index > 0" @click="autoFlow.splice(index, 1)">
104
- <svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
105
- </button>
106
- </div>
107
- <div>
108
- <Dropdown v-model="autoFlow[index]" class="w-full max-w-[300px]">
109
- <option value="">Default</option>
110
- <option :value="`${viewTypes[index].value}grid-flow-row`">Row</option>
111
- <option :value="`${viewTypes[index].value}grid-flow-col`">Col</option>
112
- <option :value="`${viewTypes[index].value}grid-flow-dense`">Dense</option>
113
- <option :value="`${viewTypes[index].value}grid-flow-row-dense`">Row Dense</option>
114
- <option :value="`${viewTypes[index].value}grid-flow-col-dense`">Col Dense</option>
115
- </Dropdown>
116
- </div>
117
- </div>
118
- </div>
119
- </div>
120
-
121
- <div class="col-span-2">
122
- <div class="flex flex-row items-center gap-2">
123
- <label class="flex-1 text-text-400">Align Items</label>
124
- <button type="button" v-if="alignItems.length < 2" @click="alignItems.push('')">
125
- <svg width="16" height="16" class="fill-text-300 hover:fill-primary-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
126
- </button>
127
- </div>
128
- <div class="mt-1 grid gap-2" :class="`grid-cols-${alignItems.length}`">
129
- <div v-for="(_, index) in alignItems" class="items-start">
130
- <div class="flex flex-row items-center" v-if="alignItems.length > 1">
131
- <small class="flex-1 text-text-300">{{ viewTypes[index].text }}</small>
132
- <button type="button" v-if="index > 0" @click="alignItems.splice(index, 1)">
133
- <svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
134
- </button>
135
- </div>
136
- <div>
137
- <Dropdown v-model="alignItems[index]" class="w-full max-w-[300px]">
138
- <option value="">Default</option>
139
- <option :value="`${viewTypes[index].value}items-start`">Start</option>
140
- <option :value="`${viewTypes[index].value}items-end`">End</option>
141
- <option :value="`${viewTypes[index].value}items-center`">Center</option>
142
- <option :value="`${viewTypes[index].value}items-baseline`">Baseline</option>
143
- <option :value="`${viewTypes[index].value}items-stretch`">Stretch</option>
144
- </Dropdown>
145
- </div>
146
- </div>
147
- </div>
148
- </div>
149
-
150
- <div class="col-span-2">
151
- <div class="flex flex-row items-center gap-2">
152
- <label class="flex-1 text-text-400">Justify Content</label>
153
- <button type="button" v-if="justifyContent.length < 2" @click="justifyContent.push('')">
154
- <svg width="16" height="16" class="fill-text-300 hover:fill-primary-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path d="M352 240v32c0 6.6-5.4 12-12 12h-88v88c0 6.6-5.4 12-12 12h-32c-6.6 0-12-5.4-12-12v-88h-88c-6.6 0-12-5.4-12-12v-32c0-6.6 5.4-12 12-12h88v-88c0-6.6 5.4-12 12-12h32c6.6 0 12 5.4 12 12v88h88c6.6 0 12 5.4 12 12zm96-160v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V80c0-26.5 21.5-48 48-48h352c26.5 0 48 21.5 48 48zm-48 346V86c0-3.3-2.7-6-6-6H54c-3.3 0-6 2.7-6 6v340c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z"/></svg>
155
- </button>
156
- </div>
157
- <div class="mt-1 grid gap-2" :class="`grid-cols-${justifyContent.length}`">
158
- <div v-for="(_, index) in justifyContent" class="items-start">
159
- <div class="flex flex-row items-center" v-if="justifyContent.length > 1">
160
- <small class="flex-1 text-text-300">{{ viewTypes[index].text }}</small>
161
- <button type="button" v-if="index > 0" @click="justifyContent.splice(index, 1)">
162
- <svg width="11" height="11" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
163
- </button>
164
- </div>
165
- <div>
166
- <Dropdown v-model="justifyContent[index]" class="w-full max-w-[300px]">
167
- <option value="">Default</option>
168
- <option :value="`${viewTypes[index].value}justify-normal`">Normal</option>
169
- <option :value="`${viewTypes[index].value}justify-start`">Start</option>
170
- <option :value="`${viewTypes[index].value}justify-end`">End</option>
171
- <option :value="`${viewTypes[index].value}justify-center`">Center</option>
172
- <option :value="`${viewTypes[index].value}justify-between`">Between</option>
173
- <option :value="`${viewTypes[index].value}justify-around`">Around</option>
174
- <option :value="`${viewTypes[index].value}justify-evenly`">Evenly</option>
175
- <option :value="`${viewTypes[index].value}justify-stretch`">Stretch</option>
176
- </Dropdown>
177
- </div>
178
- </div>
179
- </div>
180
- </div>
15
+ <div>
16
+ <small class="text-text-400">Rows</small>
17
+ <Dropdown v-model="rows[viewIndex]">
18
+ <option value="">Default</option>
19
+ <option v-for="i in 12" :value="`${viewTypes[viewIndex].value}grid-rows-${i}`">{{ i }}</option>
20
+ <option :value="`${viewTypes[viewIndex].value}grid-rows-none`">None</option>
21
+ </Dropdown>
22
+ </div>
23
+
24
+ <div>
25
+ <small class="text-text-400">Gap</small>
26
+ <Dropdown v-model="gap[viewIndex]">
27
+ <option value="">Default</option>
28
+ <option v-for="i in 13" :value="`${viewTypes[viewIndex].value}gap-${i - 1}`">{{ i - 1 }}</option>
29
+ </Dropdown>
30
+ </div>
31
+
32
+ <div>
33
+ <small class="text-text-400">Auto Flow</small>
34
+ <Dropdown v-model="autoFlow[viewIndex]" class="w-full max-w-[300px]">
35
+ <option value="">Default</option>
36
+ <option :value="`${viewTypes[viewIndex].value}grid-flow-row`">Row</option>
37
+ <option :value="`${viewTypes[viewIndex].value}grid-flow-col`">Col</option>
38
+ <option :value="`${viewTypes[viewIndex].value}grid-flow-dense`">Dense</option>
39
+ <option :value="`${viewTypes[viewIndex].value}grid-flow-row-dense`">Row Dense</option>
40
+ <option :value="`${viewTypes[viewIndex].value}grid-flow-col-dense`">Col Dense</option>
41
+ </Dropdown>
42
+ </div>
43
+
44
+ <div class="col-span-2">
45
+ <small class="text-text-400">Align Items</small>
46
+ <Dropdown v-model="alignItems[viewIndex]">
47
+ <option value="">Default</option>
48
+ <option :value="`${viewTypes[viewIndex].value}items-start`">Start</option>
49
+ <option :value="`${viewTypes[viewIndex].value}items-end`">End</option>
50
+ <option :value="`${viewTypes[viewIndex].value}items-center`">Center</option>
51
+ <option :value="`${viewTypes[viewIndex].value}items-baseline`">Baseline</option>
52
+ <option :value="`${viewTypes[viewIndex].value}items-stretch`">Stretch</option>
53
+ </Dropdown>
54
+ </div>
181
55
 
56
+ <div class="col-span-2">
57
+ <small class="text-text-400">Justify Content</small>
58
+ <Dropdown v-model="justifyContent[viewIndex]">
59
+ <option value="">Default</option>
60
+ <option :value="`${viewTypes[viewIndex].value}justify-normal`">Normal</option>
61
+ <option :value="`${viewTypes[viewIndex].value}justify-start`">Start</option>
62
+ <option :value="`${viewTypes[viewIndex].value}justify-end`">End</option>
63
+ <option :value="`${viewTypes[viewIndex].value}justify-center`">Center</option>
64
+ <option :value="`${viewTypes[viewIndex].value}justify-between`">Between</option>
65
+ <option :value="`${viewTypes[viewIndex].value}justify-around`">Around</option>
66
+ <option :value="`${viewTypes[viewIndex].value}justify-evenly`">Evenly</option>
67
+ <option :value="`${viewTypes[viewIndex].value}justify-stretch`">Stretch</option>
68
+ </Dropdown>
182
69
  </div>
70
+
183
71
  </div>
184
72
 
185
73
  <ComponentSetting2 :item="item"
186
74
  :view-type="viewType"
187
75
  :view-types="viewTypes"
188
- :excludes="['columns', 'direction', 'gap', 'wrap', 'flexAlign', 'flexJustify']"
189
- defaultDisplay="flex"
76
+ :view-index="viewIndex"
77
+ defaultDisplay="block"
190
78
  @change="$emit('change')" />
191
79
 
192
80
  </div>
@@ -194,12 +82,13 @@
194
82
 
195
83
  <script>
196
84
 
85
+ import ComponentSetting2 from "./ComponentSetting2.vue";
86
+
197
87
  export default{
88
+ components: {ComponentSetting2},
198
89
 
199
90
  emits: [ 'change' ],
200
91
 
201
- inject: [ 'store' ],
202
-
203
92
  props: {
204
93
 
205
94
  item: {
@@ -209,6 +98,8 @@ export default{
209
98
 
210
99
  viewType: String,
211
100
 
101
+ viewIndex: Number,
102
+
212
103
  viewTypes: Array,
213
104
 
214
105
  },
@@ -223,22 +114,6 @@ export default{
223
114
 
224
115
  computed: {
225
116
 
226
- componentStore(){
227
- if(this.store && this.store.components){
228
- if(!this.store.components.compsetting)
229
- this.store.components.compsetting = {}
230
-
231
- return this.store.components.compsetting
232
- }
233
- return {}
234
- },
235
-
236
- expanded(){
237
- if(!this.componentStore['expanded'])
238
- this.componentStore['expanded'] = {}
239
- return this.componentStore['expanded']
240
- },
241
-
242
117
  autoFlow(){
243
118
  if(!Array.isArray(this.item.props.autoFlow) || this.item.props.autoFlow.length < 1)
244
119
  this.item.props.autoFlow = [ '' ]
@@ -284,7 +159,7 @@ export default{
284
159
  <style module>
285
160
 
286
161
  .comp{
287
- @apply flex flex-col gap-6;
162
+ @apply flex flex-col divide-y divide-border-50;
288
163
  }
289
164
 
290
165
  </style>