@timus-networks/theme 1.0.161 → 1.0.162

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.
Files changed (117) hide show
  1. package/components-js/ThemeAlert.vue +11 -9
  2. package/components-js/ThemeAvatar.vue +2 -2
  3. package/components-js/ThemeBadge.vue +14 -12
  4. package/components-js/ThemeButtons.vue +2 -2
  5. package/components-js/ThemeCascader.vue +13 -13
  6. package/components-js/ThemeCheckbox.vue +2 -2
  7. package/components-js/ThemeCollapse.vue +9 -7
  8. package/components-js/ThemeDialog.vue +41 -39
  9. package/components-js/ThemeForm.vue +2 -2
  10. package/components-js/ThemeInformation.vue +12 -12
  11. package/components-js/ThemeInputNumbers.vue +19 -17
  12. package/components-js/ThemeInputs.vue +16 -9
  13. package/components-js/ThemeLink.vue +2 -2
  14. package/components-js/ThemeLogo.vue +49 -49
  15. package/components-js/ThemeMessageBox.vue +3 -2
  16. package/components-js/ThemePopover.vue +45 -28
  17. package/components-js/ThemeRadio.vue +19 -19
  18. package/components-js/ThemeSelect.vue +2 -2
  19. package/components-js/ThemeSidebar.vue +2 -2
  20. package/components-js/ThemeTable.vue +2 -2
  21. package/components-js/ThemeTag.vue +2 -2
  22. package/components-js/ThemeToggle.vue +18 -17
  23. package/components-js/ThemeTooltip.vue +16 -14
  24. package/components-js/ThemeTypo.vue +5 -5
  25. package/components-js/ThemeUpload.vue +3 -2
  26. package/components-js/TimusSamples.vue +4 -2
  27. package/components-ts/ThemeAlert.vue +11 -9
  28. package/components-ts/ThemeAvatar.vue +2 -2
  29. package/components-ts/ThemeBadge.vue +14 -12
  30. package/components-ts/ThemeButtons.vue +2 -2
  31. package/components-ts/ThemeCascader.vue +13 -13
  32. package/components-ts/ThemeCheckbox.vue +2 -2
  33. package/components-ts/ThemeCollapse.vue +9 -7
  34. package/components-ts/ThemeDialog.vue +41 -39
  35. package/components-ts/ThemeForm.vue +2 -2
  36. package/components-ts/ThemeInformation.vue +12 -12
  37. package/components-ts/ThemeInputNumbers.vue +19 -17
  38. package/components-ts/ThemeInputs.vue +16 -9
  39. package/components-ts/ThemeLink.vue +2 -2
  40. package/components-ts/ThemeLogo.vue +49 -49
  41. package/components-ts/ThemeMessageBox.vue +3 -2
  42. package/components-ts/ThemePopover.vue +45 -28
  43. package/components-ts/ThemeRadio.vue +21 -19
  44. package/components-ts/ThemeSelect.vue +2 -2
  45. package/components-ts/ThemeSidebar.vue +2 -2
  46. package/components-ts/ThemeTable.vue +2 -2
  47. package/components-ts/ThemeTag.vue +2 -2
  48. package/components-ts/ThemeToggle.vue +18 -17
  49. package/components-ts/ThemeTooltip.vue +16 -14
  50. package/components-ts/ThemeTypo.vue +5 -5
  51. package/components-ts/ThemeUpload.vue +3 -2
  52. package/components-ts/TimusSamples.vue +4 -2
  53. package/fonts/poppins-font-face/Poppins.html +896 -0
  54. package/fonts/poppins-font-face/Poppins.jpg +0 -0
  55. package/fonts/poppins-font-face/README.md +106 -0
  56. package/fonts/poppins-font-face/files/Poppins-Black.eot +0 -0
  57. package/fonts/poppins-font-face/files/Poppins-Black.svg +3099 -0
  58. package/fonts/poppins-font-face/files/Poppins-Black.ttf +0 -0
  59. package/fonts/poppins-font-face/files/Poppins-Black.woff +0 -0
  60. package/fonts/poppins-font-face/files/Poppins-Black.woff2 +0 -0
  61. package/fonts/poppins-font-face/files/Poppins-BlackItalic.ttf +0 -0
  62. package/fonts/poppins-font-face/files/Poppins-Bold.eot +0 -0
  63. package/fonts/poppins-font-face/files/Poppins-Bold.svg +3131 -0
  64. package/fonts/poppins-font-face/files/Poppins-Bold.ttf +0 -0
  65. package/fonts/poppins-font-face/files/Poppins-Bold.woff +0 -0
  66. package/fonts/poppins-font-face/files/Poppins-Bold.woff2 +0 -0
  67. package/fonts/poppins-font-face/files/Poppins-BoldItalic.ttf +0 -0
  68. package/fonts/poppins-font-face/files/Poppins-ExtraBold.eot +0 -0
  69. package/fonts/poppins-font-face/files/Poppins-ExtraBold.svg +3120 -0
  70. package/fonts/poppins-font-face/files/Poppins-ExtraBold.ttf +0 -0
  71. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff +0 -0
  72. package/fonts/poppins-font-face/files/Poppins-ExtraBold.woff2 +0 -0
  73. package/fonts/poppins-font-face/files/Poppins-ExtraBoldItalic.ttf +0 -0
  74. package/fonts/poppins-font-face/files/Poppins-ExtraLight.eot +0 -0
  75. package/fonts/poppins-font-face/files/Poppins-ExtraLight.svg +3245 -0
  76. package/fonts/poppins-font-face/files/Poppins-ExtraLight.ttf +0 -0
  77. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff +0 -0
  78. package/fonts/poppins-font-face/files/Poppins-ExtraLight.woff2 +0 -0
  79. package/fonts/poppins-font-face/files/Poppins-ExtraLightItalic.ttf +0 -0
  80. package/fonts/poppins-font-face/files/Poppins-Italic.eot +0 -0
  81. package/fonts/poppins-font-face/files/Poppins-Italic.svg +3414 -0
  82. package/fonts/poppins-font-face/files/Poppins-Italic.ttf +0 -0
  83. package/fonts/poppins-font-face/files/Poppins-Italic.woff +0 -0
  84. package/fonts/poppins-font-face/files/Poppins-Italic.woff2 +0 -0
  85. package/fonts/poppins-font-face/files/Poppins-Light.eot +0 -0
  86. package/fonts/poppins-font-face/files/Poppins-Light.svg +3244 -0
  87. package/fonts/poppins-font-face/files/Poppins-Light.ttf +0 -0
  88. package/fonts/poppins-font-face/files/Poppins-Light.woff +0 -0
  89. package/fonts/poppins-font-face/files/Poppins-Light.woff2 +0 -0
  90. package/fonts/poppins-font-face/files/Poppins-LightItalic.ttf +0 -0
  91. package/fonts/poppins-font-face/files/Poppins-Medium.eot +0 -0
  92. package/fonts/poppins-font-face/files/Poppins-Medium.svg +3190 -0
  93. package/fonts/poppins-font-face/files/Poppins-Medium.ttf +0 -0
  94. package/fonts/poppins-font-face/files/Poppins-Medium.woff +0 -0
  95. package/fonts/poppins-font-face/files/Poppins-Medium.woff2 +0 -0
  96. package/fonts/poppins-font-face/files/Poppins-MediumItalic.ttf +0 -0
  97. package/fonts/poppins-font-face/files/Poppins-Regular.eot +0 -0
  98. package/fonts/poppins-font-face/files/Poppins-Regular.svg +3213 -0
  99. package/fonts/poppins-font-face/files/Poppins-Regular.ttf +0 -0
  100. package/fonts/poppins-font-face/files/Poppins-Regular.woff +0 -0
  101. package/fonts/poppins-font-face/files/Poppins-Regular.woff2 +0 -0
  102. package/fonts/poppins-font-face/files/Poppins-SemiBold.eot +0 -0
  103. package/fonts/poppins-font-face/files/Poppins-SemiBold.svg +3174 -0
  104. package/fonts/poppins-font-face/files/Poppins-SemiBold.ttf +0 -0
  105. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff +0 -0
  106. package/fonts/poppins-font-face/files/Poppins-SemiBold.woff2 +0 -0
  107. package/fonts/poppins-font-face/files/Poppins-SemiBoldItalic.ttf +0 -0
  108. package/fonts/poppins-font-face/files/Poppins-Thin.eot +0 -0
  109. package/fonts/poppins-font-face/files/Poppins-Thin.svg +3266 -0
  110. package/fonts/poppins-font-face/files/Poppins-Thin.ttf +0 -0
  111. package/fonts/poppins-font-face/files/Poppins-Thin.woff +0 -0
  112. package/fonts/poppins-font-face/files/Poppins-Thin.woff2 +0 -0
  113. package/fonts/poppins-font-face/files/Poppins-ThinItalic.ttf +0 -0
  114. package/fonts/poppins-font-face/stylesheet.css +27 -9
  115. package/index.d.ts +1 -1
  116. package/output/main.css +1 -1
  117. 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" v-for="(item, key) in colors" :key="key"></el-alert>
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 Vue from 'vue';
18
+ import { defineComponent } from 'vue';
19
19
 
