|
1 | | -<script setup lang="ts"> |
2 | | -import { computed, useSlots } from 'vue' |
| 1 | +<script setup lang="js"> |
| 2 | +import { computed } from 'vue' |
3 | 3 | import { compute_alignment, compute_column_size } from '../layoutHelper' |
4 | 4 |
|
5 | | -const slots = useSlots() |
6 | | -
|
7 | 5 | const props = defineProps({ |
8 | 6 | side: { |
9 | 7 | default: 'l', |
@@ -55,15 +53,15 @@ const colorscheme = computed(() => { |
55 | 53 | <p> |
56 | 54 | There are three parameters: <code>color</code>, <code>columns</code> and <code>align</code>. Currently: |
57 | 55 | <code>color: {{ props.color }}</code |
58 | | - >, <code>columns: {{ props.columns }}</code> and <code>align: {{ props.align }}</code |
| 56 | + >, <code>columns: {{ props.titlewidth }}</code> and <code>align: {{ props.align }}</code |
59 | 57 | >. |
60 | 58 | </p> |
61 | 59 | <p>The "slots" of the page are default and <code>:: content ::</code></p> |
62 | 60 | <p> |
63 | | - Options for <code>columns</code> are divided into 12 column units. So with <code>columns: is-1-11</code> the left |
64 | | - column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only specifying |
65 | | - the left column (<code>columns: is-1</code> does the same thing). In addition there are short hands like |
66 | | - <code>columns: is-one-quarter</code> which resolves to <code>is-3-9</code>, etc... |
| 61 | + Options for <code>titlewidth</code> are divided into 12 column units. So with <code>titlewidth: is-1-11</code> the |
| 62 | + left column is 1/12 wide and the the right columns is 11/12 wide. The component admits a short had of only |
| 63 | + specifying the left column (<code>titlewidth: is-1</code> does the same thing). In addition there are short hands |
| 64 | + like <code>titlewidth: is-one-quarter</code> which resolves to <code>is-3-9</code>, etc... |
67 | 65 | </p> |
68 | 66 | <p> |
69 | 67 | Here are a bunch of examples: |
|
0 commit comments