Blame view

examples/routers/alert.vue 2.97 KB
a901da64   梁灏   optimize Alert style
1
  <template>
5d122b37   梁灏   support Alert
2
      <div>
27b03d14   梁灏   update Alert style
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
          <Alert>
              An info prompt
              <template slot="desc">Content of prompt. Content of prompt. Content of prompt. Content of prompt. </template>
          </Alert>
          <Alert type="success">
              A success prompt
              <template slot="desc">Content of prompt. Content of prompt. Content of prompt. Content of prompt. </template>
          </Alert>
          <Alert type="warning">
              A warning prompt
              <template slot="desc">
              Content of prompt. Content of prompt. Content of prompt.
          </template>
          </Alert>
          <Alert type="error">
              An error prompt
              <span slot="desc">
              Custom error description copywriting. <Icon type="help-circled" size="14"></Icon>
          </span>
          </Alert>
          <Alert type="info" show-icon closable>消息提示文案</Alert>
5d122b37   梁灏   support Alert
24
          <Alert type="success" show-icon>成功提示文案</Alert>
27b03d14   梁灏   update Alert style
25
          <Alert type="warning" show-icon>警告提示文案</Alert>
5d122b37   梁灏   support Alert
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
          <Alert type="error" show-icon>错误提示文案</Alert>
          <Alert show-icon>
              消息提示文案
              <template slot="desc">消息提示的描述文案消息提示的描述文案消息提示的描述文案消息提示的描述文案消息提示的描述文案</template>
          </Alert>
          <Alert type="success" show-icon>
              成功提示文案
              <span slot="desc">成功的提示描述文案成功的提示描述文案成功的提示描述文案成功的提示描述文案成功的提示描述文案</span>
          </Alert>
          <Alert type="warning" show-icon>
              警告提示文案
              <template slot="desc">
                  警告的提示描述文案警告的提示描述文案警告的提示描述文案
              </template>
          </Alert>
          <Alert type="error" show-icon>
              错误提示文案
              <span slot="desc">
a901da64   梁灏   optimize Alert style
44
45
              自定义错误描述文案。
          </span>
5d122b37   梁灏   support Alert
46
47
48
          </Alert>
          <Alert show-icon closable>
              自定义图标
0bee0493   梁灏   update Alert Icons
49
              <Icon type="ios-bulb-outline" slot="icon"></Icon>
5d122b37   梁灏   support Alert
50
51
              <template slot="desc">自定义图标文案自定义图标文案自定义图标文案自定义图标文案自定义图标文案</template>
          </Alert>
0bee0493   梁灏   update Alert Icons
52
53
          <Alert banner type="warning">Notice: notification contents...</Alert>
          <Alert banner closable type="warning">Notice: notification contents...</Alert>
eb9e2bd1   梁灏   update alert demo
54
55
56
57
58
59
60
61
62
          <Alert closable>An info prompt</Alert>
          <Alert type="success" show-icon closable>
              A success prompt
              <span slot="desc">Content of prompt. Content of prompt. Content of prompt. Content of prompt. </span>
          </Alert>
          <Alert type="warning" closable>
              Custom closing content
              <span slot="close">No longer prompt</span>
          </Alert>
5d122b37   梁灏   support Alert
63
      </div>
a901da64   梁灏   optimize Alert style
64
65
66
67
68
69
70
  </template>
  <script>
      import { Alert, Icon } from 'iview';
      export default {
          components: { Alert, Icon }
      }
  </script>