Merge branch 'master' of github.com:Budibase/budibase
This commit is contained in:
commit
9a807beccb
|
@ -37,16 +37,26 @@
|
||||||
//use for getting controls for each component property
|
//use for getting controls for each component property
|
||||||
c => c._component === componentInstance._component
|
c => c._component === componentInstance._component
|
||||||
) || {}
|
) || {}
|
||||||
|
|
||||||
|
let panelDefinition = {}
|
||||||
|
|
||||||
$: panelDefinition = componentPropDefinition.properties
|
$: {
|
||||||
? componentPropDefinition.properties[selectedCategory.value]
|
if(componentPropDefinition.properties) {
|
||||||
: {}
|
if(selectedCategory.value === "design") {
|
||||||
|
panelDefinition = componentPropDefinition.properties["design"]
|
||||||
|
}else{
|
||||||
|
let panelDef = componentPropDefinition.properties["settings"]
|
||||||
|
if($store.currentFrontEndType === "page" && $store.currentView !== "component") {
|
||||||
|
panelDefinition = [...page,...panelDef]
|
||||||
|
}else if($store.currentFrontEndType === "screen" && $store.currentView !== "component") {
|
||||||
|
panelDefinition = [...screen, ...panelDef]
|
||||||
|
}else {
|
||||||
|
panelDefinition = panelDef
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// SCREEN PROPS =============================================
|
|
||||||
$: screen_props =
|
|
||||||
$store.currentFrontEndType === "page"
|
|
||||||
? getProps($store.currentPreviewItem, ["name", "favicon"])
|
|
||||||
: getProps($store.currentPreviewItem, ["name", "description", "route"])
|
|
||||||
|
|
||||||
const onStyleChanged = store.setComponentStyle
|
const onStyleChanged = store.setComponentStyle
|
||||||
const onPropChanged = store.setComponentProp
|
const onPropChanged = store.setComponentProp
|
||||||
|
@ -106,12 +116,10 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
/* Merge Check */
|
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
overflow-y: hidden;
|
overflow-y: hidden;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
/* Merge Check */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.title > div:nth-child(1) {
|
.title > div:nth-child(1) {
|
||||||
|
|
|
@ -187,6 +187,17 @@ export default {
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
_component: "@budibase/standard-components/image",
|
||||||
|
name: "Image",
|
||||||
|
description: "A basic component for displaying images",
|
||||||
|
icon: "ri-image-fill",
|
||||||
|
children: [],
|
||||||
|
properties: {
|
||||||
|
design: { ...all },
|
||||||
|
settings: [{ label: "URL", key: "url", control: Input }],
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
_component: "@budibase/standard-components/icon",
|
_component: "@budibase/standard-components/icon",
|
||||||
name: "Icon",
|
name: "Icon",
|
||||||
|
|
|
@ -87,7 +87,6 @@
|
||||||
|
|
||||||
.form-content {
|
.form-content {
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.input {
|
.input {
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
thead {
|
thead {
|
||||||
background: #393C44;
|
background: #393c44;
|
||||||
border: 1px solid #ccc;
|
border: 1px solid #ccc;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
tbody tr {
|
tbody tr {
|
||||||
border-bottom: 1px solid #ccc;
|
border-bottom: 1px solid #ccc;
|
||||||
transition: 0.3s background-color;
|
transition: 0.3s background-color;
|
||||||
color: #393C44;
|
color: #393c44;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,6 +7,8 @@
|
||||||
export let height
|
export let height
|
||||||
export let width
|
export let width
|
||||||
|
|
||||||
|
export let _bb
|
||||||
|
|
||||||
$: style = buildStyle({ height, width })
|
$: style = buildStyle({ height, width })
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue