wtsk-comps 1.2.3 → 1.2.4
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/wtsk-comps.cjs.js +1 -1
- package/dist/wtsk-comps.es.js +23 -32
- package/dist/wtsk-comps.umd.js +1 -1
- package/package.json +1 -1
- package/dist/wtsk-comps.css +0 -1
package/dist/wtsk-comps.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=e.defineComponent({name:"WtskBtn",inheritAttrs:!1,__name:"WtskBtn",props:{onClick:{type:Function},size:{},disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{}},setup(t){const o=t,s=e.useAttrs(),n=e.ref(!1),i=e.computed(()=>({...Object.fromEntries(Object.entries(o).filter(([a])=>a!=="onClick")),...s}));async function c(){n.value=!0;try{typeof o.onClick=="function"&&await o.onClick?.()}finally{n.value=!1}}return(l,a)=>{const p=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(p,e.mergeProps(i.value,{loading:n.value,onClick:c}),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16,["loading"])}}}),u={install(t){t.component("WtskBtn",r)}};exports.WtskBtn=r;exports.default=u;
|
package/dist/wtsk-comps.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineComponent as c, useAttrs as p, ref as u, computed as f, resolveComponent as d, openBlock as y, createBlock as B, mergeProps as k, withCtx as m, renderSlot as g } from "vue";
|
|
2
|
+
const C = /* @__PURE__ */ c({
|
|
3
3
|
name: "WtskBtn",
|
|
4
4
|
inheritAttrs: !1,
|
|
5
5
|
__name: "WtskBtn",
|
|
@@ -24,46 +24,37 @@ const _ = /* @__PURE__ */ p({
|
|
|
24
24
|
autoInsertSpace: { type: Boolean },
|
|
25
25
|
tag: {}
|
|
26
26
|
},
|
|
27
|
-
setup(
|
|
28
|
-
const
|
|
29
|
-
Object.entries(
|
|
30
|
-
), ...
|
|
31
|
-
async function
|
|
32
|
-
|
|
27
|
+
setup(e) {
|
|
28
|
+
const t = e, a = p(), o = u(!1), s = f(() => ({ ...Object.fromEntries(
|
|
29
|
+
Object.entries(t).filter(([l]) => l !== "onClick")
|
|
30
|
+
), ...a }));
|
|
31
|
+
async function r() {
|
|
32
|
+
o.value = !0;
|
|
33
33
|
try {
|
|
34
|
-
typeof
|
|
34
|
+
typeof t.onClick == "function" && await t.onClick?.();
|
|
35
35
|
} finally {
|
|
36
|
-
|
|
36
|
+
o.value = !1;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
return (
|
|
40
|
-
const i =
|
|
41
|
-
return
|
|
42
|
-
loading:
|
|
43
|
-
onClick:
|
|
39
|
+
return (n, l) => {
|
|
40
|
+
const i = d("el-button");
|
|
41
|
+
return y(), B(i, k(s.value, {
|
|
42
|
+
loading: o.value,
|
|
43
|
+
onClick: r
|
|
44
44
|
}), {
|
|
45
|
-
default:
|
|
46
|
-
|
|
45
|
+
default: m(() => [
|
|
46
|
+
g(n.$slots, "default")
|
|
47
47
|
]),
|
|
48
48
|
_: 3
|
|
49
49
|
}, 16, ["loading"]);
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
}),
|
|
53
|
-
{
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
// { name: 'WtskTable', component: WtskTable }
|
|
57
|
-
], v = {
|
|
58
|
-
install(t) {
|
|
59
|
-
s.forEach(({ name: e, component: o }) => {
|
|
60
|
-
t.component(e, o);
|
|
61
|
-
});
|
|
62
|
-
},
|
|
63
|
-
// 也提供按需导入的方法
|
|
64
|
-
...s.reduce((t, { name: e, component: o }) => (t[e] = o, t), {})
|
|
52
|
+
}), b = {
|
|
53
|
+
install(e) {
|
|
54
|
+
e.component("WtskBtn", C);
|
|
55
|
+
}
|
|
65
56
|
};
|
|
66
57
|
export {
|
|
67
|
-
|
|
68
|
-
|
|
58
|
+
C as WtskBtn,
|
|
59
|
+
b as default
|
|
69
60
|
};
|
package/dist/wtsk-comps.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WtskComps={},t.Vue))})(this,(function(t,e){"use strict";const i=e.defineComponent({name:"WtskBtn",inheritAttrs:!1,__name:"WtskBtn",props:{onClick:{type:Function},size:{},disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{}},setup(
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.WtskComps={},t.Vue))})(this,(function(t,e){"use strict";const i=e.defineComponent({name:"WtskBtn",inheritAttrs:!1,__name:"WtskBtn",props:{onClick:{type:Function},size:{},disabled:{type:Boolean},type:{},icon:{},nativeType:{},loading:{type:Boolean},loadingIcon:{},plain:{type:Boolean},text:{type:Boolean},link:{type:Boolean},bg:{type:Boolean},autofocus:{type:Boolean},round:{type:Boolean},circle:{type:Boolean},color:{},dark:{type:Boolean},autoInsertSpace:{type:Boolean},tag:{}},setup(n){const o=n,c=e.useAttrs(),l=e.ref(!1),p=e.computed(()=>({...Object.fromEntries(Object.entries(o).filter(([a])=>a!=="onClick")),...c}));async function d(){l.value=!0;try{typeof o.onClick=="function"&&await o.onClick?.()}finally{l.value=!1}}return(s,a)=>{const f=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(f,e.mergeProps(p.value,{loading:l.value,onClick:d}),{default:e.withCtx(()=>[e.renderSlot(s.$slots,"default")]),_:3},16,["loading"])}}}),r={install(n){n.component("WtskBtn",i)}};t.WtskBtn=i,t.default=r,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|
package/package.json
CHANGED
package/dist/wtsk-comps.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.wtsk-form .el-input,.wtsk-form .el-select,.wtsk-form .el-date-editor,.wtsk-form .el-input-number{width:100%}.wtsk-form .el-form-item__label-wrap,.wtsk-form .el-form-item__label{font-weight:700}.wtsk-form .el-input__wrapper,.wtsk-form .el-select__wrapper,.wtsk-form .el-textarea__inner{background:#ffffff80;border:1px solid rgba(64,158,255,.3);box-shadow:none!important}.wtsk-form .el-input-group__append{box-shadow:none;border:1px solid rgba(64,158,255,.3);border-left:0}.wtsk-form .el-input-group__append .el-button{border:0}.wtsk-form .el-input-group__append .el-button .el-icon{color:#409eff}.wtsk-form.wtsk-form-search{display:flex;gap:20px}.wtsk-form.wtsk-form-search .el-input,.wtsk-form.wtsk-form-search .el-select,.wtsk-form.wtsk-form-search .el-date-editor,.wtsk-form.wtsk-form-search .el-input-number{width:200px}.wtsk-form.wtsk-form-search .el-input.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-select.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-date-editor.el-date-editor--datetimerange,.wtsk-form.wtsk-form-search .el-input-number.el-date-editor--datetimerange{width:initial}.wtsk-form.wtsk-form-search .el-form-item{margin:0}.el-table.wtsk-table{background:transparent}.el-table.wtsk-table .el-table__inner-wrapper:before{background-color:transparent!important}.el-table.wtsk-table tr{background:transparent!important}.el-table.wtsk-table tr.el-table__row--striped td{background:#ffffff70!important;border-top:1px solid #fff!important;border-bottom:1px solid #fff!important}.el-table.wtsk-table tr.current-row td{background:#409eff0f!important}.el-table.wtsk-table th{padding:0;height:50px;background-color:#409eff26!important;border:0!important;font-size:14px;color:#333}.el-table.wtsk-table th:nth-of-type(1){border-radius:4px 0 0 4px}.el-table.wtsk-table th:nth-last-of-type(1){border-radius:0 4px 4px 0}.el-table.wtsk-table td{padding:0;height:50px;background:transparent!important;border:0!important}.el-table.wtsk-table td .el-button.is-link{position:relative;padding:4px 5px;margin-left:0;color:#409eff;outline:0}.el-table.wtsk-table td .el-button.is-link:hover{text-decoration:underline}.el-table.wtsk-table.wtsk-table-small th,.el-table.wtsk-table.wtsk-table-small td{height:40px!important}.el-pagination.wtsk-pagination{justify-content:flex-end;margin-top:10px}.el-pagination.wtsk-pagination .btn-prev,.el-pagination.wtsk-pagination .btn-next,.el-pagination.wtsk-pagination .el-select__wrapper,.el-pagination.wtsk-pagination .el-pager li{background:#ffffff80!important;border:1px solid rgba(64,158,255,.5)!important;box-shadow:none!important}.el-pagination.wtsk-pagination .btn-prev.is-active,.el-pagination.wtsk-pagination .btn-next.is-active,.el-pagination.wtsk-pagination .el-select__wrapper.is-active,.el-pagination.wtsk-pagination .el-pager li.is-active{background-color:#409eff!important}.el-tree.wtsk-tree,.el-tree.wtsk-tree .el-tree-node .el-tree-node__content{background:transparent}.el-tree.wtsk-tree .el-tree-node.is-current>.el-tree-node__content{background:#409eff26!important;border-radius:4px}*{box-sizing:border-box;outline:none!important}*::selection{background-color:transparent;color:#409eff}html,body,#app{position:relative;margin:0;padding:0;width:100%;height:100%;overflow:hidden}a{color:initial;text-decoration:none}a:hover{color:#409eff}::-webkit-scrollbar{width:6px;height:8px;border:0!important}::-webkit-scrollbar-corner{background:transparent;border-radius:0}::-webkit-scrollbar-thumb{background-color:#409eff1a;border-radius:8px}.el-scrollbar__thumb{background-color:#409eff4d}.wtsk-tree-box{position:relative;width:100%;height:100%;display:flex;flex-direction:column}.wtsk-tree-box .wtsk-tree-box-title{line-height:40px;border-bottom:1px solid #eee;text-align:center;font-size:17px;color:#333}.wtsk-tree-box .wtsk-tree-box-filter{padding:5px;display:flex;align-items:center;justify-content:center;gap:10px}.wtsk-tree-box .wtsk-tree-box-tree{flex:1;overflow-x:hidden;overflow-y:auto}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom{width:calc(100% - 24px);display:flex;align-items:center;justify-content:space-between}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div:nth-of-type(1){width:calc(100% - 60px);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div:nth-of-type(2){width:60px}.wtsk-tree-box .wtsk-tree-box-tree .wtsk-tree-box-tree-custom>div:nth-of-type(2) button{margin:0}
|