meixioacomponent 0.3.27 → 0.3.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.3.27",
3
+ "version": "0.3.28",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -11,63 +11,62 @@
11
11
  :event="event"
12
12
  @iconClick="iconClick"
13
13
  v-else-if="type == 'icon'"
14
- >
15
- </base-icon>
14
+ ></base-icon>
16
15
  </div>
17
16
  </el-badge>
18
17
  </template>
19
18
 
20
19
  <script>
21
- import baseImgVue from "../baseImg/baseImg.vue";
20
+ import baseImgVue from '../baseImg/baseImg.vue'
22
21
  export default {
23
- name: "baseAvatar",
22
+ name: 'baseAvatar',
24
23
  data() {
25
- return {};
24
+ return {}
26
25
  },
27
26
  components: { baseImgVue },
28
27
  props: {
29
28
  type: {
30
29
  type: String,
31
- default: "icon",
30
+ default: 'icon',
32
31
  },
33
32
  source: {
34
33
  type: String,
35
- default: "meixicomponenticon-user",
34
+ default: 'meixicomponenticon-user',
36
35
  },
37
36
  size: {
38
37
  type: String,
39
- default: "m",
38
+ default: 'm',
40
39
  },
41
40
  shape: {
42
41
  type: String,
43
- default: "cir",
42
+ default: 'cir',
44
43
  },
45
44
  view: {
46
45
  type: Boolean,
47
46
  default: false,
48
47
  },
49
48
  value: {},
50
- event:{
51
- type:Boolean,
52
- default:false,
49
+ event: {
50
+ type: Boolean,
51
+ default: false,
53
52
  },
54
53
  },
55
54
  computed: {
56
55
  module: {
57
56
  set(val) {
58
- this.$emit("input", val);
57
+ this.$emit('input', val)
59
58
  },
60
59
  get() {
61
- return this.$props.value;
60
+ return this.$props.value
62
61
  },
63
62
  },
64
63
  },
65
- methods:{
66
- iconClick(){
67
- this.$emit('iconClick');
68
- }
69
- }
70
- };
64
+ methods: {
65
+ iconClick() {
66
+ this.$emit('iconClick')
67
+ },
68
+ },
69
+ }
71
70
  </script>
72
71
 
73
72
  <style lang="less" scoped>
@@ -83,6 +82,11 @@ export default {
83
82
  font-weight: var(--font-weight-kg);
84
83
  }
85
84
  }
