iconograph-ui 1.4.2 → 1.4.4
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/lib/display/Field.svelte
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// @ts-nocheck
|
|
3
3
|
export let fields;
|
|
4
4
|
export let field;
|
|
5
|
+
export let style;
|
|
5
6
|
|
|
6
7
|
export const __filter_options = fields;
|
|
7
8
|
|
|
@@ -16,11 +17,13 @@
|
|
|
16
17
|
let f_arr = transform(fields);
|
|
17
18
|
</script>
|
|
18
19
|
|
|
19
|
-
|
|
20
|
-
|
|
20
|
+
{#if style == 2}
|
|
21
|
+
{f_arr[field]}
|
|
22
|
+
{:else}
|
|
21
23
|
<div class="indicator-wrapper">
|
|
22
|
-
<span>{f_arr[field]}
|
|
24
|
+
<span>{f_arr[field]}</span>
|
|
23
25
|
</div>
|
|
26
|
+
{/if}
|
|
24
27
|
|
|
25
28
|
<style>
|
|
26
29
|
|