iking-web-ui-pro 0.2.10 → 0.2.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/IkTree/ik.index.es.js +30 -28
- package/dist/IkTree/ik.index.umd.js +1 -1
- package/dist/IkTree/style.css +1 -1
- package/dist/IkUploadImage/ik.index.es.js +173 -158
- package/dist/IkUploadImage/ik.index.umd.js +1 -1
- package/dist/IkUploadImage/style.css +1 -1
- package/dist/index.es.js +5660 -5643
- package/dist/index.umd.js +40 -40
- package/dist/src/components/IkTree/IkTree.vue.d.ts +1 -0
- package/dist/src/components/IkTree/index.d.ts +3 -0
- package/dist/src/components/IkUploadImage/index.d.ts +19 -0
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +9 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/src/components/IkPageFull/src/IkSearchAuto copy.d.ts +0 -76
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as m, openBlock as
|
|
1
|
+
import { defineComponent as m, openBlock as c, createElementBlock as _, createElementVNode as v, useCssVars as k, ref as p, watch as w, computed as x, resolveComponent as S, Fragment as T, renderSlot as f, normalizeClass as C, createBlock as I, unref as i, createCommentVNode as V, createVNode as b, mergeProps as B, createSlots as $, withCtx as N } from "vue";
|
|
2
2
|
import { ElTree as E } from "element-plus";
|
|
3
3
|
const F = (e, r) => {
|
|
4
|
-
if (e.install = (
|
|
5
|
-
for (const
|
|
6
|
-
|
|
4
|
+
if (e.install = (o) => {
|
|
5
|
+
for (const t of [e, ...Object.values(r ?? {})])
|
|
6
|
+
o.component(t.name, t);
|
|
7
7
|
}, r)
|
|
8
|
-
for (const [
|
|
9
|
-
e[
|
|
8
|
+
for (const [o, t] of Object.entries(r))
|
|
9
|
+
e[o] = t;
|
|
10
10
|
return e;
|
|
11
11
|
};
|
|
12
12
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
@@ -14,7 +14,7 @@ var O = /* @__PURE__ */ m({
|
|
|
14
14
|
name: "Search",
|
|
15
15
|
__name: "search",
|
|
16
16
|
setup(e) {
|
|
17
|
-
return (r,
|
|
17
|
+
return (r, o) => (c(), _("svg", {
|
|
18
18
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19
19
|
viewBox: "0 0 1024 1024"
|
|
20
20
|
}, [
|
|
@@ -53,20 +53,22 @@ const z = /* @__PURE__ */ m({
|
|
|
53
53
|
},
|
|
54
54
|
setup(e, { expose: r }) {
|
|
55
55
|
k((l) => ({
|
|
56
|
-
|
|
56
|
+
a2486188: h.value
|
|
57
57
|
}));
|
|
58
|
-
const
|
|
58
|
+
const o = e, t = p(""), a = p();
|
|
59
59
|
w(
|
|
60
|
-
() =>
|
|
60
|
+
() => t.value,
|
|
61
61
|
(l) => {
|
|
62
62
|
var n;
|
|
63
63
|
(n = a.value) == null || n.filter(l);
|
|
64
64
|
}
|
|
65
65
|
);
|
|
66
|
-
const h = x(() => typeof
|
|
67
|
-
return r({ tree: a, filterText:
|
|
66
|
+
const h = x(() => typeof o.padding == "string" ? o.padding : `${o.padding}px`);
|
|
67
|
+
return r({ tree: a, filterText: t, resetInput: () => {
|
|
68
|
+
t.value = "";
|
|
69
|
+
} }), (l, n) => {
|
|
68
70
|
const g = S("el-input");
|
|
69
|
-
return
|
|
71
|
+
return c(), _(
|
|
70
72
|
T,
|
|
71
73
|
null,
|
|
72
74
|
[
|
|
@@ -77,27 +79,27 @@ const z = /* @__PURE__ */ m({
|
|
|
77
79
|
class: C(["ik-tree-main", { "auto-flow": e.autoFlow }])
|
|
78
80
|
},
|
|
79
81
|
[
|
|
80
|
-
e.showSearch ? (
|
|
82
|
+
e.showSearch ? (c(), I(g, {
|
|
81
83
|
key: 0,
|
|
82
|
-
modelValue:
|
|
83
|
-
"onUpdate:modelValue": n[0] || (n[0] = (s) =>
|
|
84
|
+
modelValue: t.value,
|
|
85
|
+
"onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
|
|
84
86
|
modelModifiers: { trim: !0 },
|
|
85
87
|
class: "w-full ik-tree-search",
|
|
86
88
|
placeholder: e.placeholder,
|
|
87
89
|
clearable: "",
|
|
88
90
|
"suffix-icon": i(j)
|
|
89
|
-
}, null, 8, ["modelValue", "placeholder", "suffix-icon"])) :
|
|
90
|
-
|
|
91
|
+
}, null, 8, ["modelValue", "placeholder", "suffix-icon"])) : V("v-if", !0),
|
|
92
|
+
b(i(E), B({
|
|
91
93
|
ref_key: "treeRef",
|
|
92
94
|
ref: a,
|
|
93
95
|
"empty-text": e.emptyText
|
|
94
96
|
}, l.$attrs, {
|
|
95
97
|
class: "ik-tree",
|
|
96
98
|
"filter-node-method": (s, y) => {
|
|
97
|
-
var
|
|
98
|
-
return y[((
|
|
99
|
+
var u, d;
|
|
100
|
+
return y[((d = (u = l.$attrs) == null ? void 0 : u.props) == null ? void 0 : d.label) || "label"].includes(s);
|
|
99
101
|
}
|
|
100
|
-
}),
|
|
102
|
+
}), $({
|
|
101
103
|
_: 2
|
|
102
104
|
/* DYNAMIC */
|
|
103
105
|
}, [
|
|
@@ -121,12 +123,12 @@ const z = /* @__PURE__ */ m({
|
|
|
121
123
|
}
|
|
122
124
|
});
|
|
123
125
|
const M = (e, r) => {
|
|
124
|
-
const
|
|
125
|
-
for (const [
|
|
126
|
-
t
|
|
127
|
-
return
|
|
128
|
-
}, P = /* @__PURE__ */ M(z, [["__scopeId", "data-v-
|
|
126
|
+
const o = e.__vccOpts || e;
|
|
127
|
+
for (const [t, a] of r)
|
|
128
|
+
o[t] = a;
|
|
129
|
+
return o;
|
|
130
|
+
}, P = /* @__PURE__ */ M(z, [["__scopeId", "data-v-e801f6fc"]]), q = F(P);
|
|
129
131
|
export {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
+
q as IkTree,
|
|
133
|
+
q as default
|
|
132
134
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(l,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(l=typeof globalThis<"u"?globalThis:l||self,e(l.index={},l.vue,l["element-plus"]))})(this,function(l,e,u){"use strict";const m=(t,r)=>{if(t.install=n=>{for(const o of[t,...Object.values(r??{})])n.component(o.name,o)},r)for(const[n,o]of Object.entries(r))t[n]=o;return t};/*! Element Plus Icons Vue v2.3.1 */var _=e.defineComponent({name:"Search",__name:"search",setup(t){return(r,n)=>(e.openBlock(),e.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[e.createElementVNode("path",{fill:"currentColor",d:"m795.904 750.72 124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704 352 352 0 0 0 0 704"})]))}}),h=_;const y=e.defineComponent({__name:"IkTree",props:{showSearch:{type:Boolean,default:!0},placeholder:{type:String,default:"请输入名称检索"},emptyText:{type:String,default:"暂无数据"},autoFlow:{type:Boolean,default:!1},padding:{type:[String,Number],default:"var(--el-card-padding)"}},setup(t,{expose:r}){e.useCssVars(a=>({a2486188:g.value}));const n=t,o=e.ref(""),s=e.ref();e.watch(()=>o.value,a=>{var d;(d=s.value)==null||d.filter(a)});const g=e.computed(()=>typeof n.padding=="string"?n.padding:`${n.padding}px`);return r({tree:s,filterText:o,resetInput:()=>{o.value=""}}),(a,d)=>{const k=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(a.$slots,"inset",{},void 0,!0),e.createElementVNode("div",{class:e.normalizeClass(["ik-tree-main",{"auto-flow":t.autoFlow}])},[t.showSearch?(e.openBlock(),e.createBlock(k,{key:0,modelValue:o.value,"onUpdate:modelValue":d[0]||(d[0]=c=>o.value=c),modelModifiers:{trim:!0},class:"w-full ik-tree-search",placeholder:t.placeholder,clearable:"","suffix-icon":e.unref(h)},null,8,["modelValue","placeholder","suffix-icon"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(u.ElTree),e.mergeProps({ref_key:"treeRef",ref:s,"empty-text":t.emptyText},a.$attrs,{class:"ik-tree","filter-node-method":(c,w)=>{var i,p;return w[((p=(i=a.$attrs)==null?void 0:i.props)==null?void 0:p.label)||"label"].includes(c)}}),e.createSlots({_:2},[a.$slots.default?{name:"default",fn:e.withCtx(({data:c})=>[e.renderSlot(a.$slots,"default",{data:c},void 0,!0)]),key:"0"}:void 0]),1040,["empty-text","filter-node-method"])],2)],64)}}}),x="",f=m(((t,r)=>{const n=t.__vccOpts||t;for(const[o,s]of r)n[o]=s;return n})(y,[["__scopeId","data-v-e801f6fc"]]));l.IkTree=f,l.default=f,Object.defineProperties(l,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/IkTree/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ik-tree-main[data-v-
|
|
1
|
+
.ik-tree-main[data-v-e801f6fc]{display:flex;flex-direction:column;height:100%}.ik-tree-main.auto-flow[data-v-e801f6fc]{margin:-20px}.ik-tree-main.auto-flow .ik-tree-search[data-v-e801f6fc]{padding:0 var(--a2486188)}.ik-tree-main.auto-flow .ik-tree.el-tree[data-v-e801f6fc]{padding:0 var(--a2486188);overflow:auto}.ik-tree-main .ik-tree-search[data-v-e801f6fc]{margin-bottom:8px}.ik-tree-main .ik-tree-search[data-v-e801f6fc] .el-input-group__append{padding:0}.ik-tree-main .ik-tree.el-tree[data-v-e801f6fc]{flex:1;color:var(--ik-header-menu-color)}.ik-tree-main .ik-tree.el-tree.auto-flow[data-v-e801f6fc]{margin-right:calc(var(--a2486188) * -1);padding-right:var(--a2486188)}.ik-tree-main .ik-tree.el-tree[data-v-e801f6fc] .el-tree-node.is-expanded.is-focusable>.el-tree-node__content{color:var(--ik-text-color)}.ik-tree-main .ik-tree.el-tree[data-v-e801f6fc] .el-tree-node.is-expanded.is-focusable .is-current>.el-tree-node__content{color:var(--ik-header-menu-active-color);background-color:var(--ik-header-menu-active-bg)}
|