85
+ .xl {
86
+ width: 70px;
87
+ height: 70px;
88
+ font-size: var(--font-size-xl);
89
+ }
86
90
  .l {
87
91
  width: 50px;
88
92
  height: 50px;
@@ -5,39 +5,41 @@
5
5
  :size="size"
6
6
  :type="item.type"
7
7
  :plain="item.plain"
8
+ :loading="item.loading"
8
9
  :disabled="item.disabled"
9
10
  @click="handleClick(item)"
10
11
  v-for="(item, index) in config"
11
12
  >
12
- <i v-if="item.icon" :class="item.icon"></i> {{ item.text }}</el-button
13
- >
13
+ <i v-if="item.icon" :class="item.icon"></i>
14
+ {{ item.text }}
15
+ </el-button>
14
16
  </div>
15
17
  </template>
16
18
 
17
19
  <script>
18
20
  export default {
19
- name: "baseButtonHandle",
21
+ name: 'baseButtonHandle',
20
22
  data() {
21
- return {};
23
+ return {}
22
24
  },
23
25
  computed: {
24
26
  footerHandleClick() {
25
- let _align = this.$props.align;
27
+ let _align = this.$props.align
26
28
  return {
27
- "justify-content": _align == "center" ? "center" : `flex-${_align}`,
28
- };
29
+ 'justify-content': _align == 'center' ? 'center' : `flex-${_align}`,
30
+ }
29
31
  },
30
32
  },
31
33
  props: {
32
34
  /* button按钮的大小 */
33
35
  size: {
34
36
  type: String,
35
- default: "mini",
37
+ default: 'mini',
36
38
  },
37
39
  /* 按钮的方向 左,右,中间 */
38
40
  align: {
39
41
  type: String,
40
- default: "end",
42
+ default: 'end',
41
43
  },
42
44
 
43
45
  config: {
@@ -48,11 +50,11 @@ export default {
48
50
  methods: {
49
51
  handleClick(item) {
50
52
  if (item.click) {
51
- item.click();
53
+ item.click()
52
54
  }
53
55
  },
54
56
  },
55
- };
57
+ }
56
58
  </script>
57
59
 
58
60
  <style lang="less" scoped>
@@ -310,7 +310,6 @@ export default {
310
310
  checkValidate() {
311
311
  return new Promise((resolve, reject) => {
312
312
  this.$refs.form.validate((validate, Object) => {
313
- console.log(Object);
314
313
  // 滚动至未填写的项目中
315
314
  if (JSON.stringify(Object) != "{}") {
316
315
  this.scrollToItem(Object);
@@ -1,4 +1,173 @@
1
1
  <template>
2
+ <base-dialog
3
+ ref="dialog"
4
+ :modal="true"
5
+ :title="`验证邮箱`"
6
+ :isDestroy="true"
7
+ :appendToBody="true"
8
+ :contentHeight="`200px`"
9
+ @destroy="destroy"
10
+ >
11
+ <div class="dialog-content" slot="dialog-content">
12
+ <div class="verify-email-wrap">
13
+ <span class="des-text">
14
+ 请填写新的邮箱地址,邮箱填写完成后点击发送电子邮件,系统会发送一封邮件到新的邮箱地址,请输入邮件中的验证码验证您的邮箱。
15
+ </span>
16
+ <base-form
17
+ :footer="false"
18
+ :rules="rules"
19
+ :rowNumber="1"
20
+ ref="baseForm"
21
+ v-model="formList"
22
+ :labelWidth="`70px`"
23
+ :labelPosition="`left`"
24
+ @formSubmit="formSubmit"
25
+ >
26
+ <template v-slot:form-verifyCode="data">
27
+ <el-input
28
+ size="medium"
29
+ prefix-icon="el-icon-postcard"
30
+ v-model.number="data.scope[1].value"
31
+ >
32
+ <div class="code-button_wrap" slot="suffix">
33
+ <el-button
34
+ type="info"
35
+ size="mini"
36
+ slot="suffix"
37
+ :disabled="downButtonDisable"
38
+ @click="onHandleStartDown"
39
+ >
40
+ 获取验证码
41
+ </el-button>
42
+ </div>
43
+ </el-input>
44
+ </template>
45
+ </base-form>
46
+ </div>
47
+ </div>
48
+ <base-button-handle
49
+ slot="dialog-footer"
50
+ :size="`mini`"
51
+ :config="buttonConfig"
52
+ ></base-button-handle>
53
+ </base-dialog>
54
+ </template>
55
+
56
+ <script>
57
+ export default {
58
+ data() {
59
+ return {
60
+ formList: [],
61
+ downTriger: null,
62
+ downNumber: 120,
63
+ test: true,
64
+ rules: {
65
+ email: [
66
+ {
67
+ // validator: elementValidate.validateEmail,
68
+ required: true,
69
+ message: '请输入邮箱',
70
+ trigger: 'blur',
71
+ },
72
+ ],
73
+
74
+ verifyCode: [
75
+ {
76
+ required: true,
77
+ trigger: 'blur',
78
+ message: '请输入验证码',
79
+ },
80
+ ],
81
+ },
82
+ }
83
+ },
84
+
85
+ created() {
86
+ const { email } = this.$props
87
+ this.formList = [
88
+ {
89
+ value: email,
90
+ key: 'email',
91
+ type: 'input',
92
+ label: '邮箱',
93
+ },
94
+ {
95
+ value: '',
96
+ key: 'verifyCode',
97
+ type: 'template',
98
+ label: '验证码',
99
+ },
100
+ ]
101
+
102
+ setTimeout(() => {
103
+ this.test = false
104
+ }, 5000)
105
+ },
106
+ mounted() {
107
+ this.$refs.dialog.showDialog()
108
+ },
109
+ computed: {
110
+ downButtonDisable() {
111
+ return this.trigger || !this.formList[0].value
112
+ },
113
+ buttonConfig() {
114
+ return [
115
+ {
116
+ text: '发送验证码',
117
+ type: 'primary',
118
+ loading: this.test,
119
+ click: () => {
120
+ this.$refs.baseForm.onSubmit()
121
+ },
122
+ },
123
+ {
124
+ text: '取消验证',
125
+ type: 'info',
126
+ click: () => {},
127
+ },
128
+ ]
129
+ },
130
+ },
131
+ props: {
132
+ email: {},
133
+ },
134
+ methods: {
135
+ destroy() {
136
+ this.$destroy()
137
+ },
138
+ formSubmit() {
139
+ const result = this.$refs.baseForm.returnFormValue()
140
+ // submitAccountInfo(result).then((res) => {
141
+ console.log(result)
142
+ this.$message.success('操作成功')
143
+ // })
144
+ },
145
+ onHandleStartDown() {},
146
+ },
147
+ }
148
+ </script>
149
+
150
+ <style lang="less" scoped>
151
+ .verify-email-wrap {
152
+ width: 100%;
153
+ height: 200px;
154
+
155
+ .des-text {
156
+ display: inline-block;
157
+ margin-bottom: var(--margin-4);
158
+ color: var(--font-color-s);
159
+ font-size: var(--font-size-base);
160
+ }
161
+ .code-button_wrap {
162
+ top: 50%;
163
+ right: 0px;
164
+ position: absolute;
165
+ transform: translateY(-50%);
166
+ }
167
+ }
168
+ </style>
169
+
170
+ <!-- <template>
2
171
  <base-drawer
3
172
  :size="800"
4
173
  ref="drawer"
@@ -140,7 +309,7 @@ export default {
140
309
  padding: var(--padding-4);
141
310
  box-sizing: border-box;
142
311
  }
143
- </style>
312
+ </style> -->
144
313
 
145
314
  <!-- <template>
146
315
  <div class="page-table-wrap" ref="pageTableWrap">