@bdsoft/element 1.1.9 → 1.1.11
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/dist/BdElement.js +23111 -0
- package/package.json +2 -1
- package/global/index.ts +0 -6
- package/global/register-properties.ts +0 -10
- package/index.html +0 -13
- package/package-form/core/components/formCreate.js +0 -274
- package/package-form/core/components/fragment.js +0 -12
- package/package-form/core/factory/context.js +0 -257
- package/package-form/core/factory/creator.js +0 -63
- package/package-form/core/factory/maker.js +0 -17
- package/package-form/core/factory/manager.js +0 -79
- package/package-form/core/factory/node.js +0 -85
- package/package-form/core/factory/parser.js +0 -28
- package/package-form/core/frame/api.js +0 -599
- package/package-form/core/frame/attrs.js +0 -12
- package/package-form/core/frame/dataDriver.js +0 -76
- package/package-form/core/frame/fetch.js +0 -119
- package/package-form/core/frame/formCreate.js +0 -274
- package/package-form/core/frame/index.js +0 -760
- package/package-form/core/frame/provider.js +0 -288
- package/package-form/core/frame/util.js +0 -274
- package/package-form/core/handler/context.js +0 -380
- package/package-form/core/handler/effect.js +0 -122
- package/package-form/core/handler/index.js +0 -111
- package/package-form/core/handler/inject.js +0 -145
- package/package-form/core/handler/input.js +0 -197
- package/package-form/core/handler/lifecycle.js +0 -43
- package/package-form/core/handler/loader.js +0 -373
- package/package-form/core/handler/page.js +0 -46
- package/package-form/core/handler/render.js +0 -29
- package/package-form/core/index.js +0 -12
- package/package-form/core/package.json +0 -15
- package/package-form/core/parser/html.js +0 -17
- package/package-form/core/render/cache.js +0 -47
- package/package-form/core/render/index.js +0 -31
- package/package-form/core/render/render.js +0 -393
- package/package-form/element-form/components/checkbox/package.json +0 -17
- package/package-form/element-form/components/checkbox/src/component.jsx +0 -110
- package/package-form/element-form/components/checkbox/src/index.js +0 -3
- package/package-form/element-form/components/frame/package.json +0 -17
- package/package-form/element-form/components/frame/src/IconCircleClose.vue +0 -14
- package/package-form/element-form/components/frame/src/IconDelete.vue +0 -12
- package/package-form/element-form/components/frame/src/IconDocument.vue +0 -12
- package/package-form/element-form/components/frame/src/IconFolderOpened.vue +0 -12
- package/package-form/element-form/components/frame/src/IconView.vue +0 -12
- package/package-form/element-form/components/frame/src/component.jsx +0 -349
- package/package-form/element-form/components/frame/src/index.js +0 -3
- package/package-form/element-form/components/frame/src/style.css +0 -66
- package/package-form/element-form/components/group/package.json +0 -17
- package/package-form/element-form/components/group/src/component.jsx +0 -314
- package/package-form/element-form/components/group/src/index.js +0 -3
- package/package-form/element-form/components/group/src/style.css +0 -125
- package/package-form/element-form/components/index.js +0 -22
- package/package-form/element-form/components/radio/package.json +0 -17
- package/package-form/element-form/components/radio/src/component.jsx +0 -101
- package/package-form/element-form/components/radio/src/index.js +0 -3
- package/package-form/element-form/components/select/package.json +0 -17
- package/package-form/element-form/components/select/src/component.jsx +0 -52
- package/package-form/element-form/components/select/src/index.js +0 -3
- package/package-form/element-form/components/subform/package.json +0 -14
- package/package-form/element-form/components/subform/src/component.jsx +0 -76
- package/package-form/element-form/components/subform/src/index.js +0 -3
- package/package-form/element-form/components/tree/package.json +0 -17
- package/package-form/element-form/components/tree/src/component.jsx +0 -62
- package/package-form/element-form/components/tree/src/index.js +0 -3
- package/package-form/element-form/components/upload/package.json +0 -17
- package/package-form/element-form/components/upload/src/IconUpload.vue +0 -12
- package/package-form/element-form/components/upload/src/component.jsx +0 -129
- package/package-form/element-form/components/upload/src/index.js +0 -3
- package/package-form/element-form/components/upload/src/style.css +0 -11
- package/package-form/element-form/index.js +0 -8
- package/package-form/element-form/package.json +0 -16
- package/package-form/element-form/src/components/icon/IconWarning.vue +0 -12
- package/package-form/element-form/src/components/index.js +0 -22
- package/package-form/element-form/src/core/alias.js +0 -34
- package/package-form/element-form/src/core/api.js +0 -208
- package/package-form/element-form/src/core/config.js +0 -62
- package/package-form/element-form/src/core/index.js +0 -60
- package/package-form/element-form/src/core/maker.js +0 -76
- package/package-form/element-form/src/core/manager.js +0 -315
- package/package-form/element-form/src/core/provider.js +0 -79
- package/package-form/element-form/src/parsers/datePicker.js +0 -31
- package/package-form/element-form/src/parsers/hidden.js +0 -12
- package/package-form/element-form/src/parsers/index.js +0 -17
- package/package-form/element-form/src/parsers/input.js +0 -21
- package/package-form/element-form/src/parsers/row.js +0 -10
- package/package-form/element-form/src/parsers/select.js +0 -15
- package/package-form/element-form/src/parsers/slider.js +0 -21
- package/package-form/element-form/src/parsers/timePicker.js +0 -17
- package/package-form/element-form/src/style/index.css +0 -52
- package/src/App.vue +0 -28
- package/src/assets/css/element.scss +0 -196
- package/src/assets/css/layout.scss +0 -215
- package/src/assets/css/tailwind.scss +0 -67
- package/src/assets/images/banner.gif +0 -0
- package/src/assets/images/banner.png +0 -0
- package/src/assets/images/bg1.svg +0 -22
- package/src/assets/images/bg2.png +0 -0
- package/src/assets/images/ff.png +0 -0
- package/src/assets/images/home-file1.png +0 -0
- package/src/assets/images/ky.png +0 -0
- package/src/assets/images/menu/add.png +0 -0
- package/src/assets/images/menu/del.png +0 -0
- package/src/assets/images/menu/down.png +0 -0
- package/src/assets/images/menu/dr.png +0 -0
- package/src/assets/images/menu/edit.png +0 -0
- package/src/assets/images/menu/kx.png +0 -0
- package/src/assets/images/menu/mb.png +0 -0
- package/src/assets/images/menu/pz.png +0 -0
- package/src/assets/images/menu/save.png +0 -0
- package/src/assets/images/menu/sj.png +0 -0
- package/src/assets/images/menu/sjk.png +0 -0
- package/src/assets/images/menu/up.png +0 -0
- package/src/assets/images/po-i.png +0 -0
- package/src/assets/images/po1-i1.png +0 -0
- package/src/assets/images/po1-i2.png +0 -0
- package/src/assets/images/po1-i3.png +0 -0
- package/src/assets/images/po1-i4.png +0 -0
- package/src/assets/images/po1-i5.png +0 -0
- package/src/assets/images/po1-i6.png +0 -0
- package/src/assets/images/po1-i7.png +0 -0
- package/src/assets/images/po1-i8.png +0 -0
- package/src/assets/images/po2-i1.png +0 -0
- package/src/assets/images/po2-i2.png +0 -0
- package/src/assets/images/po3-i1.png +0 -0
- package/src/assets/images/po4-i1.png +0 -0
- package/src/assets/images/po5-i1.png +0 -0
- package/src/assets/images/po6-i1.png +0 -0
- package/src/assets/images/po6-i2.png +0 -0
- package/src/assets/images/po7-i1.png +0 -0
- package/src/assets/images/tj1.png +0 -0
- package/src/assets/images/tj2.png +0 -0
- package/src/assets/images/tj3.png +0 -0
- package/src/components/3dcloudwords/index.js +0 -346
- package/src/components/3dcloudwords/index.vue +0 -99
- package/src/components/3dcloudwords/readme.md +0 -66
- package/src/components/badge/index.js +0 -167
- package/src/components/badge/index.scss +0 -166
- package/src/components/badge/index.vue +0 -98
- package/src/components/badge/readme.md +0 -18
- package/src/components/basic/Finish.vue +0 -107
- package/src/components/basic/button.vue +0 -19
- package/src/components/basic/readme.md +0 -7
- package/src/components/button/index.vue +0 -48
- package/src/components/button/readme.md +0 -62
- package/src/components/carousel/index.vue +0 -104
- package/src/components/carousel/readme.md +0 -12
- package/src/components/chartconfig/index.vue +0 -141
- package/src/components/chartconfig/readme.md +0 -25
- package/src/components/contextMenu/hookContxtMenu.js +0 -41
- package/src/components/contextMenu/index.vue +0 -245
- package/src/components/contextMenu/readme.md +0 -55
- package/src/components/contextMenu/useElementBounding.js +0 -40
- package/src/components/countup/countUp.js +0 -196
- package/src/components/countup/index.vue +0 -114
- package/src/components/countup/readme.md +0 -9
- package/src/components/empty/assets/build.png +0 -0
- package/src/components/empty/assets/emptybg.gif +0 -0
- package/src/components/empty/assets/emptybg.png +0 -0
- package/src/components/empty/assets/emptybg2.jpg +0 -0
- package/src/components/empty/assets/emptybg3.jpg +0 -0
- package/src/components/empty/assets/wuxiao.png +0 -0
- package/src/components/empty/assets/wuxiao.webp +0 -0
- package/src/components/empty/building.vue +0 -117
- package/src/components/empty/empty.vue +0 -120
- package/src/components/empty/index.js +0 -12
- package/src/components/empty/invalid.vue +0 -56
- package/src/components/error/Error.vue +0 -79
- package/src/components/error/readme.md +0 -20
- package/src/components/form/Form.vue +0 -84
- package/src/components/form/FormItem.vue +0 -143
- package/src/components/form/data.js +0 -52
- package/src/components/form/readme.md +0 -69
- package/src/components/layout/banner.vue +0 -412
- package/src/components/layout/bar.vue +0 -43
- package/src/components/layout/layout1.vue +0 -60
- package/src/components/layout/layout2.vue +0 -134
- package/src/components/layout/layout3.vue +0 -107
- package/src/components/layout/layout4.vue +0 -66
- package/src/components/layout/nav.vue +0 -333
- package/src/components/layout/readme.md +0 -61
- package/src/components/loading/index.vue +0 -122
- package/src/components/loading/readme.md +0 -6
- package/src/components/notice/NoticeList.vue +0 -198
- package/src/components/notice/NoticeListPaging.vue +0 -281
- package/src/components/notice/NoticeView.vue +0 -92
- package/src/components/notice/readme.md +0 -1
- package/src/components/pagination/index.vue +0 -100
- package/src/components/pagination/readme.md +0 -19
- package/src/components/pagination/scroll-to.js +0 -51
- package/src/components/progress/bar.vue +0 -72
- package/src/components/progress/progress.vue +0 -58
- package/src/components/screenfull/index.js +0 -3
- package/src/components/screenfull/index.vue +0 -65
- package/src/components/screenfull/package.json +0 -15
- package/src/components/screenfull/readme.md +0 -6
- package/src/components/statisticalCount/index.vue +0 -80
- package/src/components/statisticalCount/readme.md +0 -21
- package/src/components/username/index.vue +0 -79
- package/src/components/username/readme.md +0 -22
- package/src/components/username//346/225/210/346/236/234/345/233/276.png +0 -0
- package/src/index.js +0 -88
- package/src/utils/index.js +0 -32
- package/src/xm_components/HeadSearch/hook/hookSearch.js +0 -96
- package/src/xm_components/HeadSearch/index.vue +0 -206
- package/src/xm_components/HeadSearch/readme.md +0 -12
- package/src/xm_components/HeadSearch//346/220/234/347/264/242/345/210/227/350/241/250.png +0 -0
- package/src/xm_components/Milestone/index.vue +0 -213
- package/src/xm_components/Milestone/readme.md +0 -15
- package/src/xm_components/MultiStatisticalCard/image.png +0 -0
- package/src/xm_components/MultiStatisticalCard/index.vue +0 -114
- package/src/xm_components/MultiStatisticalCard/readme.md +0 -29
- package/src/xm_components/StatisticalCard/image.png +0 -0
- package/src/xm_components/StatisticalCard/index.vue +0 -196
- package/src/xm_components/StatisticalCard/readme.md +0 -41
- package/src/xm_components/readme.md +0 -1
- package/utils/coms/load.jsx +0 -10
- package/utils/func.js +0 -32
- package/utils/hookDialog.js +0 -38
- package/utils/hookPage.js +0 -49
- package/utils/index.js +0 -5
- package/utils/lib/console.js +0 -39
- package/utils/lib/debounce.js +0 -19
- package/utils/lib/deepextend.js +0 -51
- package/utils/lib/deepset.js +0 -14
- package/utils/lib/extend.js +0 -28
- package/utils/lib/index.js +0 -13
- package/utils/lib/json.js +0 -90
- package/utils/lib/mergeprops.js +0 -62
- package/utils/lib/mitt.js +0 -43
- package/utils/lib/modify.js +0 -8
- package/utils/lib/slot.js +0 -19
- package/utils/lib/toarray.js +0 -5
- package/utils/lib/tocase.js +0 -11
- package/utils/lib/todate.js +0 -10
- package/utils/lib/toline.js +0 -10
- package/utils/lib/tostring.js +0 -7
- package/utils/lib/type.js +0 -45
- package/utils/lib/unique.js +0 -6
- package/utils/message.js +0 -164
- package/utils/package.json +0 -16
- package/utils/type.js +0 -45
- package/vite.config.js +0 -56
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
Math.easeInOutQuad = function (t, b, c, d) {
|
|
2
|
-
t /= d / 2
|
|
3
|
-
if (t < 1) {
|
|
4
|
-
return c / 2 * t * t + b
|
|
5
|
-
}
|
|
6
|
-
t--
|
|
7
|
-
return -c / 2 * (t * (t - 2) - 1) + b
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
// requestAnimationFrame for Smart Animating http://goo.gl/sx5sts
|
|
11
|
-
var requestAnimFrame = (function () {
|
|
12
|
-
return window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback) { window.setTimeout(callback, 1000 / 60) }
|
|
13
|
-
})()
|
|
14
|
-
|
|
15
|
-
// because it's so fucking difficult to detect the scrolling element, just move them all
|
|
16
|
-
function move (amount) {
|
|
17
|
-
document.documentElement.scrollTop = amount
|
|
18
|
-
document.body.parentNode.scrollTop = amount
|
|
19
|
-
document.body.scrollTop = amount
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function position () {
|
|
23
|
-
return document.documentElement.scrollTop || document.body.parentNode.scrollTop || document.body.scrollTop
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export function scrollTo (to, duration, callback) {
|
|
27
|
-
const start = position()
|
|
28
|
-
const change = to - start
|
|
29
|
-
const increment = 20
|
|
30
|
-
let currentTime = 0
|
|
31
|
-
duration = (typeof (duration) === 'undefined') ? 500 : duration
|
|
32
|
-
var animateScroll = function () {
|
|
33
|
-
// increment the time
|
|
34
|
-
currentTime += increment
|
|
35
|
-
// find the value with the quadratic in-out easing function
|
|
36
|
-
var val = Math.easeInOutQuad(currentTime, start, change, duration)
|
|
37
|
-
// move the document.body
|
|
38
|
-
move(val)
|
|
39
|
-
// do the animation unless its over
|
|
40
|
-
if (currentTime < duration) {
|
|
41
|
-
requestAnimFrame(animateScroll)
|
|
42
|
-
} else {
|
|
43
|
-
if (callback && typeof (callback) === 'function') {
|
|
44
|
-
// the animation is done so lets callback
|
|
45
|
-
callback()
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
animateScroll()
|
|
50
|
-
}
|
|
51
|
-
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @FileDescription: 状态条
|
|
3
|
-
* @Author: 李兵泉
|
|
4
|
-
* @Date: 2021-06-08 09 时
|
|
5
|
-
* @LastEditors: 最后更新作者
|
|
6
|
-
* @LastEditTime: 最后更新时间
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div class="status-bar-container" :style="containerStyle">
|
|
10
|
-
<div class="bar" v-for="index in barCount" :key="index" :style="barStyle"></div>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
<script setup>
|
|
14
|
-
import { ref, reactive, computed, watch, onMounted } from "vue";
|
|
15
|
-
const props = defineProps({
|
|
16
|
-
containerWidth: {
|
|
17
|
-
type: Number,
|
|
18
|
-
default: 80
|
|
19
|
-
},
|
|
20
|
-
bgcolor: {
|
|
21
|
-
type: String,
|
|
22
|
-
default: '#409eff'
|
|
23
|
-
},
|
|
24
|
-
barWidth: {
|
|
25
|
-
type: Number,
|
|
26
|
-
default: 3
|
|
27
|
-
},
|
|
28
|
-
barSpacing: {
|
|
29
|
-
type: Number,
|
|
30
|
-
default: 3
|
|
31
|
-
}
|
|
32
|
-
})
|
|
33
|
-
// const containerWidth = ref(200); // 容器宽度
|
|
34
|
-
// const containerHeight = ref(40); // 容器高度
|
|
35
|
-
const barWidth = ref(props.barWidth); // 长条宽度
|
|
36
|
-
const barSpacing = ref(props.barSpacing); // 长条间隔
|
|
37
|
-
|
|
38
|
-
const containerStyle = computed(() => ({
|
|
39
|
-
width: `100%`,
|
|
40
|
-
height: `100%`,
|
|
41
|
-
// backgroundColor: props.bgcolor, // 容器背景颜色,根据需要调整
|
|
42
|
-
display: 'flex',
|
|
43
|
-
flexDirection: 'row',
|
|
44
|
-
alignItems: 'stretch'
|
|
45
|
-
}));
|
|
46
|
-
|
|
47
|
-
const barCount = computed(() => {
|
|
48
|
-
// 计算可以放置多少个长条
|
|
49
|
-
const totalBarWidth = barWidth.value + barSpacing.value; // 单个长条总占用宽度
|
|
50
|
-
return Math.floor(props.containerWidth / totalBarWidth); // 计算可以放置的长条数量
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
const barStyle = computed(() => ({
|
|
54
|
-
width: `${barWidth.value}px`,
|
|
55
|
-
marginRight: `${barSpacing.value}px`,
|
|
56
|
-
backgroundColor: props.bgcolor // 长条颜色,根据需要调整
|
|
57
|
-
}));
|
|
58
|
-
|
|
59
|
-
</script>
|
|
60
|
-
|
|
61
|
-
<style lang="scss" scoped>
|
|
62
|
-
/* 容器和长条的基本样式 */
|
|
63
|
-
.status-bar-container {
|
|
64
|
-
overflow: hidden;
|
|
65
|
-
/* 隐藏多余的长条 */
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.bar {
|
|
69
|
-
height: 100%;
|
|
70
|
-
/* 长条高度充满容器 */
|
|
71
|
-
}
|
|
72
|
-
</style>
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @FileDescription: 进度条内显示百分比标识
|
|
3
|
-
* @Author: 李兵泉
|
|
4
|
-
* @Date: 2021-06-08 09 时
|
|
5
|
-
* @LastEditors: 最后更新作者
|
|
6
|
-
* @LastEditTime: 最后更新时间
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<el-progress class="bd-progress" :color="bgcolor" :text-inside="true" striped :stroke-width="strokeWidth"
|
|
10
|
-
:percentage="percentage" />
|
|
11
|
-
</template>
|
|
12
|
-
<script setup>
|
|
13
|
-
import { ref, reactive, computed, watch, onMounted } from "vue";
|
|
14
|
-
const props = defineProps({
|
|
15
|
-
width: {
|
|
16
|
-
type: Number,
|
|
17
|
-
default: 20
|
|
18
|
-
},
|
|
19
|
-
bgcolor: {
|
|
20
|
-
type: String,
|
|
21
|
-
default: '#409eff'
|
|
22
|
-
},
|
|
23
|
-
strokeWidth: {
|
|
24
|
-
type: Number,
|
|
25
|
-
default: 20
|
|
26
|
-
},
|
|
27
|
-
percentage: {
|
|
28
|
-
type: Number,
|
|
29
|
-
default: 50
|
|
30
|
-
}
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
const getColor = computed(() => {
|
|
34
|
-
let p = props.percentage
|
|
35
|
-
if (p < 30) {
|
|
36
|
-
return '#67c23a'
|
|
37
|
-
} else if (p < 50) {
|
|
38
|
-
return '#ffa724'
|
|
39
|
-
} else if (p > 70) {
|
|
40
|
-
return '#f56c6c'
|
|
41
|
-
}
|
|
42
|
-
})
|
|
43
|
-
</script>
|
|
44
|
-
|
|
45
|
-
<style lang="scss" scoped>
|
|
46
|
-
.bd-progress {
|
|
47
|
-
:deep(.el-progress-bar) {
|
|
48
|
-
.el-progress-bar__outer {
|
|
49
|
-
border-radius: 5px !important;
|
|
50
|
-
background-color: #07215c;
|
|
51
|
-
|
|
52
|
-
.el-progress-bar__inner {
|
|
53
|
-
border-radius: 5px !important;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
</style>
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
<template>
|
|
3
|
-
<div>
|
|
4
|
-
<slot/>
|
|
5
|
-
</div>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script setup>
|
|
9
|
-
import { ref, onMounted, onBeforeUnmount } from 'vue'
|
|
10
|
-
import screenfull from 'screenfull'
|
|
11
|
-
|
|
12
|
-
// 定义响应式变量
|
|
13
|
-
const isFullscreen = ref(false)
|
|
14
|
-
|
|
15
|
-
// 处理点击事件
|
|
16
|
-
const click = () => {
|
|
17
|
-
if (!screenfull.enabled) {
|
|
18
|
-
alert('你的浏览器不支持全屏模式')
|
|
19
|
-
return false
|
|
20
|
-
}
|
|
21
|
-
screenfull.toggle()
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// 处理全屏状态变化
|
|
25
|
-
const change = () => {
|
|
26
|
-
isFullscreen.value = screenfull.isFullscreen
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// 初始化事件监听
|
|
30
|
-
const init = () => {
|
|
31
|
-
if (screenfull.enabled) {
|
|
32
|
-
screenfull.on('change', change)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// 销毁事件监听
|
|
37
|
-
const destroy = () => {
|
|
38
|
-
if (screenfull.enabled) {
|
|
39
|
-
screenfull.off('change', change)
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// 组件挂载时初始化
|
|
44
|
-
onMounted(() => {
|
|
45
|
-
init()
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
// 组件卸载前销毁事件监听
|
|
49
|
-
onBeforeUnmount(() => {
|
|
50
|
-
destroy()
|
|
51
|
-
})
|
|
52
|
-
</script>
|
|
53
|
-
|
|
54
|
-
<style scoped>
|
|
55
|
-
.screenfull-svg {
|
|
56
|
-
display: inline-block;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
fill: #5a5e66;
|
|
59
|
-
width: 20px;
|
|
60
|
-
height: 20px;
|
|
61
|
-
vertical-align: 10px;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
</style>
|
|
65
|
-
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@bdsoft/element-screenfull",
|
|
3
|
-
"version": "1.1.2",
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
-
},
|
|
9
|
-
"keywords": [],
|
|
10
|
-
"author": "",
|
|
11
|
-
"license": "ISC",
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"screenfull": "^6.0.2"
|
|
14
|
-
}
|
|
15
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @FileDescription: 统计数组件
|
|
3
|
-
* @Author: 李兵泉
|
|
4
|
-
* @Date: 2021-06-08 09 时
|
|
5
|
-
* @LastEditors: 最后更新作者
|
|
6
|
-
* @LastEditTime: 最后更新时间
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<el-row style="height: 100%;width: 100%;border-radius: 10px;padding:0 10px;" :style="{ background: bgColor }">
|
|
10
|
-
<el-col :span="10">
|
|
11
|
-
<div
|
|
12
|
-
style="width: 100%;padding: 10px 0;display: flex;align-items: center;justify-content: center;">
|
|
13
|
-
<img :src="countIcon" alt="" height="30px">
|
|
14
|
-
</div>
|
|
15
|
-
<div style="height: 30px;width: 100%;display: flex;justify-content: center; line-height: 30px;text-align: center;color: #fff;">
|
|
16
|
-
<span>{{ countTitle }}</span>
|
|
17
|
-
</div>
|
|
18
|
-
</el-col>
|
|
19
|
-
<el-col :span="14" style="display: flex;align-items: center;justify-content: center;">
|
|
20
|
-
<div class="stepnum">
|
|
21
|
-
<count-up :id-name="idName" class="infor-intro-num user-created-count" id-name="idName3"
|
|
22
|
-
:end-val="countNum" :countSize="1033" :countWeight="700"> </count-up>
|
|
23
|
-
<span class="dw">{{ countDw }}</span>
|
|
24
|
-
</div>
|
|
25
|
-
</el-col>
|
|
26
|
-
</el-row>
|
|
27
|
-
</template>
|
|
28
|
-
|
|
29
|
-
<script setup>
|
|
30
|
-
import { ref, reactive, computed, watch, onMounted } from "vue";
|
|
31
|
-
|
|
32
|
-
// import countUp from '../coms/countup/countUp.vue';
|
|
33
|
-
import countUp from '../countup/index.vue'
|
|
34
|
-
const props = defineProps({
|
|
35
|
-
idName: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: ''
|
|
38
|
-
},
|
|
39
|
-
countTitle: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: ''
|
|
42
|
-
},
|
|
43
|
-
countIcon: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ''
|
|
46
|
-
},
|
|
47
|
-
countNum: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: 0,
|
|
50
|
-
require:true
|
|
51
|
-
},
|
|
52
|
-
countDw: {
|
|
53
|
-
type: String,
|
|
54
|
-
default: ''
|
|
55
|
-
},
|
|
56
|
-
bgColor: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: '#0b2f6a'
|
|
59
|
-
}
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
</script>
|
|
63
|
-
<style lang="scss" scoped>
|
|
64
|
-
.stepnum {
|
|
65
|
-
color: #fff;
|
|
66
|
-
font-size: 32px;
|
|
67
|
-
font-weight: 700;
|
|
68
|
-
|
|
69
|
-
.infor-intro-num {
|
|
70
|
-
display: inline-block;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.dw {
|
|
74
|
-
font-size: 12px;
|
|
75
|
-
line-height: 1;
|
|
76
|
-
font-weight: normal;
|
|
77
|
-
margin-left: 5px;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
</style>
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
## 统计数组件
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
```
|
|
5
|
-
import { BdStatisticalCount } from '@bdsoft/element'
|
|
6
|
-
|
|
7
|
-
<el-row style="height: 100px;margin-bottom: 10px;">
|
|
8
|
-
<el-col :span="12" style="padding: 10px;">
|
|
9
|
-
<BdStatisticalCount :idName="'id1'" :countTitle="'云服务器'" :countIcon="'count/yfwq.png'"
|
|
10
|
-
:countNum="statistics.servernum" :countDw="''"
|
|
11
|
-
bgColor=" linear-gradient( 135deg, #FDD819 10%, #E80505 100%)">
|
|
12
|
-
</BdStatisticalCount>
|
|
13
|
-
</el-col>
|
|
14
|
-
<el-col :span="12" style="padding: 10px;">
|
|
15
|
-
<BdStatisticalCount :idName="'id3'" :countTitle="'专业软件'" :countIcon="'syslog/yingyong1.png'"
|
|
16
|
-
:countNum="statistics.modulecount" :countDw="''"
|
|
17
|
-
:bgColor="'linear-gradient( 135deg, #6B73FF 10%, #000DFF 100%)'">
|
|
18
|
-
</BdStatisticalCount>
|
|
19
|
-
</el-col>
|
|
20
|
-
</el-row>
|
|
21
|
-
```
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
* @FileDescription: 名字组件
|
|
3
|
-
* @Author: 李兵泉
|
|
4
|
-
* @Date: 2025-06-08 09 时
|
|
5
|
-
* @LastEditors: 最后更新作者
|
|
6
|
-
* @LastEditTime: 最后更新时间
|
|
7
|
-
-->
|
|
8
|
-
<template>
|
|
9
|
-
<div
|
|
10
|
-
class="name-container"
|
|
11
|
-
:style="{
|
|
12
|
-
backgroundColor: bgColor === 'random' ? getRandomColor() : bgColor,
|
|
13
|
-
color: textColor,
|
|
14
|
-
width: width,
|
|
15
|
-
height: height
|
|
16
|
-
}"
|
|
17
|
-
>
|
|
18
|
-
{{ displayName }}
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script>
|
|
23
|
-
export default {
|
|
24
|
-
props: {
|
|
25
|
-
name: {
|
|
26
|
-
type: String,
|
|
27
|
-
required: true
|
|
28
|
-
},
|
|
29
|
-
// 定义背景颜色 传递random则随机生成颜色
|
|
30
|
-
bgColor: {
|
|
31
|
-
type: String,
|
|
32
|
-
default: '#007BFF'
|
|
33
|
-
},
|
|
34
|
-
// 定义文字颜色
|
|
35
|
-
textColor: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: '#FFFFFF'
|
|
38
|
-
},
|
|
39
|
-
// 定义组件的宽高
|
|
40
|
-
width: {
|
|
41
|
-
type: String,
|
|
42
|
-
default: '28px'
|
|
43
|
-
},
|
|
44
|
-
height: {
|
|
45
|
-
type: String,
|
|
46
|
-
default: '28px'
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
computed: {
|
|
50
|
-
displayName() {
|
|
51
|
-
return this.name.slice(-2)
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
methods: {
|
|
55
|
-
getRandomColor() {
|
|
56
|
-
const letters = '0123456789ABCDEF'
|
|
57
|
-
let color = '#'
|
|
58
|
-
for (let i = 0; i < 6; i++) {
|
|
59
|
-
color += letters[Math.floor(Math.random() * 16)]
|
|
60
|
-
}
|
|
61
|
-
return color
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
</script>
|
|
66
|
-
|
|
67
|
-
<style scoped>
|
|
68
|
-
.name-container {
|
|
69
|
-
display: flex;
|
|
70
|
-
justify-content: center;
|
|
71
|
-
align-items: center;
|
|
72
|
-
width: 30px;
|
|
73
|
-
height: 30px;
|
|
74
|
-
border-radius: 50%;
|
|
75
|
-
font-size: 12px;
|
|
76
|
-
margin-right: 10px;
|
|
77
|
-
/* font-weight: bold; */
|
|
78
|
-
}
|
|
79
|
-
</style>
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
## 名字组件
|
|
3
|
-
功能:
|
|
4
|
-
1. 显示用户名称(后两位)
|
|
5
|
-
2. 随机背景色(bgColor="random")
|
|
6
|
-
3. 修改组件宽高
|
|
7
|
-
|
|
8
|
-
使用方法:
|
|
9
|
-
|
|
10
|
-
```
|
|
11
|
-
import { BdUserName } from '@bdsoft/element'
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<el-table-column label="用户名称" prop="user_name" width="200" show-overflow-tooltip>
|
|
15
|
-
<template #default="scope">
|
|
16
|
-
<span style="display: flex; align-items: center">
|
|
17
|
-
<BdUserName :name="scope.row.user_name" bgColor="random"></BdUserName>
|
|
18
|
-
{{ scope.row.user_name }}
|
|
19
|
-
</span>
|
|
20
|
-
</template>
|
|
21
|
-
</el-table-column>
|
|
22
|
-
```
|
|
Binary file
|
package/src/index.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
// 导出element 开发的相关的界面
|
|
2
|
-
import BdEmpty from './components/empty/empty.vue'
|
|
3
|
-
import BdInvalid from './components/empty/invalid.vue' // 无效页面组件
|
|
4
|
-
import BdBuilding from './components/empty/building.vue'
|
|
5
|
-
import BdBar from './components/layout/bar.vue'
|
|
6
|
-
import BdNav from './components/layout/nav.vue'
|
|
7
|
-
import BdBadge from './components/badge/index.vue'
|
|
8
|
-
import BdLayout1 from './components/layout/layout1.vue'
|
|
9
|
-
import BdLayout2 from './components/layout/layout2.vue'
|
|
10
|
-
import BdLayout3 from './components/layout/layout3.vue'
|
|
11
|
-
import BdLayout4 from './components/layout/layout4.vue'
|
|
12
|
-
// 搜索框组件
|
|
13
|
-
import HeadSearch from './xm_components/HeadSearch/index.vue'
|
|
14
|
-
// 里程碑组件
|
|
15
|
-
import Milestone from './xm_components/Milestone/index.vue'
|
|
16
|
-
// 多维数据统计组件
|
|
17
|
-
import StatisticalCard from './xm_components/StatisticalCard/index.vue'
|
|
18
|
-
// 多数据指标统计
|
|
19
|
-
import MultiStatisticalCard from './xm_components/MultiStatisticalCard/index.vue'
|
|
20
|
-
import BDCarousel from './components/carousel/index.vue'
|
|
21
|
-
import BdFormItem from './components/form/FormItem.vue'
|
|
22
|
-
import BdForm from './components/form/Form.vue'
|
|
23
|
-
import Notice from './components/notice/NoticeList.vue'
|
|
24
|
-
import NoticePage from './components/notice/NoticeListPaging.vue'
|
|
25
|
-
import NoticeView from './components/notice/NoticeView.vue'
|
|
26
|
-
// 完成提示动画组件
|
|
27
|
-
import BdFinish from './components/basic/Finish.vue'
|
|
28
|
-
// 计数组件
|
|
29
|
-
import BdCountUp from './components/countup/index.vue'
|
|
30
|
-
// 按钮组件
|
|
31
|
-
import BdButton from './components/button/index.vue'
|
|
32
|
-
// 进度条
|
|
33
|
-
import BDProgress from './components/progress/progress.vue'
|
|
34
|
-
import BDProgressBar from './components/progress/bar.vue'
|
|
35
|
-
// 分页组件
|
|
36
|
-
import BdPagination from './components/pagination/index.vue'
|
|
37
|
-
// 词云组件
|
|
38
|
-
import BdWordsCloud from './components/3dcloudwords/index.vue'
|
|
39
|
-
// 右键菜单
|
|
40
|
-
import BdContextMenu from './components/contextMenu/index.vue'
|
|
41
|
-
// loading菜单
|
|
42
|
-
import BdLoading from './components/loading/index.vue'
|
|
43
|
-
// 异常页面
|
|
44
|
-
import BdError from './components/error/Error.vue'
|
|
45
|
-
// 名字组件
|
|
46
|
-
import BdUserName from './components/username/index.vue'
|
|
47
|
-
// 图表属性配置组件
|
|
48
|
-
import BdChartConfig from './components/chartconfig/index.vue'
|
|
49
|
-
// 统计数+图标组件
|
|
50
|
-
import BdStatisticalCount from './components/statisticalCount/index.vue'
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export {
|
|
54
|
-
BdStatisticalCount,
|
|
55
|
-
BdBuilding,
|
|
56
|
-
BdChartConfig,
|
|
57
|
-
BdUserName,
|
|
58
|
-
BdError,
|
|
59
|
-
BdLoading,
|
|
60
|
-
BdContextMenu,
|
|
61
|
-
BdWordsCloud,
|
|
62
|
-
BdPagination,
|
|
63
|
-
BdNav,
|
|
64
|
-
BdBar,
|
|
65
|
-
BdBadge,
|
|
66
|
-
BdLayout1,
|
|
67
|
-
BdLayout2,
|
|
68
|
-
BdLayout3,
|
|
69
|
-
BdLayout4,
|
|
70
|
-
HeadSearch,
|
|
71
|
-
Milestone,
|
|
72
|
-
StatisticalCard,
|
|
73
|
-
MultiStatisticalCard,
|
|
74
|
-
BdEmpty,
|
|
75
|
-
BdInvalid,
|
|
76
|
-
BDCarousel,
|
|
77
|
-
BDProgress,
|
|
78
|
-
BDProgressBar,
|
|
79
|
-
BdFormItem,
|
|
80
|
-
BdForm,
|
|
81
|
-
Notice,
|
|
82
|
-
NoticePage,
|
|
83
|
-
NoticeView,
|
|
84
|
-
BdButton,
|
|
85
|
-
BdCountUp,
|
|
86
|
-
BdFinish
|
|
87
|
-
}
|
|
88
|
-
|
package/src/utils/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export const headerCellStyle = { color: '#999', backgroundColor: '#F5F6FA', height: '40px', fontSize: '14px', fontWeight: 'normal', color: '#666' }
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 日期格式化
|
|
5
|
-
* @param {*} time
|
|
6
|
-
* @param {*} format
|
|
7
|
-
* @returns
|
|
8
|
-
*/
|
|
9
|
-
export function parseTime(time, format) {
|
|
10
|
-
if (!time) return ''
|
|
11
|
-
var t = new Date(time)
|
|
12
|
-
var tf = function (i) {
|
|
13
|
-
return (i < 10 ? '0' : '') + i
|
|
14
|
-
}
|
|
15
|
-
return format.replace(/yyyy|MM|dd|HH|mm|ss/g, function (a) {
|
|
16
|
-
switch (a) {
|
|
17
|
-
case 'yyyy':
|
|
18
|
-
return tf(t.getFullYear())
|
|
19
|
-
case 'MM':
|
|
20
|
-
return tf(t.getMonth() + 1)
|
|
21
|
-
case 'mm':
|
|
22
|
-
return tf(t.getMinutes())
|
|
23
|
-
case 'dd':
|
|
24
|
-
return tf(t.getDate())
|
|
25
|
-
case 'HH':
|
|
26
|
-
return tf(t.getHours())
|
|
27
|
-
case 'ss':
|
|
28
|
-
return tf(t.getSeconds())
|
|
29
|
-
}
|
|
30
|
-
})
|
|
31
|
-
}
|
|
32
|
-
|