@mixd-id/web-scaffold 0.2.250801010 → 0.2.250801012
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/AccountIcon.md +16 -0
- package/docs/components/Ahref.md +35 -0
- package/docs/components/Alert.md +72 -0
- package/docs/components/ArrayList.md +39 -0
- package/docs/components/Article.md +28 -0
- package/docs/components/BarChart.md +81 -0
- package/docs/components/Block.md +23 -0
- package/docs/components/Box.md +15 -0
- package/docs/components/Button.md +68 -0
- package/docs/components/Card.md +67 -0
- package/docs/components/Carousel.md +70 -0
- package/docs/components/Cart.md +20 -0
- package/docs/components/CartIcon.md +29 -0
- package/docs/components/Chart.md +53 -0
- package/docs/components/ChartBar.md +34 -0
- package/docs/components/ChatTyping.md +21 -0
- package/docs/components/Checkbox.md +63 -0
- package/docs/components/CodeEditor.md +25 -0
- package/docs/components/CollapsiblePanel.md +41 -0
- package/docs/components/ColorPicker.md +52 -0
- package/docs/components/Confirm.md +62 -0
- package/docs/components/ContextMenu.md +76 -0
- package/docs/components/ContextMenuItem.md +29 -0
- package/docs/components/CopyToClipboard.md +43 -0
- package/docs/components/Countdown.md +47 -0
- package/docs/components/Datepicker.md +61 -0
- package/docs/components/Datetimepicker.md +57 -0
- package/docs/components/DayTimeRange.md +20 -0
- package/docs/components/Dropdown.md +65 -0
- package/docs/components/ErrorText.md +15 -0
- package/docs/components/FBLogin.md +21 -0
- package/docs/components/Flex.md +44 -0
- package/docs/components/GHeatMaps.md +16 -0
- package/docs/components/GSignIn.md +21 -0
- package/docs/components/Gmaps.md +16 -0
- package/docs/components/GmapsDirection.md +20 -0
- package/docs/components/Grid.md +36 -0
- package/docs/components/HTMLEditor.md +26 -0
- package/docs/components/IconMenu.md +20 -0
- package/docs/components/Image.md +78 -0
- package/docs/components/Link.md +33 -0
- package/docs/components/MultiDropdown.md +46 -0
- package/docs/components/Radio.md +55 -0
- package/docs/components/Slider.md +47 -0
- package/docs/components/Switch.md +43 -0
- package/docs/components/Table.md +31 -0
- package/docs/components/Tabs.md +65 -0
- package/docs/components/Text.md +30 -0
- package/docs/components/Textarea.md +66 -0
- package/docs/components/Textbox.md +97 -0
- package/docs/components/Timepicker.md +62 -0
- package/docs/components/Toast.md +59 -0
- package/docs/components/Uploader.md +51 -0
- package/docs/components/Video.md +54 -0
- package/package.json +65 -2
- package/docs/components/Dashboard.md +0 -56
- package/docs/components/Header2.md +0 -16
- package/log.txt +0 -7
- package/public/assets/dashboard/bar.png +0 -0
- package/public/assets/dashboard/doughnut.png +0 -0
- package/public/assets/dashboard/metric.png +0 -0
- package/public/assets/dashboard/pie.png +0 -0
- package/public/assets/dashboard/polar-area.png +0 -0
- package/public/assets/dashboard/virtual-table.png +0 -0
- package/public/static/dashboard/bar.png +0 -0
- package/public/static/dashboard/doughnut.png +0 -0
- package/public/static/dashboard/metric.png +0 -0
- package/public/static/dashboard/pie.png +0 -0
- package/public/static/dashboard/polar-area.png +0 -0
- package/public/static/dashboard/virtual-table.png +0 -0
- package/src/components/404.vue +0 -61
- package/src/components/AccountIcon.vue +0 -19
- package/src/components/Ahref.vue +0 -200
- package/src/components/Alert.vue +0 -257
- package/src/components/ArrayList.vue +0 -49
- package/src/components/Article.vue +0 -387
- package/src/components/Block.vue +0 -31
- package/src/components/Box.vue +0 -34
- package/src/components/Button.vue +0 -258
- package/src/components/Card.vue +0 -257
- package/src/components/Carousel.vue +0 -364
- package/src/components/Cart.vue +0 -192
- package/src/components/CartIcon.vue +0 -89
- package/src/components/Chart.vue +0 -485
- package/src/components/ChartBar.vue +0 -192
- package/src/components/ChatTyping.vue +0 -69
- package/src/components/Checkbox.vue +0 -200
- package/src/components/Checkout.vue +0 -373
- package/src/components/CheckoutDelivery.vue +0 -267
- package/src/components/CodeEditor.vue +0 -50
- package/src/components/CollapsiblePanel.vue +0 -70
- package/src/components/ColorPicker.vue +0 -165
- package/src/components/ColorPicker2.vue +0 -186
- package/src/components/ColorPicker3.vue +0 -100
- package/src/components/Confirm.vue +0 -180
- package/src/components/ContextMenu.vue +0 -265
- package/src/components/ContextMenuItem.vue +0 -53
- package/src/components/ConversationBuilder.vue +0 -161
- package/src/components/CopyToClipboard.vue +0 -34
- package/src/components/Countdown.vue +0 -264
- package/src/components/DGrid.vue +0 -21
- package/src/components/DGridItem.vue +0 -263
- package/src/components/Dashboard.vue +0 -243
- package/src/components/Dashboard2.vue +0 -118
- package/src/components/DashboardComponentSelector.vue +0 -96
- package/src/components/DashboardConfigs.vue +0 -202
- package/src/components/DataList.vue +0 -92
- package/src/components/Datepicker.vue +0 -399
- package/src/components/DayTimeRange.vue +0 -126
- package/src/components/Dropdown.vue +0 -224
- package/src/components/ErrorText.vue +0 -57
- package/src/components/FBLogin.vue +0 -194
- package/src/components/Feed.vue +0 -118
- package/src/components/Flex.vue +0 -44
- package/src/components/GHeatMaps.vue +0 -317
- package/src/components/GSignIn.vue +0 -166
- package/src/components/Gmaps.vue +0 -251
- package/src/components/GmapsDirection.vue +0 -191
- package/src/components/Grid.vue +0 -35
- package/src/components/HTMLEditor.vue +0 -588
- package/src/components/IconMenu.vue +0 -95
- package/src/components/IconMenu2.vue +0 -89
- package/src/components/IconPlus.vue +0 -89
- package/src/components/Image.vue +0 -263
- package/src/components/Image360.vue +0 -140
- package/src/components/ImageFullScreen.vue +0 -101
- package/src/components/ImagePreview.vue +0 -93
- package/src/components/ImageUploader.vue +0 -114
- package/src/components/ImportModal.vue +0 -260
- package/src/components/Link.vue +0 -95
- package/src/components/List.vue +0 -1381
- package/src/components/ListContextMenu.vue +0 -88
- package/src/components/ListItem.vue +0 -160
- package/src/components/ListPage1.vue +0 -1401
- package/src/components/ListPage1Filter.vue +0 -170
- package/src/components/ListView.vue +0 -961
- package/src/components/ListViewBarSummary.vue +0 -81
- package/src/components/ListViewLineSummary.vue +0 -75
- package/src/components/ListViewLiveBarSummary.vue +0 -52
- package/src/components/ListViewMapSummary.vue +0 -56
- package/src/components/ListViewSettings.vue +0 -514
- package/src/components/ListViewTableSummary.vue +0 -77
- package/src/components/LogViewerItem.vue +0 -116
- package/src/components/MarkdownEdit.vue +0 -128
- package/src/components/MarkdownPreview.vue +0 -102
- package/src/components/MenuItem1.vue +0 -36
- package/src/components/Modal.vue +0 -456
- package/src/components/MultiDropdown.vue +0 -124
- package/src/components/MultilineText.vue +0 -174
- package/src/components/OTPField.vue +0 -139
- package/src/components/ObjectTree.vue +0 -105
- package/src/components/PageBuilder.vue +0 -449
- package/src/components/Paragraph.vue +0 -40
- package/src/components/PresetSelectorFilterItem.vue +0 -203
- package/src/components/Radio.vue +0 -109
- package/src/components/SearchModal.vue +0 -153
- package/src/components/Slider.vue +0 -317
- package/src/components/SplitPane.vue +0 -129
- package/src/components/Svg.vue +0 -33
- package/src/components/SvgEditor.vue +0 -173
- package/src/components/Switch.vue +0 -101
- package/src/components/TabView.vue +0 -105
- package/src/components/Table.vue +0 -56
- package/src/components/TableView.vue +0 -200
- package/src/components/TableViewHead.vue +0 -159
- package/src/components/Tabs.vue +0 -131
- package/src/components/Test.vue +0 -23
- package/src/components/Testimonial.vue +0 -86
- package/src/components/Text.vue +0 -34
- package/src/components/TextBlock.vue +0 -50
- package/src/components/TextEditor.vue +0 -85
- package/src/components/TextWithTag.vue +0 -298
- package/src/components/Textarea.vue +0 -184
- package/src/components/Textbox.vue +0 -216
- package/src/components/Thumbnail.vue +0 -27
- package/src/components/Timepicker.vue +0 -125
- package/src/components/Toast.vue +0 -117
- package/src/components/TreeMenu.vue +0 -122
- package/src/components/TreeView.vue +0 -106
- package/src/components/TreeView2.vue +0 -38
- package/src/components/TreeViewItem.vue +0 -453
- package/src/components/TreeViewItem1.vue +0 -282
- package/src/components/TreeViewItem2.vue +0 -55
- package/src/components/Uploader.vue +0 -45
- package/src/components/Video.vue +0 -119
- package/src/components/VirtualGrid.vue +0 -297
- package/src/components/VirtualScroll.vue +0 -282
- package/src/components/VirtualTable.vue +0 -956
- package/src/components/YoutubeVideo.vue +0 -196
- package/src/configs/dashboard/bar.js +0 -10
- package/src/configs/dashboard/collection-1.js +0 -5
- package/src/configs/dashboard/data-table.js +0 -9
- package/src/configs/dashboard/doughnut.js +0 -7
- package/src/configs/dashboard/gheatmaps.js +0 -9
- package/src/configs/dashboard/grid-2.js +0 -34
- package/src/configs/dashboard/grid-3.js +0 -34
- package/src/configs/dashboard/grid-4.js +0 -34
- package/src/configs/dashboard/grid.js +0 -15
- package/src/configs/dashboard/metric.js +0 -10
- package/src/configs/dashboard/pie.js +0 -7
- package/src/configs/dashboard/polar-area.js +0 -7
- package/src/configs/dashboard/virtual-table.js +0 -9
- package/src/configs/icons-fa.json +0 -12
- package/src/configs/web-page-builder.js +0 -118
- package/src/defs/dashboard-preset.js +0 -22
- package/src/directives/intersect.js +0 -26
- package/src/hooks/device.js +0 -14
- package/src/index.css +0 -3
- package/src/index.js +0 -648
- package/src/middleware/http/trim-string.js +0 -20
- package/src/mixin/component.js +0 -306
- package/src/mixin/ready-state.js +0 -37
- package/src/stores/components.js +0 -36
- package/src/stores/datasource.js +0 -11
- package/src/themes/default/index.js +0 -303
- package/src/utils/dashboard.js +0 -140
- package/src/utils/event-bus.js +0 -8
- package/src/utils/helpers.cjs +0 -635
- package/src/utils/helpers.js +0 -635
- package/src/utils/helpers.mjs +0 -722
- package/src/utils/importer.js +0 -209
- package/src/utils/list.mjs +0 -1509
- package/src/utils/listpage1.js +0 -1507
- package/src/utils/listview.js +0 -1287
- package/src/utils/preset-selector.cjs +0 -1455
- package/src/utils/preset-selector.js +0 -1452
- package/src/utils/preset-selector.mjs +0 -234
- package/src/utils/queue.js +0 -63
- package/src/utils/selection.js +0 -43
- package/src/utils/web.js +0 -50
- package/src/utils/web.mjs +0 -120
- package/src/utils/wss.js +0 -296
- package/src/utils/wss.mjs +0 -285
- package/src/widgets/AhrefSetting.vue +0 -97
- package/src/widgets/ArticleSetting.vue +0 -457
- package/src/widgets/BackgroundColorSetting.vue +0 -153
- package/src/widgets/BackgroundSetting.vue +0 -132
- package/src/widgets/BlockSetting.vue +0 -49
- package/src/widgets/BorderColorSetting.vue +0 -57
- package/src/widgets/BorderSetting.vue +0 -201
- package/src/widgets/BotEditor/BotEditorActions.vue +0 -163
- package/src/widgets/BotEditor/BotEditorSettings.vue +0 -21
- package/src/widgets/BotEditor.vue +0 -248
- package/src/widgets/BoxSetting.vue +0 -53
- package/src/widgets/ButtonSetting.vue +0 -113
- package/src/widgets/CarouselSetting.vue +0 -181
- package/src/widgets/CartSetting.vue +0 -46
- package/src/widgets/CheckoutSetting.vue +0 -46
- package/src/widgets/CollapsiblePanelSetting.vue +0 -46
- package/src/widgets/ColumnSelector.vue +0 -104
- package/src/widgets/ComponentPropertyLabel.vue +0 -35
- package/src/widgets/ComponentPropertySelector.vue +0 -115
- package/src/widgets/ComponentSetting.vue +0 -2220
- package/src/widgets/ComponentSetting2.vue +0 -927
- package/src/widgets/ComponentSetting3.vue +0 -231
- package/src/widgets/ContactForm.vue +0 -193
- package/src/widgets/ContactFormSetting.vue +0 -395
- package/src/widgets/CountdownSetting.vue +0 -76
- package/src/widgets/Dashboard/BarChart.vue +0 -366
- package/src/widgets/Dashboard/BarChartSetting.vue +0 -317
- package/src/widgets/Dashboard/DataTable.vue +0 -125
- package/src/widgets/Dashboard/DataTableSetting.vue +0 -243
- package/src/widgets/Dashboard/DatasourceFilterSharing.vue +0 -93
- package/src/widgets/Dashboard/DatasourcePreview.vue +0 -93
- package/src/widgets/Dashboard/DatasourceSelector.vue +0 -122
- package/src/widgets/Dashboard/Doughnut.vue +0 -199
- package/src/widgets/Dashboard/DoughnutSetting.vue +0 -196
- package/src/widgets/Dashboard/GHeatMapsSetting.vue +0 -108
- package/src/widgets/Dashboard/InteractionEdit.vue +0 -228
- package/src/widgets/Dashboard/Metric.vue +0 -135
- package/src/widgets/Dashboard/MetricSetting.vue +0 -227
- package/src/widgets/Dashboard/Pie.vue +0 -188
- package/src/widgets/Dashboard/PieSetting.vue +0 -247
- package/src/widgets/Dashboard/PolarArea.vue +0 -201
- package/src/widgets/Dashboard/PolarAreaSetting.vue +0 -195
- package/src/widgets/Dashboard/SharingModal.vue +0 -115
- package/src/widgets/Dashboard/ViewSelector.vue +0 -183
- package/src/widgets/Dashboard/VirtualColumnEdit.vue +0 -97
- package/src/widgets/Dashboard/VirtualTableSetting.vue +0 -171
- package/src/widgets/Dashboard0.vue +0 -1856
- package/src/widgets/DataListSetting.vue +0 -102
- package/src/widgets/EffectSetting.vue +0 -94
- package/src/widgets/EmbeddedVideo.vue +0 -60
- package/src/widgets/EmbeddedVideoSetting.vue +0 -50
- package/src/widgets/FAQ.vue +0 -98
- package/src/widgets/FAQSetting.vue +0 -94
- package/src/widgets/FeatureList.vue +0 -131
- package/src/widgets/FeatureListSetting.vue +0 -233
- package/src/widgets/FiltersSetting.vue +0 -88
- package/src/widgets/FlexSetting.vue +0 -174
- package/src/widgets/GridSetting.vue +0 -165
- package/src/widgets/Header.vue +0 -15
- package/src/widgets/Header0.vue +0 -41
- package/src/widgets/Header0Setting.vue +0 -75
- package/src/widgets/Header2.vue +0 -65
- package/src/widgets/Header2Setting.vue +0 -193
- package/src/widgets/HeaderSetting.vue +0 -102
- package/src/widgets/IconList.vue +0 -51
- package/src/widgets/IconListSetting.vue +0 -188
- package/src/widgets/ImageSetting.vue +0 -119
- package/src/widgets/LayoutSetting.vue +0 -251
- package/src/widgets/LinkSetting.vue +0 -209
- package/src/widgets/LinkSettingModal.vue +0 -173
- package/src/widgets/LogViewer.vue +0 -85
- package/src/widgets/MarginPaddingSetting.vue +0 -58
- package/src/widgets/MarginSetting.vue +0 -142
- package/src/widgets/MenuEditor.vue +0 -256
- package/src/widgets/MenuItem1Setting.vue +0 -78
- package/src/widgets/ModalSetting.vue +0 -94
- package/src/widgets/MultiValueSetting.vue +0 -121
- package/src/widgets/MultiValueSetting2.vue +0 -147
- package/src/widgets/OGSettingModal.vue +0 -103
- package/src/widgets/PaddingSetting.vue +0 -142
- package/src/widgets/ParagraphSetting.vue +0 -89
- package/src/widgets/PositionSetting.vue +0 -209
- package/src/widgets/PresetBar.vue +0 -990
- package/src/widgets/PresetBarPivot.vue +0 -198
- package/src/widgets/PresetBarPivotColumnEdit.vue +0 -197
- package/src/widgets/PresetSelector.vue +0 -685
- package/src/widgets/Review.vue +0 -131
- package/src/widgets/ReviewSetting.vue +0 -201
- package/src/widgets/SearchModalSetting.vue +0 -70
- package/src/widgets/Share.vue +0 -164
- package/src/widgets/ShareSetting.vue +0 -99
- package/src/widgets/SizingSetting.vue +0 -306
- package/src/widgets/SpacingSetting.vue +0 -77
- package/src/widgets/StyleSetting.vue +0 -543
- package/src/widgets/StyleSetting2.vue +0 -90
- package/src/widgets/SvgSetting.vue +0 -133
- package/src/widgets/TableSetting.vue +0 -172
- package/src/widgets/TestimonialSetting.vue +0 -161
- package/src/widgets/TextBlockSetting.vue +0 -81
- package/src/widgets/ThumbnailSetting.vue +0 -49
- package/src/widgets/TransitionSetting.vue +0 -64
- package/src/widgets/TypographySetting.vue +0 -334
- package/src/widgets/UserActionBuilder/UserActionCondition.vue +0 -99
- package/src/widgets/UserActionBuilder/UserActionConsole.vue +0 -97
- package/src/widgets/UserActionBuilder/UserActionItem.vue +0 -273
- package/src/widgets/UserActionBuilder/UserActionOutput.vue +0 -152
- package/src/widgets/UserActionBuilder/UserActionOutputDelay.vue +0 -27
- package/src/widgets/UserActionBuilder/UserActionOutputLog.vue +0 -28
- package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +0 -112
- package/src/widgets/UserActionBuilder/UserActionProps.vue +0 -213
- package/src/widgets/UserActionBuilder.vue +0 -314
- package/src/widgets/WebComponentSelector.vue +0 -205
- package/src/widgets/WebDatasourceSelector.vue +0 -153
- package/src/widgets/WebLayoutSelector.vue +0 -147
- package/src/widgets/WebPageBuilder.vue +0 -2161
- package/src/widgets/WebPageBuilder2.vue +0 -1091
- package/src/widgets/WebPageBuilder3.vue +0 -411
- package/src/widgets/WebPageBuilder4/BackgroundColorSetting.vue +0 -54
- package/src/widgets/WebPageBuilder4/BackgroundPositionSetting.vue +0 -75
- package/src/widgets/WebPageBuilder4/BackgroundRepeatSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BackgroundSizeSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BlurSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BorderColorSetting.vue +0 -64
- package/src/widgets/WebPageBuilder4/BorderRadiusSetting.vue +0 -75
- package/src/widgets/WebPageBuilder4/BorderSizeSetting.vue +0 -69
- package/src/widgets/WebPageBuilder4/BorderStyleSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BoxShadowSetting.vue +0 -73
- package/src/widgets/WebPageBuilder4/ButtonSetting.vue +0 -65
- package/src/widgets/WebPageBuilder4/CarouselSetting.vue +0 -178
- package/src/widgets/WebPageBuilder4/DisplaySetting.vue +0 -76
- package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +0 -71
- package/src/widgets/WebPageBuilder4/FlexDirectionSetting.vue +0 -70
- package/src/widgets/WebPageBuilder4/FlexJustifySetting.vue +0 -74
- package/src/widgets/WebPageBuilder4/FlexPropertySetting.vue +0 -71
- package/src/widgets/WebPageBuilder4/FlexSetting.vue +0 -96
- package/src/widgets/WebPageBuilder4/FlexWrapSetting.vue +0 -69
- package/src/widgets/WebPageBuilder4/GapSetting.vue +0 -75
- package/src/widgets/WebPageBuilder4/GrayscaleSetting.vue +0 -68
- package/src/widgets/WebPageBuilder4/GridSetting.vue +0 -216
- package/src/widgets/WebPageBuilder4/HeightSetting.vue +0 -98
- package/src/widgets/WebPageBuilder4/ImageSetting.vue +0 -102
- package/src/widgets/WebPageBuilder4/MarginSetting.vue +0 -73
- package/src/widgets/WebPageBuilder4/MaxHeightSetting.vue +0 -82
- package/src/widgets/WebPageBuilder4/MaxWidthSetting.vue +0 -90
- package/src/widgets/WebPageBuilder4/MinHeightSetting.vue +0 -81
- package/src/widgets/WebPageBuilder4/MinWidthSetting.vue +0 -101
- package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +0 -163
- package/src/widgets/WebPageBuilder4/OpacitySetting.vue +0 -77
- package/src/widgets/WebPageBuilder4/OverflowSetting.vue +0 -81
- package/src/widgets/WebPageBuilder4/PaddingSetting.vue +0 -57
- package/src/widgets/WebPageBuilder4/PositionSetting.vue +0 -191
- package/src/widgets/WebPageBuilder4/PropertySetting.vue +0 -176
- package/src/widgets/WebPageBuilder4/TextSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/TreeView.vue +0 -46
- package/src/widgets/WebPageBuilder4/TreeViewItem.vue +0 -303
- package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +0 -141
- package/src/widgets/WebPageBuilder4/WebPagePropertySelector.vue +0 -172
- package/src/widgets/WebPageBuilder4/WidthSetting.vue +0 -105
- package/src/widgets/WebPageBuilder4/ZIndexSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4.vue +0 -798
- package/src/widgets/WebPagePreview.vue +0 -295
- package/src/widgets/WebPageSelector.vue +0 -173
- package/src/widgets/WebTemplateCreator.vue +0 -156
- package/src/widgets/YoutubeVideoSetting.vue +0 -68
- package/tailwind.config.js +0 -481
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp">
|
|
3
|
-
|
|
4
|
-
<div class="p-6 py-4 flex flex-col gap-4">
|
|
5
|
-
<div>
|
|
6
|
-
<div class="flex flex-row gap-2">
|
|
7
|
-
<label class="flex-1 text-text-400">Icons</label>
|
|
8
|
-
<button type="button" class="text-primary"
|
|
9
|
-
@click="addIcon()">Add Icon</button>
|
|
10
|
-
</div>
|
|
11
|
-
<ListItem :items="item.props.icons" class="mt-4" body-class="divide-y divide-border-50"
|
|
12
|
-
@reorder="(from, to) => { item.props.icons.splice(to, 0, item.props.icons.splice(from, 1)[0]); apply() }">
|
|
13
|
-
<template v-slot="{ item, index }">
|
|
14
|
-
<div class="flex flex-row gap-1 p-2 bg-text-50 rounded-md mb-1">
|
|
15
|
-
<div data-reorder>
|
|
16
|
-
<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>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="flex-1 flex flex-row gap-1" @click="openIcon(item)">
|
|
19
|
-
<Image :src="imageSrc(item)"
|
|
20
|
-
class="w-[36px] aspect-square rounded-lg" />
|
|
21
|
-
<div class="flex-1 flex flex-col px-3 leading-0">
|
|
22
|
-
<p class="text-ellipsis overflow-hidden whitespace-nowrap">{{ item.text }}</p>
|
|
23
|
-
<small class="text-ellipsis overflow-hidden whitespace-nowrap">{{ item.target }}</small>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
<div>
|
|
27
|
-
<button type="button" @click="removeIcon(index)">
|
|
28
|
-
<svg class="fill-text-300 hover:fill-red-500" width="16" height="16" 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>
|
|
29
|
-
</button>
|
|
30
|
-
</div>
|
|
31
|
-
</div>
|
|
32
|
-
</template>
|
|
33
|
-
</ListItem>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div class="flex flex-row items-center gap-4">
|
|
37
|
-
<label class="flex-1 text-text-400">Columns</label>
|
|
38
|
-
<Dropdown v-for="(_viewType, idx) in viewTypes" class="w-[80px]"
|
|
39
|
-
v-model="item.props.columns[idx]"
|
|
40
|
-
v-show="_viewType.value === viewType"
|
|
41
|
-
@change="apply">
|
|
42
|
-
<option :value="`${viewType}grid-cols-1`">1</option>
|
|
43
|
-
<option :value="`${viewType}grid-cols-2`">2</option>
|
|
44
|
-
<option :value="`${viewType}grid-cols-3`">3</option>
|
|
45
|
-
<option :value="`${viewType}grid-cols-4`">4</option>
|
|
46
|
-
<option :value="`${viewType}grid-cols-5`">5</option>
|
|
47
|
-
<option :value="`${viewType}grid-cols-6`">6</option>
|
|
48
|
-
<option :value="`${viewType}grid-cols-7`">7</option>
|
|
49
|
-
<option :value="`${viewType}grid-cols-8`">8</option>
|
|
50
|
-
<option :value="`${viewType}grid-cols-9`">9</option>
|
|
51
|
-
<option :value="`${viewType}grid-cols-10`">10</option>
|
|
52
|
-
<option :value="`${viewType}grid-cols-11`">11</option>
|
|
53
|
-
<option :value="`${viewType}grid-cols-12`">12</option>
|
|
54
|
-
</Dropdown>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
|
|
58
|
-
<ComponentSetting2 :item="item"
|
|
59
|
-
:view-type="viewType"
|
|
60
|
-
:view-types="viewTypes"
|
|
61
|
-
:view-index="viewIndex"
|
|
62
|
-
defaultDisplay="block"
|
|
63
|
-
@change="$emit('change')" />
|
|
64
|
-
|
|
65
|
-
<Modal ref="iconModal" width="400" height="320">
|
|
66
|
-
<template v-slot:head>
|
|
67
|
-
<div class="relative p-6">
|
|
68
|
-
<h3>Edit Icon</h3>
|
|
69
|
-
<div class="absolute top-0 right-0 p-2">
|
|
70
|
-
<button type="button" class="p-2" @click="$refs.iconModal.close()">
|
|
71
|
-
<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">
|
|
72
|
-
<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"/>
|
|
73
|
-
</svg>
|
|
74
|
-
</button>
|
|
75
|
-
</div>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
<template #default="{ context }">
|
|
79
|
-
<div class="flex-1 p-6 flex flex-row gap-6">
|
|
80
|
-
<div>
|
|
81
|
-
<div class="p-2 transparent-image-bg mb-2">
|
|
82
|
-
<Image ref="iconImage" :src="imageSrc(context)" class="w-[84px] aspect-square"
|
|
83
|
-
@click="$refs.iconImage.edit()"
|
|
84
|
-
@change="(base64, file) => { uploadImage(file).then((res) => context.imageUrl = res.name); }"
|
|
85
|
-
:editable="true" />
|
|
86
|
-
</div>
|
|
87
|
-
<button type="button" class="text-primary"
|
|
88
|
-
@click="$refs.iconImage.edit()">Change Image</button>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="flex-1 flex flex-col gap-4">
|
|
91
|
-
<div>
|
|
92
|
-
<label class="text-text-400">Text</label>
|
|
93
|
-
<Textbox v-model="context.text" />
|
|
94
|
-
</div>
|
|
95
|
-
<div>
|
|
96
|
-
<label class="text-text-400">Target</label>
|
|
97
|
-
<Textbox v-model="context.target" />
|
|
98
|
-
</div>
|
|
99
|
-
<div>
|
|
100
|
-
<Button type="button" class="w-[80px]" @click="saveIcon(context)">OK</Button>
|
|
101
|
-
</div>
|
|
102
|
-
</div>
|
|
103
|
-
</div>
|
|
104
|
-
</template>
|
|
105
|
-
</Modal>
|
|
106
|
-
|
|
107
|
-
</div>
|
|
108
|
-
</template>
|
|
109
|
-
|
|
110
|
-
<script>
|
|
111
|
-
|
|
112
|
-
export default{
|
|
113
|
-
|
|
114
|
-
emits: [ 'change' ],
|
|
115
|
-
|
|
116
|
-
inject: [ 'confirm', 'uploadImage' ],
|
|
117
|
-
|
|
118
|
-
props: {
|
|
119
|
-
|
|
120
|
-
item: {
|
|
121
|
-
type: Object,
|
|
122
|
-
required: true
|
|
123
|
-
},
|
|
124
|
-
|
|
125
|
-
viewType: String,
|
|
126
|
-
|
|
127
|
-
viewIndex: Number,
|
|
128
|
-
|
|
129
|
-
viewTypes: Array,
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
data(){
|
|
134
|
-
return {
|
|
135
|
-
currentItem: null
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
|
|
139
|
-
methods: {
|
|
140
|
-
|
|
141
|
-
apply(){
|
|
142
|
-
this.$emit('change')
|
|
143
|
-
},
|
|
144
|
-
|
|
145
|
-
imageSrc(image){
|
|
146
|
-
return typeof image.imageUrl === 'string' ? import.meta.env.VITE_IMAGE_HOST + '/' + image.imageUrl :
|
|
147
|
-
image.imageUrl
|
|
148
|
-
},
|
|
149
|
-
|
|
150
|
-
openIcon(item){
|
|
151
|
-
this.currentItem = item
|
|
152
|
-
this.$refs.iconModal.open({ ...this.currentItem })
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
saveIcon(context){
|
|
156
|
-
Object.assign(this.currentItem, context)
|
|
157
|
-
this.$refs.iconModal.close()
|
|
158
|
-
this.apply()
|
|
159
|
-
},
|
|
160
|
-
|
|
161
|
-
addIcon(){
|
|
162
|
-
this.item.props.icons.push({})
|
|
163
|
-
this.currentItem = this.item.props.icons[this.item.props.icons.length - 1]
|
|
164
|
-
this.$refs.iconModal.open({ ...this.currentItem })
|
|
165
|
-
},
|
|
166
|
-
|
|
167
|
-
removeIcon(index){
|
|
168
|
-
this.confirm("Remove this icon?", {
|
|
169
|
-
onConfirm: () => {
|
|
170
|
-
this.item.props.icons.splice(index, 1)
|
|
171
|
-
this.apply()
|
|
172
|
-
}
|
|
173
|
-
})
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
</script>
|
|
181
|
-
|
|
182
|
-
<style module>
|
|
183
|
-
|
|
184
|
-
.comp{
|
|
185
|
-
@apply flex flex-col divide-y divide-border-50;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
</style>
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp">
|
|
3
|
-
<div>
|
|
4
|
-
<div class="flex flex-col gap-4 p-6 py-4">
|
|
5
|
-
<div>
|
|
6
|
-
<div class="flex flex-row gap-3">
|
|
7
|
-
<small class="flex-1 text-text-400" @dbclick="log(item.props)">Image</small>
|
|
8
|
-
<ImageUploader ref="uploader" @change="image => item.props.src[viewIndex] = image" :upload-fn="uploadImage" class="text-sm"></ImageUploader>
|
|
9
|
-
</div>
|
|
10
|
-
<div class="mt-1">
|
|
11
|
-
<div class="flex flex-row items-start gap-2">
|
|
12
|
-
<Image :ref="`image`"
|
|
13
|
-
:src="item.props.src[viewIndex]"
|
|
14
|
-
class="w-[100px] aspect-square rounded-xl bg-white"
|
|
15
|
-
@click="$refs.uploader.edit(item.props.src[viewIndex])"
|
|
16
|
-
item-class="object-cover">
|
|
17
|
-
<button type="button" class="absolute top-1 right-1 rounded-full bg-white" v-if="item.props.src[viewIndex]"
|
|
18
|
-
@click.stop="$refs[`image`].reset()">
|
|
19
|
-
<svg width="19" height="19" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm121.6 313.1c4.7 4.7 4.7 12.3 0 17L338 377.6c-4.7 4.7-12.3 4.7-17 0L256 312l-65.1 65.6c-4.7 4.7-12.3 4.7-17 0L134.4 338c-4.7-4.7-4.7-12.3 0-17l65.6-65-65.6-65.1c-4.7-4.7-4.7-12.3 0-17l39.6-39.6c4.7-4.7 12.3-4.7 17 0l65 65.7 65.1-65.6c4.7-4.7 12.3-4.7 17 0l39.6 39.6c4.7 4.7 4.7 12.3 0 17L312 256l65.6 65.1z"/></svg>
|
|
20
|
-
</button>
|
|
21
|
-
</Image>
|
|
22
|
-
</div>
|
|
23
|
-
</div>
|
|
24
|
-
</div>
|
|
25
|
-
|
|
26
|
-
<div>
|
|
27
|
-
<small class="flex-1 text-text-400">Target</small>
|
|
28
|
-
<Textbox v-model="item.props.target" @keyup.enter="apply"/>
|
|
29
|
-
</div>
|
|
30
|
-
|
|
31
|
-
<div>
|
|
32
|
-
<small class="flex-1 text-text-400">Alt</small>
|
|
33
|
-
<Textbox v-model="item.props.alt" @keyup.enter="apply"/>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
|
|
39
|
-
<ComponentSetting2 :item="item"
|
|
40
|
-
:view-type="viewType"
|
|
41
|
-
:view-types="viewTypes"
|
|
42
|
-
:view-index="viewIndex"
|
|
43
|
-
defaultDisplay="block"
|
|
44
|
-
@change="$emit('change')" />
|
|
45
|
-
|
|
46
|
-
</div>
|
|
47
|
-
</template>
|
|
48
|
-
|
|
49
|
-
<script>
|
|
50
|
-
|
|
51
|
-
import ImageUploader from "../components/ImageUploader.vue";
|
|
52
|
-
|
|
53
|
-
export default{
|
|
54
|
-
components: {ImageUploader},
|
|
55
|
-
|
|
56
|
-
emits: [ 'change' ],
|
|
57
|
-
|
|
58
|
-
inject: [ 'alert', 'confirm', 'imageSrc', 'uploadImage', 'store' ],
|
|
59
|
-
|
|
60
|
-
props: {
|
|
61
|
-
|
|
62
|
-
item: {
|
|
63
|
-
type: Object,
|
|
64
|
-
required: true
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
viewType: String,
|
|
68
|
-
|
|
69
|
-
viewIndex: Number,
|
|
70
|
-
|
|
71
|
-
viewTypes: Array,
|
|
72
|
-
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
methods: {
|
|
76
|
-
|
|
77
|
-
apply(){
|
|
78
|
-
this.$emit('change')
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
computed: {
|
|
84
|
-
|
|
85
|
-
componentStore(){
|
|
86
|
-
if(this.store && this.store.components){
|
|
87
|
-
if(!this.store.components.compsetting)
|
|
88
|
-
this.store.components.compsetting = {}
|
|
89
|
-
|
|
90
|
-
return this.store.components.compsetting
|
|
91
|
-
}
|
|
92
|
-
return {}
|
|
93
|
-
},
|
|
94
|
-
|
|
95
|
-
expanded(){
|
|
96
|
-
if(!this.componentStore['expanded'])
|
|
97
|
-
this.componentStore['expanded'] = {}
|
|
98
|
-
return this.componentStore['expanded']
|
|
99
|
-
},
|
|
100
|
-
|
|
101
|
-
src(){
|
|
102
|
-
if(!Array.isArray(this.item.props.src))
|
|
103
|
-
this.item.props.src = []
|
|
104
|
-
return this.item.props.src
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
</script>
|
|
112
|
-
|
|
113
|
-
<style module>
|
|
114
|
-
|
|
115
|
-
.comp{
|
|
116
|
-
@apply flex flex-col divide-y divide-border-50;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
</style>
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
|
|
4
|
-
<div v-if="'aspectRatio' in item.props">
|
|
5
|
-
<ComponentPropertyLabel label="Aspect Ratio"
|
|
6
|
-
:removable="removable"
|
|
7
|
-
@remove="delete item.props.aspectRatio" />
|
|
8
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
9
|
-
v-show="viewType === _.value"
|
|
10
|
-
v-model="item.props.aspectRatio[idx]"
|
|
11
|
-
@change="$emit('change')">
|
|
12
|
-
<option value="">Default</option>
|
|
13
|
-
<option :value="`${viewType}aspect-square`">Square</option>
|
|
14
|
-
<option :value="`${viewType}aspect-[2/1]`">2/1</option>
|
|
15
|
-
<option :value="`${viewType}aspect-[3/1]`">3/1</option>
|
|
16
|
-
<option :value="`${viewType}aspect-[4/1]`">4/1</option>
|
|
17
|
-
<option :value="`${viewType}aspect-[4/3]`">4/3</option>
|
|
18
|
-
<option :value="`${viewType}aspect-[5/1]`">5/1</option>
|
|
19
|
-
<option :value="`${viewType}aspect-[6/1]`">6/1</option>
|
|
20
|
-
<option :value="`${viewType}aspect-[7/1]`">7/1</option>
|
|
21
|
-
<option :value="`${viewType}aspect-[8/1]`">8/1</option>
|
|
22
|
-
<option :value="`${viewType}aspect-[8/3]`">8/3</option>
|
|
23
|
-
<option :value="`${viewType}aspect-[8/5.6]`">8/5.6</option>
|
|
24
|
-
<option :value="`${viewType}aspect-[9/1]`">9/1</option>
|
|
25
|
-
<option :value="`${viewType}aspect-video`">Video</option>
|
|
26
|
-
<option :value="`${viewType}aspect-[1/2]`">1/2</option>
|
|
27
|
-
<option :value="`${viewType}aspect-[2/3]`">2/3</option>
|
|
28
|
-
<option :value="`${viewType}aspect-[3/4]`">3/4</option>
|
|
29
|
-
<option :value="`${viewType}aspect-[8/9]`">8/9</option>
|
|
30
|
-
</Dropdown>
|
|
31
|
-
</div>
|
|
32
|
-
|
|
33
|
-
<div v-if="'position' in item.props">
|
|
34
|
-
<ComponentPropertyLabel label="Position"
|
|
35
|
-
:removable="removable"
|
|
36
|
-
@remove="delete item.props.position" />
|
|
37
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
38
|
-
v-show="viewType === _.value"
|
|
39
|
-
v-model="item.props.position[idx]"
|
|
40
|
-
@change="$emit('change')">
|
|
41
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
42
|
-
<option :value="`${viewType}static`">Static</option>
|
|
43
|
-
<option :value="`${viewType}fixed`">Fixed</option>
|
|
44
|
-
<option :value="`${viewType}absolute`">Absolute</option>
|
|
45
|
-
<option :value="`${viewType}relative`">Relative</option>
|
|
46
|
-
<option :value="`${viewType}sticky`">Sticky</option>
|
|
47
|
-
</Dropdown>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div v-if="'display' in item.props">
|
|
51
|
-
<ComponentPropertyLabel label="Display"
|
|
52
|
-
:removable="removable"
|
|
53
|
-
@remove="delete item.props.display" />
|
|
54
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
55
|
-
v-show="viewType === _.value"
|
|
56
|
-
v-model="item.props.display[idx]"
|
|
57
|
-
@change="$emit('change')">
|
|
58
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
59
|
-
<option :value="`${viewType}hidden`">Hidden</option>
|
|
60
|
-
<option :value="`${viewType}block`">Block</option>
|
|
61
|
-
<option :value="`${viewType}inline-block`">Inline Block</option>
|
|
62
|
-
<option :value="`${viewType}inline`">Inline</option>
|
|
63
|
-
<option :value="`${viewType}flex`">Flex</option>
|
|
64
|
-
<option :value="`${viewType}inline-flex`">Inline Flex</option>
|
|
65
|
-
<option :value="`${viewType}table`">Table</option>
|
|
66
|
-
<option :value="`${viewType}inline-table`">Inline Table</option>
|
|
67
|
-
<option :value="`${viewType}grid`">Grid</option>
|
|
68
|
-
<option :value="`${viewType}inline-grid`">Inline Grid</option>
|
|
69
|
-
</Dropdown>
|
|
70
|
-
</div>
|
|
71
|
-
|
|
72
|
-
<div v-if="'overflow' in item.props">
|
|
73
|
-
<ComponentPropertyLabel label="Overflow"
|
|
74
|
-
:removable="removable"
|
|
75
|
-
@remove="delete item.props.overflow" />
|
|
76
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
77
|
-
v-show="viewType === _.value"
|
|
78
|
-
v-model="item.props.overflow[idx]"
|
|
79
|
-
@change="$emit('change')">
|
|
80
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
81
|
-
<option :value="`${viewType}overflow-auto`">Auto</option>
|
|
82
|
-
<option :value="`${viewType}overflow-hidden`">Hidden</option>
|
|
83
|
-
<option :value="`${viewType}overflow-clip`">Clip</option>
|
|
84
|
-
<option :value="`${viewType}overflow-visible`">Visible</option>
|
|
85
|
-
<option :value="`${viewType}overflow-scroll`">Scroll</option>
|
|
86
|
-
<option :value="`${viewType}overflow-x-auto`">X Auto</option>
|
|
87
|
-
<option :value="`${viewType}overflow-x-hidden`">X Hidden</option>
|
|
88
|
-
<option :value="`${viewType}overflow-y-auto`">Y Auto</option>
|
|
89
|
-
<option :value="`${viewType}overflow-y-hidden`">Y Hidden</option>
|
|
90
|
-
<option :value="`${viewType}overflow-x-clip`">X Clip</option>
|
|
91
|
-
<option :value="`${viewType}overflow-y-clip`">Y Clip</option>
|
|
92
|
-
<option :value="`${viewType}overflow-x-visible`">X Visible</option>
|
|
93
|
-
<option :value="`${viewType}overflow-y-visible`">Y Visible</option>
|
|
94
|
-
<option :value="`${viewType}overflow-x-scroll`">X Scroll</option>
|
|
95
|
-
<option :value="`${viewType}overflow-y-scroll`">Y Scroll</option>
|
|
96
|
-
</Dropdown>
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
<div v-if="'top' in item.props">
|
|
100
|
-
<ComponentPropertyLabel label="Top"
|
|
101
|
-
:removable="removable"
|
|
102
|
-
@remove="delete item.props.top" />
|
|
103
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
104
|
-
v-show="viewType === _.value"
|
|
105
|
-
v-model="item.props.top[idx]"
|
|
106
|
-
@change="$emit('change')">
|
|
107
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
108
|
-
<option :value="`${viewType}top-0`">0</option>
|
|
109
|
-
<option :value="`${viewType}top-4`">4</option>
|
|
110
|
-
<option :value="`${viewType}top-6`">6</option>
|
|
111
|
-
<option :value="`${viewType}top-8`">8</option>
|
|
112
|
-
<option :value="`${viewType}top-12`">12</option>
|
|
113
|
-
<option :value="`${viewType}top-16`">16</option>
|
|
114
|
-
<option :value="`${viewType}top-20`">20</option>
|
|
115
|
-
<option :value="`${viewType}top-24`">24</option>
|
|
116
|
-
<option :value="`${viewType}top-28`">28</option>
|
|
117
|
-
<option :value="`${viewType}top-32`">32</option>
|
|
118
|
-
<option :value="`${viewType}top-36`">36</option>
|
|
119
|
-
<option :value="`${viewType}top-48`">48</option>
|
|
120
|
-
</Dropdown>
|
|
121
|
-
</div>
|
|
122
|
-
|
|
123
|
-
<div v-if="'left' in item.props">
|
|
124
|
-
<ComponentPropertyLabel label="Left"
|
|
125
|
-
:removable="removable"
|
|
126
|
-
@remove="delete item.props.left" />
|
|
127
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
128
|
-
v-show="viewType === _.value"
|
|
129
|
-
v-model="item.props.left[idx]"
|
|
130
|
-
@change="$emit('change')">
|
|
131
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
132
|
-
<option :value="`${viewType}left-0`">0</option>
|
|
133
|
-
<option :value="`${viewType}left-4`">4</option>
|
|
134
|
-
<option :value="`${viewType}left-6`">6</option>
|
|
135
|
-
<option :value="`${viewType}left-8`">8</option>
|
|
136
|
-
<option :value="`${viewType}left-12`">12</option>
|
|
137
|
-
<option :value="`${viewType}left-16`">16</option>
|
|
138
|
-
<option :value="`${viewType}left-20`">20</option>
|
|
139
|
-
<option :value="`${viewType}left-24`">24</option>
|
|
140
|
-
<option :value="`${viewType}left-28`">28</option>
|
|
141
|
-
<option :value="`${viewType}left-32`">32</option>
|
|
142
|
-
<option :value="`${viewType}left-36`">36</option>
|
|
143
|
-
<option :value="`${viewType}left-48`">48</option>
|
|
144
|
-
</Dropdown>
|
|
145
|
-
</div>
|
|
146
|
-
|
|
147
|
-
<div v-if="'right' in item.props">
|
|
148
|
-
<ComponentPropertyLabel label="Right"
|
|
149
|
-
:removable="removable"
|
|
150
|
-
@remove="delete item.props.right" />
|
|
151
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
152
|
-
v-show="viewType === _.value"
|
|
153
|
-
v-model="item.props.right[idx]"
|
|
154
|
-
@change="$emit('change')">
|
|
155
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
156
|
-
<option :value="`${viewType}right-0`">0</option>
|
|
157
|
-
<option :value="`${viewType}right-4`">4</option>
|
|
158
|
-
<option :value="`${viewType}right-6`">6</option>
|
|
159
|
-
<option :value="`${viewType}right-8`">8</option>
|
|
160
|
-
<option :value="`${viewType}right-12`">12</option>
|
|
161
|
-
<option :value="`${viewType}right-16`">16</option>
|
|
162
|
-
<option :value="`${viewType}right-20`">20</option>
|
|
163
|
-
<option :value="`${viewType}right-24`">24</option>
|
|
164
|
-
<option :value="`${viewType}right-28`">28</option>
|
|
165
|
-
<option :value="`${viewType}right-32`">32</option>
|
|
166
|
-
<option :value="`${viewType}right-36`">36</option>
|
|
167
|
-
<option :value="`${viewType}right-48`">48</option>
|
|
168
|
-
</Dropdown>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
<div v-if="'bottom' in item.props">
|
|
172
|
-
<ComponentPropertyLabel label="Bottom"
|
|
173
|
-
:removable="removable"
|
|
174
|
-
@remove="delete item.props.bottom" />
|
|
175
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
176
|
-
v-show="viewType === _.value"
|
|
177
|
-
v-model="item.props.bottom[idx]"
|
|
178
|
-
@change="$emit('change')">
|
|
179
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
180
|
-
<option :value="`${viewType}bottom-0`">0</option>
|
|
181
|
-
<option :value="`${viewType}bottom-4`">4</option>
|
|
182
|
-
<option :value="`${viewType}bottom-6`">6</option>
|
|
183
|
-
<option :value="`${viewType}bottom-8`">8</option>
|
|
184
|
-
<option :value="`${viewType}bottom-12`">12</option>
|
|
185
|
-
<option :value="`${viewType}bottom-16`">16</option>
|
|
186
|
-
<option :value="`${viewType}bottom-20`">20</option>
|
|
187
|
-
<option :value="`${viewType}bottom-24`">24</option>
|
|
188
|
-
<option :value="`${viewType}bottom-28`">28</option>
|
|
189
|
-
<option :value="`${viewType}bottom-32`">32</option>
|
|
190
|
-
<option :value="`${viewType}bottom-36`">36</option>
|
|
191
|
-
<option :value="`${viewType}bottom-48`">48</option>
|
|
192
|
-
</Dropdown>
|
|
193
|
-
</div>
|
|
194
|
-
|
|
195
|
-
<div v-if="'zIndex' in item.props">
|
|
196
|
-
<ComponentPropertyLabel label="Z Index"
|
|
197
|
-
:removable="removable"
|
|
198
|
-
@remove="delete item.props.zIndex" />
|
|
199
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
200
|
-
v-show="viewType === _.value"
|
|
201
|
-
v-model="item.props.zIndex[idx]"
|
|
202
|
-
@change="$emit('change')">
|
|
203
|
-
<option value="">{{ idx > 0 ? 'Inherit': 'Default' }}</option>
|
|
204
|
-
<option :value="`${viewType}z-0`">0</option>
|
|
205
|
-
<option :value="`${viewType}z-10`">10</option>
|
|
206
|
-
<option :value="`${viewType}z-20`">20</option>
|
|
207
|
-
<option :value="`${viewType}z-30`">30</option>
|
|
208
|
-
<option :value="`${viewType}z-40`">40</option>
|
|
209
|
-
<option :value="`${viewType}z-50`">50</option>
|
|
210
|
-
</Dropdown>
|
|
211
|
-
</div>
|
|
212
|
-
|
|
213
|
-
</div>
|
|
214
|
-
</template>
|
|
215
|
-
|
|
216
|
-
<script>
|
|
217
|
-
|
|
218
|
-
export default{
|
|
219
|
-
|
|
220
|
-
emits: [ 'change' ],
|
|
221
|
-
|
|
222
|
-
inject: [ 'viewTypes' ],
|
|
223
|
-
|
|
224
|
-
props: {
|
|
225
|
-
config: Object,
|
|
226
|
-
|
|
227
|
-
item: {
|
|
228
|
-
type: Object,
|
|
229
|
-
required: true
|
|
230
|
-
},
|
|
231
|
-
|
|
232
|
-
removable: Boolean
|
|
233
|
-
},
|
|
234
|
-
|
|
235
|
-
computed: {
|
|
236
|
-
|
|
237
|
-
viewType(){
|
|
238
|
-
return this.config.viewType
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
},
|
|
242
|
-
|
|
243
|
-
data(){
|
|
244
|
-
return {
|
|
245
|
-
_config: {},
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
</script>
|