haiwei-ui 1.0.2 → 1.0.3
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/.prettierrc +6 -4
- package/package.json +1 -1
- package/packages/components/list/components/querybar/index.vue +32 -11
- package/packages/components/list/index.vue +9 -14
- package/src/api/config.js +1 -1
- package/src/components/code-preview/index.vue +56 -56
- package/src/components/tmpl/components/attributes/index.vue +3 -3
- package/src/components/tmpl/components/events/index.vue +3 -3
- package/src/components/tmpl/components/methods/index.vue +3 -3
- package/src/components/tmpl/components/slots/index.vue +3 -3
- package/src/components/tmpl/index.vue +42 -42
- package/src/style/element-ui.scss +4 -4
- package/src/views/components/advanced/details/_index/index.vue +16 -16
- package/src/views/components/advanced/details/demo1/demo.vue +42 -42
- package/src/views/components/advanced/details/demo1/index.vue +11 -11
- package/src/views/components/advanced/drag-sort/_index/index.vue +16 -16
- package/src/views/components/advanced/drag-sort/demo1/demo.vue +18 -18
- package/src/views/components/advanced/drag-sort/demo1/index.vue +11 -11
- package/src/views/components/advanced/drag-sort-dialog/_index/index.vue +16 -16
- package/src/views/components/advanced/drag-sort-dialog/demo1/demo.vue +24 -24
- package/src/views/components/advanced/drag-sort-dialog/demo1/index.vue +11 -11
- package/src/views/components/advanced/list/_index/index.vue +21 -21
- package/src/views/components/advanced/list/demo1/demo.vue +65 -65
- package/src/views/components/advanced/list/demo1/index.vue +11 -11
- package/src/views/components/advanced/list/demo2/demo.vue +52 -52
- package/src/views/components/advanced/list/demo2/index.vue +11 -11
- package/src/views/components/advanced/list/demo4/demo.vue +28 -28
- package/src/views/components/advanced/list/demo4/index.vue +11 -11
- package/src/views/components/advanced/list-dialog/_index/index.vue +21 -21
- package/src/views/components/advanced/list-dialog/demo1/demo.vue +48 -48
- package/src/views/components/advanced/list-dialog/demo1/index.vue +11 -11
- package/src/views/components/advanced/listbox/_index/index.vue +19 -19
- package/src/views/components/advanced/listbox/demo1/demo.vue +47 -47
- package/src/views/components/advanced/listbox/demo1/index.vue +11 -11
- package/src/views/components/base/box/_index/index.vue +22 -28
- package/src/views/components/base/box/demo1/index.vue +11 -11
- package/src/views/components/base/box/demo2/index.vue +11 -11
- package/src/views/components/base/box/demo3/demo.vue +15 -15
- package/src/views/components/base/box/demo3/index.vue +11 -11
- package/src/views/components/base/box/demo4/demo.vue +18 -24
- package/src/views/components/base/box/demo4/index.vue +11 -11
- package/src/views/components/base/box-col/_index/index.vue +17 -17
- package/src/views/components/base/box-col/demo1/index.vue +11 -11
- package/src/views/components/base/box-row/_index/index.vue +17 -17
- package/src/views/components/base/box-row/demo1/index.vue +11 -11
- package/src/views/components/base/box-small/_index/index.vue +17 -17
- package/src/views/components/base/box-small/demo1/demo.vue +30 -30
- package/src/views/components/base/box-small/demo1/index.vue +11 -11
- package/src/views/components/base/button/_index/index.vue +18 -18
- package/src/views/components/base/button/demo1/index.vue +11 -11
- package/src/views/components/base/button/demo2/demo.vue +53 -48
- package/src/views/components/base/button/demo2/index.vue +11 -11
- package/src/views/components/base/container/_index/index.vue +15 -15
- package/src/views/components/base/dialog/_index/index.vue +20 -20
- package/src/views/components/base/dialog/demo1/demo.vue +37 -37
- package/src/views/components/base/dialog/demo1/index.vue +11 -11
- package/src/views/components/base/drawer/_index/index.vue +18 -18
- package/src/views/components/base/drawer/demo1/demo.vue +8 -8
- package/src/views/components/base/drawer/demo1/index.vue +11 -11
- package/src/views/components/base/flex/_index/index.vue +17 -17
- package/src/views/components/base/flex/demo1/demo.vue +6 -6
- package/src/views/components/base/flex/demo1/index.vue +14 -14
- package/src/views/components/base/label/_index/index.vue +17 -17
- package/src/views/components/base/label/demo1/index.vue +14 -14
- package/src/views/components/base/scrollbar/_index/index.vue +17 -17
- package/src/views/components/base/scrollbar/demo1/demo.vue +47 -47
- package/src/views/components/base/scrollbar/demo1/index.vue +11 -11
- package/src/views/components/base/split/_index/index.vue +17 -17
- package/src/views/components/base/split/demo1/demo.vue +6 -6
- package/src/views/components/base/split/demo1/index.vue +11 -11
- package/src/views/components/base/tabs/_index/index.vue +21 -21
- package/src/views/components/base/tabs/demo1/demo.vue +47 -47
- package/src/views/components/base/tabs/demo1/index.vue +14 -14
- package/src/views/components/base/txt/_index/index.vue +17 -17
- package/src/views/components/base/txt/demo1/index.vue +14 -14
- package/src/views/components/form/checkbox-group/_index/index.vue +20 -20
- package/src/views/components/form/checkbox-group/demo1/demo.vue +35 -35
- package/src/views/components/form/checkbox-group/demo1/index.vue +11 -11
- package/src/views/components/form/color-picker/_index/index.vue +16 -16
- package/src/views/components/form/color-picker/demo1/demo.vue +10 -10
- package/src/views/components/form/color-picker/demo1/index.vue +11 -11
- package/src/views/components/form/date-range-picker/_index/index.vue +17 -17
- package/src/views/components/form/date-range-picker/demo1/demo.vue +21 -21
- package/src/views/components/form/date-range-picker/demo1/index.vue +11 -11
- package/src/views/components/form/form/_index/index.vue +18 -18
- package/src/views/components/form/form/demo1/demo.vue +33 -33
- package/src/views/components/form/form/demo1/index.vue +11 -11
- package/src/views/components/form/form-dialog/_index/index.vue +18 -18
- package/src/views/components/form/form-dialog/demo1/demo.vue +39 -39
- package/src/views/components/form/form-dialog/demo1/index.vue +14 -14
- package/src/views/components/form/form-page/_index/index.vue +18 -18
- package/src/views/components/form/form-page/demo1/demo.vue +19 -19
- package/src/views/components/form/form-page/demo1/index.vue +11 -11
- package/src/views/components/form/icon-picker/_index/index.vue +18 -17
- package/src/views/components/form/icon-picker/demo1/demo.vue +20 -20
- package/src/views/components/form/icon-picker/demo1/index.vue +11 -11
- package/src/views/components/form/select/_index/index.vue +19 -19
- package/src/views/components/form/select/demo1/demo.vue +39 -39
- package/src/views/components/form/select/demo1/index.vue +11 -11
- package/src/views/components/form/select/demo2/index.vue +6 -6
- package/src/views/components/map/map-coord-picking/_index/index.vue +22 -22
- package/src/views/components/map/map-coord-picking/demo1/demo.vue +23 -23
- package/src/views/components/map/map-coord-picking/demo1/index.vue +11 -11
- package/src/views/run/index.vue +37 -37
- package/vue.config.js +1 -1
|
@@ -4,28 +4,28 @@
|
|
|
4
4
|
</nm-tmpl>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
import page from './page.js'
|
|
8
|
-
import attrs from './data/attrs.js'
|
|
9
|
-
import slots from './data/slots.js'
|
|
10
|
-
import methods from './data/methods.js'
|
|
11
|
-
import events from './data/events.js'
|
|
12
|
-
export default {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
7
|
+
import page from './page.js'
|
|
8
|
+
import attrs from './data/attrs.js'
|
|
9
|
+
import slots from './data/slots.js'
|
|
10
|
+
import methods from './data/methods.js'
|
|
11
|
+
import events from './data/events.js'
|
|
12
|
+
export default {
|
|
13
|
+
name: page.name,
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
val: '',
|
|
17
|
+
tmpl: {
|
|
18
|
+
title: '列表页对话框(nm-list-dialog)',
|
|
19
|
+
icon: 'list',
|
|
20
|
+
attrs,
|
|
21
|
+
slots,
|
|
22
|
+
methods,
|
|
23
|
+
events
|
|
24
|
+
}
|
|
24
25
|
}
|
|
26
|
+
},
|
|
27
|
+
created() {
|
|
28
|
+
this.setTabName(this.tmpl.title)
|
|
25
29
|
}
|
|
26
|
-
},
|
|
27
|
-
created() {
|
|
28
|
-
this.setTabName(this.tmpl.title)
|
|
29
30
|
}
|
|
30
|
-
}
|
|
31
31
|
</script>
|
|
@@ -18,58 +18,58 @@
|
|
|
18
18
|
</nm-box>
|
|
19
19
|
</template>
|
|
20
20
|
<script>
|
|
21
|
-
export default {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
},
|
|
31
|
-
list: {
|
|
32
|
-
noHeader: true,
|
|
33
|
-
action: this.query,
|
|
34
|
-
model: {
|
|
35
|
-
name: ''
|
|
21
|
+
export default {
|
|
22
|
+
data() {
|
|
23
|
+
return {
|
|
24
|
+
show: false,
|
|
25
|
+
dialog: {
|
|
26
|
+
title: '列表页对话框示例',
|
|
27
|
+
icon: 'list',
|
|
28
|
+
width: '80%',
|
|
29
|
+
height: '80%'
|
|
36
30
|
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
name: 'name',
|
|
45
|
-
label: '姓名'
|
|
31
|
+
list: {
|
|
32
|
+
noHeader: true,
|
|
33
|
+
action: this.query,
|
|
34
|
+
model: {
|
|
35
|
+
name: ''
|
|
46
36
|
},
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
cols: [
|
|
38
|
+
{
|
|
39
|
+
name: 'id',
|
|
40
|
+
label: '编号',
|
|
41
|
+
show: false
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'name',
|
|
45
|
+
label: '姓名'
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: 'age',
|
|
49
|
+
label: '年龄'
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
52
53
|
}
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
methods: {
|
|
56
|
-
query() {
|
|
57
|
-
const rows = [
|
|
58
|
-
{ id: 1, name: '张三', age: 22 },
|
|
59
|
-
{ id: 2, name: '李四', age: 26 },
|
|
60
|
-
{ id: 3, name: '王五', age: 26 }
|
|
61
|
-
]
|
|
62
|
-
return new Promise(resolve => {
|
|
63
|
-
resolve({
|
|
64
|
-
rows,
|
|
65
|
-
total: 3
|
|
66
|
-
})
|
|
67
|
-
})
|
|
68
54
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
55
|
+
methods: {
|
|
56
|
+
query() {
|
|
57
|
+
const rows = [
|
|
58
|
+
{ id: 1, name: '张三', age: 22 },
|
|
59
|
+
{ id: 2, name: '李四', age: 26 },
|
|
60
|
+
{ id: 3, name: '王五', age: 26 }
|
|
61
|
+
]
|
|
62
|
+
return new Promise(resolve => {
|
|
63
|
+
resolve({
|
|
64
|
+
rows,
|
|
65
|
+
total: 3
|
|
66
|
+
})
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
remove() {},
|
|
70
|
+
onSuccess() {
|
|
71
|
+
this.query()
|
|
72
|
+
}
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
}
|
|
75
75
|
</script>
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
</nm-container>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import page from './page.js'
|
|
9
|
-
import Demo from './demo'
|
|
10
|
-
import code from '!!raw-loader!./demo'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
components: { Demo },
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
timer: null,
|
|
17
|
+
code
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
21
|
</script>
|
|
@@ -2,26 +2,26 @@
|
|
|
2
2
|
<nm-tmpl v-bind="tmpl"></nm-tmpl>
|
|
3
3
|
</template>
|
|
4
4
|
<script>
|
|
5
|
-
import page from './page.js'
|
|
6
|
-
import attrs from './data/attrs.js'
|
|
7
|
-
import slots from './data/slots.js'
|
|
8
|
-
import events from './data/events.js'
|
|
9
|
-
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
5
|
+
import page from './page.js'
|
|
6
|
+
import attrs from './data/attrs.js'
|
|
7
|
+
import slots from './data/slots.js'
|
|
8
|
+
import events from './data/events.js'
|
|
9
|
+
export default {
|
|
10
|
+
name: page.name,
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
val: '',
|
|
14
|
+
tmpl: {
|
|
15
|
+
title: '列表框(nm-listbox)',
|
|
16
|
+
icon: 'list',
|
|
17
|
+
attrs,
|
|
18
|
+
slots,
|
|
19
|
+
events
|
|
20
|
+
}
|
|
20
21
|
}
|
|
22
|
+
},
|
|
23
|
+
created() {
|
|
24
|
+
this.setTabName(this.tmpl.title)
|
|
21
25
|
}
|
|
22
|
-
},
|
|
23
|
-
created() {
|
|
24
|
-
this.setTabName(this.tmpl.title)
|
|
25
26
|
}
|
|
26
|
-
}
|
|
27
27
|
</script>
|
|
@@ -19,56 +19,56 @@
|
|
|
19
19
|
</nm-split>
|
|
20
20
|
</template>
|
|
21
21
|
<script>
|
|
22
|
-
export default {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
cols: [
|
|
35
|
-
{
|
|
36
|
-
name: 'id',
|
|
37
|
-
label: '编号',
|
|
38
|
-
show: false
|
|
22
|
+
export default {
|
|
23
|
+
data() {
|
|
24
|
+
return {
|
|
25
|
+
split: 0.3,
|
|
26
|
+
listbox: [],
|
|
27
|
+
list: {
|
|
28
|
+
title: '用户列表',
|
|
29
|
+
icon: 'list',
|
|
30
|
+
action: this.query,
|
|
31
|
+
model: {
|
|
32
|
+
name: ''
|
|
39
33
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
cols: [
|
|
35
|
+
{
|
|
36
|
+
name: 'id',
|
|
37
|
+
label: '编号',
|
|
38
|
+
show: false
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
name: 'name',
|
|
42
|
+
label: '姓名'
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
name: 'age',
|
|
46
|
+
label: '年龄'
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
}
|
|
49
50
|
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
query() {
|
|
54
|
-
const rows = [
|
|
55
|
-
{ id: 1, name: '张三', age: 22 },
|
|
56
|
-
{ id: 2, name: '李四', age: 26 },
|
|
57
|
-
{ id: 3, name: '王五', age: 26 }
|
|
58
|
-
]
|
|
59
|
-
return new Promise(resolve => {
|
|
60
|
-
resolve({
|
|
61
|
-
rows,
|
|
62
|
-
total: 3
|
|
63
|
-
})
|
|
64
|
-
})
|
|
65
51
|
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
52
|
+
methods: {
|
|
53
|
+
query() {
|
|
54
|
+
const rows = [
|
|
55
|
+
{ id: 1, name: '张三', age: 22 },
|
|
56
|
+
{ id: 2, name: '李四', age: 26 },
|
|
57
|
+
{ id: 3, name: '王五', age: 26 }
|
|
58
|
+
]
|
|
59
|
+
return new Promise(resolve => {
|
|
60
|
+
resolve({
|
|
61
|
+
rows,
|
|
62
|
+
total: 3
|
|
63
|
+
})
|
|
64
|
+
})
|
|
65
|
+
},
|
|
66
|
+
onSelect(row) {
|
|
67
|
+
this.listbox.push({
|
|
68
|
+
label: row.name,
|
|
69
|
+
value: row.id
|
|
70
|
+
})
|
|
71
|
+
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
}
|
|
74
74
|
</script>
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
</nm-container>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import page from './page.js'
|
|
9
|
-
import Demo from './demo'
|
|
10
|
-
import code from '!!raw-loader!./demo'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
components: { Demo },
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
timer: null,
|
|
17
|
+
code
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
21
|
</script>
|
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nm-tmpl v-bind="tmpl">
|
|
3
|
-
<el-alert
|
|
4
|
-
title="盒子的滚动条"
|
|
5
|
-
type="warning"
|
|
6
|
-
description="如果设置了no-scrollbar属性为true,则始终不显示滚动条,反之,如果设置了height或者page属性,则显示滚动条"
|
|
7
|
-
show-icon
|
|
8
|
-
:closable="false"
|
|
9
|
-
></el-alert>
|
|
3
|
+
<el-alert title="盒子的滚动条" type="warning" description="如果设置了no-scrollbar属性为true,则始终不显示滚动条,反之,如果设置了height或者page属性,则显示滚动条" show-icon :closable="false"></el-alert>
|
|
10
4
|
</nm-tmpl>
|
|
11
5
|
</template>
|
|
12
6
|
<script>
|
|
13
|
-
import page from './page.js'
|
|
14
|
-
import attrs from './data/attrs.js'
|
|
15
|
-
import slots from './data/slots.js'
|
|
16
|
-
import methods from './data/methods.js'
|
|
17
|
-
import events from './data/events.js'
|
|
18
|
-
export default {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
7
|
+
import page from './page.js'
|
|
8
|
+
import attrs from './data/attrs.js'
|
|
9
|
+
import slots from './data/slots.js'
|
|
10
|
+
import methods from './data/methods.js'
|
|
11
|
+
import events from './data/events.js'
|
|
12
|
+
export default {
|
|
13
|
+
name: page.name,
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
val: '',
|
|
17
|
+
tmpl: {
|
|
18
|
+
title: '盒子(nm-box)',
|
|
19
|
+
icon: 'card',
|
|
20
|
+
attrs,
|
|
21
|
+
slots,
|
|
22
|
+
methods,
|
|
23
|
+
events
|
|
24
|
+
}
|
|
30
25
|
}
|
|
26
|
+
},
|
|
27
|
+
created() {
|
|
28
|
+
this.setTabName(this.tmpl.title)
|
|
31
29
|
}
|
|
32
|
-
},
|
|
33
|
-
created() {
|
|
34
|
-
this.setTabName(this.tmpl.title)
|
|
35
30
|
}
|
|
36
|
-
}
|
|
37
31
|
</script>
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
</nm-container>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import page from './page.js'
|
|
9
|
-
import Demo from './demo'
|
|
10
|
-
import code from '!!raw-loader!./demo'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
components: { Demo },
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
timer: null,
|
|
17
|
+
code
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
21
|
</script>
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
</nm-container>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import page from './page.js'
|
|
9
|
-
import Demo from './demo'
|
|
10
|
-
import code from '!!raw-loader!./demo'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
components: { Demo },
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
timer: null,
|
|
17
|
+
code
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
21
|
</script>
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
</nm-box>
|
|
11
11
|
</template>
|
|
12
12
|
<script>
|
|
13
|
-
export default {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
13
|
+
export default {
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
box: {
|
|
17
|
+
header: true,
|
|
18
|
+
title: '工具栏示例',
|
|
19
|
+
icon: 'app',
|
|
20
|
+
fullscreen: true,
|
|
21
|
+
collapse: true
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
methods: {
|
|
26
|
+
onClick() {
|
|
27
|
+
this._success('我是自定义工具栏按钮')
|
|
22
28
|
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
methods: {
|
|
26
|
-
onClick() {
|
|
27
|
-
this._success('我是自定义工具栏按钮')
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
}
|
|
31
31
|
</script>
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
</nm-container>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import page from './page.js'
|
|
9
|
-
import Demo from './demo'
|
|
10
|
-
import code from '!!raw-loader!./demo'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
components: { Demo },
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
timer: null,
|
|
17
|
+
code
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
21
|
</script>
|
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<nm-box v-bind="box">
|
|
3
|
-
<el-alert
|
|
4
|
-
title="盒子页"
|
|
5
|
-
type="warning"
|
|
6
|
-
description="通过设置 page 属性为true,可以让盒子变成一个盒子页,盒子页高度会自动填充满整个父级元素,当内容超出时会有滚动条"
|
|
7
|
-
show-icon
|
|
8
|
-
:closable="false"
|
|
9
|
-
></el-alert>
|
|
3
|
+
<el-alert title="盒子页" type="warning" description="通过设置 page 属性为true,可以让盒子变成一个盒子页,盒子页高度会自动填充满整个父级元素,当内容超出时会有滚动条" show-icon :closable="false"></el-alert>
|
|
10
4
|
<pre>
|
|
11
5
|
水调歌头·明月几时有
|
|
12
6
|
|
|
@@ -35,24 +29,24 @@
|
|
|
35
29
|
</nm-box>
|
|
36
30
|
</template>
|
|
37
31
|
<script>
|
|
38
|
-
export default {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
32
|
+
export default {
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
box: {
|
|
36
|
+
page: true,
|
|
37
|
+
header: true,
|
|
38
|
+
footer: true,
|
|
39
|
+
title: '盒子页示例',
|
|
40
|
+
icon: 'app',
|
|
41
|
+
fullscreen: true,
|
|
42
|
+
collapse: true
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
onClick() {
|
|
48
|
+
this._success('保存成功')
|
|
49
49
|
}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
methods: {
|
|
53
|
-
onClick() {
|
|
54
|
-
this._success('保存成功')
|
|
55
50
|
}
|
|
56
51
|
}
|
|
57
|
-
}
|
|
58
52
|
</script>
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
</nm-container>
|
|
6
6
|
</template>
|
|
7
7
|
<script>
|
|
8
|
-
import page from './page.js'
|
|
9
|
-
import Demo from './demo'
|
|
10
|
-
import code from '!!raw-loader!./demo'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
components: { Demo },
|
|
14
|
+
data() {
|
|
15
|
+
return {
|
|
16
|
+
timer: null,
|
|
17
|
+
code
|
|
18
|
+
}
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
|
-
}
|
|
21
21
|
</script>
|
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
</nm-tmpl>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
import page from './page.js'
|
|
8
|
-
import attrs from './data/attrs.js'
|
|
9
|
-
import slots from './data/slots.js'
|
|
10
|
-
export default {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
7
|
+
import page from './page.js'
|
|
8
|
+
import attrs from './data/attrs.js'
|
|
9
|
+
import slots from './data/slots.js'
|
|
10
|
+
export default {
|
|
11
|
+
name: page.name,
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
val: '',
|
|
15
|
+
tmpl: {
|
|
16
|
+
title: '盒子栅格化(nm-box-row)',
|
|
17
|
+
icon: 'card',
|
|
18
|
+
attrs,
|
|
19
|
+
slots
|
|
20
|
+
}
|
|
20
21
|
}
|
|
22
|
+
},
|
|
23
|
+
created() {
|
|
24
|
+
this.setTabName(this.tmpl.title)
|
|
21
25
|
}
|
|
22
|
-
},
|
|
23
|
-
created() {
|
|
24
|
-
this.setTabName(this.tmpl.title)
|
|
25
26
|
}
|
|
26
|
-
}
|
|
27
27
|
</script>
|