@timus-networks/theme 1.0.21 → 1.0.24
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/ThemeButtons.vue +2 -2
- package/components-js/ThemeCascader.vue +337 -0
- package/components-js/ThemeCheckbox.d.ts +2 -0
- package/components-js/ThemeCheckbox.vue +143 -0
- package/components-js/ThemeForm.vue +50 -182
- package/components-js/ThemeInputs.vue +0 -51
- package/components-js/ThemeLink.vue +91 -0
- package/components-js/ThemeLogo.vue +57 -0
- package/components-js/ThemeRadio.d.ts +2 -0
- package/components-js/ThemeRadio.vue +124 -0
- package/components-js/ThemeSelect.vue +232 -0
- package/components-js/ThemeTable.vue +245 -0
- package/components-js/ThemeTag.vue +142 -0
- package/components-js/ThemeTimePicker.vue +376 -43
- package/components-js/ThemeToggle.vue +122 -0
- package/components-js/ThemeTooltip.vue +189 -0
- package/components-js/TimusSamples.vue +33 -20
- 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/ThemeButtons.vue +2 -2
- package/components-ts/ThemeCascader.vue +337 -0
- package/components-ts/ThemeCheckbox.vue +146 -0
- package/components-ts/ThemeForm.vue +50 -183
- package/components-ts/ThemeInputs.vue +0 -51
- package/components-ts/ThemeLink.vue +91 -0
- package/components-ts/ThemeLogo.vue +57 -0
- package/components-ts/ThemeRadio.vue +127 -0
- package/components-ts/ThemeSelect.vue +232 -0
- package/components-ts/ThemeTable.vue +245 -0
- package/components-ts/ThemeTag.vue +142 -0
- package/components-ts/ThemeTimePicker.vue +376 -43
- package/components-ts/ThemeToggle.vue +122 -0
- package/components-ts/ThemeTooltip.vue +189 -0
- package/components-ts/TimusSamples.vue +33 -20
- package/components-ts/exporter.js +5 -5
- package/index.d.ts +3 -1
- 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
|
@@ -1,44 +1,92 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
+
<h1>Popover</h1>
|
|
3
4
|
<section>
|
|
4
|
-
<
|
|
5
|
-
<p class="p-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
<h2>Basic Usage</h2>
|
|
6
|
+
<p class="p-md-c my-6">Hover on the dropdown menu to unfold it for more actions.</p>
|
|
7
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
8
|
+
<el-dropdown trigger="click">
|
|
9
|
+
<span class="el-dropdown-link"> Dropdown List<i class="el-icon-arrow-down el-icon--right"></i> </span>
|
|
10
|
+
<el-dropdown-menu slot="dropdown">
|
|
11
|
+
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
12
|
+
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
13
|
+
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
14
|
+
<el-dropdown-item disabled>Action 4</el-dropdown-item>
|
|
15
|
+
<el-dropdown-item divided>Action 5</el-dropdown-item>
|
|
16
|
+
</el-dropdown-menu>
|
|
17
|
+
</el-dropdown>
|
|
18
|
+
<el-dropdown trigger="click">
|
|
19
|
+
<el-button type="primary"> Dropdown List<i class="el-icon-arrow-down el-icon--right"></i> </el-button>
|
|
20
|
+
<el-dropdown-menu slot="dropdown">
|
|
21
|
+
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
22
|
+
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
23
|
+
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
24
|
+
<el-dropdown-item>Action 4</el-dropdown-item>
|
|
25
|
+
<el-dropdown-item>Action 5</el-dropdown-item>
|
|
26
|
+
</el-dropdown-menu>
|
|
27
|
+
</el-dropdown>
|
|
28
|
+
<el-dropdown split-button type="primary">
|
|
29
|
+
Dropdown List
|
|
30
|
+
<el-dropdown-menu slot="dropdown">
|
|
31
|
+
<el-dropdown-item>Action 1</el-dropdown-item>
|
|
32
|
+
<el-dropdown-item>Action 2</el-dropdown-item>
|
|
33
|
+
<el-dropdown-item>Action 3</el-dropdown-item>
|
|
34
|
+
<el-dropdown-item>Action 4</el-dropdown-item>
|
|
35
|
+
<el-dropdown-item>Action 5</el-dropdown-item>
|
|
36
|
+
</el-dropdown-menu>
|
|
37
|
+
</el-dropdown>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
40
|
+
<p class="text-xs">
|
|
41
|
+
<code>
|
|
42
|
+
<el-popover placement="right" title="Başlık" trigger="click"> <el-button
|
|
43
|
+
slot="reference">Tıkla</el-button> </el-popover>
|
|
44
|
+
</code>
|
|
45
|
+
</p>
|
|
46
|
+
</div>
|
|
47
|
+
</section>
|
|
48
|
+
|
|
49
|
+
<h1>Popover</h1>
|
|
50
|
+
<section>
|
|
51
|
+
<h2>Temel Kullanım</h2>
|
|
52
|
+
<p class="p-md-c my-6">
|
|
53
|
+
Popover bileşeni, kullanıcının üzerine geldiğinde veya tıkladığında ek bilgileri veya eylemleri görüntülemek için kullanılır. Örneğinizde,
|
|
54
|
+
farklı yönlere (sağ, alt, üst, sol) yerleştirilmiş dört popover örneği bulunmaktadır. Her bir popover, içeriğini ve başlığını göstermek için
|
|
55
|
+
bir tetikleyici düğme (el-button) kullanmaktadır.
|
|
9
56
|
</p>
|
|
10
57
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
11
|
-
<el-popover placement="right" title="
|
|
12
|
-
<el-button slot="reference">
|
|
58
|
+
<el-popover placement="right" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
|
|
59
|
+
<el-button slot="reference">Sağ</el-button>
|
|
13
60
|
</el-popover>
|
|
14
|
-
<el-popover placement="bottom" title="
|
|
15
|
-
<el-button slot="reference">
|
|
61
|
+
<el-popover placement="bottom" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
|
|
62
|
+
<el-button slot="reference">Alt</el-button>
|
|
16
63
|
</el-popover>
|
|
17
|
-
<el-popover placement="top" title="
|
|
18
|
-
<el-button slot="reference"
|
|
64
|
+
<el-popover placement="top" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
|
|
65
|
+
<el-button slot="reference">Üst</el-button>
|
|
19
66
|
</el-popover>
|
|
20
|
-
<el-popover placement="left" title="
|
|
21
|
-
<el-button slot="reference">
|
|
67
|
+
<el-popover placement="left" title="Başlık" width="200" trigger="click" content="Bu içerik, bu içerik, bu içerik">
|
|
68
|
+
<el-button slot="reference">Sol</el-button>
|
|
22
69
|
</el-popover>
|
|
23
70
|
</div>
|
|
24
71
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
25
72
|
<p class="text-xs">
|
|
26
73
|
<code>
|
|
27
|
-
<el-popover placement="right" title="
|
|
28
|
-
slot="reference">
|
|
74
|
+
<el-popover placement="right" title="Başlık" trigger="click"> <el-button
|
|
75
|
+
slot="reference">Tıkla</el-button> </el-popover>
|
|
29
76
|
</code>
|
|
30
77
|
</p>
|
|
31
78
|
</div>
|
|
32
79
|
</section>
|
|
33
80
|
|
|
81
|
+
<h1>TimePicker</h1>
|
|
34
82
|
<section>
|
|
35
|
-
<
|
|
36
|
-
<p class="p-
|
|
37
|
-
|
|
38
|
-
|
|
83
|
+
<h2>Fixed time picker</h2>
|
|
84
|
+
<p class="p-md-c my-6">
|
|
85
|
+
Sabit Zaman Seçici, DateTimePicker bileşeninin bir parçasıdır ve kullanıcının belirli bir zaman aralığını seçmesine olanak tanır. DatePicker
|
|
86
|
+
ve TimePicker'dan türetilmiştir ve kullanımı oldukça basittir.
|
|
39
87
|
</p>
|
|
40
88
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
41
|
-
<el-time-select v-model="value" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }" placeholder="
|
|
89
|
+
<el-time-select v-model="value" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }" placeholder="Zaman Seçin"> </el-time-select>
|
|
42
90
|
</div>
|
|
43
91
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
44
92
|
<p class="text-xs">
|
|
@@ -51,37 +99,38 @@
|
|
|
51
99
|
</section>
|
|
52
100
|
|
|
53
101
|
<section>
|
|
54
|
-
<
|
|
55
|
-
<p class="p-
|
|
56
|
-
|
|
57
|
-
|
|
102
|
+
<h2>Arbitrary time picker</h2>
|
|
103
|
+
<p class="p-md-c my-6">
|
|
104
|
+
Keyfi Zaman Seçici, etiket kullanarak el-time-picker'ı kullanmanıza ve seçilebilir zaman aralığını belirleyerek zamanı sınırlamanıza olanak
|
|
105
|
+
tanır. Varsayılan olarak, zamanı seçmek için fare tekerleğini kullanabilirsiniz. Alternatif olarak, arrow-control özelliği
|
|
106
|
+
etkinleştirildiğinde kontrol oklarını kullanabilirsiniz.
|
|
58
107
|
</p>
|
|
59
108
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
60
|
-
<el-time-picker v-model="value1" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="
|
|
61
|
-
<el-time-picker arrow-control v-model="value2" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="
|
|
109
|
+
<el-time-picker v-model="value1" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="Zaman Seçin"> </el-time-picker>
|
|
110
|
+
<el-time-picker arrow-control v-model="value2" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }" placeholder="Zaman Seçin">
|
|
62
111
|
</el-time-picker>
|
|
63
112
|
</div>
|
|
64
113
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
65
114
|
<p class="text-xs">
|
|
66
115
|
<code>
|
|
67
|
-
<el-time-picker v-model="
|
|
68
|
-
|
|
116
|
+
<el-time-picker v-model="value1" :picker-options="{ selectableRange: '18:30:00 - 20:30:00' }"
|
|
117
|
+
placeholder="Zaman Seçin"></el-time-picker>
|
|
69
118
|
</code>
|
|
70
119
|
</p>
|
|
71
120
|
</div>
|
|
72
121
|
</section>
|
|
73
122
|
|
|
74
123
|
<section>
|
|
75
|
-
<
|
|
76
|
-
<p class="p-
|
|
77
|
-
|
|
78
|
-
|
|
124
|
+
<h2>Fixed time range</h2>
|
|
125
|
+
<p class="p-md-c my-6">
|
|
126
|
+
Sabit Zaman Aralığı Seçici, belirli bir başlangıç ve bitiş zamanı arasında zaman seçmenizi sağlar. Özellikle etkinlik başlangıç ve bitiş
|
|
127
|
+
zamanları gibi durumlar için uygundur. Başlangıç ve bitiş zamanlarını kolayca belirleyebilir ve özelleştirebilirsiniz.
|
|
79
128
|
</p>
|
|
80
129
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
81
|
-
<el-time-select placeholder="
|
|
130
|
+
<el-time-select placeholder="Başlangıç zamanı" v-model="startTime" :picker-options="{ start: '08:30', step: '00:15', end: '18:30' }">
|
|
82
131
|
</el-time-select>
|
|
83
132
|
<el-time-select
|
|
84
|
-
placeholder="
|
|
133
|
+
placeholder="Bitiş zamanı"
|
|
85
134
|
v-model="endTime"
|
|
86
135
|
:picker-options="{ start: '08:30', step: '00:15', end: '18:30', minTime: startTime }"
|
|
87
136
|
>
|
|
@@ -90,7 +139,7 @@
|
|
|
90
139
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
91
140
|
<p class="text-xs">
|
|
92
141
|
<code>
|
|
93
|
-
<el-time-select v-model="
|
|
142
|
+
<el-time-select v-model="value" :picker-options="{ start: '08:30', step: '00:15', end: '18:30'
|
|
94
143
|
}"></el-time-select>
|
|
95
144
|
</code>
|
|
96
145
|
</p>
|
|
@@ -98,21 +147,179 @@
|
|
|
98
147
|
</section>
|
|
99
148
|
|
|
100
149
|
<section>
|
|
101
|
-
<
|
|
102
|
-
<p class="p-
|
|
103
|
-
|
|
104
|
-
ve bitiş
|
|
150
|
+
<h2>Arbitrary time range</h2>
|
|
151
|
+
<p class="p-md-c my-6">
|
|
152
|
+
Keyfi Zaman Aralığı Seçici, isteğe bağlı bir zaman aralığı seçmenizi sağlar. Bu, örneğin randevu veya etkinlikler için belirli bir başlangıç
|
|
153
|
+
ve bitiş zamanı seçmeniz gerektiğinde kullanışlıdır. Başlangıç ve bitiş zamanlarını kolayca belirleyebilir ve özelleştirebilirsiniz.
|
|
105
154
|
</p>
|
|
106
155
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
107
|
-
<el-time-picker is-range v-model="
|
|
108
|
-
|
|
156
|
+
<el-time-picker is-range v-model="arb1" range-separator="den" start-placeholder="Başlangıç zamanı" end-placeholder="Bitiş zamanı">
|
|
157
|
+
</el-time-picker>
|
|
158
|
+
<el-time-picker
|
|
159
|
+
is-range
|
|
160
|
+
arrow-control
|
|
161
|
+
v-model="arb2"
|
|
162
|
+
range-separator="den"
|
|
163
|
+
start-placeholder="Başlangıç zamanı"
|
|
164
|
+
end-placeholder="Bitiş zamanı"
|
|
165
|
+
>
|
|
109
166
|
</el-time-picker>
|
|
110
167
|
</div>
|
|
111
168
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
112
169
|
<p class="text-xs">
|
|
113
170
|
<code>
|
|
114
|
-
<el-time-picker is-range v-model
|
|
115
|
-
|
|
171
|
+
<el-time-picker is-range v-model="arb1" range-separator="den" start-placeholder="Başlangıç zamanı" end-placeholder="Bitiş zamanı">
|
|
172
|
+
</el-time-picker>
|
|
173
|
+
</code>
|
|
174
|
+
</p>
|
|
175
|
+
</div>
|
|
176
|
+
</section>
|
|
177
|
+
|
|
178
|
+
<h1>DatePicker</h1>
|
|
179
|
+
<section>
|
|
180
|
+
<h2>Enter Date</h2>
|
|
181
|
+
<p class="p-md-c my-6">
|
|
182
|
+
Tarih Seçme bileşeni, kullanıcıların takvimden tarih seçmelerini sağlayan kullanışlı bir araçtır. Bu bileşen, özellikle web uygulamalarında
|
|
183
|
+
tarih seçimi gerektiren durumlarda kullanışlıdır. Kullanıcılar, takvim arayüzü üzerinden bir tarih seçebilir ve seçilen tarih, ilgili uygulama
|
|
184
|
+
işlemleri için kullanılabilir.
|
|
185
|
+
</p>
|
|
186
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
187
|
+
<el-date-picker v-model="value1" type="date" placeholder="Bir gün seçin"> </el-date-picker>
|
|
188
|
+
<el-date-picker v-model="value2" type="date" placeholder="Bir gün seçin" :picker-options="pickerOptions"> </el-date-picker>
|
|
189
|
+
</div>
|
|
190
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
191
|
+
<p class="text-xs">
|
|
192
|
+
<code>
|
|
193
|
+
<el-date-picker v-model="value1" type="date" placeholder="Bir gün seçin"></el-date-picker>
|
|
194
|
+
</code>
|
|
195
|
+
</p>
|
|
196
|
+
</div>
|
|
197
|
+
</section>
|
|
198
|
+
|
|
199
|
+
<section>
|
|
200
|
+
<h2>Other measurements</h2>
|
|
201
|
+
<p class="p-md-c my-6">
|
|
202
|
+
Bu bileşen, farklı ölçülerde tarih seçmenizi sağlar. Hafta, ay, yıl ve daha fazlasını seçebilirsiniz. Özelleştirilebilir formatlama
|
|
203
|
+
seçenekleri ile istediğiniz türde tarihleri seçebilirsiniz.
|
|
204
|
+
</p>
|
|
205
|
+
<div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 xxl:grid-flow-col auto-cols-max gap-4">
|
|
206
|
+
<el-date-picker class="w-full" v-model="dtp1" type="week" format="Week WW" placeholder="Pick a week"> </el-date-picker>
|
|
207
|
+
<el-date-picker class="w-full" v-model="dtp2" type="month" placeholder="Pick a month"> </el-date-picker>
|
|
208
|
+
<el-date-picker class="w-full" v-model="dtp3" type="year" placeholder="Pick a year"> </el-date-picker>
|
|
209
|
+
<el-date-picker class="w-full" type="dates" v-model="dtp4" placeholder="Pick one or more dates"> </el-date-picker>
|
|
210
|
+
<el-date-picker class="w-full" type="months" v-model="dtp5" placeholder="Pick one or more months"> </el-date-picker>
|
|
211
|
+
<el-date-picker class="w-full" type="years" v-model="dtp6" placeholder="Pick one or more years"> </el-date-picker>
|
|
212
|
+
</div>
|
|
213
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
214
|
+
<p class="text-xs">
|
|
215
|
+
<code>
|
|
216
|
+
<el-date-picker class="w-full" v-model="dtp1" type="week" format="Hafta WW" placeholder="Bir hafta seçin"></el-date-picker>
|
|
217
|
+
</code>
|
|
218
|
+
</p>
|
|
219
|
+
</div>
|
|
220
|
+
</section>
|
|
221
|
+
|
|
222
|
+
<section>
|
|
223
|
+
<h2>Date Range</h2>
|
|
224
|
+
<p class="p-md-c my-6">Tarih aralığı seçici, bir başlangıç ve bitiş tarihi seçmenize olanak tanır.</p>
|
|
225
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
226
|
+
<el-date-picker v-model="datr1" type="daterange" range-separator="To" start-placeholder="Start date" end-placeholder="End date">
|
|
227
|
+
</el-date-picker>
|
|
228
|
+
<el-date-picker
|
|
229
|
+
v-model="datr2"
|
|
230
|
+
type="daterange"
|
|
231
|
+
align="right"
|
|
232
|
+
unlink-panels
|
|
233
|
+
range-separator="To"
|
|
234
|
+
start-placeholder="Start date"
|
|
235
|
+
end-placeholder="End date"
|
|
236
|
+
:picker-options="pickerOptions"
|
|
237
|
+
>
|
|
238
|
+
</el-date-picker>
|
|
239
|
+
</div>
|
|
240
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
241
|
+
<p class="text-xs">
|
|
242
|
+
<code>
|
|
243
|
+
<el-date-picker v-model="value1" type="daterange" range-separator=" - " start-placeholder="Başlangıç tarihi" end-placeholder="Bitiş
|
|
244
|
+
tarihi"></el-date-picker>
|
|
245
|
+
</code>
|
|
246
|
+
</p>
|
|
247
|
+
</div>
|
|
248
|
+
</section>
|
|
249
|
+
|
|
250
|
+
<section>
|
|
251
|
+
<h2>Month Range</h2>
|
|
252
|
+
<p class="p-md-c my-6">Ay aralığı seçici, bir başlangıç ve bitiş ayı seçmenize olanak tanır.</p>
|
|
253
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
254
|
+
<el-date-picker v-model="value1" type="monthrange" range-separator=" - " start-placeholder="Başlangıç ayı" end-placeholder="Bitiş ayı">
|
|
255
|
+
</el-date-picker>
|
|
256
|
+
<el-date-picker
|
|
257
|
+
v-model="value2"
|
|
258
|
+
type="monthrange"
|
|
259
|
+
align="right"
|
|
260
|
+
unlink-panels
|
|
261
|
+
range-separator=" - "
|
|
262
|
+
start-placeholder="Başlangıç ayı"
|
|
263
|
+
end-placeholder="Bitiş ayı"
|
|
264
|
+
:picker-options="monthOptions"
|
|
265
|
+
>
|
|
266
|
+
</el-date-picker>
|
|
267
|
+
</div>
|
|
268
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
269
|
+
<p class="text-xs">
|
|
270
|
+
<code>
|
|
271
|
+
<el-date-picker v-model="value1" type="monthrange" range-separator=" - " start-placeholder="Başlangıç ayı" end-placeholder="Bitiş
|
|
272
|
+
ayı"></el-date-picker>
|
|
273
|
+
</code>
|
|
274
|
+
</p>
|
|
275
|
+
</div>
|
|
276
|
+
</section>
|
|
277
|
+
|
|
278
|
+
<h1>DateTimePicker</h1>
|
|
279
|
+
<section>
|
|
280
|
+
<h2>Date and time</h2>
|
|
281
|
+
<p class="p-md-c my-6">
|
|
282
|
+
DateTimePicker, kullanıcıların tarih ve saat bilgisini seçmelerini sağlayan bir bileşendir. Bu bileşen, DatePicker ve TimePicker
|
|
283
|
+
bileşenlerinden türetilmiştir ve tarih ile saat seçme işlemini tek bir bileşende birleştirir. Daha fazla ayrıntı için pickerOptions ve diğer
|
|
284
|
+
özellikler hakkında bilgi almak için DatePicker ve TimePicker dokümantasyonlarına başvurabilirsiniz.
|
|
285
|
+
</p>
|
|
286
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
287
|
+
<el-date-picker v-model="dat1" type="datetime" placeholder="Select date and time"> </el-date-picker>
|
|
288
|
+
<el-date-picker v-model="dat2" type="datetime" placeholder="Select date and time" :picker-options="dataAndTimeOptions"> </el-date-picker>
|
|
289
|
+
<el-date-picker v-model="dat3" type="datetime" placeholder="Select date and time" default-time="12:00:00"> </el-date-picker>
|
|
290
|
+
</div>
|
|
291
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
292
|
+
<p class="text-xs">
|
|
293
|
+
<code> <el-date-picker v-model="dat1" type="datetime" placeholder="Tarih ve saat seçin"></el-date-picker> </code>
|
|
294
|
+
</p>
|
|
295
|
+
</div>
|
|
296
|
+
</section>
|
|
297
|
+
|
|
298
|
+
<section>
|
|
299
|
+
<h2>Date and time range</h2>
|
|
300
|
+
<p class="p-md-c my-6">
|
|
301
|
+
Tarih ve Saat Aralığı Seçici (DateTimePicker), kullanıcılara belirli bir zaman dilimini seçme olanağı sunar. Bu bileşen, özellikle randevu
|
|
302
|
+
veya etkinlik planlaması gibi durumlar için kullanışlıdır. Kullanıcılar başlangıç ve bitiş tarihini veya saati belirleyebilirler.
|
|
303
|
+
</p>
|
|
304
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
305
|
+
<el-date-picker v-model="datr1" type="datetimerange" range-separator="To" start-placeholder="Start date" end-placeholder="End date">
|
|
306
|
+
</el-date-picker>
|
|
307
|
+
<el-date-picker
|
|
308
|
+
v-model="datr2"
|
|
309
|
+
type="datetimerange"
|
|
310
|
+
:picker-options="dateAndTimeRangePickerOption"
|
|
311
|
+
range-separator="To"
|
|
312
|
+
start-placeholder="Start date"
|
|
313
|
+
end-placeholder="End date"
|
|
314
|
+
align="right"
|
|
315
|
+
>
|
|
316
|
+
</el-date-picker>
|
|
317
|
+
</div>
|
|
318
|
+
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
319
|
+
<p class="text-xs">
|
|
320
|
+
<code>
|
|
321
|
+
<el-date-picker v-model="datr1" type="datetimerange" range-separator="den" start-placeholder="Başlangıç tarihi" end-placeholder="Bitiş
|
|
322
|
+
tarihi"></el-date-picker>
|
|
116
323
|
</code>
|
|
117
324
|
</p>
|
|
118
325
|
</div>
|
|
@@ -129,8 +336,134 @@ export default Vue.extend({
|
|
|
129
336
|
value: '',
|
|
130
337
|
value1: new Date(2016, 9, 10, 18, 40),
|
|
131
338
|
value2: new Date(2016, 9, 10, 18, 40),
|
|
339
|
+
arb1: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
|
|
340
|
+
arb2: [new Date(2016, 9, 10, 8, 40), new Date(2016, 9, 10, 9, 40)],
|
|
132
341
|
startTime: '',
|
|
133
342
|
endTime: '',
|
|
343
|
+
dataAndTimeOptions: {
|
|
344
|
+
shortcuts: [
|
|
345
|
+
{
|
|
346
|
+
text: 'Today',
|
|
347
|
+
onClick(picker) {
|
|
348
|
+
picker.$emit('pick', new Date());
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
text: 'Yesterday',
|
|
353
|
+
onClick(picker) {
|
|
354
|
+
const date = new Date();
|
|
355
|
+
date.setTime(date.getTime() - 3600 * 1000 * 24);
|
|
356
|
+
picker.$emit('pick', date);
|
|
357
|
+
},
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
text: 'A week ago',
|
|
361
|
+
onClick(picker) {
|
|
362
|
+
const date = new Date();
|
|
363
|
+
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
|
|
364
|
+
picker.$emit('pick', date);
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
],
|
|
368
|
+
},
|
|
369
|
+
dat1: '',
|
|
370
|
+
dat2: '',
|
|
371
|
+
dat3: '',
|
|
372
|
+
dateAndTimeRangePickerOption: {
|
|
373
|
+
shortcuts: [
|
|
374
|
+
{
|
|
375
|
+
text: 'Last week',
|
|
376
|
+
onClick(picker) {
|
|
377
|
+
const end = new Date();
|
|
378
|
+
const start = new Date();
|
|
379
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
|
380
|
+
picker.$emit('pick', [start, end]);
|
|
381
|
+
},
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
text: 'Last month',
|
|
385
|
+
onClick(picker) {
|
|
386
|
+
const end = new Date();
|
|
387
|
+
const start = new Date();
|
|
388
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
|
389
|
+
picker.$emit('pick', [start, end]);
|
|
390
|
+
},
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
text: 'Last 3 months',
|
|
394
|
+
onClick(picker) {
|
|
395
|
+
const end = new Date();
|
|
396
|
+
const start = new Date();
|
|
397
|
+
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
|
398
|
+
picker.$emit('pick', [start, end]);
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
},
|
|
403
|
+
datr1: [new Date(2000, 10, 10, 10, 10), new Date(2000, 10, 11, 10, 10)],
|
|
404
|
+
datr2: '',
|
|
405
|
+
monthOptions: {
|
|
406
|
+
shortcuts: [
|
|
407
|
+
{
|
|
408
|
+
text: 'This month',
|
|
409
|
+
onClick(picker) {
|
|
410
|
+
picker.$emit('pick', [new Date(), new Date()]);
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
text: 'This year',
|
|
415
|
+
onClick(picker) {
|
|
416
|
+
const end = new Date();
|
|
417
|
+
const start = new Date(new Date().getFullYear(), 0);
|
|
418
|
+
picker.$emit('pick', [start, end]);
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
text: 'Last 6 months',
|
|
423
|
+
onClick(picker) {
|
|
424
|
+
const end = new Date();
|
|
425
|
+
const start = new Date();
|
|
426
|
+
start.setMonth(start.getMonth() - 6);
|
|
427
|
+
picker.$emit('pick', [start, end]);
|
|
428
|
+
},
|
|
429
|
+
},
|
|
430
|
+
],
|
|
431
|
+
},
|
|
432
|
+
pickerOptions: {
|
|
433
|
+
shortcuts: [
|
|
434
|
+
{
|
|
435
|
+
text: 'Today',
|
|
436
|
+
onClick(picker) {
|
|
437
|
+
picker.$emit('pick', new Date());
|
|
438
|
+
},
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
text: 'Yesterday',
|
|
442
|
+
onClick(picker) {
|
|
443
|
+
const date = new Date();
|
|
444
|
+
date.setTime(date.getTime() - 3600 * 1000 * 24);
|
|
445
|
+
picker.$emit('pick', date);
|
|
446
|
+
},
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
text: 'A week ago',
|
|
450
|
+
onClick(picker) {
|
|
451
|
+
const date = new Date();
|
|
452
|
+
date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
|
|
453
|
+
picker.$emit('pick', date);
|
|
454
|
+
},
|
|
455
|
+
},
|
|
456
|
+
],
|
|
457
|
+
},
|
|
458
|
+
value1: '',
|
|
459
|
+
value2: '',
|
|
460
|
+
value3: '',
|
|
461
|
+
dtp1: '',
|
|
462
|
+
dtp2: '',
|
|
463
|
+
dtp3: '',
|
|
464
|
+
dtp4: '',
|
|
465
|
+
dtp5: '',
|
|
466
|
+
dtp6: '',
|
|
134
467
|
};
|
|
135
468
|
},
|
|
136
469
|
methods: {
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
+
<section>
|
|
4
|
+
<h1>Basic</h1>
|
|
5
|
+
<p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
|
|
6
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
|
+
<el-switch v-model="value1"> </el-switch>
|
|
8
|
+
</div>
|
|
9
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
10
|
+
<p class="text-xs">
|
|
11
|
+
<code><el-input placeholder="Please input" v-model="input"></el-input></code>
|
|
12
|
+
</p>
|
|
13
|
+
</div>
|
|
14
|
+
</section>
|
|
15
|
+
|
|
16
|
+
<section>
|
|
17
|
+
<h1>Custom Color</h1>
|
|
18
|
+
<p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
|
|
19
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
20
|
+
<el-switch v-model="value2" active-color="#13ce66" inactive-color="#ff4949"> </el-switch>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
23
|
+
<p class="text-xs">
|
|
24
|
+
<code><el-input placeholder="Please input" v-model="input"></el-input></code>
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
</section>
|
|
28
|
+
|
|
29
|
+
<section>
|
|
30
|
+
<h1>Text description</h1>
|
|
31
|
+
<p class="p-lg my-6">You can add active-text and inactive-text attribute to show texts.</p>
|
|
32
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
33
|
+
<el-switch v-model="value1" active-text="Pay by month" inactive-text="Pay by year"> </el-switch>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
36
|
+
<p class="text-xs">
|
|
37
|
+
<code><el-input placeholder="Please input" v-model="input"></el-input></code>
|
|
38
|
+
</p>
|
|
39
|
+
</div>
|
|
40
|
+
</section>
|
|
41
|
+
|
|
42
|
+
<section>
|
|
43
|
+
<h1>Disabled</h1>
|
|
44
|
+
<p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
|
|
45
|
+
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
46
|
+
<el-switch v-model="value1" disabled inactive-text="Pay by year"></el-switch>
|
|
47
|
+
<el-switch v-model="value2" disabled inactive-text="Pay by year"></el-switch>
|
|
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-input placeholder="Please input" v-model="input"></el-input></code>
|
|
52
|
+
</p>
|
|
53
|
+
</div>
|
|
54
|
+
</section>
|
|
55
|
+
</div>
|
|
56
|
+
</template>
|
|
57
|
+
<script>
|
|
58
|
+
import Vue from 'vue';
|
|
59
|
+
|
|
60
|
+
export default Vue.extend({
|
|
61
|
+
name: 'TimusButtonSample',
|
|
62
|
+
data() {
|
|
63
|
+
return {
|
|
64
|
+
value1: true,
|
|
65
|
+
value2: true,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
computed: {
|
|
69
|
+
gridSize() {
|
|
70
|
+
const grids = {
|
|
71
|
+
5: 'grid-cols-5',
|
|
72
|
+
6: 'grid-cols-6',
|
|
73
|
+
7: 'grid-cols-7',
|
|
74
|
+
8: 'grid-cols-8',
|
|
75
|
+
};
|
|
76
|
+
return grids;
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
methods: {
|
|
80
|
+
querySearch(queryString, cb) {
|
|
81
|
+
var links = this.links;
|
|
82
|
+
var results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
83
|
+
// call callback function to return suggestions
|
|
84
|
+
cb(results);
|
|
85
|
+
},
|
|
86
|
+
querySearchAsync(queryString, cb) {
|
|
87
|
+
var links = this.links;
|
|
88
|
+
var results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
89
|
+
|
|
90
|
+
clearTimeout(this.timeout);
|
|
91
|
+
this.timeout = setTimeout(() => {
|
|
92
|
+
cb(results);
|
|
93
|
+
}, 3000 * Math.random());
|
|
94
|
+
},
|
|
95
|
+
createFilter(queryString) {
|
|
96
|
+
return (link) => {
|
|
97
|
+
return link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
98
|
+
};
|
|
99
|
+
},
|
|
100
|
+
loadAll() {
|
|
101
|
+
return [
|
|
102
|
+
{ value: 'vue', link: 'https://github.com/vuejs/vue' },
|
|
103
|
+
{ value: 'element', link: 'https://github.com/ElemeFE/element' },
|
|
104
|
+
{ value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
|
|
105
|
+
{ value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
|
|
106
|
+
{ value: 'vuex', link: 'https://github.com/vuejs/vuex' },
|
|
107
|
+
{ value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
|
|
108
|
+
{ value: 'babel', link: 'https://github.com/babel/babel' },
|
|
109
|
+
];
|
|
110
|
+
},
|
|
111
|
+
handleSelect(item) {
|
|
112
|
+
console.log(item);
|
|
113
|
+
},
|
|
114
|
+
handleIconClick(ev) {
|
|
115
|
+
console.log(ev);
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
mounted() {
|
|
119
|
+
this.links = this.loadAll();
|
|
120
|
+
},
|
|
121
|
+
});
|
|
122
|
+
</script>
|