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
|
@@ -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>
|
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
</nm-tmpl>
|
|
8
8
|
</template>
|
|
9
9
|
<script>
|
|
10
|
-
import page from './page.js'
|
|
11
|
-
import attrs from './data/attrs.js'
|
|
12
|
-
import slots from './data/slots.js'
|
|
13
|
-
export default {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
import page from './page.js'
|
|
11
|
+
import attrs from './data/attrs.js'
|
|
12
|
+
import slots from './data/slots.js'
|
|
13
|
+
export default {
|
|
14
|
+
name: page.name,
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
val: '',
|
|
18
|
+
tmpl: {
|
|
19
|
+
title: '盒子栅格行(nm-box-row)',
|
|
20
|
+
icon: 'card',
|
|
21
|
+
attrs,
|
|
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>
|
|
@@ -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>
|
|
@@ -7,24 +7,24 @@
|
|
|
7
7
|
</nm-tmpl>
|
|
8
8
|
</template>
|
|
9
9
|
<script>
|
|
10
|
-
import page from './page.js'
|
|
11
|
-
import attrs from './data/attrs.js'
|
|
12
|
-
import events from './data/events.js'
|
|
13
|
-
export default {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
import page from './page.js'
|
|
11
|
+
import attrs from './data/attrs.js'
|
|
12
|
+
import events from './data/events.js'
|
|
13
|
+
export default {
|
|
14
|
+
name: page.name,
|
|
15
|
+
data() {
|
|
16
|
+
return {
|
|
17
|
+
val: '',
|
|
18
|
+
tmpl: {
|
|
19
|
+
title: '小盒子(nm-box-small)',
|
|
20
|
+
icon: 'card',
|
|
21
|
+
attrs,
|
|
22
|
+
events
|
|
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>
|
|
@@ -14,37 +14,37 @@
|
|
|
14
14
|
</nm-box>
|
|
15
15
|
</template>
|
|
16
16
|
<script>
|
|
17
|
-
export default {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
17
|
+
export default {
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
box: {
|
|
21
|
+
label: '总消费额',
|
|
22
|
+
value: 12352.11,
|
|
23
|
+
unit: '元',
|
|
24
|
+
icon: 'money',
|
|
25
|
+
more: true
|
|
26
|
+
},
|
|
27
|
+
box1: {
|
|
28
|
+
label: '总收入',
|
|
29
|
+
value: 42352.11,
|
|
30
|
+
unit: '元',
|
|
31
|
+
icon: 'money',
|
|
32
|
+
more: true,
|
|
33
|
+
bgColor: 'warning'
|
|
34
|
+
},
|
|
35
|
+
box2: {
|
|
36
|
+
label: '总支出',
|
|
37
|
+
value: 562352.11,
|
|
38
|
+
unit: '元',
|
|
39
|
+
icon: 'money',
|
|
40
|
+
bgColor: 'primary'
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
methods: {
|
|
45
|
+
onMore() {
|
|
46
|
+
this._success('没有更多了~')
|
|
41
47
|
}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
onMore() {
|
|
46
|
-
this._success('没有更多了~')
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
50
|
</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,25 +4,25 @@
|
|
|
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 events from './data/events.js'
|
|
11
|
-
export default {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
import page from './page.js'
|
|
8
|
+
import attrs from './data/attrs.js'
|
|
9
|
+
import slots from './data/slots.js'
|
|
10
|
+
import events from './data/events.js'
|
|
11
|
+
export default {
|
|
12
|
+
name: page.name,
|
|
13
|
+
data() {
|
|
14
|
+
return {
|
|
15
|
+
tmpl: {
|
|
16
|
+
title: '按钮(nm-button)',
|
|
17
|
+
icon: 'button',
|
|
18
|
+
attrs,
|
|
19
|
+
slots,
|
|
20
|
+
events
|
|
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>
|
|
@@ -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>
|
|
@@ -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>
|