Browse Source
Merge pull request #346 from Budibase/image-component
Image Component
pull/354/head
Joe
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
15 additions and
3 deletions
-
packages/builder/src/components/userInterface/temporaryPanelStructure.js
-
packages/standard-components/src/DataForm.svelte
-
packages/standard-components/src/DataTable.svelte
-
packages/standard-components/src/Image.svelte
|
|
|
@ -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", |
|
|
|
name: "Icon", |
|
|
|
|
|
|
|
@ -87,7 +87,6 @@ |
|
|
|
|
|
|
|
.form-content { |
|
|
|
margin-bottom: 20px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.input { |
|
|
|
|
|
|
|
@ -65,7 +65,7 @@ |
|
|
|
} |
|
|
|
|
|
|
|
thead { |
|
|
|
background: #393C44; |
|
|
|
background: #393c44; |
|
|
|
border: 1px solid #ccc; |
|
|
|
height: 40px; |
|
|
|
text-align: left; |
|
|
|
@ -87,7 +87,7 @@ |
|
|
|
tbody tr { |
|
|
|
border-bottom: 1px solid #ccc; |
|
|
|
transition: 0.3s background-color; |
|
|
|
color: #393C44; |
|
|
|
color: #393c44; |
|
|
|
font-size: 14px; |
|
|
|
height: 40px; |
|
|
|
} |
|
|
|
|
|
|
|
@ -7,6 +7,8 @@ |
|
|
|
export let height |
|
|
|
export let width |
|
|
|
|
|
|
|
export let _bb |
|
|
|
|
|
|
|
$: style = buildStyle({ height, width }) |
|
|
|
</script> |
|
|
|
|
|
|
|
|