@timus-networks/theme 1.0.161 → 1.0.163
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 +11 -9
- package/components-js/ThemeAvatar.vue +2 -2
- package/components-js/ThemeBadge.vue +14 -12
- package/components-js/ThemeButtons.vue +2 -2
- package/components-js/ThemeCascader.vue +13 -13
- package/components-js/ThemeCheckbox.vue +2 -2
- package/components-js/ThemeCollapse.vue +9 -7
- package/components-js/ThemeDialog.vue +41 -39
- package/components-js/ThemeForm.vue +2 -2
- package/components-js/ThemeInformation.vue +12 -12
- package/components-js/ThemeInputNumbers.vue +19 -17
- package/components-js/ThemeInputs.vue +16 -9
- package/components-js/ThemeLink.vue +2 -2
- package/components-js/ThemeLogo.vue +49 -49
- package/components-js/ThemeMessageBox.vue +3 -2
- package/components-js/ThemePopover.vue +45 -28
- package/components-js/ThemeRadio.vue +19 -19
- package/components-js/ThemeSelect.vue +2 -2
- package/components-js/ThemeSidebar.vue +2 -2
- package/components-js/ThemeTable.vue +2 -2
- package/components-js/ThemeTag.vue +2 -2
- package/components-js/ThemeToggle.vue +18 -17
- package/components-js/ThemeTooltip.vue +16 -14
- package/components-js/ThemeTypo.vue +5 -5
- package/components-js/ThemeUpload.vue +3 -2
- package/components-js/TimusSamples.vue +4 -2
- package/components-ts/ThemeAlert.vue +11 -9
- package/components-ts/ThemeAvatar.vue +2 -2
- package/components-ts/ThemeBadge.vue +14 -12
- package/components-ts/ThemeButtons.vue +2 -2
- package/components-ts/ThemeCascader.vue +13 -13
- package/components-ts/ThemeCheckbox.vue +2 -2
- package/components-ts/ThemeCollapse.vue +9 -7
- package/components-ts/ThemeDialog.vue +41 -39
- package/components-ts/ThemeForm.vue +2 -2
- package/components-ts/ThemeInformation.vue +12 -12
- package/components-ts/ThemeInputNumbers.vue +19 -17
- package/components-ts/ThemeInputs.vue +16 -9
- package/components-ts/ThemeLink.vue +2 -2
- package/components-ts/ThemeLogo.vue +49 -49
- package/components-ts/ThemeMessageBox.vue +3 -2
- package/components-ts/ThemePopover.vue +45 -28
- package/components-ts/ThemeRadio.vue +21 -19
- package/components-ts/ThemeSelect.vue +2 -2
- package/components-ts/ThemeSidebar.vue +2 -2
- package/components-ts/ThemeTable.vue +2 -2
- package/components-ts/ThemeTag.vue +2 -2
- package/components-ts/ThemeToggle.vue +18 -17
- package/components-ts/ThemeTooltip.vue +16 -14
- package/components-ts/ThemeTypo.vue +5 -5
- package/components-ts/ThemeUpload.vue +3 -2
- package/components-ts/TimusSamples.vue +4 -2
- package/fonts/poppins-font-face/Poppins.jpg +0 -0
- package/fonts/poppins-font-face/README.md +106 -0
- package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
- package/fonts/poppins-font-face/files/Poppins-Black.svg +3099 -0
- 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 +3131 -0
- 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 +3120 -0
- 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 +3245 -0
- 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 +3414 -0
- 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 +3244 -0
- 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 +3190 -0
- 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 +3213 -0
- 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 +3174 -0
- 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 +3266 -0
- 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 +27 -9
- package/index.d.ts +1 -1
- package/output/main.css +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<h1>Alert</h1>
|
|
5
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
6
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
|
-
<el-alert :title="`${item}`" :type="item" class="isax-activity"
|
|
7
|
+
<el-alert v-for="(item, key) in colors" :key="key" :title="`${item}`" :type="item" class="isax-activity" />
|
|
8
8
|
</div>
|
|
9
9
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
10
10
|
<p class="text-xs">
|
|
@@ -15,10 +15,15 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
17
17
|
<script>
|
|
18
|
-
import
|
|
18
|
+
import { defineComponent } from 'vue';
|
|
19
19
|
|
|
20
|
-
export default
|
|
20
|
+
export default defineComponent({
|
|
21
21
|
name: 'ThemeTable',
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
colors: ['primary', 'secondary', 'gray', 'warning', 'danger', 'info', 'success'],
|
|
25
|
+
};
|
|
26
|
+
},
|
|
22
27
|
computed: {
|
|
23
28
|
gridSize() {
|
|
24
29
|
const grids = {
|
|
@@ -27,14 +32,10 @@ export default Vue.extend({
|
|
|
27
32
|
7: 'grid-cols-7',
|
|
28
33
|
8: 'grid-cols-8',
|
|
29
34
|
};
|
|
35
|
+
|
|
30
36
|
return grids;
|
|
31
37
|
},
|
|
32
38
|
},
|
|
33
|
-
data() {
|
|
34
|
-
return {
|
|
35
|
-
colors: ['primary', 'secondary', 'gray', 'warning', 'danger', 'info', 'success'],
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
39
|
methods: {
|
|
39
40
|
toggleSelection(rows) {
|
|
40
41
|
if (rows) {
|
|
@@ -62,7 +63,8 @@ export default Vue.extend({
|
|
|
62
63
|
},
|
|
63
64
|
filterHandler(value, row, column) {
|
|
64
65
|
console.log(row, column, value);
|
|
65
|
-
const property = column
|
|
66
|
+
const { property } = column;
|
|
67
|
+
|
|
66
68
|
return row[property] === value;
|
|
67
69
|
},
|
|
68
70
|
handleSizeChange(val) {
|
|
@@ -13,16 +13,18 @@
|
|
|
13
13
|
</el-badge>
|
|
14
14
|
<el-dropdown trigger="click">
|
|
15
15
|
<span class="el-dropdown-link"> Beni Tıkla<i class="el-icon-caret-bottom el-icon--right" /> </span>
|
|
16
|
-
<
|
|
17
|
-
<el-dropdown-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
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>
|
|
26
28
|
</el-dropdown>
|
|
27
29
|
</div>
|
|
28
30
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
@@ -74,9 +76,9 @@
|
|
|
74
76
|
</template>
|
|
75
77
|
|
|
76
78
|
<script>
|
|
77
|
-
import
|
|
79
|
+
import { defineComponent } from 'vue';
|
|
78
80
|
|
|
79
|
-
export default
|
|
81
|
+
export default defineComponent({
|
|
80
82
|
name: 'TimusCascader',
|
|
81
83
|
data() {
|
|
82
84
|
return {
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
<h1>Basic usage</h1>
|
|
5
5
|
<p class="p-lg my-6">There are two ways to expand child option items.</p>
|
|
6
6
|
<div class="grid grid-flow-col auto-cols-max gap-4">
|
|
7
|
-
<el-cascader v-model="value" :options="options" @change="handleChange"
|
|
8
|
-
<el-cascader v-model="value" :options="options" :props="{ expandTrigger: 'hover' }" @change="handleChange"
|
|
7
|
+
<el-cascader v-model="value" :options="options" clearable @change="handleChange" />
|
|
8
|
+
<el-cascader v-model="value" :options="options" :props="{ expandTrigger: 'hover' }" @change="handleChange" />
|
|
9
9
|
</div>
|
|
10
10
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
11
11
|
<p class="text-xs">
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
Cascader container contains two different component in it inside. Left one is Cascader and right one is Select dropdown.
|
|
21
21
|
</p>
|
|
22
22
|
<div class="el-cascader-container">
|
|
23
|
-
<el-cascader v-model="value" :options="options" @change="handleChange"
|
|
24
|
-
<el-cascader v-model="value" :options="options" @change="handleChange"
|
|
23
|
+
<el-cascader v-model="value" :options="options" clearable @change="handleChange" />
|
|
24
|
+
<el-cascader v-model="value" :options="options" clearable @change="handleChange" />
|
|
25
25
|
<el-select v-model="value" placeholder="Select">
|
|
26
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
26
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
27
27
|
</el-select>
|
|
28
|
-
<el-input v-show="false"
|
|
28
|
+
<el-input v-show="false" />
|
|
29
29
|
<el-select v-model="value" placeholder="Select" class="grow">
|
|
30
|
-
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"
|
|
30
|
+
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
|
|
31
31
|
</el-select>
|
|
32
32
|
<el-button class="isax-add-circle grow-0">Add</el-button>
|
|
33
33
|
</div>
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
`collapse-tags = true` to fold selected tags.
|
|
40
40
|
</p>
|
|
41
41
|
<div class="flex gap-4">
|
|
42
|
-
<el-cascader :options="options" :props="props" clearable
|
|
43
|
-
<el-cascader :options="options" :props="props" collapse-tags clearable
|
|
42
|
+
<el-cascader :options="options" :props="props" clearable />
|
|
43
|
+
<el-cascader :options="options" :props="props" collapse-tags clearable />
|
|
44
44
|
</div>
|
|
45
45
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
46
46
|
<p class="text-xs">
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
eventually. When enable this feature, it can make parent and child nodes unlinked and you can select any level of options.
|
|
56
56
|
</p>
|
|
57
57
|
<div class="flex gap-4">
|
|
58
|
-
<el-cascader :options="options" :props="{ checkStrictly: true }" clearable
|
|
59
|
-
<el-cascader :options="options" :props="{ multiple: true, checkStrictly: true }" clearable
|
|
58
|
+
<el-cascader :options="options" :props="{ checkStrictly: true }" clearable />
|
|
59
|
+
<el-cascader :options="options" :props="{ multiple: true, checkStrictly: true }" clearable />
|
|
60
60
|
</div>
|
|
61
61
|
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
62
62
|
<p class="text-xs">
|
|
@@ -68,9 +68,9 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
70
|
<script>
|
|
71
|
-
import
|
|
71
|
+
import { defineComponent } from 'vue';
|
|
72
72
|
|
|
73
|
-
export default
|
|
73
|
+
export default defineComponent({
|
|
74
74
|
name: 'TimusCascader',
|
|
75
75
|
data() {
|
|
76
76
|
return {
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
</section>
|
|
116
116
|
</div>
|
|
117
117
|
</template>
|
|
118
|
-
<script>import
|
|
118
|
+
<script>import { defineComponent } from 'vue';
|
|
119
119
|
const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
|
|
120
|
-
export default
|
|
120
|
+
export default defineComponent({
|
|
121
121
|
data() {
|
|
122
122
|
return {
|
|
123
123
|
colors: ['default', 'primary', 'secondary', 'gray', 'light', 'success', 'danger', 'info', 'warning'],
|
|
@@ -41,11 +41,17 @@
|
|
|
41
41
|
</section>
|
|
42
42
|
</div>
|
|
43
43
|
</template>
|
|
44
|
+
|
|
44
45
|
<script>
|
|
45
|
-
import
|
|
46
|
+
import { defineComponent } from 'vue';
|
|
46
47
|
|
|
47
|
-
export default
|
|
48
|
+
export default defineComponent({
|
|
48
49
|
name: 'TimusButtonSample',
|
|
50
|
+
data() {
|
|
51
|
+
return {
|
|
52
|
+
activeNames: ['1'],
|
|
53
|
+
};
|
|
54
|
+
},
|
|
49
55
|
computed: {
|
|
50
56
|
gridSize() {
|
|
51
57
|
const grids = {
|
|
@@ -54,14 +60,10 @@ export default Vue.extend({
|
|
|
54
60
|
7: 'grid-cols-7',
|
|
55
61
|
8: 'grid-cols-8',
|
|
56
62
|
};
|
|
63
|
+
|
|
57
64
|
return grids;
|
|
58
65
|
},
|
|
59
66
|
},
|
|
60
|
-
data() {
|
|
61
|
-
return {
|
|
62
|
-
activeNames: ['1'],
|
|
63
|
-
};
|
|
64
|
-
},
|
|
65
67
|
methods: {
|
|
66
68
|
handleChange(val) {
|
|
67
69
|
console.log(val);
|
|
@@ -1,47 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</
|
|
25
|
-
|
|
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>
|
|
26
28
|
</template>
|
|
27
29
|
|
|
28
30
|
<script>
|
|
29
|
-
import
|
|
31
|
+
import { defineComponent } from 'vue';
|
|
30
32
|
|
|
31
|
-
export default
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
},
|
|
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((_) => {});
|
|
45
46
|
},
|
|
47
|
+
},
|
|
46
48
|
});
|
|
47
49
|
</script>
|
|
@@ -75,9 +75,9 @@
|
|
|
75
75
|
</section>
|
|
76
76
|
</div>
|
|
77
77
|
</template>
|
|
78
|
-
<script>import
|
|
78
|
+
<script>import { defineComponent } from 'vue';
|
|
79
79
|
const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
|
|
80
|
-
export default
|
|
80
|
+
export default defineComponent({
|
|
81
81
|
data() {
|
|
82
82
|
return {
|
|
83
83
|
labelPosition: 'right',
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
</div>
|
|
61
61
|
</template>
|
|
62
62
|
<script>
|
|
63
|
-
import
|
|
63
|
+
import { defineComponent } from 'vue';
|
|
64
64
|
|
|
65
|
-
export default
|
|
65
|
+
export default defineComponent({
|
|
66
66
|
name: 'TimusButtonSample',
|
|
67
67
|
data() {
|
|
68
68
|
return {
|
|
@@ -78,19 +78,24 @@ export default Vue.extend({
|
|
|
78
78
|
7: 'grid-cols-7',
|
|
79
79
|
8: 'grid-cols-8',
|
|
80
80
|
};
|
|
81
|
+
|
|
81
82
|
return grids;
|
|
82
83
|
},
|
|
83
84
|
},
|
|
85
|
+
mounted() {
|
|
86
|
+
this.links = this.loadAll();
|
|
87
|
+
},
|
|
84
88
|
methods: {
|
|
85
89
|
querySearch(queryString, cb) {
|
|
86
|
-
|
|
87
|
-
|
|
90
|
+
const { links } = this;
|
|
91
|
+
const results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
92
|
+
|
|
88
93
|
// call callback function to return suggestions
|
|
89
94
|
cb(results);
|
|
90
95
|
},
|
|
91
96
|
querySearchAsync(queryString, cb) {
|
|
92
|
-
|
|
93
|
-
|
|
97
|
+
const { links } = this;
|
|
98
|
+
const results = queryString ? links.filter(this.createFilter(queryString)) : links;
|
|
94
99
|
|
|
95
100
|
clearTimeout(this.timeout);
|
|
96
101
|
this.timeout = setTimeout(() => {
|
|
@@ -98,9 +103,7 @@ export default Vue.extend({
|
|
|
98
103
|
}, 3000 * Math.random());
|
|
99
104
|
},
|
|
100
105
|
createFilter(queryString) {
|
|
101
|
-
return (link) =>
|
|
102
|
-
return link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
103
|
-
};
|
|
106
|
+
return (link) => link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
|
|
104
107
|
},
|
|
105
108
|
loadAll() {
|
|
106
109
|
return [
|
|
@@ -120,8 +123,5 @@ export default Vue.extend({
|
|
|
120
123
|
console.log(ev);
|
|
121
124
|
},
|
|
122
125
|
},
|
|
123
|
-
mounted() {
|
|
124
|
-
this.links = this.loadAll();
|
|
125
|
-
},
|
|
126
126
|
});
|
|
127
127
|
</script>
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
<h1>Controls Position</h1>
|
|
5
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
6
|
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
7
|
-
<el-input-number v-model="input" controls-position="right" @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"
|
|
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
12
|
</div>
|
|
13
13
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
14
14
|
<p class="text-xs">
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
<h1>Basic usage</h1>
|
|
25
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
26
|
<div class="grid grid-flow-col auto-cols-max gap-4 items-center">
|
|
27
|
-
<el-input-number v-model="num"
|
|
28
|
-
<el-input-number
|
|
29
|
-
<el-input-number
|
|
30
|
-
<el-input-number
|
|
31
|
-
<el-input-number
|
|
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
32
|
</div>
|
|
33
33
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
34
34
|
<p class="text-xs">
|
|
@@ -41,10 +41,11 @@
|
|
|
41
41
|
</section>
|
|
42
42
|
</div>
|
|
43
43
|
</template>
|
|
44
|
+
|
|
44
45
|
<script>
|
|
45
|
-
import
|
|
46
|
+
import { defineComponent } from 'vue';
|
|
46
47
|
|
|
47
|
-
export default
|
|
48
|
+
export default defineComponent({
|
|
48
49
|
name: 'TimusButtonSample',
|
|
49
50
|
data() {
|
|
50
51
|
return {
|
|
@@ -52,11 +53,6 @@ export default Vue.extend({
|
|
|
52
53
|
num: 213,
|
|
53
54
|
};
|
|
54
55
|
},
|
|
55
|
-
methods: {
|
|
56
|
-
handleChange(value) {
|
|
57
|
-
console.log(value);
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
56
|
computed: {
|
|
61
57
|
gridSize() {
|
|
62
58
|
const grids = {
|
|
@@ -65,8 +61,14 @@ export default Vue.extend({
|
|
|
65
61
|
7: 'grid-cols-7',
|
|
66
62
|
8: 'grid-cols-8',
|
|
67
63
|
};
|
|
64
|
+
|
|
68
65
|
return grids;
|
|
69
66
|
},
|
|
70
67
|
},
|
|
68
|
+
methods: {
|
|
69
|
+
handleChange(value) {
|
|
70
|
+
console.log(value);
|
|
71
|
+
},
|
|
72
|
+
},
|
|
71
73
|
});
|
|
72
74
|
</script>
|
|
@@ -111,12 +111,16 @@
|
|
|
111
111
|
</el-input>
|
|
112
112
|
|
|
113
113
|
<el-input v-model="input3" placeholder="Please input" class="input-with-select">
|
|
114
|
-
<
|
|
115
|
-
<el-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
114
|
+
<template #prepend>
|
|
115
|
+
<el-select v-model="select" placeholder="Select">
|
|
116
|
+
<el-option label="Restaurant" value="1" />
|
|
117
|
+
<el-option label="Order No." value="2" />
|
|
118
|
+
<el-option label="Tel" value="3" />
|
|
119
|
+
</el-select>
|
|
120
|
+
</template>
|
|
121
|
+
<template #append>
|
|
122
|
+
<el-button icon="el-icon-search" />
|
|
123
|
+
</template>
|
|
120
124
|
</el-input>
|
|
121
125
|
</div>
|
|
122
126
|
<div class="my-4 p-4 border-l-4 border-info-600 bg-info-100">
|
|
@@ -179,7 +183,9 @@
|
|
|
179
183
|
placeholder="Please input"
|
|
180
184
|
@select="handleSelect"
|
|
181
185
|
>
|
|
182
|
-
<
|
|
186
|
+
<template #suffix>
|
|
187
|
+
<i class="el-icon-edit el-input__icon" @click="handleIconClick" />
|
|
188
|
+
</template>
|
|
183
189
|
<template #default="{ item }">
|
|
184
190
|
<div class="value">{{ item.value }}</div>
|
|
185
191
|
<span class="link">{{ item.link }}</span>
|
|
@@ -227,10 +233,11 @@
|
|
|
227
233
|
</section>
|
|
228
234
|
</div>
|
|
229
235
|
</template>
|
|
236
|
+
|
|
230
237
|
<script>
|
|
231
|
-
import
|
|
238
|
+
import { defineComponent } from 'vue';
|
|
232
239
|
|
|
233
|
-
export default
|
|
240
|
+
export default defineComponent({
|
|
234
241
|
name: 'TimusButtonSample',
|
|
235
242
|
data() {
|
|
236
243
|
return {
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
<div class="logo-icon-small" />
|
|
11
|
+
<div class="logo-icon-medium" />
|
|
12
|
+
<div class="logo-icon-large" />
|
|
13
|
+
<el-divider direction="vertical" content-position="center" />
|
|
14
|
+
<div class="logo-small" />
|
|
15
|
+
<div class="logo-medium" />
|
|
16
|
+
<div class="logo-large" />
|
|
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><div class="logo-medium"></div></code>
|
|
21
|
+
</p>
|
|
22
|
+
</div>
|
|
23
|
+
</section>
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
<section>
|
|
26
|
+
<h1>Types</h1>
|
|
27
|
+
<p class="p-md-c my-6">
|
|
28
|
+
There are two different types of logo usage available: <b>"icon"</b> or <b>"logo"</b>. When used as a <b>"logo"</b>, an additional icon along
|
|
29
|
+
with the word <b>"timus"</b> will be displayed.
|
|
30
|
+
</p>
|
|
31
|
+
<div class="grid grid-flow-col auto-cols-max gap-6 items-center">
|
|
32
|
+
<div class="logo-icon-small" />
|
|
33
|
+
<el-divider direction="vertical" content-position="center" />
|
|
34
|
+
<div class="logo-small" />
|
|
35
|
+
</div>
|
|
36
|
+
<div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
|
|
37
|
+
<p class="text-xs">
|
|
38
|
+
<code><div class="logo-icon-medium"></div> | <div class="logo-medium"></div></code>
|
|
39
|
+
</p>
|
|
40
|
+
</div>
|
|
41
|
+
</section>
|
|
42
|
+
</div>
|
|
43
43
|
</template>
|
|
44
44
|
|
|
45
45
|
<script>
|
|
46
|
-
import
|
|
46
|
+
import { defineComponent } from 'vue';
|
|
47
47
|
|
|
48
|
-
export default
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
48
|
+
export default defineComponent({
|
|
49
|
+
name: 'TimusCascader',
|
|
50
|
+
data() {
|
|
51
|
+
return {
|
|
52
|
+
url: 'https://api.dicebear.com/7.x/adventurer-neutral/svg?seed=Princess',
|
|
53
|
+
sizeList: ['xlarge', 'large', 'medium', 'small', 'xsmall'],
|
|
54
|
+
};
|
|
55
|
+
},
|
|
56
56
|
});
|
|
57
57
|
</script>
|