@timus-networks/theme 1.0.184 → 2.0.16
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 +37 -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,49 +0,0 @@
|
|
|
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
|
-
Our logos are available in three sizes: small, medium, and large. To tailor your choice, use the size tags
|
|
7
|
-
<b>'small', 'medium', 'large'</b> to determine the appropriate size for your needs.
|
|
8
|
-
</p>
|
|
9
|
-
<div class="grid grid-flow-col auto-cols-max gap-6 items-center">
|
|
10
|
-
<el-button type="text" @click="dialogVisible = true">click to open the Dialog</el-button>
|
|
11
|
-
<el-dialog v-model:visible="dialogVisible" title="Tips" :before-close="handleClose">
|
|
12
|
-
<span>This is a message</span>
|
|
13
|
-
<template #footer>
|
|
14
|
-
<span class="dialog-footer">
|
|
15
|
-
<el-button @click="dialogVisible = false">Cancel</el-button>
|
|
16
|
-
<el-button type="primary" @click="dialogVisible = false">Confirm</el-button>
|
|
17
|
-
</span>
|
|
18
|
-
</template>
|
|
19
|
-
</el-dialog>
|
|
20
|
-
</div>
|
|
21
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
22
|
-
<p class="text-xs">
|
|
23
|
-
<code><div class="logo-medium"></div></code>
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
26
|
-
</section>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
import { defineComponent } from 'vue';
|
|
32
|
-
|
|
33
|
-
export default defineComponent({
|
|
34
|
-
data() {
|
|
35
|
-
return {
|
|
36
|
-
dialogVisible: false,
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
handleClose(done) {
|
|
41
|
-
this.$confirm('Are you sure to close this dialog?')
|
|
42
|
-
.then((_) => {
|
|
43
|
-
done();
|
|
44
|
-
})
|
|
45
|
-
.catch((_) => {});
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
});
|
|
49
|
-
</script>
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
-
<h1>Form</h1>
|
|
4
|
-
|
|
5
|
-
<section class="flex gap-8 flex-col">
|
|
6
|
-
<h2>Etiket Konumu: {{ labelPosition }}</h2>
|
|
7
|
-
<div class="p-4 border-l-4 border-info-600 bg-info-100">
|
|
8
|
-
Birkaç custom class ekledim. <b>`class='bordered'`</b> eklerseniz <el-form class="bordered"> itemlar arasında border çıkar, `info` derseniz
|
|
9
|
-
info tipinde bir forma dönüşür (title ve content daha soft renkte oluşur, ayrıca content sağa yaslı olur), `info left` eklerseniz itemlar sola
|
|
10
|
-
yaslı çıkar.
|
|
11
|
-
</div>
|
|
12
|
-
<el-radio-group v-model="labelPosition" size="small">
|
|
13
|
-
<el-radio-button label="left">Sol</el-radio-button>
|
|
14
|
-
<el-radio-button label="right">Sağ</el-radio-button>
|
|
15
|
-
<el-radio-button label="top">Üst</el-radio-button>
|
|
16
|
-
</el-radio-group>
|
|
17
|
-
<p class="p-lg-c">Form elemanlarının etiketlerinin konumunu belirlemek için kullanılır. Etiketler sol, sağ veya üst tarafında olabilir.</p>
|
|
18
|
-
<div class="p-4 border-l-4 border-info-600 bg-info-100">
|
|
19
|
-
<p class="text-xs">
|
|
20
|
-
<code>
|
|
21
|
-
<el-form :model="sizeForm" label-width="120px" label-position="{{ labelPosition }}"><el-form-item label="Title"><el-input
|
|
22
|
-
v-model="form.name"></el-input></el-form-item></el-form>
|
|
23
|
-
</code>
|
|
24
|
-
</p>
|
|
25
|
-
</div>
|
|
26
|
-
<div class="grid grid-flow-col">
|
|
27
|
-
<el-form
|
|
28
|
-
ref="ruleForm"
|
|
29
|
-
:model="ruleForm"
|
|
30
|
-
:rules="rules"
|
|
31
|
-
label-width="150px"
|
|
32
|
-
class="bordered info"
|
|
33
|
-
:label-position="labelPosition"
|
|
34
|
-
size="mini"
|
|
35
|
-
>
|
|
36
|
-
<el-form-item label="Activity name" prop="name">
|
|
37
|
-
<el-input v-model="ruleForm.name" />
|
|
38
|
-
</el-form-item>
|
|
39
|
-
<el-form-item label="Activity zone" prop="region">
|
|
40
|
-
<el-select v-model="ruleForm.region" placeholder="Activity zone">
|
|
41
|
-
<el-option label="Zone one" value="shanghai" />
|
|
42
|
-
<el-option label="Zone two" value="beijing" />
|
|
43
|
-
</el-select>
|
|
44
|
-
</el-form-item>
|
|
45
|
-
<el-form-item label="Activity time" required class="form-content-left">
|
|
46
|
-
<el-date-picker v-model="ruleForm.date1" type="date" placeholder="Pick a date" style="width: 100%" />
|
|
47
|
-
<el-time-picker v-model="ruleForm.date2" placeholder="Pick a time" style="width: 100%" />
|
|
48
|
-
</el-form-item>
|
|
49
|
-
<el-form-item label="Instant delivery" prop="delivery">
|
|
50
|
-
<el-switch v-model="ruleForm.delivery" />
|
|
51
|
-
</el-form-item>
|
|
52
|
-
<el-form-item label="Activity type" prop="type">
|
|
53
|
-
<el-checkbox-group v-model="ruleForm.type">
|
|
54
|
-
<el-checkbox label="Online activities" name="type" />
|
|
55
|
-
<el-checkbox label="Promotion activities" name="type" />
|
|
56
|
-
<el-checkbox label="Offline activities" name="type" />
|
|
57
|
-
<el-checkbox label="Simple brand exposure" name="type" />
|
|
58
|
-
</el-checkbox-group>
|
|
59
|
-
</el-form-item>
|
|
60
|
-
<el-form-item label="Resources" prop="resource">
|
|
61
|
-
<el-radio-group v-model="ruleForm.resource">
|
|
62
|
-
<el-radio label="Sponsorship" />
|
|
63
|
-
<el-radio label="Venue" />
|
|
64
|
-
</el-radio-group>
|
|
65
|
-
</el-form-item>
|
|
66
|
-
<el-form-item label="Activity form" prop="desc">
|
|
67
|
-
<el-input v-model="ruleForm.desc" type="textarea" />
|
|
68
|
-
</el-form-item>
|
|
69
|
-
<el-form-item class="form-content-left">
|
|
70
|
-
<el-button type="primary" @click="submitForm('ruleForm')">Create</el-button>
|
|
71
|
-
<el-button @click="resetForm('ruleForm')">Reset</el-button>
|
|
72
|
-
</el-form-item>
|
|
73
|
-
</el-form>
|
|
74
|
-
</div>
|
|
75
|
-
</section>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
<script>import { defineComponent } from 'vue';
|
|
79
|
-
const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
|
|
80
|
-
export default defineComponent({
|
|
81
|
-
data() {
|
|
82
|
-
return {
|
|
83
|
-
labelPosition: 'right',
|
|
84
|
-
count: '9',
|
|
85
|
-
form: {
|
|
86
|
-
name: '',
|
|
87
|
-
region: '',
|
|
88
|
-
date1: '',
|
|
89
|
-
date2: '',
|
|
90
|
-
delivery: false,
|
|
91
|
-
type: [],
|
|
92
|
-
resource: '',
|
|
93
|
-
},
|
|
94
|
-
ruleForm: {
|
|
95
|
-
name: '',
|
|
96
|
-
region: '',
|
|
97
|
-
date1: '',
|
|
98
|
-
date2: '',
|
|
99
|
-
delivery: false,
|
|
100
|
-
type: [],
|
|
101
|
-
resource: '',
|
|
102
|
-
desc: '',
|
|
103
|
-
},
|
|
104
|
-
rules: {
|
|
105
|
-
name: [
|
|
106
|
-
{ required: true, message: 'Please input Activity name', trigger: 'blur' },
|
|
107
|
-
{ min: 3, max: 5, message: 'Length should be 3 to 5', trigger: 'blur' },
|
|
108
|
-
],
|
|
109
|
-
region: [{ required: true, message: 'Please select Activity zone', trigger: 'change' }],
|
|
110
|
-
date1: [{ type: 'date', required: true, message: 'Please pick a date', trigger: 'change' }],
|
|
111
|
-
date2: [{ type: 'date', required: true, message: 'Please pick a time', trigger: 'change' }],
|
|
112
|
-
type: [{ type: 'array', required: true, message: 'Please select at least one activity type', trigger: 'change' }],
|
|
113
|
-
resource: [{ required: true, message: 'Please select activity resource', trigger: 'change' }],
|
|
114
|
-
desc: [{ required: true, message: 'Please input activity form', trigger: 'blur' }],
|
|
115
|
-
},
|
|
116
|
-
};
|
|
117
|
-
},
|
|
118
|
-
methods: {
|
|
119
|
-
showAgreementDialog(type) {
|
|
120
|
-
console.log('agreement: ', type);
|
|
121
|
-
},
|
|
122
|
-
submit() { },
|
|
123
|
-
onSubmit() {
|
|
124
|
-
console.log('submit!');
|
|
125
|
-
},
|
|
126
|
-
submitForm(formName) {
|
|
127
|
-
console.log('submit');
|
|
128
|
-
},
|
|
129
|
-
resetForm(formName) {
|
|
130
|
-
console.log('reset');
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
});
|
|
134
|
-
</script>
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
-
<section>
|
|
4
|
-
<h1>Custom Tag</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="flex gap-4">
|
|
7
|
-
<div class="el-custom-tag">
|
|
8
|
-
Ahmet Polat MacBook Pro, Ahmet Fatih Sez...
|
|
9
|
-
<span class="suffix">23</span>
|
|
10
|
-
</div>
|
|
11
|
-
|
|
12
|
-
<div class="el-custom-tag">
|
|
13
|
-
Ahmet Polat MacBook Pro, Ahmet Fatih Sez...
|
|
14
|
-
<span class="suffix">23</span>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
18
|
-
<p class="text-xs">
|
|
19
|
-
<code>
|
|
20
|
-
<div class="el-custom-tag">Ahmet Polat MacBook Pro, Ahmet Fatih Sez...<span
|
|
21
|
-
class="suffix">23</span></div>
|
|
22
|
-
</code>
|
|
23
|
-
</p>
|
|
24
|
-
</div>
|
|
25
|
-
</section>
|
|
26
|
-
|
|
27
|
-
<section>
|
|
28
|
-
<h1>Basic</h1>
|
|
29
|
-
<p class="p-lg my-6">Standart metin girişi için temel <code>el-input</code> bileşenini kullanabilirsiniz.</p>
|
|
30
|
-
<div class="flex gap-4">
|
|
31
|
-
<div class="el-information">
|
|
32
|
-
<div class="title">Text</div>
|
|
33
|
-
<div class="description">Description</div>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div class="el-information vertical">
|
|
37
|
-
<div class="title">Text</div>
|
|
38
|
-
<div class="description">Description</div>
|
|
39
|
-
</div>
|
|
40
|
-
|
|
41
|
-
<div class="el-information">
|
|
42
|
-
<div class="title">Text</div>
|
|
43
|
-
<div class="description">Description</div>
|
|
44
|
-
</div>
|
|
45
|
-
|
|
46
|
-
<div class="el-information">
|
|
47
|
-
<div class="title">Text</div>
|
|
48
|
-
<div class="description">Description</div>
|
|
49
|
-
</div>
|
|
50
|
-
</div>
|
|
51
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
52
|
-
<p class="text-xs">
|
|
53
|
-
<code>
|
|
54
|
-
<div class="information"><div class="title">Text</div><div
|
|
55
|
-
class="description">Description</div></div>
|
|
56
|
-
</code>
|
|
57
|
-
</p>
|
|
58
|
-
</div>
|
|
59
|
-
</section>
|
|
60
|
-
</div>
|
|
61
|
-
</template>
|
|
62
|
-
<script>
|
|
63
|
-
import { defineComponent } from 'vue';
|
|
64
|
-
|
|
65
|
-
export default defineComponent({
|
|
66
|
-
name: 'TimusButtonSample',
|
|
67
|
-
data() {
|
|
68
|
-
return {
|
|
69
|
-
value1: true,
|
|
70
|
-
value2: true,
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
computed: {
|
|
74
|
-
gridSize() {
|
|
75
|
-
const grids = {
|
|
76
|
-
5: 'grid-cols-5',
|
|
77
|
-
6: 'grid-cols-6',
|
|
78
|
-
7: 'grid-cols-7',
|
|
79
|
-
8: 'grid-cols-8',
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
return grids;
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
mounted() {
|
|
86
|
-
this.links = this.loadAll();
|
|
87
|
-
},
|
|
88
|
-
methods: {
|
|
89
|
-
querySearch(queryString, cb) {
|
|
90
|
-
const { links } = this;
|
|
91
|
-
const results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
92
|
-
|
|
93
|
-
// call callback function to return suggestions
|
|
94
|
-
cb(results);
|
|
95
|
-
},
|
|
96
|
-
querySearchAsync(queryString, cb) {
|
|
97
|
-
const { links } = this;
|
|
98
|
-
const results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
99
|
-
|
|
100
|
-
clearTimeout(this.timeout);
|
|
101
|
-
this.timeout = setTimeout(() => {
|
|
102
|
-
cb(results);
|
|
103
|
-
}, 3000 * Math.random());
|
|
104
|
-
},
|
|
105
|
-
createFilter(queryString) {
|
|
106
|
-
return (link) => link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
107
|
-
},
|
|
108
|
-
loadAll() {
|
|
109
|
-
return [
|
|
110
|
-
{ value: 'vue', link: 'https://github.com/vuejs/vue' },
|
|
111
|
-
{ value: 'element', link: 'https://github.com/ElemeFE/element' },
|
|
112
|
-
{ value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
|
|
113
|
-
{ value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
|
|
114
|
-
{ value: 'vuex', link: 'https://github.com/vuejs/vuex' },
|
|
115
|
-
{ value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
|
|
116
|
-
{ value: 'babel', link: 'https://github.com/babel/babel' },
|
|
117
|
-
];
|
|
118
|
-
},
|
|
119
|
-
handleSelect(item) {
|
|
120
|
-
console.log(item);
|
|
121
|
-
},
|
|
122
|
-
handleIconClick(ev) {
|
|
123
|
-
console.log(ev);
|
|
124
|
-
},
|
|
125
|
-
},
|
|
126
|
-
});
|
|
127
|
-
</script>
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
-
<section>
|
|
4
|
-
<h1>Controls Position</h1>
|
|
5
|
-
<p class="p-lg my-6">Bu örnek, farklı boyutlarda ve konfigürasyonlarda bir sayı giriş bileşeni olan el-input-number'ı göstermektedir.</p>
|
|
6
|
-
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
7
|
-
<el-input-number v-model="input" controls-position="right" disabled @change="handleChange" />
|
|
8
|
-
<el-input-number v-model="input" size="large" controls-position="right" @change="handleChange" />
|
|
9
|
-
<el-input-number v-model="input" size="medium" controls-position="right" @change="handleChange" />
|
|
10
|
-
<el-input-number v-model="input" size="small" controls-position="right" @change="handleChange" />
|
|
11
|
-
<el-input-number v-model="input" size="mini" controls-position="right" @change="handleChange" />
|
|
12
|
-
</div>
|
|
13
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
14
|
-
<p class="text-xs">
|
|
15
|
-
<code>
|
|
16
|
-
<el-input-number v-model="input" size="large" controls-position="right"
|
|
17
|
-
@change="handleChange"></el-input-number>
|
|
18
|
-
</code>
|
|
19
|
-
</p>
|
|
20
|
-
</div>
|
|
21
|
-
</section>
|
|
22
|
-
|
|
23
|
-
<section>
|
|
24
|
-
<h1>Basic usage</h1>
|
|
25
|
-
<p class="p-lg my-6">Bu örnek, minimum ve maksimum değerlerle sınırlı bir el-input-number bileşenini göstermektedir.</p>
|
|
26
|
-
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
27
|
-
<el-input-number v-model="num" :min="1" :max="10000" disabled @change="handleChange" />
|
|
28
|
-
<el-input-number v-model="num" size="large" :min="1" :max="10000" @change="handleChange" />
|
|
29
|
-
<el-input-number v-model="num" size="medium" :min="1" :max="10000" @change="handleChange" />
|
|
30
|
-
<el-input-number v-model="num" size="small" :min="1" :max="10000" @change="handleChange" />
|
|
31
|
-
<el-input-number v-model="num" size="mini" :min="1" :max="10000" @change="handleChange" />
|
|
32
|
-
</div>
|
|
33
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
34
|
-
<p class="text-xs">
|
|
35
|
-
<code>
|
|
36
|
-
<el-input-number v-model="num" @change="handleChange" :min="1"
|
|
37
|
-
:max="10000"></el-input-number>
|
|
38
|
-
</code>
|
|
39
|
-
</p>
|
|
40
|
-
</div>
|
|
41
|
-
</section>
|
|
42
|
-
</div>
|
|
43
|
-
</template>
|
|
44
|
-
|
|
45
|
-
<script>
|
|
46
|
-
import { defineComponent } from 'vue';
|
|
47
|
-
|
|
48
|
-
export default defineComponent({
|
|
49
|
-
name: 'TimusButtonSample',
|
|
50
|
-
data() {
|
|
51
|
-
return {
|
|
52
|
-
input: 3532,
|
|
53
|
-
num: 213,
|
|
54
|
-
};
|
|
55
|
-
},
|
|
56
|
-
computed: {
|
|
57
|
-
gridSize() {
|
|
58
|
-
const grids = {
|
|
59
|
-
5: 'grid-cols-5',
|
|
60
|
-
6: 'grid-cols-6',
|
|
61
|
-
7: 'grid-cols-7',
|
|
62
|
-
8: 'grid-cols-8',
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
return grids;
|
|
66
|
-
},
|
|
67
|
-
},
|
|
68
|
-
methods: {
|
|
69
|
-
handleChange(value) {
|
|
70
|
-
console.log(value);
|
|
71
|
-
},
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
</script>
|