haiwei-ui 1.0.3 → 1.0.5
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/README.md +10 -0
- package/package.json +1 -1
- package/packages/components/box/index.vue +116 -125
- package/packages/components/box-col/index.vue +30 -33
- package/packages/components/box-row/index.vue +17 -17
- package/packages/components/box-small/index.vue +38 -38
- package/packages/components/button/index.vue +29 -42
- package/packages/components/button-copy/index.vue +46 -62
- package/packages/components/button-delete/index.vue +64 -77
- package/packages/components/button-delete-batch/index.vue +82 -95
- package/packages/components/button-has/index.vue +29 -42
- package/packages/components/checkbox-group/index.vue +85 -85
- package/packages/components/color-picker/index.vue +41 -50
- package/packages/components/container/index.vue +8 -8
- package/packages/components/date-range-picker/index.vue +92 -103
- package/packages/components/details/index.vue +72 -79
- package/packages/components/dialog/index.vue +281 -294
- package/packages/components/drag-sort/index.vue +36 -36
- package/packages/components/drag-sort-dialog/index.vue +58 -58
- package/packages/components/drawer/index.vue +157 -166
- package/packages/components/enums/sex/index.vue +1 -1
- package/packages/components/flex/index.vue +33 -33
- package/packages/components/form/index.vue +123 -138
- package/packages/components/form-dialog/index.vue +184 -217
- package/packages/components/form-page/index.vue +134 -151
- package/packages/components/icon/index.vue +6 -6
- package/packages/components/icon-picker/index.vue +30 -30
- package/packages/components/icon-picker/panel.vue +58 -58
- package/packages/components/label/index.vue +22 -30
- package/packages/components/list/components/export/index.vue +101 -99
- package/packages/components/list/components/footer/index.vue +42 -51
- package/packages/components/list/components/header/index.vue +34 -34
- package/packages/components/list/components/querybar/index.vue +143 -143
- package/packages/components/list/components/select-column/index.vue +30 -30
- package/packages/components/list/components/table/index.vue +169 -188
- package/packages/components/list/index.vue +337 -391
- package/packages/components/list-agile/index.vue +145 -145
- package/packages/components/list-dialog/index.vue +70 -84
- package/packages/components/listbox/index.vue +48 -48
- package/packages/components/login-default/index.vue +107 -107
- package/packages/components/login-neon/index.vue +104 -104
- package/packages/components/map/index.vue +229 -229
- package/packages/components/map-coord-picking/index.vue +220 -219
- package/packages/components/map-search/index.vue +75 -72
- package/packages/components/scrollbar/index.vue +11 -11
- package/packages/components/select-whether/index.vue +30 -30
- package/packages/components/split/index.vue +141 -141
- package/packages/components/split/trigger.vue +15 -15
- package/packages/components/tabnav/index.vue +125 -89
- package/packages/components/tabs/index.vue +31 -31
- package/packages/components/toolbar/components/fullscreen/index.vue +10 -10
- package/packages/components/toolbar/components/logout/index.vue +13 -13
- package/packages/components/toolbar/components/skin-toggle/form.vue +59 -59
- package/packages/components/toolbar/components/skin-toggle/index.vue +12 -12
- package/packages/components/toolbar/components/userInfo/index.vue +18 -18
- package/packages/components/toolbar/index.vue +12 -12
- package/packages/components/tree-select/mixins.vue +261 -270
- package/packages/components/txt/index.vue +17 -17
- package/packages/components/update-password/index.vue +45 -57
- package/packages/layout.vue +18 -18
- package/packages/mixins/components/checkbox.vue +71 -82
- package/packages/mixins/components/radio.vue +69 -69
- package/packages/page/403/index.vue +32 -28
- package/packages/page/404/index.vue +32 -28
- package/packages/page/default/index.vue +17 -13
- package/packages/page/iframe/index.vue +6 -6
- package/packages/page/login/index.vue +9 -9
- package/packages/page/userInfo/index.vue +5 -5
- package/packages/router/index.js +1 -9
- package/packages/skins/pretty/components/header/components/breadcrumb/index.vue +29 -29
- package/packages/skins/pretty/components/header/components/theme/index.vue +22 -21
- package/packages/skins/pretty/components/header/index.vue +12 -12
- package/packages/skins/pretty/components/main/index.vue +27 -27
- package/packages/skins/pretty/components/menus/index.vue +28 -28
- package/packages/skins/pretty/components/menus/item.vue +23 -23
- package/packages/skins/pretty/components/sidebar/index.vue +7 -7
- package/packages/skins/pretty/index.vue +6 -6
- package/packages/skins/pretty/styles/themes/blue-light/_index.scss +2 -2
- package/packages/skins/pretty/styles/themes/default/_index.scss +1 -1
- package/packages/skins/pretty/styles/themes/green/_index.scss +2 -2
- package/packages/skins/pretty/styles/themes/green-light/_index.scss +2 -2
- package/packages/styles/_mixins.scss +24 -25
- package/packages/styles/animation/_index.scss +22 -23
- package/packages/styles/animation/breadcrumb.scss +6 -6
- package/packages/styles/animation/fade.scss +11 -11
- package/packages/styles/animation/move.scss +98 -98
- package/packages/styles/components/box-small/_index.scss +58 -58
- package/packages/styles/components/button/_index.scss +7 -7
- package/packages/styles/components/container/_index.scss +26 -26
- package/packages/styles/components/date-range-picker/_index.scss +4 -4
- package/packages/styles/components/details/_index.scss +66 -67
- package/packages/styles/components/details-dialog/_index.scss +13 -13
- package/packages/styles/components/drag-sort/_index.scss +20 -20
- package/packages/styles/components/drag-sort-dialog/_index.scss +7 -7
- package/packages/styles/components/flex/_index.scss +56 -56
- package/packages/styles/components/form-dialog/_index.scss +11 -11
- package/packages/styles/components/icon/_index.scss +6 -6
- package/packages/styles/components/label/_index.scss +245 -245
- package/packages/styles/components/listbox/_index.scss +47 -47
- package/packages/styles/components/split/_index.scss +102 -102
- package/packages/styles/components/toolbar/_index.scss +98 -98
- package/packages/styles/components/txt/_index.scss +13 -13
- package/packages/styles/components/upload-dialog/_index.scss +44 -44
- package/packages/styles/components/upload-multiple/_index.scss +19 -19
- package/packages/styles/components/upload-single/_index.scss +16 -16
- package/packages/utils/resize-event.js +3 -3
- package/packages/vuter/attributes.json +30 -40
- package/packages/vuter/tags.json +11 -27
- package/public/lib/font/iconfont.js +47 -1
|
@@ -17,24 +17,7 @@
|
|
|
17
17
|
|
|
18
18
|
<section class="nm-form-page-body">
|
|
19
19
|
<nm-scrollbar :horizontal="false">
|
|
20
|
-
<nm-form
|
|
21
|
-
class="nm-form-page-main"
|
|
22
|
-
ref="form"
|
|
23
|
-
no-loading
|
|
24
|
-
:model="model"
|
|
25
|
-
:rules="rules"
|
|
26
|
-
:action="action"
|
|
27
|
-
:label-width="labelWidth"
|
|
28
|
-
:label-position="labelPosition"
|
|
29
|
-
:customValidate="validate"
|
|
30
|
-
:success-msg="successMsg"
|
|
31
|
-
:success-msg-text="successMsgText"
|
|
32
|
-
:disabled="disabled"
|
|
33
|
-
:inline="inline"
|
|
34
|
-
:custom-reset-function="customResetFunction"
|
|
35
|
-
v-on="formOn"
|
|
36
|
-
@validate="onValidate"
|
|
37
|
-
>
|
|
20
|
+
<nm-form class="nm-form-page-main" ref="form" no-loading :model="model" :rules="rules" :action="action" :label-width="labelWidth" :label-position="labelPosition" :customValidate="validate" :success-msg="successMsg" :success-msg-text="successMsgText" :disabled="disabled" :inline="inline" :custom-reset-function="customResetFunction" v-on="formOn" @validate="onValidate">
|
|
38
21
|
<slot />
|
|
39
22
|
</nm-form>
|
|
40
23
|
</nm-scrollbar>
|
|
@@ -55,141 +38,141 @@
|
|
|
55
38
|
</nm-box>
|
|
56
39
|
</template>
|
|
57
40
|
<script>
|
|
58
|
-
export default {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
41
|
+
export default {
|
|
42
|
+
name: 'FormPage',
|
|
43
|
+
data() {
|
|
44
|
+
return {
|
|
45
|
+
loading: false,
|
|
46
|
+
formOn: {
|
|
47
|
+
success: this.onSuccess,
|
|
48
|
+
error: this.onError,
|
|
49
|
+
reset: this.onReset,
|
|
50
|
+
'validate-error': this.onValidateError
|
|
51
|
+
}
|
|
68
52
|
}
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
props: {
|
|
72
|
-
/** 显示头部 */
|
|
73
|
-
header: {
|
|
74
|
-
type: Boolean,
|
|
75
|
-
default: true
|
|
76
|
-
},
|
|
77
|
-
/** 标题 */
|
|
78
|
-
title: String,
|
|
79
|
-
/** box图标 */
|
|
80
|
-
icon: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: 'detail'
|
|
83
|
-
},
|
|
84
|
-
/** 表单 */
|
|
85
|
-
model: {
|
|
86
|
-
type: Object,
|
|
87
|
-
required: true
|
|
88
|
-
},
|
|
89
|
-
/** 验证规则 */
|
|
90
|
-
rules: Object,
|
|
91
|
-
/** 提交请求 */
|
|
92
|
-
action: {
|
|
93
|
-
type: Function,
|
|
94
|
-
required: true
|
|
95
|
-
},
|
|
96
|
-
/** 行内表单 */
|
|
97
|
-
inline: Boolean,
|
|
98
|
-
/** 标签的宽度 */
|
|
99
|
-
labelWidth: String,
|
|
100
|
-
/** 表单域标签的位置,如果值为 left 或者 right 时,则需要设置 label-width */
|
|
101
|
-
labelPosition: String,
|
|
102
|
-
// 自定义验证
|
|
103
|
-
validate: Function,
|
|
104
|
-
/** 是否显示成功提示消息 */
|
|
105
|
-
successMsg: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
default: true
|
|
108
|
-
},
|
|
109
|
-
/** 成功提示消息文本 */
|
|
110
|
-
successMsgText: {
|
|
111
|
-
type: String,
|
|
112
|
-
default: '保存成功'
|
|
113
|
-
},
|
|
114
|
-
/** Ok按钮 */
|
|
115
|
-
btnOk: {
|
|
116
|
-
type: Boolean,
|
|
117
|
-
default: true
|
|
118
|
-
},
|
|
119
|
-
/** Ok按钮文本 */
|
|
120
|
-
btnOkText: {
|
|
121
|
-
type: String,
|
|
122
|
-
default: '保存'
|
|
123
|
-
},
|
|
124
|
-
/** Ok按钮类型 */
|
|
125
|
-
btnOkType: {
|
|
126
|
-
type: String,
|
|
127
|
-
default: 'primary'
|
|
128
|
-
},
|
|
129
|
-
/** reset按钮 */
|
|
130
|
-
btnReset: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
default: true
|
|
133
|
-
},
|
|
134
|
-
/** 自定义重置操作 */
|
|
135
|
-
customResetFunction: Function,
|
|
136
|
-
/** 是否显示全屏按钮 */
|
|
137
|
-
fullscreen: {
|
|
138
|
-
type: Boolean,
|
|
139
|
-
default: true
|
|
140
53
|
},
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
54
|
+
props: {
|
|
55
|
+
/** 显示头部 */
|
|
56
|
+
header: {
|
|
57
|
+
type: Boolean,
|
|
58
|
+
default: true
|
|
59
|
+
},
|
|
60
|
+
/** 标题 */
|
|
61
|
+
title: String,
|
|
62
|
+
/** box图标 */
|
|
63
|
+
icon: {
|
|
64
|
+
type: String,
|
|
65
|
+
default: 'detail'
|
|
66
|
+
},
|
|
67
|
+
/** 表单 */
|
|
68
|
+
model: {
|
|
69
|
+
type: Object,
|
|
70
|
+
required: true
|
|
71
|
+
},
|
|
72
|
+
/** 验证规则 */
|
|
73
|
+
rules: Object,
|
|
74
|
+
/** 提交请求 */
|
|
75
|
+
action: {
|
|
76
|
+
type: Function,
|
|
77
|
+
required: true
|
|
78
|
+
},
|
|
79
|
+
/** 行内表单 */
|
|
80
|
+
inline: Boolean,
|
|
81
|
+
/** 标签的宽度 */
|
|
82
|
+
labelWidth: String,
|
|
83
|
+
/** 表单域标签的位置,如果值为 left 或者 right 时,则需要设置 label-width */
|
|
84
|
+
labelPosition: String,
|
|
85
|
+
// 自定义验证
|
|
86
|
+
validate: Function,
|
|
87
|
+
/** 是否显示成功提示消息 */
|
|
88
|
+
successMsg: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
91
|
+
},
|
|
92
|
+
/** 成功提示消息文本 */
|
|
93
|
+
successMsgText: {
|
|
94
|
+
type: String,
|
|
95
|
+
default: '保存成功'
|
|
96
|
+
},
|
|
97
|
+
/** Ok按钮 */
|
|
98
|
+
btnOk: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: true
|
|
101
|
+
},
|
|
102
|
+
/** Ok按钮文本 */
|
|
103
|
+
btnOkText: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: '保存'
|
|
106
|
+
},
|
|
107
|
+
/** Ok按钮类型 */
|
|
108
|
+
btnOkType: {
|
|
109
|
+
type: String,
|
|
110
|
+
default: 'primary'
|
|
111
|
+
},
|
|
112
|
+
/** reset按钮 */
|
|
113
|
+
btnReset: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: true
|
|
116
|
+
},
|
|
117
|
+
/** 自定义重置操作 */
|
|
118
|
+
customResetFunction: Function,
|
|
119
|
+
/** 是否显示全屏按钮 */
|
|
120
|
+
fullscreen: {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: true
|
|
123
|
+
},
|
|
124
|
+
/** 禁用表单 */
|
|
125
|
+
disabled: Boolean,
|
|
126
|
+
/**不显示底部 */
|
|
127
|
+
noFooter: Boolean,
|
|
128
|
+
/**不显示加载动画 */
|
|
129
|
+
noLoading: Boolean
|
|
130
|
+
},
|
|
131
|
+
methods: {
|
|
132
|
+
/** 提交 */
|
|
133
|
+
submit() {
|
|
134
|
+
this.loading = true
|
|
135
|
+
this.$refs.form.submit()
|
|
136
|
+
},
|
|
137
|
+
/** 重置 */
|
|
138
|
+
reset() {
|
|
139
|
+
this.$nextTick(() => {
|
|
140
|
+
this.$refs.form.reset()
|
|
141
|
+
})
|
|
142
|
+
},
|
|
143
|
+
/** 清除验证信息 */
|
|
144
|
+
clearValidate() {
|
|
145
|
+
this.$refs.form.clearValidate()
|
|
146
|
+
},
|
|
147
|
+
/** 打开loading */
|
|
148
|
+
openLoading() {
|
|
149
|
+
this.loading = true
|
|
150
|
+
this.$refs.form.openLoading()
|
|
151
|
+
},
|
|
152
|
+
/** 关闭loading */
|
|
153
|
+
closeLoading() {
|
|
154
|
+
this.loading = false
|
|
155
|
+
this.$refs.form.closeLoading()
|
|
156
|
+
},
|
|
157
|
+
// 成功
|
|
158
|
+
onSuccess(data) {
|
|
159
|
+
this.loading = false
|
|
160
|
+
this.$emit('success', data)
|
|
161
|
+
},
|
|
162
|
+
onReset() {
|
|
163
|
+
this.$emit('reset')
|
|
164
|
+
},
|
|
165
|
+
onError() {
|
|
166
|
+
this.loading = false
|
|
167
|
+
this.$emit('error')
|
|
168
|
+
},
|
|
169
|
+
onValidateError() {
|
|
170
|
+
this.loading = false
|
|
171
|
+
this.$emit('validate-error')
|
|
172
|
+
},
|
|
173
|
+
onValidate(prop, valid, msg) {
|
|
174
|
+
this.$emit('validate', prop, valid, msg)
|
|
175
|
+
}
|
|
192
176
|
}
|
|
193
177
|
}
|
|
194
|
-
}
|
|
195
178
|
</script>
|
|
@@ -14,39 +14,39 @@
|
|
|
14
14
|
</section>
|
|
15
15
|
</template>
|
|
16
16
|
<script>
|
|
17
|
-
import Panel from './panel'
|
|
18
|
-
export default {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
methods: {
|
|
32
|
-
onChange(val) {
|
|
33
|
-
this.$emit('input', val)
|
|
17
|
+
import Panel from './panel'
|
|
18
|
+
export default {
|
|
19
|
+
name: 'IconPicker',
|
|
20
|
+
components: { Panel },
|
|
21
|
+
data() {
|
|
22
|
+
return {
|
|
23
|
+
icon: this.value,
|
|
24
|
+
panelVisible: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
value: String,
|
|
29
|
+
placeholder: String
|
|
34
30
|
},
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
this
|
|
38
|
-
|
|
31
|
+
methods: {
|
|
32
|
+
onChange(val) {
|
|
33
|
+
this.$emit('input', val)
|
|
34
|
+
},
|
|
35
|
+
onSelect(icon) {
|
|
36
|
+
if (icon !== '') {
|
|
37
|
+
this.icon = icon
|
|
38
|
+
this.onChange(icon)
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
reset() {
|
|
42
|
+
this.icon = ''
|
|
43
|
+
this.onChange('')
|
|
39
44
|
}
|
|
40
45
|
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
},
|
|
46
|
-
watch: {
|
|
47
|
-
value() {
|
|
48
|
-
if (this.icon !== this.value) this.icon = this.value
|
|
46
|
+
watch: {
|
|
47
|
+
value() {
|
|
48
|
+
if (this.icon !== this.value) this.icon = this.value
|
|
49
|
+
}
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
}
|
|
52
52
|
</script>
|
|
@@ -13,69 +13,69 @@
|
|
|
13
13
|
</nm-dialog>
|
|
14
14
|
</template>
|
|
15
15
|
<script>
|
|
16
|
-
import visible from '../../mixins/components/visible.js'
|
|
17
|
-
export default {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
computed: {
|
|
39
|
-
filterList() {
|
|
40
|
-
if (!this.filter) {
|
|
41
|
-
return this.list
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
let list = []
|
|
45
|
-
this.list.forEach(icon => {
|
|
46
|
-
if (icon.indexOf(this.filter) > -1 || icon.indexOf(this.filter) > -1) {
|
|
47
|
-
list.push(icon)
|
|
16
|
+
import visible from '../../mixins/components/visible.js'
|
|
17
|
+
export default {
|
|
18
|
+
mixins: [visible],
|
|
19
|
+
data() {
|
|
20
|
+
return {
|
|
21
|
+
list: [],
|
|
22
|
+
filter: '',
|
|
23
|
+
dialog: {
|
|
24
|
+
title: '选择图标',
|
|
25
|
+
icon: 'list',
|
|
26
|
+
height: '60%',
|
|
27
|
+
width: '600px',
|
|
28
|
+
fullscreen: true
|
|
29
|
+
},
|
|
30
|
+
dialogOn: {
|
|
31
|
+
open: this.onOpen,
|
|
32
|
+
opened: this.onOpened,
|
|
33
|
+
close: this.onClose,
|
|
34
|
+
closed: this.onClosed
|
|
48
35
|
}
|
|
49
|
-
}
|
|
50
|
-
return list
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
methods: {
|
|
54
|
-
onSelect(icon) {
|
|
55
|
-
this.$emit('success', icon)
|
|
56
|
-
this.hide()
|
|
36
|
+
}
|
|
57
37
|
},
|
|
58
|
-
|
|
59
|
-
|
|
38
|
+
computed: {
|
|
39
|
+
filterList() {
|
|
40
|
+
if (!this.filter) {
|
|
41
|
+
return this.list
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
let list = []
|
|
45
|
+
this.list.forEach(icon => {
|
|
46
|
+
if (icon.indexOf(this.filter) > -1 || icon.indexOf(this.filter) > -1) {
|
|
47
|
+
list.push(icon)
|
|
48
|
+
}
|
|
49
|
+
})
|
|
50
|
+
return list
|
|
51
|
+
}
|
|
60
52
|
},
|
|
61
|
-
|
|
62
|
-
|
|
53
|
+
methods: {
|
|
54
|
+
onSelect(icon) {
|
|
55
|
+
this.$emit('success', icon)
|
|
56
|
+
this.hide()
|
|
57
|
+
},
|
|
58
|
+
onOpen() {
|
|
59
|
+
this.$emit('open')
|
|
60
|
+
},
|
|
61
|
+
onOpened() {
|
|
62
|
+
this.$emit('opened')
|
|
63
|
+
},
|
|
64
|
+
onClose() {
|
|
65
|
+
this.$emit('close')
|
|
66
|
+
},
|
|
67
|
+
onClosed() {
|
|
68
|
+
this.$emit('closed')
|
|
69
|
+
}
|
|
63
70
|
},
|
|
64
|
-
|
|
65
|
-
|
|
71
|
+
created() {
|
|
72
|
+
var symbols = document.querySelectorAll('body>svg>symbol')
|
|
73
|
+
symbols.forEach(m => {
|
|
74
|
+
this.list.push(m.id.replace('icon-', ''))
|
|
75
|
+
})
|
|
66
76
|
},
|
|
67
|
-
|
|
68
|
-
this
|
|
77
|
+
destroyed() {
|
|
78
|
+
this.list = null
|
|
69
79
|
}
|
|
70
|
-
},
|
|
71
|
-
created() {
|
|
72
|
-
var symbols = document.querySelectorAll('body>svg>symbol')
|
|
73
|
-
symbols.forEach(m => {
|
|
74
|
-
this.list.push(m.id.replace('icon-', ''))
|
|
75
|
-
})
|
|
76
|
-
},
|
|
77
|
-
destroyed() {
|
|
78
|
-
this.list = null
|
|
79
80
|
}
|
|
80
|
-
}
|
|
81
81
|
</script>
|
|
@@ -4,36 +4,28 @@
|
|
|
4
4
|
</span>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
export default {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
this.type ? `nm-label-${this.type}` : '',
|
|
30
|
-
this.arrowed ? 'arrowed' : '',
|
|
31
|
-
this.arrowedIn ? 'arrowed-in' : '',
|
|
32
|
-
this.arrowedRight ? 'arrowed-right' : '',
|
|
33
|
-
this.arrowedRightIn ? 'arrowed-right-in' : '',
|
|
34
|
-
this.size || this.fontSize
|
|
35
|
-
]
|
|
7
|
+
export default {
|
|
8
|
+
name: 'Label',
|
|
9
|
+
props: {
|
|
10
|
+
/** 显示文本 */
|
|
11
|
+
text: String,
|
|
12
|
+
/** 类型 */
|
|
13
|
+
type: String,
|
|
14
|
+
/** 左边箭头 */
|
|
15
|
+
arrowed: Boolean,
|
|
16
|
+
/** 左侧内箭头 */
|
|
17
|
+
arrowedIn: Boolean,
|
|
18
|
+
/** 右侧箭头 */
|
|
19
|
+
arrowedRight: Boolean,
|
|
20
|
+
/** 右侧内箭头 */
|
|
21
|
+
arrowedRightIn: Boolean,
|
|
22
|
+
/** 尺寸 */
|
|
23
|
+
size: String
|
|
24
|
+
},
|
|
25
|
+
computed: {
|
|
26
|
+
class_() {
|
|
27
|
+
return ['nm-label', this.type ? `nm-label-${this.type}` : '', this.arrowed ? 'arrowed' : '', this.arrowedIn ? 'arrowed-in' : '', this.arrowedRight ? 'arrowed-right' : '', this.arrowedRightIn ? 'arrowed-right-in' : '', this.size || this.fontSize]
|
|
28
|
+
}
|
|
36
29
|
}
|
|
37
30
|
}
|
|
38
|
-
}
|
|
39
31
|
</script>
|