@timus-networks/theme 1.0.26 → 1.0.28

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,47 @@
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>
26
+ </template>
27
+
28
+ <script>
29
+ import Vue from 'vue';
30
+
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
+ },
45
+ },
46
+ });
47
+ </script>
@@ -20,6 +20,7 @@
20
20
  <el-tab-pane label="Badge" name="seventeen"><ThemeBadge></ThemeBadge></el-tab-pane>
21
21
  <el-tab-pane label="Avatar" name="eighteen"><ThemeAvatar></ThemeAvatar></el-tab-pane>
22
22
  <el-tab-pane label="Logo" name="nineteen"><ThemeLogo></ThemeLogo></el-tab-pane>
23
+ <el-tab-pane label="Dialog" name="twenty"><ThemeDialog></ThemeDialog></el-tab-pane>
23
24
  </el-tabs>
24
25
  </div>
25
26
  </template>
@@ -0,0 +1,47 @@
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>
26
+ </template>
27
+
28
+ <script>
29
+ import Vue from 'vue';
30
+
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
+ },
45
+ },
46
+ });
47
+ </script>
@@ -20,6 +20,7 @@
20
20
  <el-tab-pane label="Badge" name="seventeen"><ThemeBadge></ThemeBadge></el-tab-pane>
21
21
  <el-tab-pane label="Avatar" name="eighteen"><ThemeAvatar></ThemeAvatar></el-tab-pane>
22
22
  <el-tab-pane label="Logo" name="nineteen"><ThemeLogo></ThemeLogo></el-tab-pane>
23
+ <el-tab-pane label="Dialog" name="twenty"><ThemeDialog></ThemeDialog></el-tab-pane>
23
24
  </el-tabs>
24
25
  </div>
25
26
  </template>