@timus-networks/theme 1.0.23 → 1.0.25
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/components-js/ThemeAlert.vue +76 -0
- package/components-js/ThemeAvatar.vue +55 -0
- package/components-js/ThemeBadge.vue +86 -0
- package/components-js/ThemeCascader.vue +337 -0
- package/components-js/ThemeLink.vue +98 -148
- package/components-js/ThemeLogo.vue +57 -0
- package/components-js/ThemeRadio.vue +20 -41
- package/components-js/ThemeTable.vue +228 -194
- package/components-js/TimusSamples.vue +33 -28
- package/components-js/exporter.js +5 -5
- package/components-ts/ThemeAlert.vue +76 -0
- package/components-ts/ThemeAvatar.vue +55 -0
- package/components-ts/ThemeBadge.vue +86 -0
- package/components-ts/ThemeCascader.vue +337 -0
- package/components-ts/ThemeLink.vue +98 -148
- package/components-ts/ThemeLogo.vue +57 -0
- package/components-ts/ThemeRadio.vue +20 -41
- package/components-ts/ThemeTable.vue +228 -194
- package/components-ts/TimusSamples.vue +33 -28
- package/components-ts/exporter.js +5 -5
- package/logo/timus-icon.svg +17 -0
- package/logo/timus-logo.svg +22 -0
- package/module.js +6 -2
- package/output/main.css +1 -1
- package/package.json +40 -40
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
+
<section>
|
|
4
|
+
<h1>Sizes</h1>
|
|
5
|
+
<p class="p-md-c my-6">
|
|
6
|
+
Avatarlar, resimler, ikonlar veya alfanumerik karakterleri destekler. Avatar'ın şeklini ve boyutunu ayarlamak için `shape` ve `size`
|
|
7
|
+
özelliklerini kullanabilirsiniz. Ayrıca avatarın resim kaynağını belirlemek için `src` özelliğini kullanabilirsiniz. Şekil tipleri
|
|
8
|
+
<b>'circle | square'</b> şeklindedir. Boyutlar ise <b>'xlarge', 'large', 'medium', 'small', 'xsmall'</b> şeklindedir. Veya boyutu manuel
|
|
9
|
+
olarak `size` özelliğini kullanarak belirleyebilirsiniz, örneğin <b>size='50'</b>.
|
|
10
|
+
</p>
|
|
11
|
+
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
12
|
+
<el-avatar :size="50">SK</el-avatar>
|
|
13
|
+
<el-avatar :size="size" v-for="size in sizeList" :key="size + ''">SK</el-avatar>
|
|
14
|
+
<el-divider direction="vertical" content-position="center"></el-divider>
|
|
15
|
+
<el-avatar shape="square" :size="50" :src="url"></el-avatar>
|
|
16
|
+
<el-avatar shape="square" :size="size" :src="url" v-for="size in sizeList" :key="size"></el-avatar>
|
|
17
|
+
</div>
|
|
18
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
19
|
+
<p class="text-xs">
|
|
20
|
+
<code><el-avatar :size="50">SK</el-avatar></code>
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
|
+
|
|
25
|
+
<section>
|
|
26
|
+
<h1>Types</h1>
|
|
27
|
+
<p class="p-md-c my-6">Resimler, ikonlar veya alfanumerik karakterleri destekler</p>
|
|
28
|
+
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
29
|
+
<el-avatar icon="isax-add-circle"></el-avatar>
|
|
30
|
+
<el-avatar icon="isax-add-circle" size="xlarge"></el-avatar>
|
|
31
|
+
<el-avatar :src="url"></el-avatar>
|
|
32
|
+
<el-avatar>SK</el-avatar>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
35
|
+
<p class="text-xs">
|
|
36
|
+
<code><el-avatar icon="isax-add-circle" size="xlarge"></el-avatar></code>
|
|
37
|
+
</p>
|
|
38
|
+
</div>
|
|
39
|
+
</section>
|
|
40
|
+
</div>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
import Vue from 'vue';
|
|
45
|
+
|
|
46
|
+
export default Vue.extend({
|
|
47
|
+
name: 'TimusCascader',
|
|
48
|
+
data() {
|
|
49
|
+
return {
|
|
50
|
+
url: 'https://api.dicebear.com/7.x/adventurer-neutral/svg?seed=Princess',
|
|
51
|
+
sizeList: ['xlarge', 'large', 'medium', 'small', 'xsmall'],
|
|
52
|
+
};
|
|
53
|
+
},
|
|
54
|
+
});
|
|
55
|
+
</script>
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
+
<section>
|
|
4
|
+
<h1>Temel Kullanım</h1>
|
|
5
|
+
<p class="p-md-c my-6">
|
|
6
|
+
Butonlar ve simgeler üzerinde sayı veya durum işareti. Yeni mesajların miktarını görüntüler. Miktar, `Number` veya `String` kabul eden `value`
|
|
7
|
+
ile tanımlanır.
|
|
8
|
+
</p>
|
|
9
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
10
|
+
<el-badge :value="12"> <el-button size="small">Yorumlar</el-button> </el-badge>
|
|
11
|
+
<el-badge :value="randomNumber()" :type="item" v-for="(item, key) in colors" :key="key">
|
|
12
|
+
<el-button size="small" :class="randomButtonType()" :type="randomColor()">{{ item }}</el-button>
|
|
13
|
+
</el-badge>
|
|
14
|
+
<el-dropdown trigger="click">
|
|
15
|
+
<span class="el-dropdown-link"> Beni Tıkla<i class="el-icon-caret-bottom el-icon--right"></i> </span>
|
|
16
|
+
<el-dropdown-menu slot="dropdown">
|
|
17
|
+
<el-dropdown-item class="clearfix">
|
|
18
|
+
Yorumlar
|
|
19
|
+
<el-badge class="mark" :value="12" />
|
|
20
|
+
</el-dropdown-item>
|
|
21
|
+
<el-dropdown-item class="clearfix">
|
|
22
|
+
Yanıtlar
|
|
23
|
+
<el-badge class="mark" :value="3" />
|
|
24
|
+
</el-dropdown-item>
|
|
25
|
+
</el-dropdown-menu>
|
|
26
|
+
</el-dropdown>
|
|
27
|
+
</div>
|
|
28
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
29
|
+
<p class="text-xs">
|
|
30
|
+
<code><el-badge :value="12"> <el-button size="small">Comments</el-button> </el-badge></code>
|
|
31
|
+
</p>
|
|
32
|
+
</div>
|
|
33
|
+
</section>
|
|
34
|
+
|
|
35
|
+
<section>
|
|
36
|
+
<h1>Max Değer</h1>
|
|
37
|
+
<p class="p-md-c my-6">
|
|
38
|
+
Maksimum değer, bir Sayı (Number) olan max özelliği ile belirlenir. Unutmayın ki, bu özellik yalnızca value özelliği de bir Sayı (Number)
|
|
39
|
+
olduğunda çalışır.
|
|
40
|
+
</p>
|
|
41
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
42
|
+
<el-badge :value="200" :max="99" class="item">
|
|
43
|
+
<el-button size="small">Yorumlar</el-button>
|
|
44
|
+
</el-badge>
|
|
45
|
+
<el-badge :value="100" :max="10" class="item">
|
|
46
|
+
<el-button size="small">Yanıtlar</el-button>
|
|
47
|
+
</el-badge>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
50
|
+
<p class="text-xs">
|
|
51
|
+
<code><el-badge :value="12"> <el-button size="small">Yorumlar</el-button> </el-badge></code>
|
|
52
|
+
</p>
|
|
53
|
+
</div>
|
|
54
|
+
</section>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
|
|
58
|
+
<script>
|
|
59
|
+
import Vue from 'vue';
|
|
60
|
+
|
|
61
|
+
export default Vue.extend({
|
|
62
|
+
name: 'TimusCascader',
|
|
63
|
+
data() {
|
|
64
|
+
return {
|
|
65
|
+
colors: ['primary', 'secondary', 'gray', 'info', 'success', 'warning', 'danger'],
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
methods: {
|
|
69
|
+
handleChange(value) {
|
|
70
|
+
console.log(value);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
methods: {
|
|
74
|
+
randomNumber() {
|
|
75
|
+
return Math.round(Math.random() * 1000);
|
|
76
|
+
},
|
|
77
|
+
randomColor() {
|
|
78
|
+
return this.colors[Math.round(Math.random() * 7)];
|
|
79
|
+
},
|
|
80
|
+
randomButtonType() {
|
|
81
|
+
const type = ['outline'];
|
|
82
|
+
return type[Math.round(Math.random() * 2)];
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
</script>
|
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
+
<section>
|
|
4
|
+
<h1>Basic usage</h1>
|
|
5
|
+
<p class="p-lg my-6">There are two ways to expand child option items.</p>
|
|
6
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
|
+
<el-cascader v-model="value" :options="options" @change="handleChange" clearable></el-cascader>
|
|
8
|
+
<el-cascader v-model="value" :options="options" :props="{ expandTrigger: 'hover' }" @change="handleChange"></el-cascader>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
11
|
+
<p class="text-xs">
|
|
12
|
+
<code><el-cascader v-model="value" :options="options" @change="handleChange"></el-cascader></code>
|
|
13
|
+
</p>
|
|
14
|
+
</div>
|
|
15
|
+
</section>
|
|
16
|
+
<section>
|
|
17
|
+
<h1>Multiple Selection</h1>
|
|
18
|
+
<p class="p-lg my-6">
|
|
19
|
+
Set `props.multiple = true` to use multiple selection. When using multiple selection, all selected tags will display by default, You can set
|
|
20
|
+
`collapse-tags = true` to fold selected tags.
|
|
21
|
+
</p>
|
|
22
|
+
<div class="flex gap-4">
|
|
23
|
+
<el-cascader :options="options" :props="props" clearable></el-cascader>
|
|
24
|
+
<el-cascader :options="options" :props="props" collapse-tags clearable></el-cascader>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
27
|
+
<p class="text-xs">
|
|
28
|
+
<code><el-cascader v-model="value" :options="options" @change="handleChange"></el-cascader></code>
|
|
29
|
+
</p>
|
|
30
|
+
</div>
|
|
31
|
+
</section>
|
|
32
|
+
<section>
|
|
33
|
+
<h1>Select any level of options</h1>
|
|
34
|
+
<p class="p-lg my-6">
|
|
35
|
+
In single selection, only the leaf nodes can be checked, and in multiple selection, check parent nodes will lead to leaf nodes be checked
|
|
36
|
+
eventually. When enable this feature, it can make parent and child nodes unlinked and you can select any level of options.
|
|
37
|
+
</p>
|
|
38
|
+
<div class="flex gap-4">
|
|
39
|
+
<el-cascader :options="options" :props="{ checkStrictly: true }" clearable></el-cascader>
|
|
40
|
+
<el-cascader :options="options" :props="{ multiple: true, checkStrictly: true }" clearable></el-cascader>
|
|
41
|
+
</div>
|
|
42
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
43
|
+
<p class="text-xs">
|
|
44
|
+
<code><el-cascader v-model="value" :options="options" @change="handleChange"></el-cascader></code>
|
|
45
|
+
</p>
|
|
46
|
+
</div>
|
|
47
|
+
</section>
|
|
48
|
+
</div>
|
|
49
|
+
</template>
|
|
50
|
+
|
|
51
|
+
<script>
|
|
52
|
+
import Vue from 'vue';
|
|
53
|
+
|
|
54
|
+
export default Vue.extend({
|
|
55
|
+
name: 'TimusCascader',
|
|
56
|
+
data() {
|
|
57
|
+
return {
|
|
58
|
+
props: { multiple: true },
|
|
59
|
+
value: [],
|
|
60
|
+
options: [
|
|
61
|
+
{
|
|
62
|
+
value: 'guide',
|
|
63
|
+
label: 'Guide',
|
|
64
|
+
disabled: true,
|
|
65
|
+
children: [
|
|
66
|
+
{
|
|
67
|
+
value: 'disciplines',
|
|
68
|
+
label: 'Disciplines',
|
|
69
|
+
children: [
|
|
70
|
+
{
|
|
71
|
+
value: 'consistency',
|
|
72
|
+
label: 'Consistency',
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
value: 'feedback',
|
|
76
|
+
label: 'Feedback',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
value: 'efficiency',
|
|
80
|
+
label: 'Efficiency',
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
value: 'controllability',
|
|
84
|
+
label: 'Controllability',
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
value: 'navigation',
|
|
90
|
+
label: 'Navigation',
|
|
91
|
+
children: [
|
|
92
|
+
{
|
|
93
|
+
value: 'side nav',
|
|
94
|
+
label: 'Side Navigation',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
value: 'top nav',
|
|
98
|
+
label: 'Top Navigation',
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
value: 'component',
|
|
106
|
+
label: 'Component',
|
|
107
|
+
children: [
|
|
108
|
+
{
|
|
109
|
+
value: 'basic',
|
|
110
|
+
label: 'Basic',
|
|
111
|
+
children: [
|
|
112
|
+
{
|
|
113
|
+
value: 'layout',
|
|
114
|
+
label: 'Layout',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
value: 'color',
|
|
118
|
+
label: 'Color',
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
value: 'typography',
|
|
122
|
+
label: 'Typography',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
value: 'icon',
|
|
126
|
+
label: 'Icon',
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: 'button',
|
|
130
|
+
label: 'Button',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
value: 'form',
|
|
136
|
+
label: 'Form',
|
|
137
|
+
children: [
|
|
138
|
+
{
|
|
139
|
+
value: 'radio',
|
|
140
|
+
label: 'Radio',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
value: 'checkbox',
|
|
144
|
+
label: 'Checkbox',
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
value: 'input',
|
|
148
|
+
label: 'Input',
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
value: 'input-number',
|
|
152
|
+
label: 'InputNumber',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
value: 'select',
|
|
156
|
+
label: 'Select',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
value: 'cascader',
|
|
160
|
+
label: 'Cascader',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
value: 'switch',
|
|
164
|
+
label: 'Switch',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
value: 'slider',
|
|
168
|
+
label: 'Slider',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
value: 'time-picker',
|
|
172
|
+
label: 'TimePicker',
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
value: 'date-picker',
|
|
176
|
+
label: 'DatePicker',
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
value: 'datetime-picker',
|
|
180
|
+
label: 'DateTimePicker',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
value: 'upload',
|
|
184
|
+
label: 'Upload',
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
value: 'rate',
|
|
188
|
+
label: 'Rate',
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
value: 'form',
|
|
192
|
+
label: 'Form',
|
|
193
|
+
},
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
value: 'data',
|
|
198
|
+
label: 'Data',
|
|
199
|
+
children: [
|
|
200
|
+
{
|
|
201
|
+
value: 'table',
|
|
202
|
+
label: 'Table',
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
value: 'tag',
|
|
206
|
+
label: 'Tag',
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
value: 'progress',
|
|
210
|
+
label: 'Progress',
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
value: 'tree',
|
|
214
|
+
label: 'Tree',
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
value: 'pagination',
|
|
218
|
+
label: 'Pagination',
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
value: 'badge',
|
|
222
|
+
label: 'Badge',
|
|
223
|
+
},
|
|
224
|
+
],
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
value: 'notice',
|
|
228
|
+
label: 'Notice',
|
|
229
|
+
children: [
|
|
230
|
+
{
|
|
231
|
+
value: 'alert',
|
|
232
|
+
label: 'Alert',
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
value: 'loading',
|
|
236
|
+
label: 'Loading',
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
value: 'message',
|
|
240
|
+
label: 'Message',
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
value: 'message-box',
|
|
244
|
+
label: 'MessageBox',
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
value: 'notification',
|
|
248
|
+
label: 'Notification',
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
value: 'navigation',
|
|
254
|
+
label: 'Navigation',
|
|
255
|
+
children: [
|
|
256
|
+
{
|
|
257
|
+
value: 'menu',
|
|
258
|
+
label: 'NavMenu',
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
value: 'tabs',
|
|
262
|
+
label: 'Tabs',
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
value: 'breadcrumb',
|
|
266
|
+
label: 'Breadcrumb',
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
value: 'dropdown',
|
|
270
|
+
label: 'Dropdown',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
value: 'steps',
|
|
274
|
+
label: 'Steps',
|
|
275
|
+
},
|
|
276
|
+
],
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
value: 'others',
|
|
280
|
+
label: 'Others',
|
|
281
|
+
children: [
|
|
282
|
+
{
|
|
283
|
+
value: 'dialog',
|
|
284
|
+
label: 'Dialog',
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
value: 'tooltip',
|
|
288
|
+
label: 'Tooltip',
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
value: 'popover',
|
|
292
|
+
label: 'Popover',
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
value: 'card',
|
|
296
|
+
label: 'Card',
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
value: 'carousel',
|
|
300
|
+
label: 'Carousel',
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
value: 'collapse',
|
|
304
|
+
label: 'Collapse',
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
value: 'resource',
|
|
312
|
+
label: 'Resource',
|
|
313
|
+
children: [
|
|
314
|
+
{
|
|
315
|
+
value: 'axure',
|
|
316
|
+
label: 'Axure Components',
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
value: 'sketch',
|
|
320
|
+
label: 'Sketch Templates',
|
|
321
|
+
},
|
|
322
|
+
{
|
|
323
|
+
value: 'docs',
|
|
324
|
+
label: 'Design Documentation',
|
|
325
|
+
},
|
|
326
|
+
],
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
};
|
|
330
|
+
},
|
|
331
|
+
methods: {
|
|
332
|
+
handleChange(value) {
|
|
333
|
+
console.log(value);
|
|
334
|
+
},
|
|
335
|
+
},
|
|
336
|
+
});
|
|
337
|
+
</script>
|