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.
@@ -1,12 +1,12 @@
1
- import { defineComponent as m, openBlock as d, 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 V, unref as i, createCommentVNode as b, createVNode as B, mergeProps as $, createSlots as I, withCtx as N } from "vue";
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 = (t) => {
5
- for (const o of [e, ...Object.values(r ?? {})])
6
- t.component(o.name, o);
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 [t, o] of Object.entries(r))
9
- e[t] = o;
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, t) => (d(), _("svg", {
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
- dc4ed784: h.value
56
+ a2486188: h.value
57
57
  }));
58
- const t = e, o = p(""), a = p();
58
+ const o = e, t = p(""), a = p();
59
59
  w(
60
- () => o.value,
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 t.padding == "string" ? t.padding : `${t.padding}px`);
67
- return r({ tree: a, filterText: o }), (l, n) => {
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 d(), _(
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 ? (d(), V(g, {
82
+ e.showSearch ? (c(), I(g, {
81
83
  key: 0,
82
- modelValue: o.value,
83
- "onUpdate:modelValue": n[0] || (n[0] = (s) => o.value = 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"])) : b("v-if", !0),
90
- B(i(E), $({
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 c, u;
98
- return y[((u = (c = l.$attrs) == null ? void 0 : c.props) == null ? void 0 : u.label) || "label"].includes(s);
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
- }), I({
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 t = e.__vccOpts || e;
125
- for (const [o, a] of r)
126
- t[o] = a;
127
- return t;
128
- }, P = /* @__PURE__ */ M(z, [["__scopeId", "data-v-54fd4611"]]), U = F(P);
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
- U as IkTree,
131
- U as default
132
+ q as IkTree,
133
+ q as default
132
134
  };
@@ -1 +1 @@
1
- (function(n,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):(n=typeof globalThis<"u"?globalThis:n||self,e(n.index={},n.vue,n["element-plus"]))})(this,function(n,e,u){"use strict";const m=(t,r)=>{if(t.install=o=>{for(const l of[t,...Object.values(r??{})])o.component(l.name,l)},r)for(const[o,l]of Object.entries(r))t[o]=l;return t};/*! Element Plus Icons Vue v2.3.1 */var _=e.defineComponent({name:"Search",__name:"search",setup(t){return(r,o)=>(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=>({dc4ed784:g.value}));const o=t,l=e.ref(""),s=e.ref();e.watch(()=>l.value,a=>{var d;(d=s.value)==null||d.filter(a)});const g=e.computed(()=>typeof o.padding=="string"?o.padding:`${o.padding}px`);return r({tree:s,filterText:l}),(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:l.value,"onUpdate:modelValue":d[0]||(d[0]=c=>l.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 f,p;return w[((p=(f=a.$attrs)==null?void 0:f.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="",i=m(((t,r)=>{const o=t.__vccOpts||t;for(const[l,s]of r)o[l]=s;return o})(y,[["__scopeId","data-v-54fd4611"]]));n.IkTree=i,n.default=i,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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"}})});
@@ -1 +1 @@
1
- .ik-tree-main[data-v-54fd4611]{display:flex;flex-direction:column;height:100%}.ik-tree-main.auto-flow[data-v-54fd4611]{margin:-20px}.ik-tree-main.auto-flow .ik-tree-search[data-v-54fd4611]{padding:0 var(--dc4ed784)}.ik-tree-main.auto-flow .ik-tree.el-tree[data-v-54fd4611]{padding:0 var(--dc4ed784);overflow:auto}.ik-tree-main .ik-tree-search[data-v-54fd4611]{margin-bottom:8px}.ik-tree-main .ik-tree-search[data-v-54fd4611] .el-input-group__append{padding:0}.ik-tree-main .ik-tree.el-tree[data-v-54fd4611]{flex:1;color:var(--ik-header-menu-color)}.ik-tree-main .ik-tree.el-tree.auto-flow[data-v-54fd4611]{margin-right:calc(var(--dc4ed784) * -1);padding-right:var(--dc4ed784)}.ik-tree-main .ik-tree.el-tree[data-v-54fd4611] .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-54fd4611] .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)}
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)}