iking-web-ui-pro 0.1.41 → 0.1.42

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,4 +1,4 @@
1
- import { defineComponent as d, openBlock as s, createElementBlock as f, createElementVNode as _, ref as c, watch as i, resolveComponent as v, Fragment as h, renderSlot as u, createBlock as y, unref as p, createCommentVNode as k, createVNode as w, mergeProps as g, createSlots as x, withCtx as T } from "vue";
1
+ import { defineComponent as f, openBlock as s, createElementBlock as d, createElementVNode as _, ref as c, watch as i, resolveComponent as v, Fragment as h, renderSlot as u, createBlock as y, unref as p, createCommentVNode as k, createVNode as w, mergeProps as g, createSlots as x, withCtx as T } from "vue";
2
2
  import { ElTree as S } from "element-plus";
3
3
  const b = (e, r) => {
4
4
  if (e.install = (t) => {
@@ -10,11 +10,11 @@ const b = (e, r) => {
10
10
  return e;
11
11
  };
12
12
  /*! Element Plus Icons Vue v2.3.1 */
13
- var V = /* @__PURE__ */ d({
13
+ var V = /* @__PURE__ */ f({
14
14
  name: "Search",
15
15
  __name: "search",
16
16
  setup(e) {
17
- return (r, t) => (s(), f("svg", {
17
+ return (r, t) => (s(), d("svg", {
18
18
  xmlns: "http://www.w3.org/2000/svg",
19
19
  viewBox: "0 0 1024 1024"
20
20
  }, [
@@ -25,7 +25,7 @@ var V = /* @__PURE__ */ d({
25
25
  ]));
26
26
  }
27
27
  }), B = V;
28
- const C = /* @__PURE__ */ d({
28
+ const C = /* @__PURE__ */ f({
29
29
  __name: "IkTree",
30
30
  props: {
31
31
  showSearch: {
@@ -51,7 +51,7 @@ const C = /* @__PURE__ */ d({
51
51
  }
52
52
  ), r({ tree: o, filterText: t }), (l, a) => {
53
53
  const m = v("el-input");
54
- return s(), f(
54
+ return s(), d(
55
55
  h,
56
56
  null,
57
57
  [
@@ -100,7 +100,7 @@ const I = (e, r) => {
100
100
  for (const [o, l] of r)
101
101
  t[o] = l;
102
102
  return t;
103
- }, $ = /* @__PURE__ */ I(C, [["__scopeId", "data-v-d629d9ba"]]), O = b($);
103
+ }, $ = /* @__PURE__ */ I(C, [["__scopeId", "data-v-17eeeab4"]]), O = b($);
104
104
  export {
105
105
  O as IkTree,
106
106
  O as default
@@ -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,f){"use strict";const p=(t,l)=>{if(t.install=o=>{for(const r of[t,...Object.values(l??{})])o.component(r.name,r)},l)for(const[o,r]of Object.entries(l))t[o]=r;return t};/*! Element Plus Icons Vue v2.3.1 */var i=e.defineComponent({name:"Search",__name:"search",setup(t){return(l,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"})]))}}),u=i;const m=e.defineComponent({__name:"IkTree",props:{showSearch:{type:Boolean,default:!0},placeholder:{type:String,default:"请输入名称检索"},emptyText:{type:String,default:"暂无数据"}},setup(t,{expose:l}){const o=e.ref(""),r=e.ref();return e.watch(()=>o.value,s=>{var a;(a=r.value)==null||a.filter(s)}),l({tree:r,filterText:o}),(s,a)=>{const _=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(s.$slots,"inset",{},void 0,!0),t.showSearch?(e.openBlock(),e.createBlock(_,{key:0,"empty-text":t.emptyText,modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),modelModifiers:{trim:!0},class:"mb-2 mt-2 w-50",placeholder:t.placeholder,"suffix-icon":e.unref(u),clearable:""},null,8,["empty-text","modelValue","placeholder","suffix-icon"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(f.ElTree),e.mergeProps({ref_key:"treeRef",ref:r},s.$attrs,{class:"ik-tree"}),e.createSlots({_:2},[s.$slots.default?{name:"default",fn:e.withCtx(({data:c})=>[e.renderSlot(s.$slots,"default",{data:c},void 0,!0)]),key:"0"}:void 0]),1040)],64)}}}),h="",d=p(((t,l)=>{const o=t.__vccOpts||t;for(const[r,s]of l)o[r]=s;return o})(m,[["__scopeId","data-v-d629d9ba"]]));n.IkTree=d,n.default=d,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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,p){"use strict";const d=(t,l)=>{if(t.install=o=>{for(const r of[t,...Object.values(l??{})])o.component(r.name,r)},l)for(const[o,r]of Object.entries(l))t[o]=r;return t};/*! Element Plus Icons Vue v2.3.1 */var i=e.defineComponent({name:"Search",__name:"search",setup(t){return(l,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"})]))}}),u=i;const m=e.defineComponent({__name:"IkTree",props:{showSearch:{type:Boolean,default:!0},placeholder:{type:String,default:"请输入名称检索"},emptyText:{type:String,default:"暂无数据"}},setup(t,{expose:l}){const o=e.ref(""),r=e.ref();return e.watch(()=>o.value,s=>{var a;(a=r.value)==null||a.filter(s)}),l({tree:r,filterText:o}),(s,a)=>{const _=e.resolveComponent("el-input");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.renderSlot(s.$slots,"inset",{},void 0,!0),t.showSearch?(e.openBlock(),e.createBlock(_,{key:0,"empty-text":t.emptyText,modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),modelModifiers:{trim:!0},class:"mb-2 mt-2 w-50",placeholder:t.placeholder,"suffix-icon":e.unref(u),clearable:""},null,8,["empty-text","modelValue","placeholder","suffix-icon"])):e.createCommentVNode("v-if",!0),e.createVNode(e.unref(p.ElTree),e.mergeProps({ref_key:"treeRef",ref:r},s.$attrs,{class:"ik-tree"}),e.createSlots({_:2},[s.$slots.default?{name:"default",fn:e.withCtx(({data:c})=>[e.renderSlot(s.$slots,"default",{data:c},void 0,!0)]),key:"0"}:void 0]),1040)],64)}}}),h="",f=d(((t,l)=>{const o=t.__vccOpts||t;for(const[r,s]of l)o[r]=s;return o})(m,[["__scopeId","data-v-17eeeab4"]]));n.IkTree=f,n.default=f,Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1 +1 @@
1
- .ik-tree.el-tree[data-v-d629d9ba]{flex:1;overflow:auto;color:var(--ik-header-menu-color)}.ik-tree.el-tree[data-v-d629d9ba] .el-tree-node.is-expanded.is-focusable>.el-tree-node__content{color:var(--ik-text-color)}.ik-tree.el-tree[data-v-d629d9ba] .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.el-tree[data-v-17eeeab4]{flex:1;overflow:auto;color:var(--ik-header-menu-color)}.ik-tree.el-tree[data-v-17eeeab4] .el-tree-node.is-expanded.is-focusable>.el-tree-node__content{color:var(--ik-text-color)}.ik-tree.el-tree[data-v-17eeeab4] .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)}