@timus-networks/theme 1.0.42 → 1.0.44

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,46 @@
1
+ <template>
2
+ <div class="pt-8 pb-16 flex gap-12 flex-col">
3
+ <section>
4
+ <h1>Confirm</h1>
5
+ <p class="p-lg-c my-6">
6
+ Confirm is used to ask users' confirmation. A set of modal boxes simulating system message box, mainly for alerting information, confirm
7
+ operations and prompting messages. By design MessageBox provides simulations of system's alert, confirm and prompt,so it's content should be
8
+ simple. For more complicated contents, please use Dialog.
9
+ </p>
10
+ <el-button type="primary" size="medium" class="outline" @click="open">Click to open Message Box</el-button>
11
+ <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
12
+ <p class="text-xs">
13
+ <code>&lt;el-button type=&quot;text&quot; @click=&quot;open&quot;&gt;Click to open Message Box&lt;/el-button&gt;</code>
14
+ </p>
15
+ </div>
16
+ </section>
17
+ </div>
18
+ </template>
19
+ <script>
20
+ import Vue from 'vue';
21
+
22
+ export default Vue.extend({
23
+ name: 'TimusMessageBox',
24
+ methods: {
25
+ open() {
26
+ this.$confirm('This will permanently delete the file. Continue?', 'Warning', {
27
+ confirmButtonText: 'OK',
28
+ cancelButtonText: 'Cancel',
29
+ type: 'warning',
30
+ })
31
+ .then(() => {
32
+ this.$message({
33
+ type: 'success',
34
+ message: 'Delete completed',
35
+ });
36
+ })
37
+ .catch(() => {
38
+ this.$message({
39
+ type: 'info',
40
+ message: 'Delete canceled',
41
+ });
42
+ });
43
+ },
44
+ },
45
+ });
46
+ </script>
@@ -5,7 +5,7 @@
5
5
  <p class="p-lg my-6">
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
- <div class="grid grid-flow-col auto-cols-max gap-4">
8
+ <div class="grid grid-flow-col gap-4">
9
9
  <el-upload
10
10
  class="el-upload-container"
11
11
  drag
@@ -25,7 +25,12 @@
25
25
  </div>
26
26
  <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
27
27
  <p class="text-xs">
28
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
28
+ <code>
29
+ &lt;el-upload class=&quot;el-upload-container&quot; drag multiple&gt;&lt;i class=&quot;el-icon-upload&quot;&gt;&lt;/i&gt;&lt;div
30
+ class=&quot;el-upload__text&quot;&gt;&lt;span class=&quot;title&quot;&gt;Drop file here or&lt;/span&gt;&lt;span
31
+ class=&quot;description&quot;&gt;click to upload&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;el-upload__tip&quot;
32
+ slot=&quot;tip&quot;&gt;description&lt;/div&gt;&lt;/el-upload&gt;
33
+ </code>
29
34
  </p>
30
35
  </div>
31
36
  </section>
@@ -23,6 +23,7 @@
23
23
  <el-tab-pane label="Dialog" name="twenty"><ThemeDialog></ThemeDialog></el-tab-pane>
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
+ <el-tab-pane label="MessageBox" name="twenty-three"><ThemeMessageBox></ThemeMessageBox></el-tab-pane>
26
27
  </el-tabs>
27
28
  </div>
28
29
  </template>
@@ -0,0 +1,46 @@
1
+ <template>
2
+ <div class="pt-8 pb-16 flex gap-12 flex-col">
3
+ <section>
4
+ <h1>Confirm</h1>
5
+ <p class="p-lg-c my-6">
6
+ Confirm is used to ask users' confirmation. A set of modal boxes simulating system message box, mainly for alerting information, confirm
7
+ operations and prompting messages. By design MessageBox provides simulations of system's alert, confirm and prompt,so it's content should be
8
+ simple. For more complicated contents, please use Dialog.
9
+ </p>
10
+ <el-button type="primary" size="medium" class="outline" @click="open">Click to open Message Box</el-button>
11
+ <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
12
+ <p class="text-xs">
13
+ <code>&lt;el-button type=&quot;text&quot; @click=&quot;open&quot;&gt;Click to open Message Box&lt;/el-button&gt;</code>
14
+ </p>
15
+ </div>
16
+ </section>
17
+ </div>
18
+ </template>
19
+ <script>
20
+ import Vue from 'vue';
21
+
22
+ export default Vue.extend({
23
+ name: 'TimusMessageBox',
24
+ methods: {
25
+ open() {
26
+ this.$confirm('This will permanently delete the file. Continue?', 'Warning', {
27
+ confirmButtonText: 'OK',
28
+ cancelButtonText: 'Cancel',
29
+ type: 'warning',
30
+ })
31
+ .then(() => {
32
+ this.$message({
33
+ type: 'success',
34
+ message: 'Delete completed',
35
+ });
36
+ })
37
+ .catch(() => {
38
+ this.$message({
39
+ type: 'info',
40
+ message: 'Delete canceled',
41
+ });
42
+ });
43
+ },
44
+ },
45
+ });
46
+ </script>
@@ -5,7 +5,7 @@
5
5
  <p class="p-lg my-6">
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
- <div class="grid grid-flow-col auto-cols-max gap-4">
8
+ <div class="grid grid-flow-col gap-4">
9
9
  <el-upload
10
10
  class="el-upload-container"
11
11
  drag
@@ -25,7 +25,12 @@
25
25
  </div>
26
26
  <div class="my-4 p-4 border-l-4 border-blue-600 bg-blue-100">
27
27
  <p class="text-xs">
28
- <code>&lt;el-input placeholder="Please input" v-model="input"&gt;&lt;/el-input&gt;</code>
28
+ <code>
29
+ &lt;el-upload class=&quot;el-upload-container&quot; drag multiple&gt;&lt;i class=&quot;el-icon-upload&quot;&gt;&lt;/i&gt;&lt;div
30
+ class=&quot;el-upload__text&quot;&gt;&lt;span class=&quot;title&quot;&gt;Drop file here or&lt;/span&gt;&lt;span
31
+ class=&quot;description&quot;&gt;click to upload&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;el-upload__tip&quot;
32
+ slot=&quot;tip&quot;&gt;description&lt;/div&gt;&lt;/el-upload&gt;
33
+ </code>
29
34
  </p>
30
35
  </div>
31
36
  </section>
@@ -23,6 +23,7 @@
23
23
  <el-tab-pane label="Dialog" name="twenty"><ThemeDialog></ThemeDialog></el-tab-pane>
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
+ <el-tab-pane label="MessageBox" name="twenty-three"><ThemeMessageBox></ThemeMessageBox></el-tab-pane>
26
27
  </el-tabs>
27
28
  </div>
28
29
  </template>