@ganwei-web/gw-base-components-plus 1.0.0
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/echartList/barEchart/dist/index.es.js +152 -0
- package/echartList/barEchart/dist/index.umd.js +1 -0
- package/echartList/barEchart/dist/style.css +1 -0
- package/echartList/curve/dist/index.es.js +217 -0
- package/echartList/curve/dist/index.umd.js +1 -0
- package/echartList/curve/dist/style.css +1 -0
- package/echartList/historyEchart/dist/index.es.js +292 -0
- package/echartList/historyEchart/dist/index.umd.js +10 -0
- package/echartList/historyEchart/dist/style.css +1 -0
- package/echartList/solid-bar/dist/index.es.js +290 -0
- package/echartList/solid-bar/dist/index.umd.js +1 -0
- package/echartList/solid-bar/dist/style.css +1 -0
- package/echartList/solid-circle/dist/index.es.js +332 -0
- package/echartList/solid-circle/dist/index.umd.js +6 -0
- package/echartList/solid-circle/dist/style.css +1 -0
- package/echartList/solid-pie/dist/index.es.js +336 -0
- package/echartList/solid-pie/dist/index.umd.js +6 -0
- package/echartList/solid-pie/dist/style.css +1 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs +902 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.css +789 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +903 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.js +902 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -0
- package/equip-list-vue2/dist/index.es.js +1275 -0
- package/equip-list-vue2/dist/index.umd.js +1 -0
- package/equip-list-vue2/dist/style.css +1 -0
- package/equip-list-vue3/dist/index.es.js +1510 -0
- package/equip-list-vue3/dist/index.umd.js +1 -0
- package/equip-list-vue3/dist/style.css +1 -0
- package/equip-select-vue2/dist/index.es.js +231 -0
- package/equip-select-vue2/dist/index.umd.js +1 -0
- package/equip-select-vue2/dist/style.css +1 -0
- package/equip-select-vue3/dist/index.es.js +231 -0
- package/equip-select-vue3/dist/index.umd.js +1 -0
- package/equip-select-vue3/dist/style.css +1 -0
- package/equipProcessing/dist/index.es.js +203 -0
- package/equipProcessing/dist/index.umd.js +1 -0
- package/loadMore/dist/index.es.js +12 -0
- package/loadMore/dist/index.umd.js +1 -0
- package/loading/dist/index.es.js +25 -0
- package/loading/dist/index.umd.js +1 -0
- package/loading/dist/style.css +1 -0
- package/package.json +11 -0
- package/player/dist/index.es.js +1080 -0
- package/player/dist/index.umd.js +14 -0
- package/player/dist/style.css +1 -0
- package/selectV2/dist/index.es.js +190 -0
- package/selectV2/dist/index.umd.js +1 -0
- package/selectV2/dist/style.css +1 -0
- package/showPassword/dist/index.es.js +72 -0
- package/showPassword/dist/index.umd.js +1 -0
- package/table/dist/index.es.js +182 -0
- package/table/dist/index.umd.js +1 -0
- package/table/dist/style.css +1 -0
- package/widthSetting/dist/index.es.js +113 -0
- package/widthSetting/dist/index.umd.js +1 -0
- package/widthSetting/dist/style.css +1 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { createElementBlock as o, createElementVNode as m, normalizeClass as h, normalizeStyle as l, openBlock as d } from "vue";
|
|
2
|
+
|
|
3
|
+
import "./style.css";
|
|
4
|
+
const r = (t, e) => {
|
|
5
|
+
const i = t.__vccOpts || t;
|
|
6
|
+
for (const [s, n] of e) { i[s] = n; }
|
|
7
|
+
return i;
|
|
8
|
+
}, a = {
|
|
9
|
+
props: {
|
|
10
|
+
leftSide: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: ""
|
|
13
|
+
},
|
|
14
|
+
rightSide: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ""
|
|
17
|
+
},
|
|
18
|
+
side: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: "right"
|
|
21
|
+
},
|
|
22
|
+
minWidth: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 220
|
|
25
|
+
},
|
|
26
|
+
custom: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
data() {
|
|
32
|
+
return {
|
|
33
|
+
startLeft: 0,
|
|
34
|
+
endLeft: 0,
|
|
35
|
+
x: 0,
|
|
36
|
+
y: 0,
|
|
37
|
+
mask: null,
|
|
38
|
+
id: null,
|
|
39
|
+
maskId: null,
|
|
40
|
+
move: 0,
|
|
41
|
+
currentWidth: 0,
|
|
42
|
+
showResize: !1
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
created() {
|
|
46
|
+
this.id = this.generateUUID(), this.maskId = this.generateUUID(), this.mask = document.createElement("div"), this.mask.id = this.maskId, this.mask.style.position = "fixed", this.mask.style.top = "0px", this.mask.style.left = "0px", this.mask.style.width = "100%", this.mask.style.height = "100%", this.mask.style.zIndex = "10000", this.mask.style.cursor = "e-resize";
|
|
47
|
+
},
|
|
48
|
+
watch: {
|
|
49
|
+
currentWidth(t) {
|
|
50
|
+
t < this.minWidth && (this.currentWidth = this.minWidth);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
mounted() {
|
|
54
|
+
this.currentWidth = this.getDom(this.leftSide).offsetWidth, this.leftSide && setTimeout(() => {
|
|
55
|
+
let t = document.getElementById(this.leftSide);
|
|
56
|
+
t || (t = document.getElementsByClassName(this.leftSide)[0]), t.classList.add("hoverActive");
|
|
57
|
+
}, 1e3), this.dragControl();
|
|
58
|
+
},
|
|
59
|
+
methods: {
|
|
60
|
+
generateUUID() {
|
|
61
|
+
let t = (/* @__PURE__ */ new Date()).getTime();
|
|
62
|
+
return window.performance && typeof window.performance.now == "function" && (t += performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(i) {
|
|
63
|
+
let s = (t + Math.random() * 16) % 16 | 0;
|
|
64
|
+
return t = Math.floor(t / 16), (i === "x" ? s : s & 3 | 8).toString(16);
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
getDom(t) {
|
|
68
|
+
let e = document.getElementById(t);
|
|
69
|
+
return e || (e = document.getElementsByClassName(t)[0]), e;
|
|
70
|
+
},
|
|
71
|
+
setLeftWidth(t) {
|
|
72
|
+
let e = this.getDom(this.leftSide), i = Number(t) + Number(this.currentWidth);
|
|
73
|
+
e && (i < this.minWidth ? e.style.width = Number(this.minWidth) + "px" : e.style.width = i + "px");
|
|
74
|
+
},
|
|
75
|
+
setRightWidth(t) {
|
|
76
|
+
let e = this.getDom(this.rightSide), i = Number(t) + Number(this.currentWidth);
|
|
77
|
+
e && (i < this.minWidth ? e.style.width = "calc(100% - " + this.minWidth + "px)" : e.style.width = "calc(100% - " + i + "px)");
|
|
78
|
+
},
|
|
79
|
+
setData(t) {
|
|
80
|
+
document.body.removeChild(document.getElementById(this.maskId)), this.showResize = !1, t = t || window.event;
|
|
81
|
+
let e = 0;
|
|
82
|
+
this.currentWidth = this.getDom(this.leftSide).offsetWidth, this.custom && (window.top == window ? t.clientX > this.minWidth ? (document.documentElement.style.setProperty("--maxActiveWidth", this.currentWidth), e = t.clientX) : (document.documentElement.style.setProperty("--maxActiveWidth", this.minWidth), e = this.minWidth) : e = t.clientX, this.$emit("resizeEnd", e - this.x)), this.mask.onmousemove = null, this.mask.onmouseup = null, this.mask.onmouseout = null;
|
|
83
|
+
},
|
|
84
|
+
dragControl() {
|
|
85
|
+
let t = document.getElementById(this.id);
|
|
86
|
+
t.onmousedown = (e) => {
|
|
87
|
+
this.x = e.clientX;
|
|
88
|
+
let i = e.clientX;
|
|
89
|
+
document.body.appendChild(this.mask), this.showResize = !0, this.mask.onmousemove = (s) => {
|
|
90
|
+
let n = s.clientX;
|
|
91
|
+
this.side == "right" ? this.move = n - i : this.move = i - n, s = s || window.event, this.setLeftWidth(this.move), this.setRightWidth(this.move);
|
|
92
|
+
}, this.mask.onmouseup = (s) => {
|
|
93
|
+
this.setData(s);
|
|
94
|
+
}, this.mask.onmouseout = (s) => {
|
|
95
|
+
this.setData(s);
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}, u = ["id"];
|
|
101
|
+
function c(t, e, i, s, n, f) {
|
|
102
|
+
return d(), o("div", {
|
|
103
|
+
class: h(["resizeTransform", { showResize: n.showResize }]),
|
|
104
|
+
id: n.id,
|
|
105
|
+
style: l({ [i.side]: "0px" })
|
|
106
|
+
}, e[0] || (e[0] = [
|
|
107
|
+
m("div", { class: "bar" }, null, -1)
|
|
108
|
+
]), 14, u);
|
|
109
|
+
}
|
|
110
|
+
const y = /* @__PURE__ */ r(a, [["render", c], ["__scopeId", "data-v-3c8b1ffb"]]);
|
|
111
|
+
export {
|
|
112
|
+
y as default
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(n, o){ typeof exports == "object" && typeof module < "u" ? module.exports = o(require("vue")) : typeof define == "function" && define.amd ? define(["vue"], o) : (n = typeof globalThis < "u" ? globalThis : n || self, n.index = o(n.Vue)) })(this, function(n){ "use strict";const o = "", h = (t, e)=>{ const i = t.__vccOpts || t;for(const[s, d]of e){ i[s] = d; }return i }, l = {props: {leftSide: {type: String, default: ""}, rightSide: {type: String, default: ""}, side: {type: String, default: "right"}, minWidth: {type: Number, default: 220}, custom: {type: Boolean, default: !1}}, data(){ return{startLeft: 0, endLeft: 0, x: 0, y: 0, mask: null, id: null, maskId: null, move: 0, currentWidth: 0, showResize: !1} }, created(){ this.id = this.generateUUID(), this.maskId = this.generateUUID(), this.mask = document.createElement("div"), this.mask.id = this.maskId, this.mask.style.position = "fixed", this.mask.style.top = "0px", this.mask.style.left = "0px", this.mask.style.width = "100%", this.mask.style.height = "100%", this.mask.style.zIndex = "10000", this.mask.style.cursor = "e-resize" }, watch: {currentWidth(t){ t < this.minWidth && (this.currentWidth = this.minWidth) }}, mounted(){ this.currentWidth = this.getDom(this.leftSide).offsetWidth, this.leftSide && setTimeout(()=>{ let t = document.getElementById(this.leftSide);t || (t = document.getElementsByClassName(this.leftSide)[0]), t.classList.add("hoverActive") }, 1e3), this.dragControl() }, methods: {generateUUID(){ let t = new Date().getTime();return window.performance && typeof window.performance.now == "function" && (t += performance.now()), "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(i){ let s = (t + Math.random() * 16) % 16 | 0;return t = Math.floor(t / 16), (i === "x" ? s : s & 3 | 8).toString(16) }) }, getDom(t){ let e = document.getElementById(t);return e || (e = document.getElementsByClassName(t)[0]), e }, setLeftWidth(t){ let e = this.getDom(this.leftSide), i = Number(t) + Number(this.currentWidth);e && (i < this.minWidth ? e.style.width = Number(this.minWidth) + "px" : e.style.width = i + "px") }, setRightWidth(t){ let e = this.getDom(this.rightSide), i = Number(t) + Number(this.currentWidth);e && (i < this.minWidth ? e.style.width = "calc(100% - " + this.minWidth + "px)" : e.style.width = "calc(100% - " + i + "px)") }, setData(t){ document.body.removeChild(document.getElementById(this.maskId)), this.showResize = !1, t = t || window.event;let e = 0;this.currentWidth = this.getDom(this.leftSide).offsetWidth, this.custom && (window.top == window ? t.clientX > this.minWidth ? (document.documentElement.style.setProperty("--maxActiveWidth", this.currentWidth), e = t.clientX) : (document.documentElement.style.setProperty("--maxActiveWidth", this.minWidth), e = this.minWidth) : e = t.clientX, this.$emit("resizeEnd", e - this.x)), this.mask.onmousemove = null, this.mask.onmouseup = null, this.mask.onmouseout = null }, dragControl(){ let t = document.getElementById(this.id);t.onmousedown = e=>{ this.x = e.clientX;let i = e.clientX;document.body.appendChild(this.mask), this.showResize = !0, this.mask.onmousemove = s=>{ let d = s.clientX;this.side == "right" ? this.move = d - i : this.move = i - d, s = s || window.event, this.setLeftWidth(this.move), this.setRightWidth(this.move) }, this.mask.onmouseup = s=>{ this.setData(s) }, this.mask.onmouseout = s=>{ this.setData(s) } } }}}, m = ["id"];function r(t, e, i, s, d, a){ return n.openBlock(), n.createElementBlock("div", {class: n.normalizeClass(["resizeTransform", {showResize: d.showResize}]), id: d.id, style: n.normalizeStyle({[i.side]: "0px"})}, e[0] || (e[0] = [n.createElementVNode("div", {class: "bar"}, null, -1)]), 14, m) }return h(l, [["render", r], ["__scopeId", "data-v-3c8b1ffb"]]) });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.resizeTransform[data-v-3c8b1ffb]{width:8px;height:100%;position:absolute;cursor:e-resize;top:0%;right:0;font-size:30px;color:var(--bor-default);background-color:transparent;transition:all .1s ease-in-out;display:flex;justify-content:flex-end}.resizeTransform .bar[data-v-3c8b1ffb]{width:2px;height:100%}.resizeTransform svg[data-v-3c8b1ffb]{position:absolute;top:300px;left:0;display:none;transform:translate(-50%)}.hoverActive:hover .resizeTransform[data-v-3c8b1ffb]{transition:all 1s ease-in-out}.showResize[data-v-3c8b1ffb]{cursor:e-resize}.showResize svg[data-v-3c8b1ffb]{display:block}
|