@timus-networks/theme 1.0.184 → 2.0.0
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/TimusIcons.vue +54 -0
- package/generate-icon.js +22 -0
- package/module.ts +84 -0
- package/package.json +17 -18
- package/pages/icons.vue +46 -0
- package/plugins/sample-plugin.ts +5 -0
- package/public/isax/fonts/iconsax.svg +927 -0
- package/public/isax/fonts/iconsax.ttf +0 -0
- package/public/isax/fonts/iconsax.woff +0 -0
- package/public/isax/icons.json +899 -0
- package/public/isax/selection.json +1 -0
- package/public/isax/style.css +1 -0
- package/public/isax/style.scss +5435 -0
- package/public/isax/variables.scss +900 -0
- package/README.md +0 -119
- package/components-js/ThemeAlert.vue +0 -78
- package/components-js/ThemeAvatar.vue +0 -55
- package/components-js/ThemeBadge.vue +0 -106
- package/components-js/ThemeBreadcrumb.vue +0 -44
- package/components-js/ThemeButtons.vue +0 -148
- package/components-js/ThemeCascader.vue +0 -390
- package/components-js/ThemeCheckbox.d.ts +0 -2
- package/components-js/ThemeCheckbox.vue +0 -197
- package/components-js/ThemeCollapse.vue +0 -73
- package/components-js/ThemeDialog.vue +0 -49
- package/components-js/ThemeForm.d.ts +0 -2
- package/components-js/ThemeForm.vue +0 -134
- package/components-js/ThemeInformation.vue +0 -127
- package/components-js/ThemeInputNumbers.vue +0 -74
- package/components-js/ThemeInputs.vue +0 -316
- package/components-js/ThemeLink.vue +0 -110
- package/components-js/ThemeLogo.vue +0 -57
- package/components-js/ThemeMessage.vue +0 -55
- package/components-js/ThemeMessageBox.vue +0 -47
- package/components-js/ThemePopover.vue +0 -557
- package/components-js/ThemeRadio.d.ts +0 -2
- package/components-js/ThemeRadio.vue +0 -164
- package/components-js/ThemeSelect.vue +0 -237
- package/components-js/ThemeSidebar.d.ts +0 -2
- package/components-js/ThemeSidebar.vue +0 -275
- package/components-js/ThemeTable.vue +0 -305
- package/components-js/ThemeTag.vue +0 -145
- package/components-js/ThemeToggle.vue +0 -123
- package/components-js/ThemeTooltip.vue +0 -191
- package/components-js/ThemeTypo.vue +0 -65
- package/components-js/ThemeUpload.vue +0 -92
- package/components-js/TimusSamples.vue +0 -54
- package/components-js/exporter.js +0 -19
- package/components-js/interfaces.js +0 -1
- package/components-js/utils.d.ts +0 -6
- package/components-js/utils.js +0 -17
- package/components-ts/ThemeAlert.vue +0 -78
- package/components-ts/ThemeAvatar.vue +0 -55
- package/components-ts/ThemeBadge.vue +0 -106
- package/components-ts/ThemeBreadcrumb.vue +0 -44
- package/components-ts/ThemeButtons.vue +0 -148
- package/components-ts/ThemeCascader.vue +0 -390
- package/components-ts/ThemeCheckbox.vue +0 -202
- package/components-ts/ThemeCollapse.vue +0 -73
- package/components-ts/ThemeDialog.vue +0 -49
- package/components-ts/ThemeForm.vue +0 -137
- package/components-ts/ThemeInformation.vue +0 -127
- package/components-ts/ThemeInputNumbers.vue +0 -74
- package/components-ts/ThemeInputs.vue +0 -316
- package/components-ts/ThemeLink.vue +0 -110
- package/components-ts/ThemeLogo.vue +0 -57
- package/components-ts/ThemeMessage.vue +0 -55
- package/components-ts/ThemeMessageBox.vue +0 -47
- package/components-ts/ThemePopover.vue +0 -557
- package/components-ts/ThemeRadio.vue +0 -169
- package/components-ts/ThemeSelect.vue +0 -237
- package/components-ts/ThemeSidebar.vue +0 -277
- package/components-ts/ThemeTable.vue +0 -305
- package/components-ts/ThemeTag.vue +0 -145
- package/components-ts/ThemeToggle.vue +0 -123
- package/components-ts/ThemeTooltip.vue +0 -191
- package/components-ts/ThemeTypo.vue +0 -65
- package/components-ts/ThemeUpload.vue +0 -92
- package/components-ts/TimusSamples.vue +0 -54
- package/components-ts/exporter.js +0 -19
- package/components-ts/interfaces.ts +0 -11
- package/components-ts/utils.ts +0 -20
- package/convert-js.js +0 -112
- package/convert-sass.js +0 -26
- package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.svg +0 -3099
- package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.svg +0 -3131
- package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +0 -3120
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +0 -3245
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.svg +0 -3414
- package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.svg +0 -3244
- package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.svg +0 -3190
- package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.svg +0 -3213
- package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +0 -3174
- package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.svg +0 -3266
- package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
- package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
- package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
- package/fonts/poppins-font-face/stylesheet.css +0 -81
- package/images/applications/apple.png +0 -0
- package/images/applications/apple_icloud.png +0 -0
- package/images/applications/apple_itunes.png +0 -0
- package/images/applications/apple_store.png +0 -0
- package/images/applications/bloomberg.png +0 -0
- package/images/applications/chrome.png +0 -0
- package/images/applications/csgo.png +0 -0
- package/images/applications/dns.png +0 -0
- package/images/applications/dropbox.png +0 -0
- package/images/applications/evil.png +0 -0
- package/images/applications/facebook-messenger.png +0 -0
- package/images/applications/facebook.png +0 -0
- package/images/applications/ftp.png +0 -0
- package/images/applications/gmail.png +0 -0
- package/images/applications/google.png +0 -0
- package/images/applications/google_maps.png +0 -0
- package/images/applications/instagram.png +0 -0
- package/images/applications/linkedin.svg +0 -5
- package/images/applications/messenger.png +0 -0
- package/images/applications/mysql.png +0 -0
- package/images/applications/netflix.png +0 -0
- package/images/applications/nintendo.png +0 -0
- package/images/applications/sap.png +0 -0
- package/images/applications/skype.png +0 -0
- package/images/applications/slack.png +0 -0
- package/images/applications/smtp.png +0 -0
- package/images/applications/snapchat.png +0 -0
- package/images/applications/spotify.png +0 -0
- package/images/applications/ssh.png +0 -0
- package/images/applications/teamspeak.png +0 -0
- package/images/applications/tiktok.png +0 -0
- package/images/applications/twitch.png +0 -0
- package/images/applications/twitter.png +0 -0
- package/images/applications/ubuntuone.png +0 -0
- package/images/applications/utorrent.png +0 -0
- package/images/applications/website.png +0 -0
- package/images/applications/whatsapp.png +0 -0
- package/images/applications/windows-update.png +0 -0
- package/images/applications/youtube.png +0 -0
- package/images/backgrounds/login-icon.png +0 -0
- package/images/backgrounds/login.jpg +0 -0
- package/images/backgrounds/login.png +0 -0
- package/images/cards/amex.svg +0 -20
- package/images/cards/default.svg +0 -18
- package/images/cards/dina.svg +0 -12
- package/images/cards/diners.svg +0 -30
- package/images/cards/discover.svg +0 -28
- package/images/cards/eftpos.svg +0 -21
- package/images/cards/jcb.svg +0 -41
- package/images/cards/mastercard.svg +0 -5
- package/images/cards/unionpay.svg +0 -6
- package/images/cards/visa.svg +0 -3
- package/images/devices/os-android.png +0 -0
- package/images/devices/os-android.svg +0 -6
- package/images/devices/os-apple.svg +0 -4
- package/images/devices/os-default.svg +0 -5
- package/images/devices/os-ios.png +0 -0
- package/images/devices/os-ios.svg +0 -4
- package/images/devices/os-linux-debian.png +0 -0
- package/images/devices/os-linux-ubuntu.png +0 -0
- package/images/devices/os-linux.svg +0 -3
- package/images/devices/os-osx.png +0 -0
- package/images/devices/os-unknown.png +0 -0
- package/images/devices/os-windows.png +0 -0
- package/images/devices/os-windows.svg +0 -3
- package/images/devices/type-laptop-ubuntu.png +0 -0
- package/images/devices/type-laptop.png +0 -0
- package/images/devices/type-printer.png +0 -0
- package/images/devices/type-switch-cisco.png +0 -0
- package/images/logos/timus-favicon.png +0 -0
- package/images/logos/timus-icon.svg +0 -17
- package/images/logos/timus-logo-manager.svg +0 -29
- package/images/logos/timus-logo-partner.svg +0 -35
- package/images/logos/timus-logo.svg +0 -22
- package/index.d.ts +0 -5
- package/loader.js +0 -50
- package/module.js +0 -77
- package/output/main.css +0 -1
- package/plugins/html-to-string.js +0 -36
- package/plugins/js-components-installer.js +0 -22
- package/plugins/theme-provider.js +0 -72
- package/plugins/ts-components-installer.js +0 -22
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
-
<h1>Radio</h1>
|
|
4
|
-
|
|
5
|
-
<section>
|
|
6
|
-
<h2>Temel Kullanım</h2>
|
|
7
|
-
<p class="p-lg-c my-6">El Radio, çok fazla seçeneğe sahip olmamalıdır. Aksi takdirde, Select bileşenini kullanmalısınız.</p>
|
|
8
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
9
|
-
<el-radio v-model="radio" :label="0">Seçenek A</el-radio>
|
|
10
|
-
<el-radio v-model="radio" :label="1">Seçenek B</el-radio>
|
|
11
|
-
<el-radio v-model="radio" :label="2" disabled>Seçenek C (Devre Dışı)</el-radio>
|
|
12
|
-
<el-radio :value="false" disabled>Seçili Olmayan ve Devre Dışı</el-radio>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
15
|
-
<p class="text-xs">
|
|
16
|
-
Örnek Kullanım:
|
|
17
|
-
<code> <el-radio :value="true" disabled>Seçili & Devre Dışı</el-radio> </code>
|
|
18
|
-
</p>
|
|
19
|
-
</div>
|
|
20
|
-
</section>
|
|
21
|
-
|
|
22
|
-
<section>
|
|
23
|
-
<h2>Radio group</h2>
|
|
24
|
-
<p class="p-lg-c my-6">
|
|
25
|
-
`el-radio-group` ile `el-radio` bileşenini bir araya getirerek bir radyo grubu görüntüleyebilirsiniz. el-radio-group elementinin v-model ile
|
|
26
|
-
bağlı olduğu bir değişkeni belirleyin ve el-radio içindeki etiket değerini ayarlayın. Ayrıca, mevcut değeri parametre olarak alan bir
|
|
27
|
-
değişiklik olayı sağlar.
|
|
28
|
-
</p>
|
|
29
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
30
|
-
<el-radio-group v-model="radio">
|
|
31
|
-
<el-radio :label="3">Seçenek A</el-radio>
|
|
32
|
-
<el-radio :label="6">Seçenek B</el-radio>
|
|
33
|
-
<el-radio :label="9">Seçenek C</el-radio>
|
|
34
|
-
</el-radio-group>
|
|
35
|
-
</div>
|
|
36
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
37
|
-
<p class="text-xs">
|
|
38
|
-
Örnek Kullanım:
|
|
39
|
-
<code>
|
|
40
|
-
<el-radio-group v-model="radio"> <el-radio :label="3">Seçenek A</el-radio> <el-radio :label="6">Seçenek
|
|
41
|
-
B</el-radio> </el-radio-group>
|
|
42
|
-
</code>
|
|
43
|
-
</p>
|
|
44
|
-
</div>
|
|
45
|
-
</section>
|
|
46
|
-
|
|
47
|
-
<section>
|
|
48
|
-
<div>
|
|
49
|
-
<el-radio-group v-model="radio1">
|
|
50
|
-
<el-radio-button label="New York" />
|
|
51
|
-
<el-radio-button label="Washington" />
|
|
52
|
-
<el-radio-button label="Los Angeles" />
|
|
53
|
-
<el-radio-button label="Chicago" />
|
|
54
|
-
</el-radio-group>
|
|
55
|
-
</div>
|
|
56
|
-
<div style="margin-top: 20px">
|
|
57
|
-
<el-radio-group v-model="radio2" size="medium">
|
|
58
|
-
<el-radio-button label="New York" />
|
|
59
|
-
<el-radio-button label="Washington" />
|
|
60
|
-
<el-radio-button label="Los Angeles" />
|
|
61
|
-
<el-radio-button label="Chicago" />
|
|
62
|
-
</el-radio-group>
|
|
63
|
-
</div>
|
|
64
|
-
<div style="margin-top: 20px">
|
|
65
|
-
<el-radio-group v-model="radio3" size="small">
|
|
66
|
-
<el-radio-button label="New York" />
|
|
67
|
-
<el-radio-button label="Washington" disabled />
|
|
68
|
-
<el-radio-button label="Los Angeles" />
|
|
69
|
-
<el-radio-button label="Chicago" />
|
|
70
|
-
</el-radio-group>
|
|
71
|
-
</div>
|
|
72
|
-
<div style="margin-top: 20px">
|
|
73
|
-
<el-radio-group v-model="radio4" disabled size="mini">
|
|
74
|
-
<el-radio-button label="New York" />
|
|
75
|
-
<el-radio-button label="Washington" />
|
|
76
|
-
<el-radio-button label="Los Angeles" />
|
|
77
|
-
<el-radio-button label="Chicago" />
|
|
78
|
-
</el-radio-group>
|
|
79
|
-
</div>
|
|
80
|
-
</section>
|
|
81
|
-
</div>
|
|
82
|
-
</template>
|
|
83
|
-
|
|
84
|
-
<script>import { defineComponent } from 'vue';
|
|
85
|
-
const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
|
|
86
|
-
export default defineComponent({
|
|
87
|
-
data() {
|
|
88
|
-
return {
|
|
89
|
-
checked: true,
|
|
90
|
-
radio: 2,
|
|
91
|
-
radio1: 'New York',
|
|
92
|
-
radio2: 'New York',
|
|
93
|
-
radio3: 'New York',
|
|
94
|
-
radio4: 'New York',
|
|
95
|
-
checkboxGroup1: ['Shanghai'],
|
|
96
|
-
cities: cityOptions,
|
|
97
|
-
checkList: ['selected and disabled', 'Option A'],
|
|
98
|
-
checkAll: false,
|
|
99
|
-
checkedCities: ['Shanghai', 'Beijing'],
|
|
100
|
-
isIndeterminate: true,
|
|
101
|
-
time: '',
|
|
102
|
-
sizeForm: {
|
|
103
|
-
name: '',
|
|
104
|
-
region: '',
|
|
105
|
-
date1: '',
|
|
106
|
-
date2: '',
|
|
107
|
-
delivery: false,
|
|
108
|
-
type: [],
|
|
109
|
-
resource: '',
|
|
110
|
-
desc: '',
|
|
111
|
-
},
|
|
112
|
-
loading: false,
|
|
113
|
-
form: {
|
|
114
|
-
email: '',
|
|
115
|
-
password: '',
|
|
116
|
-
remember: false,
|
|
117
|
-
token: null,
|
|
118
|
-
correlation_id: null,
|
|
119
|
-
action: null,
|
|
120
|
-
platform: 'manager',
|
|
121
|
-
version: '1.0.10',
|
|
122
|
-
},
|
|
123
|
-
rules: {
|
|
124
|
-
email: [
|
|
125
|
-
{
|
|
126
|
-
validator: 'validateEmail',
|
|
127
|
-
trigger: 'submit',
|
|
128
|
-
message: this.$t('messages.please_provide_valid_email'),
|
|
129
|
-
},
|
|
130
|
-
],
|
|
131
|
-
password: [
|
|
132
|
-
{
|
|
133
|
-
required: true,
|
|
134
|
-
trigger: 'submit',
|
|
135
|
-
message: this.$t('messages.please_fill', {
|
|
136
|
-
field: this.$t('login.password'),
|
|
137
|
-
}),
|
|
138
|
-
},
|
|
139
|
-
],
|
|
140
|
-
},
|
|
141
|
-
};
|
|
142
|
-
},
|
|
143
|
-
methods: {
|
|
144
|
-
handleCheckAllChange(val) {
|
|
145
|
-
this.checkedCities = val ? cityOptions : [];
|
|
146
|
-
this.isIndeterminate = false;
|
|
147
|
-
},
|
|
148
|
-
handleCheckedCitiesChange(value) {
|
|
149
|
-
const checkedCount = value.length;
|
|
150
|
-
this.checkAll = checkedCount === this.cities.length;
|
|
151
|
-
this.isIndeterminate = checkedCount > 0 && checkedCount < this.cities.length;
|
|
152
|
-
},
|
|
153
|
-
showAgreementDialog(type) {
|
|
154
|
-
console.log('agreement: ', type);
|
|
155
|
-
},
|
|
156
|
-
submit() {
|
|
157
|
-
this.$emit('submit', this.form);
|
|
158
|
-
},
|
|
159
|
-
onSubmit() {
|
|
160
|
-
console.log('submit!');
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
});
|
|
164
|
-
</script>
|
|
@@ -1,237 +0,0 @@
|
|
|
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">v-model is the value of el-option that is currently selected.</p>
|
|
6
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
|
-
<el-select v-model="value" placeholder="Select">
|
|
8
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
9
|
-
</el-select>
|
|
10
|
-
</div>
|
|
11
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
12
|
-
<p class="text-xs">
|
|
13
|
-
<code><el-button :type="'primary'">Primary</el-button></code>
|
|
14
|
-
</p>
|
|
15
|
-
</div>
|
|
16
|
-
</section>
|
|
17
|
-
|
|
18
|
-
<section>
|
|
19
|
-
<h1>Disabled option</h1>
|
|
20
|
-
<p class="p-lg my-6">Set the value of disabled in el-option to true to disable this option.</p>
|
|
21
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
22
|
-
<el-select v-model="value" placeholder="Select">
|
|
23
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" :disabled="item.disabled" />
|
|
24
|
-
</el-select>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
27
|
-
<p class="text-xs">
|
|
28
|
-
Outline görünümü için, buton elementinize <code>class="outline"</code> ekleyin. Örnek:
|
|
29
|
-
<code><el-button class="outline">Button</el-button></code>
|
|
30
|
-
</p>
|
|
31
|
-
</div>
|
|
32
|
-
</section>
|
|
33
|
-
|
|
34
|
-
<section>
|
|
35
|
-
<h1>Disabled select</h1>
|
|
36
|
-
<p class="p-lg my-6">Set disabled of el-select to make it disabled.</p>
|
|
37
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
38
|
-
<el-select v-model="value" disabled placeholder="Select">
|
|
39
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
40
|
-
</el-select>
|
|
41
|
-
</div>
|
|
42
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
43
|
-
<p class="text-xs">
|
|
44
|
-
Ghost görünümü için, buton elementinize <code>class="ghost"</code> ekleyin. Örnek:
|
|
45
|
-
<code><el-button class="ghost">Button</el-button></code>
|
|
46
|
-
</p>
|
|
47
|
-
</div>
|
|
48
|
-
</section>
|
|
49
|
-
|
|
50
|
-
<section>
|
|
51
|
-
<h1>Clearable single select</h1>
|
|
52
|
-
<p class="p-lg my-6">Farklı boyutlardaki butonlarımız, çeşitli arayüz ihtiyaçlarına yanıt vermek için tasarlanmıştır.</p>
|
|
53
|
-
<div class="grid grid-flow-col auto-cols-max items-center gap-4">
|
|
54
|
-
<el-select v-model="value" clearable placeholder="Select">
|
|
55
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
56
|
-
</el-select>
|
|
57
|
-
</div>
|
|
58
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
59
|
-
<p class="text-xs">
|
|
60
|
-
Örnekler:
|
|
61
|
-
<code><el-button :size="'large'">Button</el-button></code>
|
|
62
|
-
</p>
|
|
63
|
-
</div>
|
|
64
|
-
</section>
|
|
65
|
-
|
|
66
|
-
<section>
|
|
67
|
-
<h1>Basic multiple select</h1>
|
|
68
|
-
<p class="p-lg my-6">Etkileşime kapalı 'disabled' butonlarımız, kullanılamaz durumları göstermek için kullanılır.</p>
|
|
69
|
-
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
70
|
-
{{ JSON.stringify(value1) }}
|
|
71
|
-
<el-select v-model="value1" multiple placeholder="Select" :disabled="false">
|
|
72
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
73
|
-
</el-select>
|
|
74
|
-
<el-select v-model="value1" multiple placeholder="Select" :disabled="true">
|
|
75
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
76
|
-
</el-select>
|
|
77
|
-
<el-select v-model="value2" multiple collapse-tags placeholder="Select" type="primary" :disabled="true">
|
|
78
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
79
|
-
</el-select>
|
|
80
|
-
</div>
|
|
81
|
-
<div class="my-4 p-4 border-l-4 border-red-600 bg-red-100">
|
|
82
|
-
<p class="text-xs">
|
|
83
|
-
Butonu devre dışı bırakmak için, <code>disabled</code> özelliğini ekleyin. Örnek:
|
|
84
|
-
<code><el-button disabled>Button</el-button></code>
|
|
85
|
-
</p>
|
|
86
|
-
</div>
|
|
87
|
-
</section>
|
|
88
|
-
|
|
89
|
-
<section>
|
|
90
|
-
<h1>Custom template</h1>
|
|
91
|
-
<p class="p-lg my-6">
|
|
92
|
-
İkonlarla zenginleştirilmiş butonlarımız, görsel bir ipucu sunar ve kullanıcı deneyimini artırır. Tüm ikonlarımızın listesini görmek için
|
|
93
|
-
<nuxt-link to="/icons" class="text-blue-600 hover:underline">buraya tıklayın</nuxt-link>.
|
|
94
|
-
</p>
|
|
95
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
96
|
-
<el-select v-model="value" placeholder="Select">
|
|
97
|
-
<el-option v-for="item in cities" :key="item.value" :label="item.label" :value="item.value">
|
|
98
|
-
<span style="float: left">{{ item.label }}</span>
|
|
99
|
-
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.value }}</span>
|
|
100
|
-
</el-option>
|
|
101
|
-
</el-select>
|
|
102
|
-
</div>
|
|
103
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
104
|
-
<p class="text-xs">
|
|
105
|
-
Örnekler:
|
|
106
|
-
<code><el-button type="primary" class="isax-trash"></el-button></code>. Sağda ikon için <code>class="icon-right"</code> ekleyin.
|
|
107
|
-
</p>
|
|
108
|
-
</div>
|
|
109
|
-
</section>
|
|
110
|
-
|
|
111
|
-
<section>
|
|
112
|
-
<h1>Grouping</h1>
|
|
113
|
-
<p class="p-lg my-6">Display options in groups.</p>
|
|
114
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
115
|
-
<el-select v-model="value" placeholder="Select">
|
|
116
|
-
<el-option-group v-for="group in groups" :key="group.label" :label="group.label">
|
|
117
|
-
<el-option v-for="item in group.options" :key="item.value" :label="item.label" :value="item.value" />
|
|
118
|
-
</el-option-group>
|
|
119
|
-
</el-select>
|
|
120
|
-
</div>
|
|
121
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
122
|
-
<p class="text-xs">Buton grupları için <code><el-button-group></code> kullanın.</p>
|
|
123
|
-
</div>
|
|
124
|
-
</section>
|
|
125
|
-
</div>
|
|
126
|
-
</template>
|
|
127
|
-
<script>
|
|
128
|
-
import { defineComponent } from 'vue';
|
|
129
|
-
|
|
130
|
-
export default defineComponent({
|
|
131
|
-
name: 'TimusButtonSample',
|
|
132
|
-
data() {
|
|
133
|
-
return {
|
|
134
|
-
cities: [
|
|
135
|
-
{
|
|
136
|
-
value: 'Beijing',
|
|
137
|
-
label: 'Beijing',
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
value: 'Shanghai',
|
|
141
|
-
label: 'Shanghai',
|
|
142
|
-
},
|
|
143
|
-
{
|
|
144
|
-
value: 'Nanjing',
|
|
145
|
-
label: 'Nanjing',
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
value: 'Chengdu',
|
|
149
|
-
label: 'Chengdu',
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
value: 'Shenzhen',
|
|
153
|
-
label: 'Shenzhen',
|
|
154
|
-
},
|
|
155
|
-
{
|
|
156
|
-
value: 'Guangzhou',
|
|
157
|
-
label: 'Guangzhou',
|
|
158
|
-
},
|
|
159
|
-
],
|
|
160
|
-
groups: [
|
|
161
|
-
{
|
|
162
|
-
label: 'Popular cities',
|
|
163
|
-
options: [
|
|
164
|
-
{
|
|
165
|
-
value: 'Shanghai',
|
|
166
|
-
label: 'Shanghai',
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
value: 'Beijing',
|
|
170
|
-
label: 'Beijing',
|
|
171
|
-
},
|
|
172
|
-
],
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
label: 'City name',
|
|
176
|
-
options: [
|
|
177
|
-
{
|
|
178
|
-
value: 'Chengdu',
|
|
179
|
-
label: 'Chengdu',
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
value: 'Shenzhen',
|
|
183
|
-
label: 'Shenzhen',
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
value: 'Guangzhou',
|
|
187
|
-
label: 'Guangzhou',
|
|
188
|
-
},
|
|
189
|
-
{
|
|
190
|
-
value: 'Dalian',
|
|
191
|
-
label: 'Dalian',
|
|
192
|
-
},
|
|
193
|
-
],
|
|
194
|
-
},
|
|
195
|
-
],
|
|
196
|
-
options: [
|
|
197
|
-
{
|
|
198
|
-
value: 'Option1',
|
|
199
|
-
label: 'Option1',
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
value: 'Option2',
|
|
203
|
-
label: 'Option2',
|
|
204
|
-
disabled: true,
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
value: 'Option3',
|
|
208
|
-
label: 'Option3',
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
value: 'Option4',
|
|
212
|
-
label: 'Option4',
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
value: 'Option5',
|
|
216
|
-
label: 'Option5',
|
|
217
|
-
},
|
|
218
|
-
],
|
|
219
|
-
value: '',
|
|
220
|
-
value1: ['Option2', 'Option4', 'Option5'],
|
|
221
|
-
value2: ['Option2', 'Option4', 'Option5'],
|
|
222
|
-
};
|
|
223
|
-
},
|
|
224
|
-
computed: {
|
|
225
|
-
gridSize() {
|
|
226
|
-
const grids = {
|
|
227
|
-
5: 'grid-cols-5',
|
|
228
|
-
6: 'grid-cols-6',
|
|
229
|
-
7: 'grid-cols-7',
|
|
230
|
-
8: 'grid-cols-8',
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
return grids;
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
});
|
|
237
|
-
</script>
|