@mixd-id/web-scaffold 0.2.240705 → 0.2.250801009
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.
- package/docs/components/Dashboard.md +56 -0
- package/log.txt +7 -0
- package/package.json +27 -19
- package/src/components/404.vue +61 -0
- package/src/components/AccountIcon.vue +19 -0
- package/src/components/Ahref.vue +1 -1
- package/src/components/Alert.vue +4 -13
- package/src/components/ArrayList.vue +49 -0
- package/src/components/Article.vue +24 -30
- package/src/components/Button.vue +79 -167
- package/src/components/Card.vue +235 -0
- package/src/components/Carousel.vue +61 -60
- package/src/components/Cart.vue +192 -0
- package/src/components/CartIcon.vue +89 -0
- package/src/components/ChartBar.vue +2 -3
- package/src/components/Checkbox.vue +20 -11
- package/src/components/Checkout.vue +373 -0
- package/src/components/CheckoutDelivery.vue +267 -0
- package/src/components/CodeEditor.vue +5 -16
- package/src/components/CollapsiblePanel.vue +70 -0
- package/src/components/ColorPicker.vue +8 -3
- package/src/components/ColorPicker2.vue +41 -19
- package/src/components/ColorPicker3.vue +100 -0
- package/src/components/Confirm.vue +9 -7
- package/src/components/ContextMenu.vue +122 -206
- package/src/components/ContextMenuItem.vue +53 -0
- package/src/components/Dashboard.vue +243 -0
- package/src/components/Dashboard2.vue +118 -0
- package/src/components/DashboardComponentSelector.vue +96 -0
- package/src/components/DashboardConfigs.vue +202 -0
- package/src/components/Datepicker.vue +102 -41
- package/src/components/DayTimeRange.vue +3 -2
- package/src/components/Dropdown.vue +7 -4
- package/src/components/Flex.vue +14 -40
- package/src/components/GHeatMaps.vue +2 -2
- package/src/components/Grid.vue +6 -6
- package/src/components/HTMLEditor.vue +27 -14
- package/src/components/Image.vue +62 -108
- package/src/components/ImagePreview.vue +14 -4
- package/src/components/ImageUploader.vue +114 -0
- package/src/components/ImportModal.vue +3 -3
- package/src/components/Link.vue +62 -6
- package/src/components/List.vue +524 -402
- package/src/components/ListContextMenu.vue +88 -0
- package/src/components/ListItem.vue +5 -3
- package/src/components/ListPage1.vue +14 -15
- package/src/components/ListView.vue +5 -6
- package/src/components/ListViewSettings.vue +2 -2
- package/src/components/LogViewerItem.vue +1 -1
- package/src/components/MarkdownEdit.vue +128 -0
- package/src/components/MarkdownPreview.vue +102 -0
- package/src/components/MenuItem1.vue +36 -0
- package/src/components/Modal.vue +95 -43
- package/src/components/MultiDropdown.vue +124 -0
- package/src/components/MultilineText.vue +1 -4
- package/src/components/OTPField.vue +11 -17
- package/src/components/ObjectTree.vue +1 -1
- package/src/components/PageBuilder.vue +3 -3
- package/src/components/Paragraph.vue +1 -2
- package/src/components/PresetSelectorFilterItem.vue +107 -95
- package/src/components/Radio.vue +1 -1
- package/src/components/SearchModal.vue +153 -0
- package/src/components/Slider.vue +1 -1
- package/src/components/Svg.vue +1 -1
- package/src/components/SvgEditor.vue +173 -0
- package/src/components/Switch.vue +4 -5
- package/src/components/Table.vue +2 -2
- package/src/components/TableView.vue +2 -3
- package/src/components/TableViewHead.vue +2 -2
- package/src/components/Tabs.vue +1 -1
- package/src/components/Testimonial.vue +2 -2
- package/src/components/Text.vue +7 -22
- package/src/components/TextEditor.vue +3 -3
- package/src/components/TextWithTag.vue +61 -30
- package/src/components/Textarea.vue +11 -16
- package/src/components/Textbox.vue +9 -19
- package/src/components/Timepicker.vue +25 -15
- package/src/components/Toast.vue +5 -3
- package/src/components/TreeMenu.vue +122 -0
- package/src/components/TreeView.vue +15 -10
- package/src/components/TreeView2.vue +38 -0
- package/src/components/TreeViewItem.vue +58 -29
- package/src/components/TreeViewItem2.vue +55 -0
- package/src/components/Uploader.vue +45 -0
- package/src/components/Video.vue +119 -0
- package/src/components/VirtualGrid.vue +24 -7
- package/src/components/VirtualTable.vue +363 -128
- package/src/configs/dashboard/data-table.js +9 -0
- package/src/configs/web-page-builder.js +118 -0
- package/src/directives/intersect.js +26 -0
- package/src/hooks/device.js +14 -0
- package/src/index.js +62 -107
- package/src/mixin/component.js +147 -67
- package/src/themes/default/index.js +83 -155
- package/src/utils/dashboard.js +22 -962
- package/src/utils/helpers.cjs +635 -0
- package/src/utils/helpers.js +91 -60
- package/src/utils/helpers.mjs +245 -12
- package/src/utils/importer.js +22 -3
- package/src/utils/list.mjs +1509 -0
- package/src/utils/preset-selector.cjs +1455 -0
- package/src/utils/preset-selector.js +489 -95
- package/src/utils/preset-selector.mjs +59 -20
- package/src/utils/queue.js +63 -0
- package/src/utils/web.mjs +120 -0
- package/src/utils/wss.js +37 -29
- package/src/utils/wss.mjs +24 -19
- package/src/widgets/AhrefSetting.vue +16 -13
- package/src/widgets/ArticleSetting.vue +15 -27
- package/src/widgets/BackgroundColorSetting.vue +153 -0
- package/src/widgets/BorderColorSetting.vue +57 -0
- package/src/widgets/BotEditor/BotEditorActions.vue +3 -2
- package/src/widgets/BotEditor/BotEditorSettings.vue +21 -0
- package/src/widgets/BotEditor.vue +35 -15
- package/src/widgets/ButtonSetting.vue +12 -13
- package/src/widgets/CarouselSetting.vue +33 -45
- package/src/widgets/CartSetting.vue +46 -0
- package/src/widgets/CheckoutSetting.vue +46 -0
- package/src/widgets/CollapsiblePanelSetting.vue +46 -0
- package/src/widgets/ColumnSelector.vue +29 -5
- package/src/widgets/ComponentSetting.vue +1 -1
- package/src/widgets/ComponentSetting2.vue +112 -234
- package/src/widgets/ComponentSetting3.vue +1 -1
- package/src/widgets/ContactForm.vue +3 -3
- package/src/widgets/ContactFormSetting.vue +41 -30
- package/src/widgets/Dashboard/BarChart.vue +47 -11
- package/src/widgets/Dashboard/BarChartSetting.vue +1 -1
- package/src/widgets/Dashboard/DataTable.vue +125 -0
- package/src/widgets/Dashboard/DataTableSetting.vue +243 -0
- package/src/widgets/Dashboard/DatasourceSelector.vue +1 -1
- package/src/widgets/Dashboard/Doughnut.vue +49 -7
- package/src/widgets/Dashboard/DoughnutSetting.vue +2 -2
- package/src/widgets/Dashboard/Metric.vue +78 -19
- package/src/widgets/Dashboard/MetricSetting.vue +81 -28
- package/src/widgets/Dashboard/Pie.vue +55 -6
- package/src/widgets/Dashboard/PieSetting.vue +1 -1
- package/src/widgets/Dashboard/PolarArea.vue +49 -7
- package/src/widgets/Dashboard/PolarAreaSetting.vue +1 -1
- package/src/widgets/Dashboard/SharingModal.vue +4 -5
- package/src/widgets/Dashboard/ViewSelector.vue +2 -2
- package/src/widgets/Dashboard/VirtualTableSetting.vue +121 -184
- package/src/widgets/{Dashboard.vue → Dashboard0.vue} +426 -343
- package/src/widgets/EmbeddedVideoSetting.vue +7 -5
- package/src/widgets/FAQ.vue +16 -3
- package/src/widgets/FAQSetting.vue +53 -47
- package/src/widgets/FeatureList.vue +3 -0
- package/src/widgets/FeatureListSetting.vue +112 -102
- package/src/widgets/FlexSetting.vue +83 -106
- package/src/widgets/GridSetting.vue +71 -196
- package/src/widgets/Header2.vue +34 -71
- package/src/widgets/Header2Setting.vue +95 -179
- package/src/widgets/HeaderSetting.vue +16 -18
- package/src/widgets/IconListSetting.vue +69 -65
- package/src/widgets/ImageSetting.vue +33 -60
- package/src/widgets/LinkSetting.vue +60 -37
- package/src/widgets/LinkSettingModal.vue +173 -0
- package/src/widgets/LogViewer.vue +1 -1
- package/src/widgets/MarginSetting.vue +2 -2
- package/src/widgets/MenuEditor.vue +1 -1
- package/src/widgets/MenuItem1Setting.vue +78 -0
- package/src/widgets/ModalSetting.vue +42 -44
- package/src/widgets/MultiValueSetting.vue +2 -2
- package/src/widgets/MultiValueSetting2.vue +78 -45
- package/src/widgets/OGSettingModal.vue +103 -0
- package/src/widgets/PaddingSetting.vue +2 -2
- package/src/widgets/ParagraphSetting.vue +16 -13
- package/src/widgets/PositionSetting.vue +209 -0
- package/src/widgets/PresetBar.vue +359 -210
- package/src/widgets/PresetBarPivot.vue +31 -19
- package/src/widgets/PresetSelector.vue +29 -17
- package/src/widgets/SearchModalSetting.vue +70 -0
- package/src/widgets/Share.vue +1 -2
- package/src/widgets/ShareSetting.vue +67 -60
- package/src/widgets/StyleSetting.vue +227 -116
- package/src/widgets/TestimonialSetting.vue +97 -88
- package/src/widgets/TextBlockSetting.vue +16 -13
- package/src/widgets/UserActionBuilder/UserActionConsole.vue +30 -10
- package/src/widgets/UserActionBuilder/UserActionOutput.vue +2 -2
- package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +64 -87
- package/src/widgets/UserActionBuilder/UserActionProps.vue +3 -3
- package/src/widgets/UserActionBuilder.vue +4 -16
- package/src/widgets/WebComponentSelector.vue +15 -11
- package/src/widgets/WebLayoutSelector.vue +41 -270
- package/src/widgets/WebPageBuilder.vue +693 -704
- package/src/widgets/WebPageBuilder2.vue +7 -7
- package/src/widgets/WebPageBuilder4/ButtonSetting.vue +0 -8
- package/src/widgets/WebPageBuilder4/CarouselSetting.vue +63 -7
- package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +3 -3
- package/src/widgets/WebPageBuilder4/FlexSetting.vue +1 -10
- package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +2 -2
- package/src/widgets/WebPageBuilder4/PropertySetting.vue +0 -7
- package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +1 -7
- package/src/widgets/WebPageBuilder4.vue +289 -575
- package/src/widgets/WebPageSelector.vue +1 -1
- package/src/widgets/YoutubeVideoSetting.vue +16 -13
- package/tailwind.config.js +3 -35
- package/docs/schema/user-action.json +0 -266
- package/src/App.vue +0 -25
- package/src/components/SearchButton.vue +0 -57
- package/src/entry-client.js +0 -27
- package/src/entry-server.js +0 -73
- package/src/events/event.js +0 -2
- package/src/main.js +0 -29
- package/src/mixin/website.js +0 -121
- package/src/router.js +0 -57
- package/src/widgets/MobileMenu.vue +0 -182
- package/src/widgets/WebPageBuilder4/ActionSetting.vue +0 -158
- package/src/widgets/WebPageBuilder4/ColorSetting.vue +0 -63
- package/src/widgets/WebPageBuilder4/DataSetting.vue +0 -92
- package/src/widgets/WebPageBuilder4/FontSizeSetting.vue +0 -76
- package/src/widgets/WebPageBuilder4/LinkSetting.vue +0 -68
- package/src/widgets/WebPageBuilder4/MobileMenuSetting.vue +0 -106
- package/src/widgets/WebPageBuilder4/Setting.vue +0 -73
- package/src/widgets/WebPageBuilder4/StyleSetting.vue +0 -77
- package/src/widgets/WebPageBuilder4/SvgSetting.vue +0 -207
- package/src/widgets/WebPageBuilder4/TextTransformSetting.vue +0 -70
- package/src/widgets/WebPageBuilder4/WebPageDataEdit.vue +0 -121
- package/test.json +0 -22
- /package/src/widgets/{Header1.vue → Header0.vue} +0 -0
- /package/src/widgets/{Header1Setting.vue → Header0Setting.vue} +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
<div class="flex-1 flex flex-col bg-base-400">
|
|
5
5
|
|
|
6
|
-
<div class="p-3 pr-5 sticky top-0 flex justify-center gap-4 bg-base-400 dark:bg-base-300 border-b-[1px] border-
|
|
6
|
+
<div class="p-3 pr-5 sticky top-0 flex justify-center gap-4 bg-base-400 dark:bg-base-300 border-b-[1px] border-border-50">
|
|
7
7
|
<div class="flex-1 flex flex-row gap-4 items-center">
|
|
8
8
|
|
|
9
9
|
<button ref="close" class=" p-1"
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
<Tabs :items="previewModes" v-model="config.previewMode" variant="button" @change="updateIframe" />
|
|
52
52
|
|
|
53
|
-
<div v-if="history" class="flex flex-row border-[1px] border-
|
|
53
|
+
<div v-if="history" class="flex flex-row border-[1px] border-border-200 bg-text-50 rounded-full overflow-hidden">
|
|
54
54
|
<button type="button" class="p-2 px-3 group"
|
|
55
55
|
:class="history.canUndo.value && history.history.value.length > 2 ? 'hover:bg-primary' : 'opacity-50 cursor-not-allowed'"
|
|
56
56
|
:disabled="!(history.canUndo.value && history.history.value.length > 2)"
|
|
@@ -78,12 +78,12 @@
|
|
|
78
78
|
|
|
79
79
|
<div class="flex-1 flex flex-row">
|
|
80
80
|
|
|
81
|
-
<div class="flex flex-row bg-base-400 dark:bg-base-300 border-r-[1px] border-
|
|
81
|
+
<div class="flex flex-row bg-base-400 dark:bg-base-300 border-r-[1px] border-border-50"
|
|
82
82
|
:style="section1Style">
|
|
83
83
|
|
|
84
84
|
<div class="flex-1 flex flex-col overflow-y-auto">
|
|
85
85
|
|
|
86
|
-
<div class="px-3 flex flex-col border-b-[1px] border-
|
|
86
|
+
<div class="px-3 flex flex-col border-b-[1px] border-border-100 overflow-x-auto">
|
|
87
87
|
<Tabs :items="tabItems"
|
|
88
88
|
class="pt-1"
|
|
89
89
|
v-model="leftBar.tabIndex" />
|
|
@@ -247,7 +247,7 @@
|
|
|
247
247
|
</div>
|
|
248
248
|
|
|
249
249
|
<div v-if="currentItem"
|
|
250
|
-
class="flex flex-row bg-base-400 dark:bg-base-300 border-l-[1px] border-
|
|
250
|
+
class="flex flex-row bg-base-400 dark:bg-base-300 border-l-[1px] border-border-50"
|
|
251
251
|
@click=""
|
|
252
252
|
:style="section3Style">
|
|
253
253
|
|
|
@@ -1072,7 +1072,7 @@ export default{
|
|
|
1072
1072
|
.comp{
|
|
1073
1073
|
@apply flex-1;
|
|
1074
1074
|
@apply hidden md:flex flex-row;
|
|
1075
|
-
@apply divide-x divide-
|
|
1075
|
+
@apply divide-x divide-border-50;
|
|
1076
1076
|
}
|
|
1077
1077
|
|
|
1078
1078
|
.resize1{
|
|
@@ -1085,7 +1085,7 @@ export default{
|
|
|
1085
1085
|
|
|
1086
1086
|
.zoomLevel{
|
|
1087
1087
|
@apply appearance-none bg-base-400 text-center outline-none h-[24px] rounded-md;
|
|
1088
|
-
@apply border-[1px] border-
|
|
1088
|
+
@apply border-[1px] border-border-100;
|
|
1089
1089
|
}
|
|
1090
1090
|
|
|
1091
1091
|
</style>
|
|
@@ -16,13 +16,6 @@
|
|
|
16
16
|
</Dropdown>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
<ActionSetting :value="value" :index="index" :viewType="viewType" />
|
|
20
|
-
|
|
21
|
-
<div class="flex flex-col gap-1">
|
|
22
|
-
<label class="flex-1">Icon</label>
|
|
23
|
-
<Textarea v-model="value.props.icon" rows="3" />
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
19
|
<div class="flex flex-col gap-1">
|
|
27
20
|
<label class="flex-1">Text</label>
|
|
28
21
|
<Textbox v-model="value.props.text" />
|
|
@@ -40,7 +33,6 @@ import {defineAsyncComponent} from "vue";
|
|
|
40
33
|
export default{
|
|
41
34
|
|
|
42
35
|
components: {
|
|
43
|
-
ActionSetting: defineAsyncComponent(() => import('./ActionSetting.vue')),
|
|
44
36
|
PropertySetting: defineAsyncComponent(() => import('./PropertySetting.vue'))
|
|
45
37
|
},
|
|
46
38
|
|
|
@@ -1,11 +1,72 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div :class="$style.comp">
|
|
3
|
+
<strong v-if="title">{{ title }}</strong>
|
|
3
4
|
|
|
4
|
-
<div class="flex flex-row items-center
|
|
5
|
-
<
|
|
5
|
+
<div class="flex flex-row items-center">
|
|
6
|
+
<label class="flex-1">Enabled</label>
|
|
6
7
|
<Switch v-model="value.props.enabled" />
|
|
7
8
|
</div>
|
|
8
9
|
|
|
10
|
+
<div>
|
|
11
|
+
<div class="flex flex-row items-center">
|
|
12
|
+
<label class="flex-1">Images</label>
|
|
13
|
+
<button type="button" class="text-primary"
|
|
14
|
+
@click="addImage">
|
|
15
|
+
Add Image
|
|
16
|
+
</button>
|
|
17
|
+
</div>
|
|
18
|
+
<div>
|
|
19
|
+
<TreeView :items="items"
|
|
20
|
+
v-model="currentConfig.selectedImageUid"
|
|
21
|
+
class="mt-2">
|
|
22
|
+
<template #item="{ item, parent }">
|
|
23
|
+
<div class="flex-1 flex flex-row items-center gap-3 px-3">
|
|
24
|
+
<div data-reorder>
|
|
25
|
+
<svg width="14" height="14" class="fill-text-300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"/></svg>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="flex-1">
|
|
28
|
+
<Image :src="item.props.src[index]" class="w-[64px] min-h-[32px] bg-text-50" />
|
|
29
|
+
</div>
|
|
30
|
+
<div>
|
|
31
|
+
<button type="button" @click="items.splice(items.indexOf(item), 1)">
|
|
32
|
+
<svg width="16" height="16" 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>
|
|
33
|
+
</button>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</template>
|
|
37
|
+
</TreeView>
|
|
38
|
+
|
|
39
|
+
<Modal ref="imageEdit" width="380" height="480">
|
|
40
|
+
<template v-slot:head>
|
|
41
|
+
<div class="relative p-5">
|
|
42
|
+
<h3>Add Image</h3>
|
|
43
|
+
<div class="absolute top-0 right-0 p-2">
|
|
44
|
+
<button type="button" class="p-2" @click="$refs.imageEdit.close()">
|
|
45
|
+
<svg width="24" height="24" viewBox="0 0 24 24" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg">
|
|
46
|
+
<path d="M6.53034 5.46965C6.23745 5.17676 5.76257 5.17676 5.46968 5.46965C5.17679 5.76255 5.17679 6.23742 5.46968 6.53031L10.9393 12L5.46967 17.4697C5.17678 17.7626 5.17678 18.2374 5.46967 18.5303C5.76256 18.8232 6.23744 18.8232 6.53033 18.5303L12 13.0606L17.4697 18.5303C17.7626 18.8232 18.2375 18.8232 18.5303 18.5303C18.8232 18.2374 18.8232 17.7626 18.5303 17.4697L13.0607 12L18.5303 6.53032C18.8232 6.23743 18.8232 5.76256 18.5303 5.46966C18.2374 5.17677 17.7626 5.17677 17.4697 5.46966L12 10.9393L6.53034 5.46965Z"/>
|
|
47
|
+
</svg>
|
|
48
|
+
</button>
|
|
49
|
+
</div>
|
|
50
|
+
</div>
|
|
51
|
+
</template>
|
|
52
|
+
<template #foot="{ context }">
|
|
53
|
+
<div class="p-5">
|
|
54
|
+
<Button class="w-[120px]"
|
|
55
|
+
@click="items.push(context.component);$refs.imageEdit.close()">
|
|
56
|
+
Add Image
|
|
57
|
+
</Button>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
<template #default="{ context }">
|
|
61
|
+
<div class="flex-1 p-5">
|
|
62
|
+
<ImageSetting :value="context.component"
|
|
63
|
+
:index="index" />
|
|
64
|
+
</div>
|
|
65
|
+
</template>
|
|
66
|
+
</Modal>
|
|
67
|
+
</div>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
9
70
|
<div class="flex flex-row items-center">
|
|
10
71
|
<label class="flex-1">Legend</label>
|
|
11
72
|
<Checkbox v-model="value.props.useLegend" />
|
|
@@ -33,11 +94,6 @@
|
|
|
33
94
|
<Checkbox v-model="value.props.infinite" />
|
|
34
95
|
</div>
|
|
35
96
|
|
|
36
|
-
<div class="flex flex-row items-center">
|
|
37
|
-
<label class="flex-1">Data</label>
|
|
38
|
-
<Textbox v-model="value.props.dataKey" class="w-[160px]" />
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
97
|
</div>
|
|
42
98
|
</template>
|
|
43
99
|
|
|
@@ -52,9 +52,9 @@ export default{
|
|
|
52
52
|
values: [
|
|
53
53
|
[ 'items-start', 'Start' ],
|
|
54
54
|
[ 'items-end', 'End' ],
|
|
55
|
-
[ '
|
|
56
|
-
[ '
|
|
57
|
-
[ '
|
|
55
|
+
[ 'Center', 'items-center' ],
|
|
56
|
+
[ 'Baseline', 'items-baseline' ],
|
|
57
|
+
[ 'Stretch', 'items-stretch' ],
|
|
58
58
|
]
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -6,11 +6,6 @@
|
|
|
6
6
|
<Switch v-model="value.props.enabled" />
|
|
7
7
|
</div>
|
|
8
8
|
|
|
9
|
-
<div class="flex flex-row items-center">
|
|
10
|
-
<label class="flex-1">Data</label>
|
|
11
|
-
<Textbox v-model="value.props.dataKey" class="w-[160px]" />
|
|
12
|
-
</div>
|
|
13
|
-
|
|
14
9
|
<PropertySetting :value="value"
|
|
15
10
|
:index="index"
|
|
16
11
|
:viewType="viewType"
|
|
@@ -73,11 +68,7 @@ export default{
|
|
|
73
68
|
}
|
|
74
69
|
},
|
|
75
70
|
|
|
76
|
-
inject: [ '
|
|
77
|
-
|
|
78
|
-
mounted(){
|
|
79
|
-
|
|
80
|
-
},
|
|
71
|
+
inject: [ 'uploadImage', 'viewTypes' ],
|
|
81
72
|
|
|
82
73
|
props: {
|
|
83
74
|
|
|
@@ -152,12 +152,12 @@ export default{
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.comp button{
|
|
155
|
-
@apply border-[1px] border-
|
|
155
|
+
@apply border-[1px] border-border-200 bg-text-100 rounded-lg p-1 px-3;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.comp select{
|
|
159
159
|
@apply appearance-none outline-none p-1 px-2 bg-transparent cursor-pointer w-full;
|
|
160
|
-
@apply border-[1px] border-
|
|
160
|
+
@apply border-[1px] border-border-200 rounded-lg;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
</style>
|
|
@@ -40,14 +40,12 @@ export default{
|
|
|
40
40
|
BorderSizeSetting: defineAsyncComponent(() => import('./BorderSizeSetting.vue')),
|
|
41
41
|
BorderStyleSetting: defineAsyncComponent(() => import('./BorderStyleSetting.vue')),
|
|
42
42
|
BoxShadowSetting: defineAsyncComponent(() => import('./BoxShadowSetting.vue')),
|
|
43
|
-
ColorSetting: defineAsyncComponent(() => import('./ColorSetting.vue')),
|
|
44
43
|
DisplaySetting: defineAsyncComponent(() => import('./DisplaySetting.vue')),
|
|
45
44
|
FlexAlignSetting: defineAsyncComponent(() => import('./FlexAlignSetting.vue')),
|
|
46
45
|
FlexDirectionSetting: defineAsyncComponent(() => import('./FlexDirectionSetting.vue')),
|
|
47
46
|
FlexJustifySetting: defineAsyncComponent(() => import('./FlexJustifySetting.vue')),
|
|
48
47
|
FlexPropertySetting: defineAsyncComponent(() => import('./FlexPropertySetting.vue')),
|
|
49
48
|
FlexWrapSetting: defineAsyncComponent(() => import('./FlexWrapSetting.vue')),
|
|
50
|
-
FontSizeSetting: defineAsyncComponent(() => import('./FontSizeSetting.vue')),
|
|
51
49
|
GapSetting: defineAsyncComponent(() => import('./GapSetting.vue')),
|
|
52
50
|
GrayscaleSetting: defineAsyncComponent(() => import('./GrayscaleSetting.vue')),
|
|
53
51
|
HeightSetting: defineAsyncComponent(() => import('./HeightSetting.vue')),
|
|
@@ -60,7 +58,6 @@ export default{
|
|
|
60
58
|
OverflowSetting: defineAsyncComponent(() => import('./OverflowSetting.vue')),
|
|
61
59
|
PaddingSetting: defineAsyncComponent(() => import('./PaddingSetting.vue')),
|
|
62
60
|
PositionSetting: defineAsyncComponent(() => import('./PositionSetting.vue')),
|
|
63
|
-
TextTransformSetting: defineAsyncComponent(() => import('./TextTransformSetting.vue')),
|
|
64
61
|
WidthSetting: defineAsyncComponent(() => import('./WidthSetting.vue')),
|
|
65
62
|
ZIndexSetting: defineAsyncComponent(() => import('./ZIndexSetting.vue')),
|
|
66
63
|
},
|
|
@@ -107,10 +104,6 @@ export default{
|
|
|
107
104
|
'blur': { component:"BlurSetting", text:'Grayscale', group:'Filters' },
|
|
108
105
|
'grayscale': { component:"GrayscaleSetting", text:'Grayscale', group:'Filters' },
|
|
109
106
|
|
|
110
|
-
'color': { component:"ColorSetting", text:'Text Color', group:'Text' },
|
|
111
|
-
'textTransform': { component:"TextTransformSetting", text:'Text Transform', group:'Text' },
|
|
112
|
-
'fontSize': { component:"FontSizeSetting", text:'Font Size', group:'Text' },
|
|
113
|
-
|
|
114
107
|
'display': { component:"DisplaySetting", text:'Display', group:'Layout' },
|
|
115
108
|
'height': { component:"HeightSetting", text:'Height', group:'Layout' },
|
|
116
109
|
'margin': { component:"MarginSetting", text:'Margin', group:'Layout' },
|
|
@@ -70,12 +70,9 @@ export default{
|
|
|
70
70
|
callback: null,
|
|
71
71
|
components: [
|
|
72
72
|
{ type:'Button', name:'Button' },
|
|
73
|
-
{ type:'Carousel', name:'Carousel'
|
|
73
|
+
{ type:'Carousel', name:'Carousel' },
|
|
74
74
|
{ type:'Image', name:'Image' },
|
|
75
|
-
{ type:'Link', name:'Link' },
|
|
76
|
-
{ type:'Svg', name:'Svg' },
|
|
77
75
|
{ type:'Text', name:'Text' },
|
|
78
|
-
{ type:'MobileMenu', name:'Mobile Menu', isContainer:true, methods:[ 'open', 'close', 'toggle' ] },
|
|
79
76
|
|
|
80
77
|
{ type:'Flex', name:'Flex', isContainer:true },
|
|
81
78
|
{ type:'Grid', name:'Grid', isContainer:true },
|
|
@@ -105,9 +102,6 @@ export default{
|
|
|
105
102
|
if(!item.props) item.props = {}
|
|
106
103
|
item.uid = md5(JSON.stringify(component) + new Date().getTime())
|
|
107
104
|
|
|
108
|
-
if(Array.isArray(item.methods))
|
|
109
|
-
item.props.id = item.uid
|
|
110
|
-
|
|
111
105
|
if(!('enabled' in item.props))
|
|
112
106
|
item.props.enabled = true
|
|
113
107
|
|