nubomed-ui 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- package/{nubomed-ui/nubomed-ui.es.js → nubomed-ui.es.js} +547 -581
- package/{nubomed-ui/nubomed-ui.umd.js → nubomed-ui.umd.js} +1 -1
- package/package.json +7 -18
- package/.env.bi +0 -13
- package/.env.terminal +0 -13
- package/.vscode/extensions.json +0 -3
- package/README.md +0 -17
- package/index.html +0 -13
- package/src/App.vue +0 -31
- package/src/bi-demos/Header.vue +0 -29
- package/src/bi-demos/Table.vue +0 -69
- package/src/bi-demos/index.vue +0 -132
- 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 +0 -86
- package/src/bi-packages/components/Box/index.vue +0 -53
- 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 +0 -50
- package/src/bi-packages/components/Header/index.vue +0 -54
- package/src/bi-packages/components/Table/TableColgroup.vue +0 -43
- package/src/bi-packages/components/Table/index copy.vue +0 -107
- package/src/bi-packages/components/Table/index.scss +0 -118
- package/src/bi-packages/components/Table/index.vue +0 -108
- package/src/bi-packages/components/TableColumn/index.scss +0 -7
- package/src/bi-packages/components/TableColumn/index.vue +0 -60
- 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 +0 -11
- package/src/bi-packages/iconfont-svg/demo.css +0 -539
- package/src/bi-packages/iconfont-svg/demo_index.html +0 -4811
- package/src/bi-packages/iconfont-svg/iconfont.css +0 -819
- package/src/bi-packages/iconfont-svg/iconfont.js +0 -1
- package/src/bi-packages/iconfont-svg/iconfont.json +0 -1416
- 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 +0 -34
- package/src/bi-packages/styles/mixin.scss +0 -12
- package/src/bi-packages/styles/var.scss +0 -11
- package/src/demos/ActionBar.vue +0 -59
- package/src/demos/Badge.vue +0 -28
- package/src/demos/Button copy.vue +0 -302
- package/src/demos/Button.vue +0 -116
- package/src/demos/ButtonGroup.vue +0 -40
- package/src/demos/Check.vue +0 -29
- package/src/demos/Dialog.vue +0 -255
- package/src/demos/Empty.vue +0 -38
- package/src/demos/FooterMenu.vue +0 -49
- package/src/demos/Header.vue +0 -71
- package/src/demos/Icons.vue +0 -314
- package/src/demos/Input.vue +0 -87
- package/src/demos/InputKeyboard.vue +0 -30
- package/src/demos/InputNumber.vue +0 -34
- package/src/demos/LeftMenu.vue +0 -128
- package/src/demos/Menus.vue +0 -106
- package/src/demos/OpenCabinetBall.vue +0 -37
- package/src/demos/Statusbar.vue +0 -146
- package/src/demos/Steps.vue +0 -45
- package/src/demos/Tost.vue +0 -35
- package/src/demos/button/button.md +0 -19
- package/src/demos/data/terList.json +0 -145
- 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 +0 -348
- package/src/docs/icons/Icon.vue +0 -72
- package/src/docs/icons/icon.md +0 -21
- package/src/docs/index.html +0 -15
- package/src/docs/index.vue +0 -301
- package/src/main.js +0 -23
- 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 +0 -81
- package/src/packages/components/ActionBar/index.vue +0 -100
- package/src/packages/components/Badge/index.scss +0 -50
- package/src/packages/components/Badge/index.vue +0 -75
- package/src/packages/components/Button/index.scss +0 -241
- package/src/packages/components/Button/index.vue +0 -111
- package/src/packages/components/ButtonGroup/index.scss +0 -54
- package/src/packages/components/ButtonGroup/index.vue +0 -75
- package/src/packages/components/Check/Cate.vue +0 -138
- package/src/packages/components/Check/index.scss +0 -47
- package/src/packages/components/Check/index.vue +0 -105
- 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 +0 -154
- package/src/packages/components/Dialog/index.vue +0 -305
- 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 +0 -68
- package/src/packages/components/Form/FormItem.vue +0 -73
- package/src/packages/components/Form/index.vue +0 -76
- package/src/packages/components/Icon/index.vue +0 -30
- package/src/packages/components/Input/index.scss +0 -184
- package/src/packages/components/Input/index.vue +0 -189
- package/src/packages/components/InputKeyboard/index.scss +0 -63
- package/src/packages/components/InputKeyboard/index.vue +0 -117
- package/src/packages/components/InputNumber/index.scss +0 -103
- package/src/packages/components/InputNumber/index.vue +0 -160
- package/src/packages/components/Menu/index.scss +0 -559
- package/src/packages/components/Menu/index.vue +0 -211
- package/src/packages/components/OpenCabinetBall/CabinetStatus.vue +0 -94
- package/src/packages/components/OpenCabinetBall/index.scss +0 -204
- package/src/packages/components/OpenCabinetBall/index.vue +0 -113
- package/src/packages/components/Statusbar/CabinetList.vue +0 -125
- package/src/packages/components/Statusbar/CabinetListStatus.vue +0 -75
- package/src/packages/components/Statusbar/CabinetListTempHum.vue +0 -108
- package/src/packages/components/Statusbar/index.scss +0 -205
- package/src/packages/components/Statusbar/index.vue +0 -83
- package/src/packages/components/Steps/index.scss +0 -104
- package/src/packages/components/Steps/index.vue +0 -66
- package/src/packages/components/SvgIcon/index.vue +0 -41
- package/src/packages/components/Toast/index.vue +0 -72
- package/src/packages/fonts/OPPOSans-B.ttf +0 -0
- package/src/packages/fonts/OPPOSans-M.ttf +0 -0
- package/src/packages/fonts/font.scss +0 -11
- package/src/packages/iconfont-svg/demo.css +0 -539
- package/src/packages/iconfont-svg/demo_index.html +0 -4811
- package/src/packages/iconfont-svg/iconfont.css +0 -819
- package/src/packages/iconfont-svg/iconfont.js +0 -1
- package/src/packages/iconfont-svg/iconfont.json +0 -1416
- 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 +0 -64
- package/src/packages/styles/var.scss +0 -24
- package/src/utils/create.js +0 -48
- package/src/utils/index.js +0 -13
- package/src/utils/validate.js +0 -3
- package/vite.config.js +0 -47
- /package/{nubomed-ui/style.css → style.css} +0 -0
Binary file
|
Binary file
|
Binary file
|
package/src/packages/index.js
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: chenghuan.dong
|
3
|
-
* @Date: 2023-06-27 17:07:50
|
4
|
-
* @LastEditors: chenghuan.dong
|
5
|
-
* @LastEditTime: 2023-08-07 09:08:57
|
6
|
-
* @Description:
|
7
|
-
*/
|
8
|
-
import './iconfont-svg/iconfont.js'
|
9
|
-
import './fonts/font.scss'
|
10
|
-
import './styles/var.scss'
|
11
|
-
|
12
|
-
// 引入封装好的组件
|
13
|
-
import Icon from './components/Icon/index.vue'
|
14
|
-
import Button from './components/Button/index.vue'
|
15
|
-
import ButtonGroup from './components/ButtonGroup/index.vue'
|
16
|
-
import Input from './components/Input/index.vue'
|
17
|
-
import InputNumber from './components/InputNumber/index.vue'
|
18
|
-
import Empty from './components/Empty/index.vue'
|
19
|
-
import Badge from './components/Badge/index.vue'
|
20
|
-
import Dialog from './components/Dialog/index.vue'
|
21
|
-
import Form from './components/Form/index.vue'
|
22
|
-
import FormItem from './components/Form/FormItem.vue'
|
23
|
-
import Menu from './components/Menu/index.vue'
|
24
|
-
import Statusbar from './components/Statusbar/index.vue'
|
25
|
-
import Toast from './components/Toast/index.vue'
|
26
|
-
import Check from './components/Check/index.vue'
|
27
|
-
import Steps from './components/Steps/index.vue'
|
28
|
-
import InputKeyboard from './components/InputKeyboard/index.vue'
|
29
|
-
import ActionBar from './components/ActionBar/index.vue'
|
30
|
-
import OpenCabinetBall from './components/OpenCabinetBall/index.vue'
|
31
|
-
|
32
|
-
// 按需引入
|
33
|
-
export { Icon }
|
34
|
-
export { Button }
|
35
|
-
export { ButtonGroup }
|
36
|
-
export { Input }
|
37
|
-
export { Empty }
|
38
|
-
export { Badge }
|
39
|
-
export { InputNumber }
|
40
|
-
export { Dialog }
|
41
|
-
export { Form }
|
42
|
-
export { FormItem }
|
43
|
-
export { Menu }
|
44
|
-
export { Statusbar }
|
45
|
-
export { Toast }
|
46
|
-
export { Check }
|
47
|
-
export { Steps }
|
48
|
-
export { InputKeyboard }
|
49
|
-
export { ActionBar }
|
50
|
-
export { OpenCabinetBall }
|
51
|
-
|
52
|
-
const component = [Icon, Button, ButtonGroup, Input, InputNumber, Empty, Badge, Dialog, Form, FormItem, Menu, Statusbar, Toast, Check, Steps, InputKeyboard, ActionBar, OpenCabinetBall]
|
53
|
-
|
54
|
-
const NuboMedUI = {
|
55
|
-
install(App) {
|
56
|
-
component.forEach((item) => {
|
57
|
-
App.component(item.name, item)
|
58
|
-
})
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
export default NuboMedUI
|
63
|
-
|
64
|
-
window.$nbNotify = Toast
|
@@ -1,24 +0,0 @@
|
|
1
|
-
:root {
|
2
|
-
// 通用
|
3
|
-
--nb-font-family: OPPOSans-M, OPPOSans;
|
4
|
-
--nb-font-bold-family: OPPOSans-B, OPPOSans;
|
5
|
-
--nb-font-color: #181d41;
|
6
|
-
--nb-font-color-2: rgba(24, 29, 65, 0.2);
|
7
|
-
--nb-font-color-5: rgba(24, 29, 65, 0.5);
|
8
|
-
--nb-font-color-7: rgba(24, 29, 65, 0.7);
|
9
|
-
--nb-theme-color: #0066e0;
|
10
|
-
--nb-abnormal-color: #EA255F;
|
11
|
-
|
12
|
-
// 表单输入框、数字输入框、下拉框、日期控件
|
13
|
-
// 正常情况下
|
14
|
-
--nb-input-border-radius: 8px;
|
15
|
-
--nb-input-border-color: #cad0e0;
|
16
|
-
--nb-input-color: var(--nb-font-color);
|
17
|
-
--nb-input-placeholder-text-color: var(--nb-font-color-5);
|
18
|
-
// disabled
|
19
|
-
--nb-input-disabled-color: var(--nb-font-color-2);
|
20
|
-
--nb-input-disabled-background: #f4f6f9;
|
21
|
-
--nb-input-disabled-box-shadow: none;
|
22
|
-
--nb-input-disabled-border-color: #f4f6f9;
|
23
|
-
--nb-input-disabled-background-focus: #f4f6f9;
|
24
|
-
}
|
package/src/utils/create.js
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: chenghuan.dong
|
3
|
-
* @Date: 2023-06-27 09:26:21
|
4
|
-
* @LastEditors: chenghuan.dong
|
5
|
-
* @LastEditTime: 2023-08-07 09:05:36
|
6
|
-
* @Description: BEM
|
7
|
-
*/
|
8
|
-
export function createNamespace(name) {
|
9
|
-
const prefixedName = `nb-${name}`
|
10
|
-
return [prefixedName, createBEM(prefixedName)]
|
11
|
-
}
|
12
|
-
|
13
|
-
/**
|
14
|
-
* bem helper
|
15
|
-
* b() // 'button'
|
16
|
-
* b('text') // 'button__text'
|
17
|
-
* b({ disabled }) // 'button button--disabled'
|
18
|
-
* b('text', { disabled }) // 'button__text button__text--disabled'
|
19
|
-
* b(['disabled', 'primary']) // 'button button--disabled button--primary'
|
20
|
-
*/
|
21
|
-
export function createBEM(name) {
|
22
|
-
return (el, mods) => {
|
23
|
-
if (el && typeof el !== 'string') {
|
24
|
-
mods = el
|
25
|
-
el = ''
|
26
|
-
}
|
27
|
-
|
28
|
-
el = el ? `${name}__${el}` : name
|
29
|
-
|
30
|
-
return `${el}${genBem(el, mods)}`
|
31
|
-
}
|
32
|
-
}
|
33
|
-
|
34
|
-
function genBem(name, mods) {
|
35
|
-
if (!mods) {
|
36
|
-
return ''
|
37
|
-
}
|
38
|
-
|
39
|
-
if (typeof mods === 'string') {
|
40
|
-
return ` ${name}--${mods}`
|
41
|
-
}
|
42
|
-
|
43
|
-
if (Array.isArray(mods)) {
|
44
|
-
return mods.reduce((ret, item) => ret + genBem(name, item), '')
|
45
|
-
}
|
46
|
-
|
47
|
-
return Object.keys(mods).reduce((ret, key) => ret + (mods[key] ? genBem(name, key) : ''), '')
|
48
|
-
}
|
package/src/utils/index.js
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* 字符串中间显示省略号...
|
3
|
-
* @param {String} value 字符串
|
4
|
-
* @param {Number} len 前后各显示多少位
|
5
|
-
* @returns 数组
|
6
|
-
*/
|
7
|
-
export function formatEllipsis(value, len) {
|
8
|
-
const showLen = parseInt(len / 2)
|
9
|
-
if (value && value.length > len) {
|
10
|
-
return value.substr(0, showLen) + '...' + value.substr(value.length - showLen)
|
11
|
-
}
|
12
|
-
return value
|
13
|
-
}
|
package/src/utils/validate.js
DELETED
package/vite.config.js
DELETED
@@ -1,47 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* @Author: chenghuan.dong
|
3
|
-
* @Date: 2023-06-27 16:24:35
|
4
|
-
* @LastEditors: chenghuan.dong
|
5
|
-
* @LastEditTime: 2023-09-13 09:41:01
|
6
|
-
* @Description:
|
7
|
-
*/
|
8
|
-
import { defineConfig, loadEnv } from 'vite'
|
9
|
-
import vue from '@vitejs/plugin-vue'
|
10
|
-
import path from 'path'
|
11
|
-
|
12
|
-
// https://vitejs.dev/config/
|
13
|
-
export default ({mode}) => {
|
14
|
-
const env = loadEnv(mode, process.cwd()); // 获取.env文件里定义的环境变量
|
15
|
-
console.log('env', JSON.stringify(env))
|
16
|
-
return defineConfig({
|
17
|
-
plugins: [vue()],
|
18
|
-
build: {
|
19
|
-
outDir: `${env.VITE_BUILD_NAME}`, //输出文件名称
|
20
|
-
lib: {
|
21
|
-
entry: path.resolve(__dirname, `./src/${env.VITE_UI_NAME}/index.js`), //指定组件编译入口文件
|
22
|
-
name: env.VITE_BUILD_NAME,
|
23
|
-
fileName: (format) => `${env.VITE_BUILD_NAME}.${format}.js`
|
24
|
-
}, //库编译模式配置
|
25
|
-
rollupOptions: {
|
26
|
-
// 确保外部化处理那些你不想打包进库的依赖
|
27
|
-
external: ['vue'],
|
28
|
-
output: {
|
29
|
-
// 在 UMD 构建模式下为这些外部化的依赖提供一个全局变量
|
30
|
-
globals: {
|
31
|
-
vue: 'Vue'
|
32
|
-
}
|
33
|
-
}
|
34
|
-
} // rollup打包配置
|
35
|
-
},
|
36
|
-
// 开发服务器选项
|
37
|
-
server: {
|
38
|
-
port: 9999,
|
39
|
-
host: '0.0.0.0',
|
40
|
-
// 是否自动在浏览器打开
|
41
|
-
open: true,
|
42
|
-
// 是否开启 https
|
43
|
-
https: false,
|
44
|
-
hmr: true // 开启热更新
|
45
|
-
}
|
46
|
-
})
|
47
|
-
}
|
File without changes
|