@timus-networks/theme 1.0.57 → 1.0.59

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.
@@ -0,0 +1,127 @@
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
+ &lt;div class=&quot;el-custom-tag&quot;&gt;Ahmet Polat MacBook Pro, Ahmet Fatih Sez...&lt;span
21
+ class=&quot;suffix&quot;&gt;23&lt;/span&gt;&lt;/div&gt;
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
+ &lt;div class=&quot;information&quot;&gt;&lt;div class=&quot;title&quot;&gt;Text&lt;/div&gt;&lt;div
55
+ class=&quot;description&quot;&gt;Description&lt;/div&gt;&lt;/div&gt;
56
+ </code>
57
+ </p>
58
+ </div>
59
+ </section>
60
+ </div>
61
+ </template>
62
+ <script>
63
+ import Vue from 'vue';
64
+
65
+ export default Vue.extend({
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
+ return grids;
82
+ },
83
+ },
84
+ methods: {
85
+ querySearch(queryString, cb) {
86
+ var links = this.links;
87
+ var results = queryString ? links.filter(this.createFilter(queryString)) : links;
88
+ // call callback function to return suggestions
89
+ cb(results);
90
+ },
91
+ querySearchAsync(queryString, cb) {
92
+ var links = this.links;
93
+ var results = queryString ? links.filter(this.createFilter(queryString)) : links;
94
+
95
+ clearTimeout(this.timeout);
96
+ this.timeout = setTimeout(() => {
97
+ cb(results);
98
+ }, 3000 * Math.random());
99
+ },
100
+ createFilter(queryString) {
101
+ return (link) => {
102
+ return link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
103
+ };
104
+ },
105
+ loadAll() {
106
+ return [
107
+ { value: 'vue', link: 'https://github.com/vuejs/vue' },
108
+ { value: 'element', link: 'https://github.com/ElemeFE/element' },
109
+ { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
110
+ { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
111
+ { value: 'vuex', link: 'https://github.com/vuejs/vuex' },
112
+ { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
113
+ { value: 'babel', link: 'https://github.com/babel/babel' },
114
+ ];
115
+ },
116
+ handleSelect(item) {
117
+ console.log(item);
118
+ },
119
+ handleIconClick(ev) {
120
+ console.log(ev);
121
+ },
122
+ },
123
+ mounted() {
124
+ this.links = this.loadAll();
125
+ },
126
+ });
127
+ </script>
@@ -24,7 +24,7 @@
24
24
  <el-tab-pane label="Sidebar" name="twenty-one"><ThemeSidebar></ThemeSidebar></el-tab-pane>
25
25
  <el-tab-pane label="Upload" name="twenty-two"><ThemeUpload></ThemeUpload></el-tab-pane>
26
26
  <el-tab-pane label="MessageBox" name="twenty-three"><ThemeMessageBox></ThemeMessageBox></el-tab-pane>
27
- <el-tab-pane label="Description" name="twenty-4"><ThemeDescription></ThemeDescription></el-tab-pane>
27
+ <el-tab-pane label="Information" name="twenty-4"><ThemeInformation></ThemeInformation></el-tab-pane>
28
28
  </el-tabs>
29
29
  </div>
30
30
  </template>
@@ -0,0 +1,127 @@
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
+ &lt;div class=&quot;el-custom-tag&quot;&gt;Ahmet Polat MacBook Pro, Ahmet Fatih Sez...&lt;span
21
+ class=&quot;suffix&quot;&gt;23&lt;/span&gt;&lt;/div&gt;
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
+ &lt;div class=&quot;information&quot;&gt;&lt;div class=&quot;title&quot;&gt;Text&lt;/div&gt;&lt;div
55
+ class=&quot;description&quot;&gt;Description&lt;/div&gt;&lt;/div&gt;
56
+ </code>
57
+ </p>
58
+ </div>
59
+ </section>
60
+ </div>
61
+ </template>
62
+ <script>
63
+ import Vue from 'vue';
64
+
65
+ export default Vue.extend({
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
+ return grids;
82
+ },
83
+ },
84
+ methods: {
85
+ querySearch(queryString, cb) {
86
+ var links = this.links;
87
+ var results = queryString ? links.filter(this.createFilter(queryString)) : links;
88
+ // call callback function to return suggestions
89
+ cb(results);
90
+ },
91
+ querySearchAsync(queryString, cb) {
92
+ var links = this.links;
93
+ var results = queryString ? links.filter(this.createFilter(queryString)) : links;
94
+
95
+ clearTimeout(this.timeout);
96
+ this.timeout = setTimeout(() => {
97
+ cb(results);
98
+ }, 3000 * Math.random());
99
+ },
100
+ createFilter(queryString) {
101
+ return (link) => {
102
+ return link.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0;
103
+ };
104
+ },
105
+ loadAll() {
106
+ return [
107
+ { value: 'vue', link: 'https://github.com/vuejs/vue' },
108
+ { value: 'element', link: 'https://github.com/ElemeFE/element' },
109
+ { value: 'cooking', link: 'https://github.com/ElemeFE/cooking' },
110
+ { value: 'mint-ui', link: 'https://github.com/ElemeFE/mint-ui' },
111
+ { value: 'vuex', link: 'https://github.com/vuejs/vuex' },
112
+ { value: 'vue-router', link: 'https://github.com/vuejs/vue-router' },
113
+ { value: 'babel', link: 'https://github.com/babel/babel' },
114
+ ];
115
+ },
116
+ handleSelect(item) {
117
+ console.log(item);
118
+ },
119
+ handleIconClick(ev) {
120
+ console.log(ev);
121
+ },
122
+ },
123
+ mounted() {
124
+ this.links = this.loadAll();
125
+ },
126
+ });
127
+ </script>
@@ -24,7 +24,7 @@
24
24
  <el-tab-pane label="Sidebar" name="twenty-one"><ThemeSidebar></ThemeSidebar></el-tab-pane>
25
25
  <el-tab-pane label="Upload" name="twenty-two"><ThemeUpload></ThemeUpload></el-tab-pane>
26
26
  <el-tab-pane label="MessageBox" name="twenty-three"><ThemeMessageBox></ThemeMessageBox></el-tab-pane>
27
- <el-tab-pane label="Description" name="twenty-4"><ThemeDescription></ThemeDescription></el-tab-pane>
27
+ <el-tab-pane label="Information" name="twenty-4"><ThemeInformation></ThemeInformation></el-tab-pane>
28
28
  </el-tabs>
29
29
  </div>
30
30
  </template>