20
- export default Vue.extend({
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['property'];
66
+ const { property } = column;
67
+
66
68
  return row[property] === value;
67
69
  },
68
70
  handleSizeChange(val) {
@@ -41,9 +41,9 @@
41
41
  </template>
42
42
 
43
43
  <script>
44
- import Vue from 'vue';
44
+ import { defineComponent } from 'vue';
45
45
 
46
- export default Vue.extend({
46
+ export default defineComponent({
47
47
  name: 'TimusCascader',
48
48
  data() {
49
49
  return {
@@ -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
- <el-dropdown-menu slot="dropdown">
17
- <el-dropdown-item class="clearfix">
18
- Yorumlar
19
- <el-badge class="mark" :value="12" />
20
- </el-dropdown-item>
21
- <el-dropdown-item class="clearfix">
22
- Yanıtlar
23
- <el-badge class="mark" :value="3" />
24
- </el-dropdown-item>
25
- </el-dropdown-menu>
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 Vue from 'vue';
79
+ import { defineComponent } from 'vue';
78
80
 
79
- export default Vue.extend({
81
+ export default defineComponent({
80
82
  name: 'TimusCascader',
81
83
  data() {
82
84
  return {
@@ -120,9 +120,9 @@
120
120
  </div>
121
121
  </template>
122
122
  <script>
123
- import Vue from 'vue';
123
+ import { defineComponent } from 'vue';
124
124
 
125
- export default Vue.extend({
125
+ export default defineComponent({
126
126
  name: 'TimusButtonSample',
127
127
  data() {
128
128
  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" clearable></el-cascader>
8
- <el-cascader v-model="value" :options="options" :props="{ expandTrigger: 'hover' }" @change="handleChange"></el-cascader>
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" clearable></el-cascader>
24
- <el-cascader v-model="value" :options="options" @change="handleChange" clearable></el-cascader>
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"> </el-option>
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"></el-input>
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"> </el-option>
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></el-cascader>
43
- <el-cascader :options="options" :props="props" collapse-tags clearable></el-cascader>
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></el-cascader>
59
- <el-cascader :options="options" :props="{ multiple: true, checkStrictly: true }" clearable></el-cascader>
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 Vue from 'vue';
71
+ import { defineComponent } from 'vue';
72
72
 
73
- export default Vue.extend({
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 Vue from 'vue';
118
+ <script>import { defineComponent } from 'vue';
119
119
  const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
120
- export default Vue.extend({
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 Vue from 'vue';
46
+ import { defineComponent } from 'vue';
46
47
 
47
- export default Vue.extend({
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
- <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 title="Tips" :visible.sync="dialogVisible" :before-close="handleClose">
12
- <span>This is a message</span>
13
- <span slot="footer" class="dialog-footer">
14
- <el-button @click="dialogVisible = false">Cancel</el-button>
15
- <el-button type="primary" @click="dialogVisible = false">Confirm</el-button>
16
- </span>
17
- </el-dialog>
18
- </div>
19
- <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
20
- <p class="text-xs">
21
- <code>&lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
22
- </p>
23
- </div>
24
- </section>
25
- </div>
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>&lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
24
+ </p>
25
+ </div>
26
+ </section>
27
+ </div>
26
28
  </template>
27
29
 
28
30
  <script>
29
- import Vue from 'vue';
31
+ import { defineComponent } from 'vue';
30
32
 
31
- export default Vue.extend({
32
- data() {
33
- return {
34
- dialogVisible: false,
35
- };
36
- },
37
- methods: {
38
- handleClose(done) {
39
- this.$confirm('Are you sure to close this dialog?')
40
- .then((_) => {
41
- done();
42
- })
43
- .catch((_) => {});
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 Vue from 'vue';
78
+ <script>import { defineComponent } from 'vue';
79
79
  const cityOptions = ['Shanghai', 'Beijing', 'Guangzhou', 'Shenzhen'];
80
- export default Vue.extend({
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 Vue from 'vue';
63
+ import { defineComponent } from 'vue';
64
64
 
65
- export default Vue.extend({
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
- var links = this.links;
87
- var results = queryString ? links.filter(this.createFilter(queryString)) : links;
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
- var links = this.links;
93
- var results = queryString ? links.filter(this.createFilter(queryString)) : links;
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" disabled></el-input-number>
8
- <el-input-number v-model="input" size="large" controls-position="right" @change="handleChange"></el-input-number>
9
- <el-input-number v-model="input" size="medium" controls-position="right" @change="handleChange"></el-input-number>
10
- <el-input-number v-model="input" size="small" controls-position="right" @change="handleChange"></el-input-number>
11
- <el-input-number v-model="input" size="mini" controls-position="right" @change="handleChange"></el-input-number>
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" @change="handleChange" :min="1" :max="10000" disabled></el-input-number>
28
- <el-input-number size="large" v-model="num" @change="handleChange" :min="1" :max="10000"></el-input-number>
29
- <el-input-number size="medium" v-model="num" @change="handleChange" :min="1" :max="10000"></el-input-number>
30
- <el-input-number size="small" v-model="num" @change="handleChange" :min="1" :max="10000"></el-input-number>
31
- <el-input-number size="mini" v-model="num" @change="handleChange" :min="1" :max="10000"></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 Vue from 'vue';
46
+ import { defineComponent } from 'vue';
46
47
 
47
- export default Vue.extend({
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
- <el-select slot="prepend" v-model="select" placeholder="Select">
115
- <el-option label="Restaurant" value="1" />
116
- <el-option label="Order No." value="2" />
117
- <el-option label="Tel" value="3" />
118
- </el-select>
119
- <el-button slot="append" icon="el-icon-search" />
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
- <i slot="suffix" class="el-icon-edit el-input__icon" @click="handleIconClick" />
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 Vue from 'vue';
238
+ import { defineComponent } from 'vue';
232
239
 
233
- export default Vue.extend({
240
+ export default defineComponent({
234
241
  name: 'TimusButtonSample',
235
242
  data() {
236
243
  return {
@@ -97,9 +97,9 @@
97
97
  </template>
98
98
 
99
99
  <script>
100
- import Vue from 'vue';
100
+ import { defineComponent } from 'vue';
101
101
 
102
- export default Vue.extend({
102
+ export default defineComponent({
103
103
  name: 'TimusButtonSample',
104
104
  data() {
105
105
  return {
@@ -1,57 +1,57 @@
1
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
- <div class="logo-icon-small"></div>
11
- <div class="logo-icon-medium"></div>
12
- <div class="logo-icon-large"></div>
13
- <el-divider direction="vertical" content-position="center"></el-divider>
14
- <div class="logo-small"></div>
15
- <div class="logo-medium"></div>
16
- <div class="logo-large"></div>
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>&lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
21
- </p>
22
- </div>
23
- </section>
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>&lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
21
+ </p>
22
+ </div>
23
+ </section>
24
24
 
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
29
- icon along 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"></div>
33
- <el-divider direction="vertical" content-position="center"></el-divider>
34
- <div class="logo-small"></div>
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>&lt;div class="logo-icon-medium"&gt;&lt;/div&gt; | &lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
39
- </p>
40
- </div>
41
- </section>
42
- </div>
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>&lt;div class="logo-icon-medium"&gt;&lt;/div&gt; | &lt;div class="logo-medium"&gt;&lt;/div&gt;</code>
39
+ </p>
40
+ </div>
41
+ </section>
42
+ </div>
43
43
  </template>
44
44
 
45
45
  <script>
46
- import Vue from 'vue';
46
+ import { defineComponent } from 'vue';
47
47
 
48
- export default Vue.extend({
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
- },
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>