@oruga-ui/theme-oruga 0.2.0 → 0.2.2
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/dist/oruga-full.css +12 -10
- package/dist/oruga-full.min.css +1 -1
- package/dist/oruga.css +12 -10
- package/dist/oruga.min.css +1 -1
- package/dist/scss/components/_sidebar.scss +7 -9
- package/dist/scss/components/_steps.scss +5 -0
- package/dist/scss/components/_taginput.scss +0 -5
- package/dist/scss/utils/_root.scss +6 -2
- package/dist/theme.js +2 -1
- package/package.json +28 -30
- package/src/assets/scss/components/_sidebar.scss +7 -9
- package/src/assets/scss/components/_steps.scss +5 -0
- package/src/assets/scss/components/_taginput.scss +0 -5
- package/src/assets/scss/utils/_root.scss +6 -2
- package/src/App.vue +0 -105
- package/src/components/Autocomplete.vue +0 -606
- package/src/components/Button.vue +0 -80
- package/src/components/Carousel.vue +0 -295
- package/src/components/Checkbox.vue +0 -135
- package/src/components/Collapse.vue +0 -134
- package/src/components/Datepicker.vue +0 -282
- package/src/components/Datetimepicker.vue +0 -127
- package/src/components/Dropdown.vue +0 -329
- package/src/components/Field.vue +0 -235
- package/src/components/Icon.vue +0 -66
- package/src/components/Input.vue +0 -129
- package/src/components/Loading.vue +0 -70
- package/src/components/Menu.vue +0 -42
- package/src/components/Modal.vue +0 -230
- package/src/components/Notification.vue +0 -136
- package/src/components/Pagination.vue +0 -96
- package/src/components/Radio.vue +0 -111
- package/src/components/Select.vue +0 -155
- package/src/components/Sidebar.vue +0 -73
- package/src/components/Skeleton.vue +0 -75
- package/src/components/Slider.vue +0 -226
- package/src/components/Steps.vue +0 -233
- package/src/components/Switch.vue +0 -137
- package/src/components/Table.vue +0 -278
- package/src/components/Tabs.vue +0 -209
- package/src/components/Taginput.vue +0 -507
- package/src/components/Timepicker.vue +0 -122
- package/src/components/Tooltip.vue +0 -187
- package/src/components/Upload.vue +0 -66
- package/src/main.ts +0 -29
- package/src/plugins/theme.ts +0 -1
- package/src/router/index.ts +0 -39
- package/src/views/Home.vue +0 -24
- package/types/index.d.ts +0 -1
package/src/components/Radio.vue
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const radio = ref("Jack");
|
|
5
|
-
const variant = ref("success");
|
|
6
|
-
const size = ref("small");
|
|
7
|
-
</script>
|
|
8
|
-
|
|
9
|
-
<template>
|
|
10
|
-
<section>
|
|
11
|
-
<h2>Radio Demo</h2>
|
|
12
|
-
<hr />
|
|
13
|
-
</section>
|
|
14
|
-
|
|
15
|
-
<section>
|
|
16
|
-
<h3>Base</h3>
|
|
17
|
-
|
|
18
|
-
<o-field>
|
|
19
|
-
<o-radio v-model="radio" name="name" native-value="Flint" label="Flint" />
|
|
20
|
-
<o-radio
|
|
21
|
-
v-model="radio"
|
|
22
|
-
name="name"
|
|
23
|
-
native-value="Silver"
|
|
24
|
-
label="Silver" />
|
|
25
|
-
<o-radio v-model="radio" name="name" native-value="Jack" label="Jack" />
|
|
26
|
-
<o-radio
|
|
27
|
-
v-model="radio"
|
|
28
|
-
name="name"
|
|
29
|
-
native-value="Vane"
|
|
30
|
-
disabled
|
|
31
|
-
label="Vane" />
|
|
32
|
-
</o-field>
|
|
33
|
-
|
|
34
|
-
<p><b>Selection:</b> {{ radio }}</p>
|
|
35
|
-
</section>
|
|
36
|
-
|
|
37
|
-
<section>
|
|
38
|
-
<h3>Variant</h3>
|
|
39
|
-
|
|
40
|
-
<o-field>
|
|
41
|
-
<o-radio v-model="variant" native-value="default" label="Default" />
|
|
42
|
-
</o-field>
|
|
43
|
-
<o-field>
|
|
44
|
-
<o-radio
|
|
45
|
-
v-model="variant"
|
|
46
|
-
native-value="primary"
|
|
47
|
-
variant="primary"
|
|
48
|
-
label="Primary" />
|
|
49
|
-
</o-field>
|
|
50
|
-
<o-field>
|
|
51
|
-
<o-radio
|
|
52
|
-
v-model="variant"
|
|
53
|
-
native-value="secondary"
|
|
54
|
-
variant="secondary"
|
|
55
|
-
label="Secondary" />
|
|
56
|
-
</o-field>
|
|
57
|
-
<o-field>
|
|
58
|
-
<o-radio
|
|
59
|
-
v-model="variant"
|
|
60
|
-
native-value="info"
|
|
61
|
-
variant="info"
|
|
62
|
-
label="Info" />
|
|
63
|
-
</o-field>
|
|
64
|
-
<o-field>
|
|
65
|
-
<o-radio
|
|
66
|
-
v-model="variant"
|
|
67
|
-
native-value="success"
|
|
68
|
-
variant="success"
|
|
69
|
-
label="Success" />
|
|
70
|
-
</o-field>
|
|
71
|
-
<o-field>
|
|
72
|
-
<o-radio
|
|
73
|
-
v-model="variant"
|
|
74
|
-
native-value="warning"
|
|
75
|
-
variant="warning"
|
|
76
|
-
label="Warning" />
|
|
77
|
-
</o-field>
|
|
78
|
-
<o-field>
|
|
79
|
-
<o-radio
|
|
80
|
-
v-model="variant"
|
|
81
|
-
native-value="danger"
|
|
82
|
-
variant="danger"
|
|
83
|
-
label="Danger" />
|
|
84
|
-
</o-field>
|
|
85
|
-
|
|
86
|
-
<p><b>Selection:</b> {{ variant }}</p>
|
|
87
|
-
</section>
|
|
88
|
-
|
|
89
|
-
<section>
|
|
90
|
-
<h3>Size</h3>
|
|
91
|
-
|
|
92
|
-
<o-field>
|
|
93
|
-
<o-radio v-model="size" native-value="small" size="small" label="Small" />
|
|
94
|
-
</o-field>
|
|
95
|
-
<o-field>
|
|
96
|
-
<o-radio v-model="size" native-value="default" label="Default" />
|
|
97
|
-
</o-field>
|
|
98
|
-
<o-field>
|
|
99
|
-
<o-radio
|
|
100
|
-
v-model="size"
|
|
101
|
-
native-value="medium"
|
|
102
|
-
size="medium"
|
|
103
|
-
label="Medium" />
|
|
104
|
-
</o-field>
|
|
105
|
-
<o-field>
|
|
106
|
-
<o-radio v-model="size" native-value="large" size="large" label="Large" />
|
|
107
|
-
</o-field>
|
|
108
|
-
|
|
109
|
-
<p><b>Selection:</b> {{ size }}</p>
|
|
110
|
-
</section>
|
|
111
|
-
</template>
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const selectedOptions = ref([]);
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<section>
|
|
9
|
-
<h2>Select Demo</h2>
|
|
10
|
-
<hr />
|
|
11
|
-
</section>
|
|
12
|
-
|
|
13
|
-
<section>
|
|
14
|
-
<h3>Base</h3>
|
|
15
|
-
|
|
16
|
-
<o-field label="Simple">
|
|
17
|
-
<o-select placeholder="Select a name">
|
|
18
|
-
<option value="flint">Flint</option>
|
|
19
|
-
<option value="silver">Silver</option>
|
|
20
|
-
</o-select>
|
|
21
|
-
</o-field>
|
|
22
|
-
|
|
23
|
-
<o-field label="Grouped">
|
|
24
|
-
<o-select placeholder="Select a character" icon="user">
|
|
25
|
-
<optgroup label="Black Sails">
|
|
26
|
-
<option value="flint">Flint</option>
|
|
27
|
-
<option value="silver">Silver</option>
|
|
28
|
-
<option value="vane">Vane</option>
|
|
29
|
-
<option value="billy">Billy</option>
|
|
30
|
-
<option value="jack">Jack</option>
|
|
31
|
-
</optgroup>
|
|
32
|
-
|
|
33
|
-
<optgroup label="Breaking Bad">
|
|
34
|
-
<option value="heisenberg">Heisenberg</option>
|
|
35
|
-
<option value="jesse">Jesse</option>
|
|
36
|
-
<option value="saul">Saul</option>
|
|
37
|
-
<option value="mike">Mike</option>
|
|
38
|
-
</optgroup>
|
|
39
|
-
|
|
40
|
-
<optgroup label="Game of Thrones">
|
|
41
|
-
<option value="tyrion-lannister">Tyrion Lannister</option>
|
|
42
|
-
<option value="jamie-lannister">Jamie Lannister</option>
|
|
43
|
-
<option value="daenerys-targaryen">Daenerys Targaryen</option>
|
|
44
|
-
<option value="jon-snow">Jon Snow</option>
|
|
45
|
-
</optgroup>
|
|
46
|
-
</o-select>
|
|
47
|
-
</o-field>
|
|
48
|
-
|
|
49
|
-
<o-field
|
|
50
|
-
label="Error"
|
|
51
|
-
variant="danger"
|
|
52
|
-
message="Something went wrong with this field">
|
|
53
|
-
<o-select placeholder="Select a character">
|
|
54
|
-
<option value="flint">Flint</option>
|
|
55
|
-
<option value="silver">Silver</option>
|
|
56
|
-
</o-select>
|
|
57
|
-
</o-field>
|
|
58
|
-
|
|
59
|
-
<o-field label="Rounded">
|
|
60
|
-
<o-select placeholder="Select a character" rounded>
|
|
61
|
-
<option value="flint">Flint</option>
|
|
62
|
-
<option value="silver">Silver</option>
|
|
63
|
-
</o-select>
|
|
64
|
-
</o-field>
|
|
65
|
-
|
|
66
|
-
<o-field label="Disabled">
|
|
67
|
-
<o-select placeholder="Select a character" disabled>
|
|
68
|
-
<option value="flint">Flint</option>
|
|
69
|
-
<option value="silver">Silver</option>
|
|
70
|
-
</o-select>
|
|
71
|
-
</o-field>
|
|
72
|
-
|
|
73
|
-
<o-field label="Disabled option">
|
|
74
|
-
<o-select placeholder="Select a character">
|
|
75
|
-
<option value="flint">Flint</option>
|
|
76
|
-
<option value="silver" disabled>Silver</option>
|
|
77
|
-
</o-select>
|
|
78
|
-
</o-field>
|
|
79
|
-
|
|
80
|
-
<o-field label="Expanded">
|
|
81
|
-
<o-select placeholder="Select a character" expanded>
|
|
82
|
-
<option value="flint">Flint</option>
|
|
83
|
-
<option value="silver">Silver</option>
|
|
84
|
-
</o-select>
|
|
85
|
-
</o-field>
|
|
86
|
-
|
|
87
|
-
<o-field label="Multiple">
|
|
88
|
-
<o-select v-model="selectedOptions" multiple native-size="8">
|
|
89
|
-
<option value="flint">Flint</option>
|
|
90
|
-
<option value="silver">Silver</option>
|
|
91
|
-
<option value="vane">Vane</option>
|
|
92
|
-
<option value="billy">Billy</option>
|
|
93
|
-
<option value="jack">Jack</option>
|
|
94
|
-
<option value="heisenberg">Heisenberg</option>
|
|
95
|
-
<option value="jesse">Jesse</option>
|
|
96
|
-
<option value="saul">Saul</option>
|
|
97
|
-
<option value="mike">Mike</option>
|
|
98
|
-
</o-select>
|
|
99
|
-
</o-field>
|
|
100
|
-
</section>
|
|
101
|
-
|
|
102
|
-
<section class="my-4">
|
|
103
|
-
<h3>Sizes</h3>
|
|
104
|
-
|
|
105
|
-
<o-field label="Size 'small'">
|
|
106
|
-
<o-select placeholder="Select a name" size="small">
|
|
107
|
-
<option value="flint">Flint</option>
|
|
108
|
-
<option value="silver">Silver</option>
|
|
109
|
-
</o-select>
|
|
110
|
-
</o-field>
|
|
111
|
-
|
|
112
|
-
<o-field label="Size 'default'">
|
|
113
|
-
<o-select placeholder="Select a name">
|
|
114
|
-
<option value="flint">Flint</option>
|
|
115
|
-
<option value="silver">Silver</option>
|
|
116
|
-
</o-select>
|
|
117
|
-
</o-field>
|
|
118
|
-
|
|
119
|
-
<o-field label="Size 'medium'">
|
|
120
|
-
<o-select placeholder="Select a name" size="medium">
|
|
121
|
-
<option value="flint">Flint</option>
|
|
122
|
-
<option value="silver">Silver</option>
|
|
123
|
-
</o-select>
|
|
124
|
-
</o-field>
|
|
125
|
-
|
|
126
|
-
<o-field label="Size 'large'">
|
|
127
|
-
<o-select placeholder="Select a name" size="large">
|
|
128
|
-
<option value="flint">Flint</option>
|
|
129
|
-
<option value="silver">Silver</option>
|
|
130
|
-
</o-select>
|
|
131
|
-
</o-field>
|
|
132
|
-
</section>
|
|
133
|
-
|
|
134
|
-
<section class="my-4">
|
|
135
|
-
<h3>With Icons</h3>
|
|
136
|
-
|
|
137
|
-
<o-field>
|
|
138
|
-
<o-select placeholder="Select a name" icon="search" icon-clickable>
|
|
139
|
-
<option value="flint">Flint</option>
|
|
140
|
-
<option value="silver">Silver</option>
|
|
141
|
-
</o-select>
|
|
142
|
-
</o-field>
|
|
143
|
-
|
|
144
|
-
<o-field>
|
|
145
|
-
<o-select
|
|
146
|
-
placeholder="Select a name"
|
|
147
|
-
icon="envelope"
|
|
148
|
-
icon-right="times-circle"
|
|
149
|
-
icon-right-clickable>
|
|
150
|
-
<option value="flint">Flint</option>
|
|
151
|
-
<option value="silver">Silver</option>
|
|
152
|
-
</o-select>
|
|
153
|
-
</o-field>
|
|
154
|
-
</section>
|
|
155
|
-
</template>
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const isActive = ref(false);
|
|
5
|
-
const isOverlay = ref(true);
|
|
6
|
-
const isFullheight = ref(true);
|
|
7
|
-
const isFullwidth = ref(false);
|
|
8
|
-
const isReduced = ref(false);
|
|
9
|
-
const expandOnHover = ref(false);
|
|
10
|
-
const teleport = ref(false);
|
|
11
|
-
const position = ref("left");
|
|
12
|
-
const inline = ref(false);
|
|
13
|
-
|
|
14
|
-
const toggleSidebar = () => {
|
|
15
|
-
isActive.value = !isActive.value;
|
|
16
|
-
};
|
|
17
|
-
</script>
|
|
18
|
-
|
|
19
|
-
<template>
|
|
20
|
-
<section>
|
|
21
|
-
<h2>Sidebar Demoo</h2>
|
|
22
|
-
<hr />
|
|
23
|
-
</section>
|
|
24
|
-
|
|
25
|
-
<section>
|
|
26
|
-
<h3>Base</h3>
|
|
27
|
-
|
|
28
|
-
<o-field grouped>
|
|
29
|
-
<o-switch v-model="isOverlay" label="Overlay" />
|
|
30
|
-
<o-switch v-model="isFullheight" label="Fullheight" />
|
|
31
|
-
<o-switch v-model="isFullwidth" label="Fullwidth" />
|
|
32
|
-
<o-switch v-model="isReduced" label="Reduce" />
|
|
33
|
-
<o-switch v-model="expandOnHover" label="Expand on hover" />
|
|
34
|
-
<o-switch v-model="teleport" label="On body" />
|
|
35
|
-
<o-switch v-model="inline" label="Inline" />
|
|
36
|
-
</o-field>
|
|
37
|
-
|
|
38
|
-
<o-field label="Position">
|
|
39
|
-
<o-select v-model="position">
|
|
40
|
-
<option value="top">Top</option>
|
|
41
|
-
<option value="bottom">Bottom</option>
|
|
42
|
-
<option value="right">Right</option>
|
|
43
|
-
<option value="left">Left</option>
|
|
44
|
-
</o-select>
|
|
45
|
-
</o-field>
|
|
46
|
-
<o-button @click="toggleSidebar()">Show</o-button>
|
|
47
|
-
|
|
48
|
-
<o-sidebar
|
|
49
|
-
v-model:active="isActive"
|
|
50
|
-
variant="primary"
|
|
51
|
-
:fullheight="isFullheight"
|
|
52
|
-
:fullwidth="isFullwidth"
|
|
53
|
-
:overlay="isOverlay"
|
|
54
|
-
:position="position"
|
|
55
|
-
:reduce="isReduced"
|
|
56
|
-
:expand-on-hover="expandOnHover"
|
|
57
|
-
:teleport="teleport"
|
|
58
|
-
:inline="inline"
|
|
59
|
-
mobile="fullwidth"
|
|
60
|
-
@close="toggleSidebar()">
|
|
61
|
-
<o-button
|
|
62
|
-
class="btn-close"
|
|
63
|
-
icon-left="times"
|
|
64
|
-
label="Close"
|
|
65
|
-
@click="toggleSidebar()" />
|
|
66
|
-
<img
|
|
67
|
-
width="80"
|
|
68
|
-
src="https://avatars2.githubusercontent.com/u/66300512?s=200&v=4"
|
|
69
|
-
alt="Lightweight UI components for Vue.js" />
|
|
70
|
-
<h3>Example</h3>
|
|
71
|
-
</o-sidebar>
|
|
72
|
-
</section>
|
|
73
|
-
</template>
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const animated = ref(true);
|
|
5
|
-
</script>
|
|
6
|
-
|
|
7
|
-
<template>
|
|
8
|
-
<section>
|
|
9
|
-
<h2>Skeleton Demo</h2>
|
|
10
|
-
<hr />
|
|
11
|
-
</section>
|
|
12
|
-
|
|
13
|
-
<section>
|
|
14
|
-
<h3>Base</h3>
|
|
15
|
-
|
|
16
|
-
<o-field grouped>
|
|
17
|
-
<o-switch v-model="animated" label="Animated" />
|
|
18
|
-
</o-field>
|
|
19
|
-
|
|
20
|
-
<o-field label="20%">
|
|
21
|
-
<o-skeleton width="20%" :animated="animated" />
|
|
22
|
-
</o-field>
|
|
23
|
-
<o-field label="40%">
|
|
24
|
-
<o-skeleton width="40%" :animated="animated" />
|
|
25
|
-
</o-field>
|
|
26
|
-
<o-field label="80%">
|
|
27
|
-
<o-skeleton width="80%" :animated="animated" />
|
|
28
|
-
</o-field>
|
|
29
|
-
<o-field label="100%">
|
|
30
|
-
<o-skeleton :animated="animated" />
|
|
31
|
-
</o-field>
|
|
32
|
-
<o-field label=" Count 2">
|
|
33
|
-
<o-skeleton :animated="animated" :count="2" />
|
|
34
|
-
</o-field>
|
|
35
|
-
</section>
|
|
36
|
-
|
|
37
|
-
<section>
|
|
38
|
-
<h3>Circle</h3>
|
|
39
|
-
|
|
40
|
-
<o-skeleton :animated="animated" circle width="64px" height="64px" />
|
|
41
|
-
</section>
|
|
42
|
-
|
|
43
|
-
<section>
|
|
44
|
-
<h3>Sizes</h3>
|
|
45
|
-
|
|
46
|
-
<o-field label="Small" grouped>
|
|
47
|
-
<o-skeleton size="small" />
|
|
48
|
-
</o-field>
|
|
49
|
-
<o-field label="Default" grouped>
|
|
50
|
-
<o-skeleton />
|
|
51
|
-
</o-field>
|
|
52
|
-
<o-field label="Medium" grouped>
|
|
53
|
-
<o-skeleton size="medium" />
|
|
54
|
-
</o-field>
|
|
55
|
-
<o-field label="Large" grouped>
|
|
56
|
-
<o-skeleton size="large" />
|
|
57
|
-
</o-field>
|
|
58
|
-
</section>
|
|
59
|
-
|
|
60
|
-
<section>
|
|
61
|
-
<h3>Position</h3>
|
|
62
|
-
|
|
63
|
-
<o-field label="Left" grouped>
|
|
64
|
-
<o-skeleton width="30%" position="left" />
|
|
65
|
-
</o-field>
|
|
66
|
-
|
|
67
|
-
<o-field label="Center" grouped>
|
|
68
|
-
<o-skeleton width="30%" position="centered" />
|
|
69
|
-
</o-field>
|
|
70
|
-
|
|
71
|
-
<o-field label="Right" grouped>
|
|
72
|
-
<o-skeleton width="30%" position="right" />
|
|
73
|
-
</o-field>
|
|
74
|
-
</section>
|
|
75
|
-
</template>
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import { computed, reactive, ref } from "vue";
|
|
3
|
-
|
|
4
|
-
const value = ref(5);
|
|
5
|
-
const sliderValue = ref(4);
|
|
6
|
-
const numbers = ref([2, 5]);
|
|
7
|
-
const numbers2 = ref([2, 6]);
|
|
8
|
-
|
|
9
|
-
const settings = reactive({
|
|
10
|
-
rounded: false,
|
|
11
|
-
tooltip: true,
|
|
12
|
-
variant: "warning",
|
|
13
|
-
size: "medium",
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
const sliderType = computed(() => {
|
|
17
|
-
if (sliderValue.value > 25 && sliderValue.value < 75) return "warning";
|
|
18
|
-
else if (sliderValue.value >= 75) return "success";
|
|
19
|
-
return "danger";
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
22
|
-
|
|
23
|
-
<template>
|
|
24
|
-
<section>
|
|
25
|
-
<h2>Slider Demo</h2>
|
|
26
|
-
<hr />
|
|
27
|
-
</section>
|
|
28
|
-
|
|
29
|
-
<section>
|
|
30
|
-
<h3>Base</h3>
|
|
31
|
-
|
|
32
|
-
<o-field label="Simple">
|
|
33
|
-
<o-slider :model-value="8" />
|
|
34
|
-
</o-field>
|
|
35
|
-
|
|
36
|
-
<o-field label="Disabled">
|
|
37
|
-
<o-slider :model-value="30" disabled />
|
|
38
|
-
</o-field>
|
|
39
|
-
|
|
40
|
-
<o-field label="Rounded thumb & No Tooltip">
|
|
41
|
-
<o-slider :model-value="8" rounded :tooltip="false" />
|
|
42
|
-
</o-field>
|
|
43
|
-
|
|
44
|
-
<o-field label="Custom tooltip label">
|
|
45
|
-
<o-slider :rounded="true" :custom-formatter="(val: any) => val + '%'" />
|
|
46
|
-
</o-field>
|
|
47
|
-
|
|
48
|
-
<o-field label="Tooltip type">
|
|
49
|
-
<o-slider v-model="sliderValue" :tooltip-variant="sliderType" />
|
|
50
|
-
</o-field>
|
|
51
|
-
</section>
|
|
52
|
-
|
|
53
|
-
<section>
|
|
54
|
-
<h3>Sizes</h3>
|
|
55
|
-
|
|
56
|
-
<o-field label="Small">
|
|
57
|
-
<o-slider v-model="value" size="small" />
|
|
58
|
-
</o-field>
|
|
59
|
-
|
|
60
|
-
<o-field label="Default">
|
|
61
|
-
<o-slider v-model="value" />
|
|
62
|
-
</o-field>
|
|
63
|
-
|
|
64
|
-
<o-field label="Medium">
|
|
65
|
-
<o-slider v-model="value" size="medium" />
|
|
66
|
-
</o-field>
|
|
67
|
-
|
|
68
|
-
<o-field label="Large">
|
|
69
|
-
<o-slider v-model="value" size="large" />
|
|
70
|
-
</o-field>
|
|
71
|
-
</section>
|
|
72
|
-
|
|
73
|
-
<section>
|
|
74
|
-
<h3>Variant</h3>
|
|
75
|
-
|
|
76
|
-
<o-field label="Default">
|
|
77
|
-
<o-slider v-model="value" :rounded="true" :tooltip="true" />
|
|
78
|
-
</o-field>
|
|
79
|
-
|
|
80
|
-
<o-field label="Primary">
|
|
81
|
-
<o-slider
|
|
82
|
-
v-model="value"
|
|
83
|
-
:rounded="true"
|
|
84
|
-
:tooltip="true"
|
|
85
|
-
variant="primary"
|
|
86
|
-
tooltip-variant="primary" />
|
|
87
|
-
</o-field>
|
|
88
|
-
<o-field label="Secondary">
|
|
89
|
-
<o-slider
|
|
90
|
-
v-model="value"
|
|
91
|
-
:rounded="true"
|
|
92
|
-
:tooltip="true"
|
|
93
|
-
variant="secondary"
|
|
94
|
-
tooltip-variant="secondary" />
|
|
95
|
-
</o-field>
|
|
96
|
-
<o-field label="Success">
|
|
97
|
-
<o-slider
|
|
98
|
-
v-model="value"
|
|
99
|
-
:rounded="true"
|
|
100
|
-
:tooltip="true"
|
|
101
|
-
variant="success"
|
|
102
|
-
tooltip-variant="success" />
|
|
103
|
-
</o-field>
|
|
104
|
-
<o-field label="Info">
|
|
105
|
-
<o-slider
|
|
106
|
-
v-model="value"
|
|
107
|
-
:rounded="true"
|
|
108
|
-
:tooltip="true"
|
|
109
|
-
variant="info"
|
|
110
|
-
tooltip-variant="info" />
|
|
111
|
-
</o-field>
|
|
112
|
-
<o-field label="Warning">
|
|
113
|
-
<o-slider
|
|
114
|
-
v-model="value"
|
|
115
|
-
:rounded="true"
|
|
116
|
-
:tooltip="true"
|
|
117
|
-
variant="warning"
|
|
118
|
-
tooltip-variant="warning" />
|
|
119
|
-
</o-field>
|
|
120
|
-
<o-field label="Danger">
|
|
121
|
-
<o-slider
|
|
122
|
-
v-model="value"
|
|
123
|
-
:rounded="true"
|
|
124
|
-
:tooltip="true"
|
|
125
|
-
variant="danger"
|
|
126
|
-
tooltip-variant="danger" />
|
|
127
|
-
</o-field>
|
|
128
|
-
</section>
|
|
129
|
-
|
|
130
|
-
<section>
|
|
131
|
-
<h3>Customize</h3>
|
|
132
|
-
<o-field>
|
|
133
|
-
<o-field>
|
|
134
|
-
<o-switch v-model="settings.rounded" label="Rounded" />
|
|
135
|
-
</o-field>
|
|
136
|
-
<o-field>
|
|
137
|
-
<o-switch v-model="settings.tooltip" label="With Tooltip" />
|
|
138
|
-
</o-field>
|
|
139
|
-
<o-field label="Size">
|
|
140
|
-
<o-select v-model="settings.size">
|
|
141
|
-
<option value="small">small</option>
|
|
142
|
-
<option value="default">default</option>
|
|
143
|
-
<option value="medium">medium</option>
|
|
144
|
-
<option value="large">large</option>
|
|
145
|
-
</o-select>
|
|
146
|
-
</o-field>
|
|
147
|
-
<o-field label="Variant">
|
|
148
|
-
<o-select v-model="settings.variant">
|
|
149
|
-
<option value="default">default</option>
|
|
150
|
-
<option value="primary">primary</option>
|
|
151
|
-
<option value="secondary">secondary</option>
|
|
152
|
-
<option value="success">success</option>
|
|
153
|
-
<option value="info">info</option>
|
|
154
|
-
<option value="warning">warning</option>
|
|
155
|
-
<option value="danger">danger</option>
|
|
156
|
-
</o-select>
|
|
157
|
-
</o-field>
|
|
158
|
-
</o-field>
|
|
159
|
-
|
|
160
|
-
<o-field label="Tooltip type & Default Variant">
|
|
161
|
-
<o-slider
|
|
162
|
-
:rounded="settings.rounded"
|
|
163
|
-
:tooltip="settings.tooltip"
|
|
164
|
-
:variant="settings.variant"
|
|
165
|
-
:size="settings.size" />
|
|
166
|
-
</o-field>
|
|
167
|
-
</section>
|
|
168
|
-
|
|
169
|
-
<section>
|
|
170
|
-
<h3>Tick and label</h3>
|
|
171
|
-
|
|
172
|
-
<o-field label="Show ticks">
|
|
173
|
-
<o-slider :rounded="true" size="small" :min="1" :max="10" ticks />
|
|
174
|
-
</o-field>
|
|
175
|
-
|
|
176
|
-
<o-field label="Custom tick and label">
|
|
177
|
-
<o-slider :rounded="true" size="medium" :min="0" :max="10">
|
|
178
|
-
<template v-for="val in [3, 5, 8]" :key="val">
|
|
179
|
-
<o-slider-tick :value="val">{{ val }}</o-slider-tick>
|
|
180
|
-
</template>
|
|
181
|
-
</o-slider>
|
|
182
|
-
</o-field>
|
|
183
|
-
|
|
184
|
-
<o-field label="Fan">
|
|
185
|
-
<o-slider
|
|
186
|
-
:rounded="true"
|
|
187
|
-
:min="0"
|
|
188
|
-
:max="3"
|
|
189
|
-
aria-label="Fan"
|
|
190
|
-
:tooltip="false">
|
|
191
|
-
<o-slider-tick :value="0">Off</o-slider-tick>
|
|
192
|
-
<o-slider-tick :value="1">Low</o-slider-tick>
|
|
193
|
-
<o-slider-tick :value="2">High</o-slider-tick>
|
|
194
|
-
<o-slider-tick :value="3">Auto</o-slider-tick>
|
|
195
|
-
</o-slider>
|
|
196
|
-
</o-field>
|
|
197
|
-
</section>
|
|
198
|
-
|
|
199
|
-
<section>
|
|
200
|
-
<h3>Range</h3>
|
|
201
|
-
|
|
202
|
-
<o-field label="Range">
|
|
203
|
-
<o-slider
|
|
204
|
-
v-model="numbers"
|
|
205
|
-
:rounded="true"
|
|
206
|
-
:min="1"
|
|
207
|
-
:max="15"
|
|
208
|
-
:step="0.5"
|
|
209
|
-
ticks>
|
|
210
|
-
</o-slider>
|
|
211
|
-
</o-field>
|
|
212
|
-
<p>{{ numbers }}</p>
|
|
213
|
-
|
|
214
|
-
<o-field>
|
|
215
|
-
<o-slider
|
|
216
|
-
v-model="numbers2"
|
|
217
|
-
:rounded="true"
|
|
218
|
-
variant="danger"
|
|
219
|
-
:min="-2"
|
|
220
|
-
:max="8"
|
|
221
|
-
:step="2">
|
|
222
|
-
</o-slider>
|
|
223
|
-
</o-field>
|
|
224
|
-
<p>{{ numbers2 }}</p>
|
|
225
|
-
</section>
|
|
226
|
-
</template>
|