@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,19 +0,0 @@
|
|
|
1
|
-
const components = {};
|
|
2
|
-
const requireComponent = require.context(
|
|
3
|
-
'.', // read from current directory
|
|
4
|
-
false, // don't look in subdirectories
|
|
5
|
-
/[A-Z]\w+\.(vue)$/, // only look for Vue files
|
|
6
|
-
// EXPERIMENTAL: /[A-Z]\w+\.(vue|js)$/, // only look for Vue or JS files
|
|
7
|
-
);
|
|
8
|
-
|
|
9
|
-
requireComponent.keys().forEach((fileName) => {
|
|
10
|
-
const componentConfig = requireComponent(fileName);
|
|
11
|
-
const componentName = fileName
|
|
12
|
-
.split('/')
|
|
13
|
-
.pop()
|
|
14
|
-
.replace(/\.\w+$/, ''); // remove file extension and set file name as component name
|
|
15
|
-
|
|
16
|
-
components[componentName] = componentConfig.default || componentConfig;
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
export default components;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/components-js/utils.d.ts
DELETED
package/components-js/utils.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export class Utils {
|
|
2
|
-
timeout = null;
|
|
3
|
-
debounce(func, delay) {
|
|
4
|
-
return (...args) => {
|
|
5
|
-
if (this.timeout !== null) {
|
|
6
|
-
clearTimeout(this.timeout);
|
|
7
|
-
}
|
|
8
|
-
this.timeout = setTimeout(() => {
|
|
9
|
-
func(...args);
|
|
10
|
-
}, delay);
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
generateRandomId() {
|
|
14
|
-
return Date.now().toString(36) + Math.random().toString(36).slice(2, 9);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
export const utils = new Utils();
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
-
<section>
|
|
4
|
-
<h1>Alert</h1>
|
|
5
|
-
<p class="p-lg-c my-6">Uyarı bileşenleri, sayfada otomatik olarak kaybolmayan non-overlay mesajlarını görüntülemek için kullanılır.</p>
|
|
6
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
|
-
<el-alert v-for="(item, key) in colors" :key="key" :title="`${item}`" :type="item" class="isax-activity" />
|
|
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-alert title="Success alert" type="success" class="isax-activity"></el-alert></code>
|
|
12
|
-
</p>
|
|
13
|
-
</div>
|
|
14
|
-
</section>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<script>
|
|
18
|
-
import { defineComponent } from 'vue';
|
|
19
|
-
|
|
20
|
-
export default defineComponent({
|
|
21
|
-
name: 'ThemeTable',
|
|
22
|
-
data() {
|
|
23
|
-
return {
|
|
24
|
-
colors: ['primary', 'secondary', 'gray', 'warning', 'danger', 'info', 'success'],
|
|
25
|
-
};
|
|
26
|
-
},
|
|
27
|
-
computed: {
|
|
28
|
-
gridSize() {
|
|
29
|
-
const grids = {
|
|
30
|
-
5: 'grid-cols-5',
|
|
31
|
-
6: 'grid-cols-6',
|
|
32
|
-
7: 'grid-cols-7',
|
|
33
|
-
8: 'grid-cols-8',
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return grids;
|
|
37
|
-
},
|
|
38
|
-
},
|
|
39
|
-
methods: {
|
|
40
|
-
toggleSelection(rows) {
|
|
41
|
-
if (rows) {
|
|
42
|
-
rows.forEach((row) => {
|
|
43
|
-
this.$refs.multipleTable.toggleRowSelection(row);
|
|
44
|
-
});
|
|
45
|
-
} else {
|
|
46
|
-
this.$refs.multipleTable.clearSelection();
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
handleSelectionChange(val) {
|
|
50
|
-
this.multipleSelection = val;
|
|
51
|
-
},
|
|
52
|
-
resetDateFilter() {
|
|
53
|
-
this.$refs.filterTable.clearFilter('date');
|
|
54
|
-
},
|
|
55
|
-
clearFilter() {
|
|
56
|
-
this.$refs.filterTable.clearFilter();
|
|
57
|
-
},
|
|
58
|
-
formatter(row, column) {
|
|
59
|
-
return row.address;
|
|
60
|
-
},
|
|
61
|
-
filterTag(value, row) {
|
|
62
|
-
return row.tag === value;
|
|
63
|
-
},
|
|
64
|
-
filterHandler(value, row, column) {
|
|
65
|
-
console.log(row, column, value);
|
|
66
|
-
const { property } = column;
|
|
67
|
-
|
|
68
|
-
return row[property] === value;
|
|
69
|
-
},
|
|
70
|
-
handleSizeChange(val) {
|
|
71
|
-
console.log(`${val} items per page`);
|
|
72
|
-
},
|
|
73
|
-
handleCurrentChange(val) {
|
|
74
|
-
console.log(`current page: ${val}`);
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
</script>
|
|
@@ -1,55 +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
|
-
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>'large', 'medium', 'small'</b> şeklindedir. Veya boyutu manuel olarak `size` özelliğini
|
|
9
|
-
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 v-for="size in sizeList" :key="size + 'string'" :size="size">SK</el-avatar>
|
|
14
|
-
<el-divider direction="vertical" content-position="center" />
|
|
15
|
-
<el-avatar shape="square" :size="50" :src="url" />
|
|
16
|
-
<el-avatar v-for="size in sizeList" :key="size" shape="square" :size="size" :src="url" />
|
|
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">You can use any 'string' expression within the tag, in addition to a type that accepts 'src' or 'icon' as a property.</p>
|
|
28
|
-
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
29
|
-
<el-avatar icon="isax-add-circle" />
|
|
30
|
-
<el-avatar icon="isax-add-circle" size="large" />
|
|
31
|
-
<el-avatar :src="url" />
|
|
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 { defineComponent } from 'vue';
|
|
45
|
-
|
|
46
|
-
export default defineComponent({
|
|
47
|
-
name: 'TimusCascader',
|
|
48
|
-
data() {
|
|
49
|
-
return {
|
|
50
|
-
url: 'https://api.dicebear.com/7.x/adventurer-neutral/svg?seed=Princess',
|
|
51
|
-
sizeList: ['large', 'medium', 'small'],
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
</script>
|
|
@@ -1,106 +0,0 @@
|
|
|
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 v-for="(item, key) in colors" :key="key" :value="randomNumber()" :type="item">
|
|
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" /> </span>
|
|
16
|
-
<template #dropdown>
|
|
17
|
-
<el-dropdown-menu>
|
|
18
|
-
<el-dropdown-item class="clearfix">
|
|
19
|
-
Yorumlar
|
|
20
|
-
<el-badge class="mark" :value="12" />
|
|
21
|
-
</el-dropdown-item>
|
|
22
|
-
<el-dropdown-item class="clearfix">
|
|
23
|
-
Yanıtlar
|
|
24
|
-
<el-badge class="mark" :value="3" />
|
|
25
|
-
</el-dropdown-item>
|
|
26
|
-
</el-dropdown-menu>
|
|
27
|
-
</template>
|
|
28
|
-
</el-dropdown>
|
|
29
|
-
</div>
|
|
30
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
31
|
-
<p class="text-xs">
|
|
32
|
-
<code><el-badge :value="12"> <el-button size="small">Comments</el-button> </el-badge></code>
|
|
33
|
-
</p>
|
|
34
|
-
</div>
|
|
35
|
-
</section>
|
|
36
|
-
|
|
37
|
-
<section>
|
|
38
|
-
<h1>Point</h1>
|
|
39
|
-
<p class="p-md-c my-6">Use a red dot to mark content that needs to be noticed.</p>
|
|
40
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
41
|
-
<el-badge is-dot class="item">query</el-badge>
|
|
42
|
-
<el-badge is-dot class="item">
|
|
43
|
-
<el-button class="share-button" icon="el-icon-share" />
|
|
44
|
-
</el-badge>
|
|
45
|
-
<el-badge v-for="size in sizeList" :key="size + 'avatar'" is-dot class="item"><el-avatar :size="size">SK</el-avatar></el-badge>
|
|
46
|
-
<el-badge v-for="size in sizeList" :key="size + 'shape'" is-dot class="item"><el-avatar shape="square" :size="size">SK</el-avatar></el-badge>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
49
|
-
<p class="text-xs">
|
|
50
|
-
<code><el-badge :value="12"> <el-button size="small">Comments</el-button> </el-badge></code>
|
|
51
|
-
</p>
|
|
52
|
-
</div>
|
|
53
|
-
</section>
|
|
54
|
-
|
|
55
|
-
<section>
|
|
56
|
-
<h1>Max Değer</h1>
|
|
57
|
-
<p class="p-md-c my-6">
|
|
58
|
-
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)
|
|
59
|
-
olduğunda çalışır.
|
|
60
|
-
</p>
|
|
61
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
62
|
-
<el-badge :value="200" :max="99" class="item">
|
|
63
|
-
<el-button size="small">Yorumlar</el-button>
|
|
64
|
-
</el-badge>
|
|
65
|
-
<el-badge :value="100" :max="10" class="item">
|
|
66
|
-
<el-button size="small">Yanıtlar</el-button>
|
|
67
|
-
</el-badge>
|
|
68
|
-
</div>
|
|
69
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
70
|
-
<p class="text-xs">
|
|
71
|
-
<code><el-badge :value="12"> <el-button size="small">Yorumlar</el-button> </el-badge></code>
|
|
72
|
-
</p>
|
|
73
|
-
</div>
|
|
74
|
-
</section>
|
|
75
|
-
</div>
|
|
76
|
-
</template>
|
|
77
|
-
|
|
78
|
-
<script>
|
|
79
|
-
import { defineComponent } from 'vue';
|
|
80
|
-
|
|
81
|
-
export default defineComponent({
|
|
82
|
-
name: 'TimusCascader',
|
|
83
|
-
data() {
|
|
84
|
-
return {
|
|
85
|
-
colors: ['primary', 'info', 'success', 'warning', 'danger'],
|
|
86
|
-
sizeList: ['large', 'medium', 'small'],
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
|
-
methods: {
|
|
90
|
-
handleChange(value) {
|
|
91
|
-
console.log(value);
|
|
92
|
-
},
|
|
93
|
-
randomNumber() {
|
|
94
|
-
return Math.round(Math.random() * 1000);
|
|
95
|
-
},
|
|
96
|
-
randomColor() {
|
|
97
|
-
return this.colors[Math.round(Math.random() * 7)];
|
|
98
|
-
},
|
|
99
|
-
randomButtonType() {
|
|
100
|
-
const type = ['outline'];
|
|
101
|
-
|
|
102
|
-
return type[Math.round(Math.random() * 2)];
|
|
103
|
-
},
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
</script>
|
|
@@ -1,44 +0,0 @@
|
|
|
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
|
-
<el-breadcrumb separator-class="isax-arrow-right-1">
|
|
10
|
-
<el-breadcrumb-item :to="{ path: '/' }">homepage</el-breadcrumb-item>
|
|
11
|
-
<el-breadcrumb-item :to="{ path: '/' }">promotion management</el-breadcrumb-item>
|
|
12
|
-
<el-breadcrumb-item :to="{ path: '/' }">promotion list</el-breadcrumb-item>
|
|
13
|
-
<el-breadcrumb-item>promotion detail</el-breadcrumb-item>
|
|
14
|
-
</el-breadcrumb>
|
|
15
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
16
|
-
<p class="text-xs">
|
|
17
|
-
<code>
|
|
18
|
-
<el-breadcrumb separator-class="el-icon-arrow-right""> <el-breadcrumb-item :to="{ path: '/'
|
|
19
|
-
}">Comments</el-breadcrumb-item> </el-breadcrumb>
|
|
20
|
-
</code>
|
|
21
|
-
</p>
|
|
22
|
-
</div>
|
|
23
|
-
</section>
|
|
24
|
-
</div>
|
|
25
|
-
</template>
|
|
26
|
-
|
|
27
|
-
<script>
|
|
28
|
-
import { defineComponent } from 'vue';
|
|
29
|
-
|
|
30
|
-
export default defineComponent({
|
|
31
|
-
name: 'TimusBreadcrumb',
|
|
32
|
-
data() {
|
|
33
|
-
return {
|
|
34
|
-
colors: ['primary', 'info', 'success', 'warning', 'danger'],
|
|
35
|
-
sizeList: ['large', 'medium', 'small'],
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
methods: {
|
|
39
|
-
handleChange(value) {
|
|
40
|
-
console.log(value);
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
</script>
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="pt-8 pb-16 flex gap-12 flex-col">
|
|
3
|
-
<section>
|
|
4
|
-
<h1>Fill</h1>
|
|
5
|
-
<p class="p-lg my-6">
|
|
6
|
-
"Fill" stili butonlar, içeriği tamamen kaplayan renge sahip butonlardır. Bu butonlar, kullanıcının dikkatini çekmek ve önemli eylemleri
|
|
7
|
-
vurgulamak için idealdir.
|
|
8
|
-
</p>
|
|
9
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
10
|
-
<el-button v-for="(item, index) in colors" :key="index" :type="item">{{ item }}</el-button>
|
|
11
|
-
</div>
|
|
12
|
-
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
13
|
-
<p class="text-xs">
|
|
14
|
-
Örnek kullanım:
|
|
15
|
-
<code><el-button :type="'primary'">Primary</el-button></code>
|
|
16
|
-
</p>
|
|
17
|
-
</div>
|
|
18
|
-
</section>
|
|
19
|
-
|
|
20
|
-
<section>
|
|
21
|
-
<h1>Outline</h1>
|
|
22
|
-
<p class="p-lg my-6">Çevresi çizgili ve içi transparan olan 'outline' butonlarımız, daha hafif bir tasarım dili sunar.</p>
|
|
23
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
24
|
-
<el-button class="outline">Default Outline</el-button>
|
|
25
|
-
<el-button v-for="(item, index) in colors" :key="index" :type="item" class="outline" plain>{{ item }}</el-button>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
28
|
-
<p class="text-xs">
|
|
29
|
-
Outline görünümü için, buton elementinize <code>class="outline"</code> ekleyin. Örnek:
|
|
30
|
-
<code><el-button class="outline">Button</el-button></code>
|
|
31
|
-
</p>
|
|
32
|
-
</div>
|
|
33
|
-
</section>
|
|
34
|
-
|
|
35
|
-
<section>
|
|
36
|
-
<h1>Ghost</h1>
|
|
37
|
-
<p class="p-lg my-6">Hemen hemen şeffaf 'ghost' butonlarımız, minimalist tasarımlar için uygundur ve arka planla uyum sağlar.</p>
|
|
38
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
39
|
-
<el-button v-for="(item, index) in colors" :key="index" :type="item" class="ghost">{{ item }}</el-button>
|
|
40
|
-
</div>
|
|
41
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
42
|
-
<p class="text-xs">
|
|
43
|
-
Ghost görünümü için, buton elementinize <code>class="ghost"</code> ekleyin. Örnek:
|
|
44
|
-
<code><el-button class="ghost">Button</el-button></code>
|
|
45
|
-
</p>
|
|
46
|
-
</div>
|
|
47
|
-
</section>
|
|
48
|
-
|
|
49
|
-
<section>
|
|
50
|
-
<h1>Size</h1>
|
|
51
|
-
<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>
|
|
52
|
-
<div class="grid grid-flow-col auto-cols-max items-center gap-4">
|
|
53
|
-
<el-button>Default</el-button>
|
|
54
|
-
<el-button v-for="(item, index) in sizes" :key="index" :size="item" type="primary">{{ item }}</el-button>
|
|
55
|
-
</div>
|
|
56
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
57
|
-
<p class="text-xs">
|
|
58
|
-
Örnekler:
|
|
59
|
-
<code><el-button :size="'large'">Button</el-button></code> ya da
|
|
60
|
-
<code><el-button :size="'small'">Button</el-button></code>
|
|
61
|
-
</p>
|
|
62
|
-
</div>
|
|
63
|
-
</section>
|
|
64
|
-
|
|
65
|
-
<section>
|
|
66
|
-
<h1>Disabled</h1>
|
|
67
|
-
<p class="p-lg my-6">Etkileşime kapalı 'disabled' butonlarımız, kullanılamaz durumları göstermek için kullanılır.</p>
|
|
68
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
69
|
-
<el-button v-for="(item, index) in colors" :key="index" :type="item" disabled>{{ item }}</el-button>
|
|
70
|
-
</div>
|
|
71
|
-
<div class="my-4 p-4 border-l-4 border-red-600 bg-red-100">
|
|
72
|
-
<p class="text-xs">
|
|
73
|
-
Butonu devre dışı bırakmak için, <code>disabled</code> özelliğini ekleyin. Örnek:
|
|
74
|
-
<code><el-button disabled>Button</el-button></code>
|
|
75
|
-
</p>
|
|
76
|
-
</div>
|
|
77
|
-
</section>
|
|
78
|
-
|
|
79
|
-
<section>
|
|
80
|
-
<h1>Icons</h1>
|
|
81
|
-
<p class="p-lg my-6">
|
|
82
|
-
İ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
|
|
83
|
-
<nuxt-link to="/icons" class="text-blue-600 hover:underline">buraya tıklayın</nuxt-link>.
|
|
84
|
-
</p>
|
|
85
|
-
<div class="flex gap-4 items-center">
|
|
86
|
-
<el-button type="primary" class="isax-trash" size="large" />
|
|
87
|
-
<el-button type="primary" class="isax-trash" size="medium" />
|
|
88
|
-
<el-button type="primary" class="isax-trash" size="small" />
|
|
89
|
-
<el-button type="primary" class="isax-trash" size="mini" />
|
|
90
|
-
<el-button type="primary" class="isax-chart" />
|
|
91
|
-
<el-button type="primary" class="isax-clipboard-text icon-right">icon-right</el-button>
|
|
92
|
-
<el-button v-for="(item, index) in icons" :key="index" type="primary" :class="item">{{ item }}</el-button>
|
|
93
|
-
</div>
|
|
94
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
95
|
-
<p class="text-xs">
|
|
96
|
-
Örnekler:
|
|
97
|
-
<code><el-button type="primary" class="isax-trash"></el-button></code>. Sağda ikon için <code>class="icon-right"</code> ekleyin.
|
|
98
|
-
</p>
|
|
99
|
-
</div>
|
|
100
|
-
</section>
|
|
101
|
-
|
|
102
|
-
<section>
|
|
103
|
-
<h1>Groups</h1>
|
|
104
|
-
<p class="p-lg my-6">Buton gruplarımız, ilgili işlemleri bir arada toplayarak kullanıcı arayüzünü düzenler.</p>
|
|
105
|
-
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
106
|
-
<el-button-group>
|
|
107
|
-
<el-button type="primary" class="isax-arrow-left">Previous Page</el-button>
|
|
108
|
-
<el-button type="primary" class="isax-arrow-right-1 icon-right">Next Page</el-button>
|
|
109
|
-
</el-button-group>
|
|
110
|
-
<el-button-group>
|
|
111
|
-
<el-button type="primary" icon="isax-textalign-justifyleft" />
|
|
112
|
-
<el-button type="primary" icon="isax-textalign-center" />
|
|
113
|
-
<el-button type="primary" icon="isax-textalign-justifyright" />
|
|
114
|
-
</el-button-group>
|
|
115
|
-
</div>
|
|
116
|
-
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
117
|
-
<p class="text-xs">Buton grupları için <code><el-button-group></code> kullanın.</p>
|
|
118
|
-
</div>
|
|
119
|
-
</section>
|
|
120
|
-
</div>
|
|
121
|
-
</template>
|
|
122
|
-
<script>
|
|
123
|
-
import { defineComponent } from 'vue';
|
|
124
|
-
|
|
125
|
-
export default defineComponent({
|
|
126
|
-
name: 'TimusButtonSample',
|
|
127
|
-
data() {
|
|
128
|
-
return {
|
|
129
|
-
colors: ['primary', 'secondary', 'gray', 'info', 'success', 'warning', 'danger'],
|
|
130
|
-
status: ['outline', 'ghost', 'rounder', 'disabled'],
|
|
131
|
-
sizes: ['large', 'medium', 'small', 'mini'],
|
|
132
|
-
icons: ['isax-bag', 'isax-calculator'],
|
|
133
|
-
};
|
|
134
|
-
},
|
|
135
|
-
computed: {
|
|
136
|
-
gridSize() {
|
|
137
|
-
const grids = {
|
|
138
|
-
5: 'grid-cols-5',
|
|
139
|
-
6: 'grid-cols-6',
|
|
140
|
-
7: 'grid-cols-7',
|
|
141
|
-
8: 'grid-cols-8',
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
return grids;
|
|
145
|
-
},
|
|
146
|
-
},
|
|
147
|
-
});
|
|
148
|
-
</script>
|