nubomed-ui 1.0.1 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- package/.env.bi +13 -0
- package/.env.terminal +13 -0
- package/.vscode/extensions.json +3 -0
- package/README.md +17 -0
- package/index.html +13 -0
- package/nubomed-ui/nubomed-ui.es.js +2005 -0
- package/nubomed-ui/nubomed-ui.umd.js +1 -0
- package/nubomed-ui/style.css +1 -0
- package/package.json +19 -7
- package/src/App.vue +31 -0
- package/src/bi-demos/Header.vue +29 -0
- package/src/bi-demos/Table.vue +69 -0
- package/src/bi-demos/index.vue +132 -0
- package/src/bi-packages/components/Box/images/corner-error.png +0 -0
- package/src/bi-packages/components/Box/images/corner-warning.png +0 -0
- package/src/bi-packages/components/Box/images/corner.png +0 -0
- package/src/bi-packages/components/Box/index.scss +86 -0
- package/src/bi-packages/components/Box/index.vue +53 -0
- package/src/bi-packages/components/Carousel/CarouselItem.vue +0 -0
- package/src/bi-packages/components/Carousel/index.vue +0 -0
- package/src/bi-packages/components/Header/images/left-bg.png +0 -0
- package/src/bi-packages/components/Header/images/logo.png +0 -0
- package/src/bi-packages/components/Header/images/right-bg.png +0 -0
- package/src/bi-packages/components/Header/index.scss +50 -0
- package/src/bi-packages/components/Header/index.vue +54 -0
- package/src/bi-packages/components/Table/TableColgroup.vue +43 -0
- package/src/bi-packages/components/Table/index copy.vue +107 -0
- package/src/bi-packages/components/Table/index.scss +118 -0
- package/src/bi-packages/components/Table/index.vue +108 -0
- package/src/bi-packages/components/TableColumn/index.scss +7 -0
- package/src/bi-packages/components/TableColumn/index.vue +60 -0
- package/src/bi-packages/fonts/OPPOSans-B.ttf +0 -0
- package/src/bi-packages/fonts/OPPOSans-M.ttf +0 -0
- package/src/bi-packages/fonts/font.scss +11 -0
- package/src/bi-packages/iconfont-svg/demo.css +539 -0
- package/src/bi-packages/iconfont-svg/demo_index.html +4811 -0
- package/src/bi-packages/iconfont-svg/iconfont.css +819 -0
- package/src/bi-packages/iconfont-svg/iconfont.js +1 -0
- package/src/bi-packages/iconfont-svg/iconfont.json +1416 -0
- package/src/bi-packages/iconfont-svg/iconfont.ttf +0 -0
- package/src/bi-packages/iconfont-svg/iconfont.woff +0 -0
- package/src/bi-packages/iconfont-svg/iconfont.woff2 +0 -0
- package/src/bi-packages/index.js +34 -0
- package/src/bi-packages/styles/mixin.scss +12 -0
- package/src/bi-packages/styles/var.scss +11 -0
- package/src/demos/ActionBar.vue +59 -0
- package/src/demos/Badge.vue +28 -0
- package/src/demos/Button copy.vue +302 -0
- package/src/demos/Button.vue +116 -0
- package/src/demos/ButtonGroup.vue +40 -0
- package/src/demos/Check.vue +29 -0
- package/src/demos/Dialog.vue +255 -0
- package/src/demos/Empty.vue +38 -0
- package/src/demos/FooterMenu.vue +49 -0
- package/src/demos/Header.vue +71 -0
- package/src/demos/Icons.vue +314 -0
- package/src/demos/Input.vue +87 -0
- package/src/demos/InputKeyboard.vue +30 -0
- package/src/demos/InputNumber.vue +34 -0
- package/src/demos/LeftMenu.vue +128 -0
- package/src/demos/Menus.vue +106 -0
- package/src/demos/OpenCabinetBall.vue +37 -0
- package/src/demos/Statusbar.vue +146 -0
- package/src/demos/Steps.vue +45 -0
- package/src/demos/Tost.vue +35 -0
- package/src/demos/button/button.md +19 -0
- package/src/demos/data/terList.json +145 -0
- package/src/demos/images/cabinets/H3000-D.png +0 -0
- package/src/demos/images/cabinets/H3000-R.png +0 -0
- package/src/demos/images/cabinets/H3000-Rh.png +0 -0
- package/src/demos/images/cabinets/H3000-Rh2.png +0 -0
- package/src/demos/images/cabinets/H3010-R.png +0 -0
- package/src/demos/index.vue +348 -0
- package/src/docs/icons/Icon.vue +72 -0
- package/src/docs/icons/icon.md +21 -0
- package/src/docs/index.html +15 -0
- package/src/docs/index.vue +301 -0
- package/src/main.js +23 -0
- package/src/packages/components/ActionBar/images/error.png +0 -0
- package/src/packages/components/ActionBar/images/loading.gif +0 -0
- package/src/packages/components/ActionBar/images/success.png +0 -0
- package/src/packages/components/ActionBar/images/warning.png +0 -0
- package/src/packages/components/ActionBar/images/warning_yellow.png +0 -0
- package/src/packages/components/ActionBar/index.scss +81 -0
- package/src/packages/components/ActionBar/index.vue +100 -0
- package/src/packages/components/Badge/index.scss +50 -0
- package/src/packages/components/Badge/index.vue +75 -0
- package/src/packages/components/Button/index.scss +241 -0
- package/src/packages/components/Button/index.vue +111 -0
- package/src/packages/components/ButtonGroup/index.scss +54 -0
- package/src/packages/components/ButtonGroup/index.vue +75 -0
- package/src/packages/components/Check/Cate.vue +138 -0
- package/src/packages/components/Check/index.scss +47 -0
- package/src/packages/components/Check/index.vue +105 -0
- package/src/packages/components/Dialog/images/error.png +0 -0
- package/src/packages/components/Dialog/images/success.png +0 -0
- package/src/packages/components/Dialog/images/warning-red.png +0 -0
- package/src/packages/components/Dialog/images/warning-yellow.png +0 -0
- package/src/packages/components/Dialog/index.scss +154 -0
- package/src/packages/components/Dialog/index.vue +305 -0
- package/src/packages/components/Empty/images/empty-abnormal.png +0 -0
- package/src/packages/components/Empty/images/empty-data.png +0 -0
- package/src/packages/components/Empty/images/empty-search.png +0 -0
- package/src/packages/components/Empty/index.vue +68 -0
- package/src/packages/components/Form/FormItem.vue +73 -0
- package/src/packages/components/Form/index.vue +76 -0
- package/src/packages/components/Icon/index.vue +30 -0
- package/src/packages/components/Input/index.scss +184 -0
- package/src/packages/components/Input/index.vue +189 -0
- package/src/packages/components/InputKeyboard/index.scss +63 -0
- package/src/packages/components/InputKeyboard/index.vue +117 -0
- package/src/packages/components/InputNumber/index.scss +103 -0
- package/src/packages/components/InputNumber/index.vue +160 -0
- package/src/packages/components/Menu/index.scss +559 -0
- package/src/packages/components/Menu/index.vue +211 -0
- package/src/packages/components/OpenCabinetBall/CabinetStatus.vue +94 -0
- package/src/packages/components/OpenCabinetBall/index.scss +204 -0
- package/src/packages/components/OpenCabinetBall/index.vue +113 -0
- package/src/packages/components/Statusbar/CabinetList.vue +125 -0
- package/src/packages/components/Statusbar/CabinetListStatus.vue +75 -0
- package/src/packages/components/Statusbar/CabinetListTempHum.vue +108 -0
- package/src/packages/components/Statusbar/index.scss +205 -0
- package/src/packages/components/Statusbar/index.vue +83 -0
- package/src/packages/components/Steps/index.scss +104 -0
- package/src/packages/components/Steps/index.vue +66 -0
- package/src/packages/components/SvgIcon/index.vue +41 -0
- package/src/packages/components/Toast/index.vue +72 -0
- package/src/packages/fonts/OPPOSans-B.ttf +0 -0
- package/src/packages/fonts/OPPOSans-M.ttf +0 -0
- package/src/packages/fonts/font.scss +11 -0
- package/src/packages/iconfont-svg/demo.css +539 -0
- package/src/packages/iconfont-svg/demo_index.html +4811 -0
- package/src/packages/iconfont-svg/iconfont.css +819 -0
- package/src/packages/iconfont-svg/iconfont.js +1 -0
- package/src/packages/iconfont-svg/iconfont.json +1416 -0
- package/src/packages/iconfont-svg/iconfont.ttf +0 -0
- package/src/packages/iconfont-svg/iconfont.woff +0 -0
- package/src/packages/iconfont-svg/iconfont.woff2 +0 -0
- package/src/packages/index.js +64 -0
- package/src/packages/styles/var.scss +24 -0
- package/src/utils/create.js +48 -0
- package/src/utils/index.js +13 -0
- package/src/utils/validate.js +3 -0
- package/vite.config.js +47 -0
- package/nubomed-ui.es.js +0 -152
- package/nubomed-ui.umd.js +0 -1
- package/style.css +0 -1
@@ -0,0 +1,106 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: chenghuan.dong
|
3
|
+
* @Date: 2023-07-24 17:24:36
|
4
|
+
* @LastEditors: chenghuan.dong
|
5
|
+
* @LastEditTime: 2023-07-25 17:32:26
|
6
|
+
* @Description:
|
7
|
+
-->
|
8
|
+
<template>
|
9
|
+
<div>
|
10
|
+
<div class="demo-box">
|
11
|
+
<div class="demo-box-title">
|
12
|
+
<span class="demo-box-title-name">宫格菜单(高度1000px,宽度640px)</span>
|
13
|
+
<span class="demo-box-title-desc">最多支持显示7个菜单,建议显示4-7个菜单。</span>
|
14
|
+
</div>
|
15
|
+
<div class="demo-box-content">
|
16
|
+
<nb-menu position="grid" :data="menus.slice(0, 1)" @clickGrid="handleClick" />
|
17
|
+
<nb-menu position="grid" :data="menus.slice(0, 2)" @clickGrid="handleClick" />
|
18
|
+
<nb-menu position="grid" :data="menus.slice(0, 3)" @clickGrid="handleClick" />
|
19
|
+
<nb-menu position="grid" :data="menus.slice(0, 4)" @clickGrid="handleClick" />
|
20
|
+
<nb-menu position="grid" :data="menus.slice(0, 5)" @clickGrid="handleClick" />
|
21
|
+
<nb-menu position="grid" :data="menus.slice(0, 6)" @clickGrid="handleClick" />
|
22
|
+
<nb-menu position="grid" :data="menus.slice(0, 7)" @clickGrid="handleClick" />
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
</template>
|
27
|
+
|
28
|
+
<script setup>
|
29
|
+
import { ref } from 'vue'
|
30
|
+
const menus = ref([])
|
31
|
+
menus.value.push({ icon: 'menu-in-store', name: '上架', desc: '补充库存', badge: '32' })
|
32
|
+
menus.value.push({ icon: 'menu-out-stock', name: '退库', desc: '退回上级库房', badge: '32' })
|
33
|
+
menus.value.push({ icon: 'menu-inventory', name: '盘点', desc: '盘点库存', badge: '!' })
|
34
|
+
menus.value.push({ icon: 'search', name: '查询', desc: '报表在线查看' })
|
35
|
+
menus.value.push({ icon: 'menu-setting', name: '设置', desc: '权限管理' })
|
36
|
+
menus.value.push({ icon: 'menu-take', name: '调拨出库', desc: '协调借用' })
|
37
|
+
menus.value.push({ icon: 'menu-trace-goods', name: '商品追溯', desc: '全流程记录商品变动' })
|
38
|
+
|
39
|
+
// 点击菜单
|
40
|
+
const handleClick = (item) => {
|
41
|
+
console.log('点击菜单', item)
|
42
|
+
}
|
43
|
+
</script>
|
44
|
+
|
45
|
+
<style lang="scss" scoped>
|
46
|
+
.demo-box-content{
|
47
|
+
.nb-menu{margin-bottom: 30px;
|
48
|
+
background-color: aqua;}
|
49
|
+
}
|
50
|
+
.menus {
|
51
|
+
display: flex;
|
52
|
+
flex-wrap: wrap;
|
53
|
+
width: 1000px;
|
54
|
+
height: 640px;
|
55
|
+
overflow: hidden;
|
56
|
+
background-color: aqua;
|
57
|
+
div {
|
58
|
+
border-radius: 12px;
|
59
|
+
color: #fff;
|
60
|
+
position: relative;
|
61
|
+
.icon-menu {
|
62
|
+
width: 56px;
|
63
|
+
height: 56px;
|
64
|
+
}
|
65
|
+
.menu-name {
|
66
|
+
font-size: 40px;
|
67
|
+
line-height: 60px;
|
68
|
+
}
|
69
|
+
.menu-desc {
|
70
|
+
font-size: 18px;
|
71
|
+
line-height: 28px;
|
72
|
+
color: rgba(255, 255, 255, 0.7);
|
73
|
+
}
|
74
|
+
}
|
75
|
+
div:nth-child(1) {
|
76
|
+
width: 480px;
|
77
|
+
height: 240px;
|
78
|
+
background: #009a82;
|
79
|
+
margin-right: 40px;
|
80
|
+
}
|
81
|
+
div:nth-child(2) {
|
82
|
+
width: 220px;
|
83
|
+
height: 360px;
|
84
|
+
background: #b0529f;
|
85
|
+
margin-right: 40px;
|
86
|
+
}
|
87
|
+
div:nth-child(3) {
|
88
|
+
width: 220px;
|
89
|
+
height: 360px;
|
90
|
+
background: #5963ae;
|
91
|
+
}
|
92
|
+
div:nth-child(4) {
|
93
|
+
width: 480px;
|
94
|
+
height: 360px;
|
95
|
+
background: #e5a354;
|
96
|
+
margin-top: -80px;
|
97
|
+
margin-right: 40px;
|
98
|
+
}
|
99
|
+
div:nth-child(5) {
|
100
|
+
width: 480px;
|
101
|
+
height: 240px;
|
102
|
+
background: #00a3b3;
|
103
|
+
margin-top: 40px;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
</style>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: chenghuan.dong
|
3
|
+
* @Date: 2023-06-30 22:07:34
|
4
|
+
* @LastEditors: chenghuan.dong
|
5
|
+
* @LastEditTime: 2023-07-26 18:25:49
|
6
|
+
* @Description:
|
7
|
+
-->
|
8
|
+
<template>
|
9
|
+
<div>
|
10
|
+
<div class="demo-box">
|
11
|
+
<div class="demo-box-title">
|
12
|
+
<span class="demo-box-title-name">开柜浮球(收起:宽120px,高120px;展开:宽846px,高500px)</span>
|
13
|
+
</div>
|
14
|
+
<div class="demo-box-content">
|
15
|
+
<nb-open-cabinet-ball :ter-list="terList" @openAll="handleOpenAll" @open="handleOpen" />
|
16
|
+
<nb-open-cabinet-ball :ter-list="terList" :default-toggle="true" @openAll="handleOpenAll" @open="handleOpen" />
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</template>
|
21
|
+
|
22
|
+
<script setup>
|
23
|
+
import { reactive, ref } from 'vue'
|
24
|
+
import ter from './data/terList.json'
|
25
|
+
const terList = ref(ter)
|
26
|
+
|
27
|
+
const handleOpenAll = () => {
|
28
|
+
console.log('全部开柜')
|
29
|
+
}
|
30
|
+
|
31
|
+
const handleOpen = (item, index) => {
|
32
|
+
console.log('开单个柜子', item, index)
|
33
|
+
}
|
34
|
+
</script>
|
35
|
+
|
36
|
+
<style lang="scss" scoped>
|
37
|
+
</style>
|
@@ -0,0 +1,146 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: chenghuan.dong
|
3
|
+
* @Date: 2023-07-04 20:47:56
|
4
|
+
* @LastEditors: chenghuan.dong
|
5
|
+
* @LastEditTime: 2023-07-26 16:18:05
|
6
|
+
* @Description:
|
7
|
+
-->
|
8
|
+
<template>
|
9
|
+
<div>
|
10
|
+
<div class="demo-box">
|
11
|
+
<div class="demo-box-title">
|
12
|
+
<span class="demo-box-title-name">状态栏(高度56px)</span>
|
13
|
+
</div>
|
14
|
+
<div class="demo-box-content">
|
15
|
+
<nb-statusbar :data="statusbars" :date="date" :terList="terList" @change="handleClick" />
|
16
|
+
<nb-statusbar :data="statusbars" :date="date" :terList="terList" :showLockAllButton="true" @change="handleClick" />
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</template>
|
21
|
+
|
22
|
+
<script setup>
|
23
|
+
import { ref } from 'vue'
|
24
|
+
const date = ref('2022年3月29日 星期二 14:20')
|
25
|
+
|
26
|
+
const statusbars = ref([])
|
27
|
+
statusbars.value.push([
|
28
|
+
{ label: '总库存', value: 3234 },
|
29
|
+
{ label: '总品规', value: 235 }
|
30
|
+
])
|
31
|
+
statusbars.value.push([
|
32
|
+
{ icon: 'connect', value: 8 },
|
33
|
+
{ icon: 'connect-error', value: 1, abnormal: true }
|
34
|
+
])
|
35
|
+
statusbars.value.push([
|
36
|
+
{ icon: 'temperature', value: '正常' },
|
37
|
+
{ icon: 'humidity', value: '异常', abnormal: true }
|
38
|
+
])
|
39
|
+
statusbars.value.push([
|
40
|
+
{ icon: 'lock', value: 8 },
|
41
|
+
{ icon: 'unlock', value: 0 }
|
42
|
+
])
|
43
|
+
|
44
|
+
const terList = ref([])
|
45
|
+
terList.value.push({
|
46
|
+
iTerId: 1255,
|
47
|
+
sTerCode: 'ZDID_01255',
|
48
|
+
sTerDesc: '高值柜主柜一体柜',
|
49
|
+
sPostalAddress: '1255',
|
50
|
+
sTerModelCode: '',
|
51
|
+
terModelPic: new URL('./images/cabinets/H3000-R.png', import.meta.url).href,
|
52
|
+
lockStatus: [0],
|
53
|
+
connectionStatus: [true],
|
54
|
+
tempHumList: [
|
55
|
+
{
|
56
|
+
temp: 23,
|
57
|
+
tempShow: true,
|
58
|
+
tempAbnormal: false,
|
59
|
+
hum: 34,
|
60
|
+
humShow: true,
|
61
|
+
humAbnormal: true
|
62
|
+
}
|
63
|
+
],
|
64
|
+
sTerModelCodeType: 0 // 柜子类型:0-一体柜,1-半柜,2-上下柜,3-左右柜
|
65
|
+
})
|
66
|
+
terList.value.push({
|
67
|
+
iTerId: 1255,
|
68
|
+
sTerCode: 'ZDID_01255',
|
69
|
+
sTerDesc: '高值柜主柜上下柜',
|
70
|
+
sPostalAddress: '1255',
|
71
|
+
sTerModelCode: '',
|
72
|
+
terModelPic: new URL('./images/cabinets/H3000-Rh2.png', import.meta.url).href,
|
73
|
+
lockStatus: [0, 1],
|
74
|
+
connectionStatus: [true, false],
|
75
|
+
tempHumList: [
|
76
|
+
{
|
77
|
+
label: '上柜',
|
78
|
+
temp: 23,
|
79
|
+
tempShow: true,
|
80
|
+
tempAbnormal: false,
|
81
|
+
hum: 34,
|
82
|
+
humShow: true,
|
83
|
+
humAbnormal: true
|
84
|
+
},
|
85
|
+
{
|
86
|
+
label: '下柜',
|
87
|
+
temp: 233,
|
88
|
+
tempShow: true,
|
89
|
+
tempAbnormal: true,
|
90
|
+
hum: 342,
|
91
|
+
humShow: true,
|
92
|
+
humAbnormal: true
|
93
|
+
}
|
94
|
+
],
|
95
|
+
sTerModelCodeType: 2 // 柜子类型:0-一体柜,1-半柜,2-上下柜,3-左右柜
|
96
|
+
})
|
97
|
+
terList.value.push({
|
98
|
+
iTerId: 1255,
|
99
|
+
sTerCode: 'ZDID_01255',
|
100
|
+
sTerDesc: '高值柜主柜上下柜',
|
101
|
+
sPostalAddress: '1255',
|
102
|
+
sTerModelCode: '',
|
103
|
+
terModelPic: new URL('./images/cabinets/H3000-Rh2.png', import.meta.url).href,
|
104
|
+
lockStatus: [0, 0],
|
105
|
+
connectionStatus: [true, true],
|
106
|
+
sTerModelCodeType: 2 // 柜子类型:0-一体柜,1-半柜,2-上下柜,3-左右柜
|
107
|
+
})
|
108
|
+
terList.value.push({
|
109
|
+
iTerId: 1255,
|
110
|
+
sTerCode: 'ZDID_01255',
|
111
|
+
sTerDesc: '高值柜主柜左右柜',
|
112
|
+
sPostalAddress: '1255',
|
113
|
+
sTerModelCode: '',
|
114
|
+
terModelPic: new URL('./images/cabinets/H3000-D.png', import.meta.url).href,
|
115
|
+
lockStatus: [null, null],
|
116
|
+
connectionStatus: [false, false],
|
117
|
+
sTerModelCodeType: 3 // 柜子类型:0-一体柜,1-半柜,2-上下柜,3-左右柜
|
118
|
+
})
|
119
|
+
terList.value.push({
|
120
|
+
iTerId: 1255,
|
121
|
+
sTerCode: 'ZDID_01255',
|
122
|
+
sTerDesc: '高值柜主柜左右柜',
|
123
|
+
sPostalAddress: '1255',
|
124
|
+
sTerModelCode: '',
|
125
|
+
terModelPic: new URL('./images/cabinets/H3000-D.png', import.meta.url).href,
|
126
|
+
lockStatus: [0, 2],
|
127
|
+
connectionStatus: [true, true],
|
128
|
+
sTerModelCodeType: 3 // 柜子类型:0-一体柜,1-半柜,2-上下柜,3-左右柜
|
129
|
+
})
|
130
|
+
|
131
|
+
console.log(JSON.stringify(terList.value))
|
132
|
+
|
133
|
+
const handleClick = (item, index) => {
|
134
|
+
alert(item.sTerDesc + index)
|
135
|
+
}
|
136
|
+
</script>
|
137
|
+
|
138
|
+
<style lang="scss" scoped>
|
139
|
+
.demo-box-content {
|
140
|
+
display: flex;
|
141
|
+
flex-direction: column;
|
142
|
+
.nb-statusbar {
|
143
|
+
margin-bottom: 30px;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
</style>
|
@@ -0,0 +1,45 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: chenghuan.dong
|
3
|
+
* @Date: 2023-07-25 15:11:57
|
4
|
+
* @LastEditors: chenghuan.dong
|
5
|
+
* @LastEditTime: 2023-07-25 18:46:51
|
6
|
+
* @Description:
|
7
|
+
-->
|
8
|
+
<template>
|
9
|
+
<div>
|
10
|
+
<div class="demo-box">
|
11
|
+
<div class="demo-box-title">
|
12
|
+
<span class="demo-box-title-name">Steps 步骤条(宽940px,高120px)</span>
|
13
|
+
<span class="demo-box-title-desc">弹框中显示</span>
|
14
|
+
</div>
|
15
|
+
<div class="demo-box-content">
|
16
|
+
<div style="margin-bottom: 30px;">
|
17
|
+
<nb-button @click="handleInit">初始状态</nb-button>
|
18
|
+
<nb-button @click="handleNext">下一步</nb-button>
|
19
|
+
</div>
|
20
|
+
<nb-steps :data="stepsData" :status="status" :active="active" />
|
21
|
+
</div>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</template>
|
25
|
+
|
26
|
+
<script setup>
|
27
|
+
import { ref } from 'vue'
|
28
|
+
const stepsData = ref(['清空药格', '放入药品', '开始校准', '取出药品', '校准完成'])
|
29
|
+
const status = ref('process')
|
30
|
+
const active = ref(0)
|
31
|
+
|
32
|
+
const handleInit = () => {
|
33
|
+
active.value = 0
|
34
|
+
}
|
35
|
+
|
36
|
+
const handleNext = () => {
|
37
|
+
if (active.value - 1 >= stepsData.value.length) {
|
38
|
+
return
|
39
|
+
}
|
40
|
+
active.value++
|
41
|
+
}
|
42
|
+
</script>
|
43
|
+
|
44
|
+
<style lang="scss" scoped>
|
45
|
+
</style>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: chenghuan.dong
|
3
|
+
* @Date: 2023-06-30 22:07:34
|
4
|
+
* @LastEditors: chenghuan.dong
|
5
|
+
* @LastEditTime: 2023-07-07 17:55:56
|
6
|
+
* @Description:
|
7
|
+
-->
|
8
|
+
<template>
|
9
|
+
<div>
|
10
|
+
<div class="demo-box">
|
11
|
+
<div class="demo-box-title">
|
12
|
+
<span class="demo-box-title-name">大尺寸对话框Modal(宽1600px,高900px)</span>
|
13
|
+
</div>
|
14
|
+
<div class="demo-box-content">
|
15
|
+
<nb-button @click="openSuccess(1)">成功</nb-button>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</template>
|
20
|
+
|
21
|
+
<script setup>
|
22
|
+
import { reactive, ref } from 'vue'
|
23
|
+
|
24
|
+
const openSuccess = (index) => {
|
25
|
+
console.log(window.$nbNotify.success({ message: 'dddddd' }))
|
26
|
+
}
|
27
|
+
</script>
|
28
|
+
|
29
|
+
<style lang="scss" scoped>
|
30
|
+
.demo-box-content {
|
31
|
+
.nb-button {
|
32
|
+
margin: 0 30px 30px 0;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
</style>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!--
|
2
|
+
* @Author: chenghuan.dong
|
3
|
+
* @Date: 2023-09-12 20:31:23
|
4
|
+
* @LastEditTime: 2023-09-12 20:33:48
|
5
|
+
* @LastEditors: chenghuan.dong
|
6
|
+
* @Description:
|
7
|
+
* @FilePath: \基础建设\nubomed-ui\src\demos\button\button.md
|
8
|
+
-->
|
9
|
+
:::demo 使用type、plain、round和circle属性来定义 Button 的样式。
|
10
|
+
|
11
|
+
<el-row>
|
12
|
+
<el-button>默认按钮</el-button>
|
13
|
+
<el-button type="primary">主要按钮</el-button>
|
14
|
+
<el-button type="success">成功按钮</el-button>
|
15
|
+
<el-button type="info">信息按钮</el-button>
|
16
|
+
<el-button type="warning">警告按钮</el-button>
|
17
|
+
<el-button type="danger">危险按钮</el-button>
|
18
|
+
</el-row>
|
19
|
+
:::
|
@@ -0,0 +1,145 @@
|
|
1
|
+
[
|
2
|
+
{
|
3
|
+
"iTerId": 1255,
|
4
|
+
"sTerCode": "ZDID_01255",
|
5
|
+
"sTerDesc": "高值柜主柜一体柜",
|
6
|
+
"sPostalAddress": "1255",
|
7
|
+
"sTerModelCodeType": 0,
|
8
|
+
"sTerModelCode": "H3000-R",
|
9
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-R.png",
|
10
|
+
"lockStatus": [0],
|
11
|
+
"connectionStatus": [true]
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"iTerId": 1256,
|
15
|
+
"sTerCode": "ZDID_01256",
|
16
|
+
"sTerDesc": "高值柜主柜一体柜辅柜",
|
17
|
+
"sPostalAddress": "1256",
|
18
|
+
"sTerModelCodeType": 0,
|
19
|
+
"sTerModelCode": "H3010-R",
|
20
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3010-R.png",
|
21
|
+
"lockStatus": [1],
|
22
|
+
"connectionStatus": [true]
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"iTerId": 1256,
|
26
|
+
"sTerCode": "ZDID_01256",
|
27
|
+
"sTerDesc": "高值柜主柜一体柜辅柜",
|
28
|
+
"sPostalAddress": "1256",
|
29
|
+
"sTerModelCodeType": 0,
|
30
|
+
"sTerModelCode": "H3010-R",
|
31
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3010-R.png",
|
32
|
+
"lockStatus": [2],
|
33
|
+
"connectionStatus": [true]
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"iTerId": 1256,
|
37
|
+
"sTerCode": "ZDID_01256",
|
38
|
+
"sTerDesc": "高值柜主柜一体柜辅柜",
|
39
|
+
"sPostalAddress": "1256",
|
40
|
+
"sTerModelCodeType": 0,
|
41
|
+
"sTerModelCode": "H3010-R",
|
42
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3010-R.png",
|
43
|
+
"lockStatus": [null],
|
44
|
+
"connectionStatus": [false]
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"iTerId": 1255,
|
48
|
+
"sTerCode": "ZDID_01255",
|
49
|
+
"sTerDesc": "高值柜主柜上下柜",
|
50
|
+
"sPostalAddress": "1255",
|
51
|
+
"sTerModelCodeType": 2,
|
52
|
+
"sTerModelCode": "H3000-Rh2",
|
53
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-Rh2.png",
|
54
|
+
"lockStatus": [1, 1],
|
55
|
+
"connectionStatus": [true, true]
|
56
|
+
},
|
57
|
+
{
|
58
|
+
"iTerId": 1255,
|
59
|
+
"sTerCode": "ZDID_01255",
|
60
|
+
"sTerDesc": "高值柜主柜上下柜",
|
61
|
+
"sPostalAddress": "1255",
|
62
|
+
"sTerModelCodeType": 2,
|
63
|
+
"sTerModelCode": "H3000-Rh2",
|
64
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-Rh2.png",
|
65
|
+
"lockStatus": [0, 1],
|
66
|
+
"connectionStatus": [true, true]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"iTerId": 1255,
|
70
|
+
"sTerCode": "ZDID_01255",
|
71
|
+
"sTerDesc": "高值柜主柜上下柜",
|
72
|
+
"sPostalAddress": "1255",
|
73
|
+
"sTerModelCodeType": 2,
|
74
|
+
"sTerModelCode": "H3000-Rh2",
|
75
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-Rh2.png",
|
76
|
+
"lockStatus": [null, 1],
|
77
|
+
"connectionStatus": [false, true]
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"iTerId": 1255,
|
81
|
+
"sTerCode": "ZDID_01255",
|
82
|
+
"sTerDesc": "高值柜主柜上下柜",
|
83
|
+
"sPostalAddress": "1255",
|
84
|
+
"sTerModelCode": "",
|
85
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-Rh2.png",
|
86
|
+
"lockStatus": [0, 0],
|
87
|
+
"connectionStatus": [true, true],
|
88
|
+
"sTerModelCodeType": 2
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"iTerId": 1255,
|
92
|
+
"sTerCode": "ZDID_01255",
|
93
|
+
"sTerDesc": "高值柜主柜左右柜",
|
94
|
+
"sPostalAddress": "1255",
|
95
|
+
"sTerModelCode": "H3000-D",
|
96
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-D.png",
|
97
|
+
"lockStatus": [null, null],
|
98
|
+
"connectionStatus": [false, false],
|
99
|
+
"sTerModelCodeType": 3
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"iTerId": 1255,
|
103
|
+
"sTerCode": "ZDID_01255",
|
104
|
+
"sTerDesc": "高值柜主柜左右柜",
|
105
|
+
"sPostalAddress": "1255",
|
106
|
+
"sTerModelCode": "",
|
107
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-D.png",
|
108
|
+
"lockStatus": [0, 2],
|
109
|
+
"connectionStatus": [true, true],
|
110
|
+
"sTerModelCodeType": 3
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"iTerId": 1255,
|
114
|
+
"sTerCode": "ZDID_01255",
|
115
|
+
"sTerDesc": "高值柜主柜左右柜",
|
116
|
+
"sPostalAddress": "1255",
|
117
|
+
"sTerModelCode": "",
|
118
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-D.png",
|
119
|
+
"lockStatus": [1, 1],
|
120
|
+
"connectionStatus": [true, true],
|
121
|
+
"sTerModelCodeType": 3
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"iTerId": 1255,
|
125
|
+
"sTerCode": "ZDID_01255",
|
126
|
+
"sTerDesc": "高值柜主柜左右柜",
|
127
|
+
"sPostalAddress": "1255",
|
128
|
+
"sTerModelCode": "",
|
129
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-D.png",
|
130
|
+
"lockStatus": [0, 0],
|
131
|
+
"connectionStatus": [true, true],
|
132
|
+
"sTerModelCodeType": 3
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"iTerId": 1255,
|
136
|
+
"sTerCode": "ZDID_01255",
|
137
|
+
"sTerDesc": "高值柜主柜半柜",
|
138
|
+
"sPostalAddress": "1255",
|
139
|
+
"sTerModelCodeType": 0,
|
140
|
+
"sTerModelCode": "H3000-Rh",
|
141
|
+
"terModelPic": "http://localhost:8888/src/demos/images/cabinets/H3000-Rh.png",
|
142
|
+
"lockStatus": [0],
|
143
|
+
"connectionStatus": [true]
|
144
|
+
}
|
145
|
+
]
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|