haiwei-ui 1.0.1 → 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/README.md +95 -11
- 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
|
@@ -25,68 +25,73 @@
|
|
|
25
25
|
<el-row style="height:400px">
|
|
26
26
|
<p>复制到粘贴板按钮</p>
|
|
27
27
|
<br />
|
|
28
|
-
<p
|
|
28
|
+
<p>
|
|
29
|
+
基于
|
|
30
|
+
<a href="https://github.com/Inndy/vue-clipboard2">https://github.com/Inndy/vue-clipboard2</a>
|
|
31
|
+
附件封装的复制到粘贴板按钮
|
|
32
|
+
</p>
|
|
29
33
|
<p>
|
|
30
34
|
<br />
|
|
31
|
-
<nm-button-copy copy="复制的内容"
|
|
32
|
-
|
|
35
|
+
<nm-button-copy copy="复制的内容" />
|
|
36
|
+
</p>
|
|
37
|
+
</el-row>
|
|
33
38
|
|
|
34
39
|
<!--在线编辑预览不支持闭合的方式,请使用下面的代码方式-->
|
|
35
40
|
<!-- <nm-button>默认按钮</nm-button> -->
|
|
36
41
|
</nm-box>
|
|
37
42
|
</template>
|
|
38
43
|
<script>
|
|
39
|
-
export default {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
44
|
+
export default {
|
|
45
|
+
data() {
|
|
46
|
+
return {
|
|
47
|
+
list: {
|
|
48
|
+
title: '批量删除示例',
|
|
49
|
+
action: this.query,
|
|
50
|
+
multiple: true,
|
|
51
|
+
search: { enabled: false },
|
|
52
|
+
cols: [
|
|
53
|
+
{
|
|
54
|
+
name: 'id',
|
|
55
|
+
label: '编号',
|
|
56
|
+
width: 240
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'name',
|
|
60
|
+
label: '名称'
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
58
64
|
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
methods: {
|
|
62
|
-
remove() {
|
|
63
|
-
return new Promise(resolve => {
|
|
64
|
-
resolve({ code: 1 })
|
|
65
|
-
})
|
|
66
65
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
resolve
|
|
70
|
-
|
|
71
|
-
{ id: 1, name: '张三' },
|
|
72
|
-
{ id: 2, name: '李四' }
|
|
73
|
-
],
|
|
74
|
-
total: 2
|
|
66
|
+
methods: {
|
|
67
|
+
remove() {
|
|
68
|
+
return new Promise(resolve => {
|
|
69
|
+
resolve({ code: 1 })
|
|
75
70
|
})
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
71
|
+
},
|
|
72
|
+
query() {
|
|
73
|
+
return new Promise(resolve => {
|
|
74
|
+
resolve({
|
|
75
|
+
rows: [
|
|
76
|
+
{ id: 1, name: '张三' },
|
|
77
|
+
{ id: 2, name: '李四' }
|
|
78
|
+
],
|
|
79
|
+
total: 2
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
},
|
|
83
|
+
onSuccess() {
|
|
84
|
+
this._success('删除成功了')
|
|
85
|
+
}
|
|
80
86
|
}
|
|
81
87
|
}
|
|
82
|
-
}
|
|
83
88
|
</script>
|
|
84
89
|
|
|
85
90
|
<style>
|
|
86
|
-
.el-row {
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
.el-button-group {
|
|
90
|
-
|
|
91
|
-
}
|
|
91
|
+
.el-row {
|
|
92
|
+
margin-bottom: 20px;
|
|
93
|
+
}
|
|
94
|
+
.el-button-group {
|
|
95
|
+
margin-right: 20px;
|
|
96
|
+
}
|
|
92
97
|
</style>
|
|
@@ -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,22 +4,22 @@
|
|
|
4
4
|
</nm-tmpl>
|
|
5
5
|
</template>
|
|
6
6
|
<script>
|
|
7
|
-
import page from './page.js'
|
|
8
|
-
import attrs from './data/attrs.js'
|
|
9
|
-
export default {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
import page from './page.js'
|
|
8
|
+
import attrs from './data/attrs.js'
|
|
9
|
+
export default {
|
|
10
|
+
name: page.name,
|
|
11
|
+
data() {
|
|
12
|
+
return {
|
|
13
|
+
desc: '所有页面级组件都要包裹在 nm-container 容器里面,而容器仅能用于包裹在页面级组件的外面,容器自动填充满整个内容区域,如果启用了滚动条,当容器内页面高度超出时,会显示滚动条',
|
|
14
|
+
tmpl: {
|
|
15
|
+
title: '容器(nm-container)',
|
|
16
|
+
icon: 'list',
|
|
17
|
+
attrs
|
|
18
|
+
}
|
|
18
19
|
}
|
|
20
|
+
},
|
|
21
|
+
created() {
|
|
22
|
+
this.setTabName(this.tmpl.title)
|
|
19
23
|
}
|
|
20
|
-
},
|
|
21
|
-
created() {
|
|
22
|
-
this.setTabName(this.tmpl.title)
|
|
23
24
|
}
|
|
24
|
-
}
|
|
25
25
|
</script>
|
|
@@ -2,27 +2,27 @@
|
|
|
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 events from './data/events.js'
|
|
8
|
-
import slots from './data/slots'
|
|
9
|
-
import methods from './data/methods'
|
|
10
|
-
export default {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
5
|
+
import page from './page.js'
|
|
6
|
+
import attrs from './data/attrs.js'
|
|
7
|
+
import events from './data/events.js'
|
|
8
|
+
import slots from './data/slots'
|
|
9
|
+
import methods from './data/methods'
|
|
10
|
+
export default {
|
|
11
|
+
name: page.name,
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
tmpl: {
|
|
15
|
+
title: '对话框(nm-dialog)',
|
|
16
|
+
icon: 'dialog',
|
|
17
|
+
attrs,
|
|
18
|
+
events,
|
|
19
|
+
slots,
|
|
20
|
+
methods
|
|
21
|
+
}
|
|
21
22
|
}
|
|
23
|
+
},
|
|
24
|
+
created() {
|
|
25
|
+
this.setTabName(this.tmpl.title)
|
|
22
26
|
}
|
|
23
|
-
},
|
|
24
|
-
created() {
|
|
25
|
-
this.setTabName(this.tmpl.title)
|
|
26
27
|
}
|
|
27
|
-
}
|
|
28
28
|
</script>
|
|
@@ -31,45 +31,45 @@
|
|
|
31
31
|
</nm-box>
|
|
32
32
|
</template>
|
|
33
33
|
<script>
|
|
34
|
-
export default {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
34
|
+
export default {
|
|
35
|
+
data() {
|
|
36
|
+
return {
|
|
37
|
+
dialog: {
|
|
38
|
+
title: '简单对话框',
|
|
39
|
+
icon: 'dialog',
|
|
40
|
+
visible: false
|
|
41
|
+
},
|
|
42
|
+
dialog1: {
|
|
43
|
+
title: '自定义高度',
|
|
44
|
+
icon: 'dialog',
|
|
45
|
+
height: '500px',
|
|
46
|
+
visible: false
|
|
47
|
+
},
|
|
48
|
+
dialog2: {
|
|
49
|
+
title: '全屏功能',
|
|
50
|
+
icon: 'dialog',
|
|
51
|
+
height: '500px',
|
|
52
|
+
fullscreen: true,
|
|
53
|
+
visible: false
|
|
54
|
+
},
|
|
55
|
+
dialog3: {
|
|
56
|
+
title: '点击模态框关闭',
|
|
57
|
+
icon: 'dialog',
|
|
58
|
+
height: '500px',
|
|
59
|
+
fullscreen: true,
|
|
60
|
+
closeOnClickModal: true,
|
|
61
|
+
visible: false
|
|
62
|
+
},
|
|
63
|
+
dialog4: {
|
|
64
|
+
title: '可拖拽',
|
|
65
|
+
icon: 'dialog',
|
|
66
|
+
height: '500px',
|
|
67
|
+
fullscreen: true,
|
|
68
|
+
draggable: true,
|
|
69
|
+
visible: false
|
|
70
|
+
}
|
|
70
71
|
}
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
|
-
}
|
|
74
74
|
</script>
|
|
75
75
|
<style></style>
|
|
@@ -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>
|
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
</nm-tmpl>
|
|
7
7
|
</template>
|
|
8
8
|
<script>
|
|
9
|
-
import page from './page.js'
|
|
10
|
-
import attrs from './data/attrs'
|
|
11
|
-
import events from './data/events'
|
|
12
|
-
import slots from './data/slots'
|
|
13
|
-
export default {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
import page from './page.js'
|
|
10
|
+
import attrs from './data/attrs'
|
|
11
|
+
import events from './data/events'
|
|
12
|
+
import slots from './data/slots'
|
|
13
|
+
export default {
|
|
14
|
+
name: page.name,
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
tmpl: {
|
|
18
|
+
title: '抽屉(nm-drawer)',
|
|
19
|
+
icon: 'list',
|
|
20
|
+
attrs,
|
|
21
|
+
events,
|
|
22
|
+
slots
|
|
23
|
+
}
|
|
23
24
|
}
|
|
25
|
+
},
|
|
26
|
+
created() {
|
|
27
|
+
this.setTabName(this.tmpl.title)
|
|
24
28
|
}
|
|
25
|
-
},
|
|
26
|
-
created() {
|
|
27
|
-
this.setTabName(this.tmpl.title)
|
|
28
29
|
}
|
|
29
|
-
}
|
|
30
30
|
</script>
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
</nm-box>
|
|
12
12
|
</template>
|
|
13
13
|
<script>
|
|
14
|
-
export default {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
export default {
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
drawer1: false,
|
|
18
|
+
drawer2: false,
|
|
19
|
+
drawer3: false,
|
|
20
|
+
drawer4: false
|
|
21
|
+
}
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
|
-
}
|
|
24
24
|
</script>
|
|
@@ -5,18 +5,18 @@
|
|
|
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'
|
|
8
|
+
import page from './page.js'
|
|
9
|
+
import Demo from './demo'
|
|
10
|
+
import code from '!!raw-loader!./demo'
|
|
11
11
|
|
|
12
|
-
export default {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
export default {
|
|
13
|
+
name: page.name,
|
|
14
|
+
components: { Demo },
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
timer: null,
|
|
18
|
+
code
|
|
19
|
+
}
|
|
19
20
|
}
|
|
20
21
|
}
|
|
21
|
-
}
|
|
22
22
|
</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-tabs)',
|
|
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>
|
|
@@ -5,20 +5,20 @@
|
|
|
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
|
+
}
|
|
19
|
+
},
|
|
20
|
+
created() {
|
|
21
|
+
this.setTabName('标签示例代码')
|
|
18
22
|
}
|
|
19
|
-
},
|
|
20
|
-
created() {
|
|
21
|
-
this.setTabName('标签示例代码')
|
|
22
23
|
}
|
|
23
|
-
}
|
|
24
24
|
</script>
|
|
@@ -2,24 +2,24 @@
|
|
|
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
|
-
export default {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
import page from './page.js'
|
|
6
|
+
import attrs from './data/attrs.js'
|
|
7
|
+
import slots from './data/slots.js'
|
|
8
|
+
export default {
|
|
9
|
+
name: page.name,
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
val: '',
|
|
13
|
+
tmpl: {
|
|
14
|
+
title: '标签(nm-tabs)',
|
|
15
|
+
icon: 'card',
|
|
16
|
+
attrs,
|
|
17
|
+
slots
|
|
18
|
+
}
|
|
18
19
|
}
|
|
20
|
+
},
|
|
21
|
+
created() {
|
|
22
|
+
this.setTabName(this.tmpl.title)
|
|
19
23
|
}
|
|
20
|
-
},
|
|
21
|
-
created() {
|
|
22
|
-
this.setTabName(this.tmpl.title)
|
|
23
24
|
}
|
|
24
|
-
}
|
|
25
25
|
</script>
|
|
@@ -5,20 +5,20 @@
|
|
|
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
|
+
}
|
|
19
|
+
},
|
|
20
|
+
created() {
|
|
21
|
+
this.setTabName('标签示例代码')
|
|
18
22
|
}
|
|
19
|
-
},
|
|
20
|
-
created() {
|
|
21
|
-
this.setTabName('标签示例代码')
|
|
22
23
|
}
|
|
23
|
-
}
|
|
24
24
|
</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 methods from './data/methods.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 methods from './data/methods.js'
|
|
10
|
+
export default {
|
|
11
|
+
name: page.name,
|
|
12
|
+
data() {
|
|
13
|
+
return {
|
|
14
|
+
val: '',
|
|
15
|
+
tmpl: {
|
|
16
|
+
title: '滚动条(nm-scrollbar)',
|
|
17
|
+
icon: 'list',
|
|
18
|
+
attrs,
|
|
19
|
+
methods
|
|
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>
|