@timus-networks/theme 1.0.181 → 1.0.182

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.
@@ -6,7 +6,10 @@
6
6
  Use the type attribute to define Tag's type. In addition, the color attribute can be used to set the background color of the Tag.
7
7
  </p>
8
8
  <div class="grid grid-flow-col gap-4">
9
- <el-button :plain="true" @click="open">Show message</el-button>
9
+ <el-button :plain="true" @click="open('error')">Error message</el-button>
10
+ <el-button :plain="true" @click="open('success')">Success message</el-button>
11
+ <el-button :plain="true" @click="open('warning')">Warning message</el-button>
12
+ <el-button :plain="true" @click="open('info')">Info message</el-button>
10
13
  <el-button :plain="true" @click="openVn">VNode</el-button>
11
14
  </div>
12
15
  <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
@@ -32,10 +35,11 @@ export default defineComponent({
32
35
  return {};
33
36
  },
34
37
  methods: {
35
- open() {
38
+ open(aType) {
36
39
  this.$message({
37
40
  message: 'Congrats, this is a success message.',
38
- type: 'error',
41
+ type: aType,
42
+ showClose: true,
39
43
  });
40
44
  },
41
45
 
@@ -6,7 +6,10 @@
6
6
  Use the type attribute to define Tag's type. In addition, the color attribute can be used to set the background color of the Tag.
7
7
  </p>
8
8
  <div class="grid grid-flow-col gap-4">
9
- <el-button :plain="true" @click="open">Show message</el-button>
9
+ <el-button :plain="true" @click="open('error')">Error message</el-button>
10
+ <el-button :plain="true" @click="open('success')">Success message</el-button>
11
+ <el-button :plain="true" @click="open('warning')">Warning message</el-button>
12
+ <el-button :plain="true" @click="open('info')">Info message</el-button>
10
13
  <el-button :plain="true" @click="openVn">VNode</el-button>
11
14
  </div>
12
15
  <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
@@ -32,10 +35,11 @@ export default defineComponent({
32
35
  return {};
33
36
  },
34
37
  methods: {
35
- open() {
38
+ open(aType) {
36
39
  this.$message({
37
40
  message: 'Congrats, this is a success message.',
38
- type: 'error',
41
+ type: aType,
42
+ showClose: true,
39
43
  });
40
44
  },
41
45