yahee-components 0.0.8 → 0.0.9

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.
@@ -49,24 +49,24 @@ const oe = { class: "yahee-comporehensive-search" }, te = {
49
49
  options: g,
50
50
  showPatchSearch: D,
51
51
  showPatchCheckbox: q
52
- } = W(L), d = n(z.value), s = n(""), S = n(!1), H = n(!1), c = n(!1), u = n({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
52
+ } = W(L), c = n(z.value), s = n(""), S = n(!1), H = n(!1), d = n(!1), u = n({ searchType: "WHOLE_SEARCH", searchContent: "" }), K = {
53
53
  selectedSearchType: [{ required: !0, message: "请输入查询类型", trigger: "blur" }],
54
54
  searchContent: [{ required: !0, message: "请输入查询内容", trigger: "blur" }]
55
55
  };
56
56
  function O() {
57
- c.value = !0;
57
+ d.value = !0;
58
58
  }
59
59
  function V() {
60
- c.value = !1;
60
+ d.value = !1;
61
61
  }
62
62
  const f = () => {
63
63
  if (!s.value) {
64
64
  ee.warning("请输入搜索关键字");
65
65
  return;
66
66
  }
67
- y.value(d.value, s.value);
67
+ y.value(c.value, s.value);
68
68
  }, A = () => {
69
- y.value(d.value, s.value);
69
+ console.log("继续处理"), y.value(c.value, s.value);
70
70
  };
71
71
  return (M, l) => (r(), p(e(Y), { locale: e(U) }, {
72
72
  default: o(() => [
@@ -85,8 +85,8 @@ const oe = { class: "yahee-comporehensive-search" }, te = {
85
85
  }, {
86
86
  prepend: o(() => [
87
87
  t(e(F), {
88
- modelValue: d.value,
89
- "onUpdate:modelValue": l[0] || (l[0] = (a) => d.value = a),
88
+ modelValue: c.value,
89
+ "onUpdate:modelValue": l[0] || (l[0] = (a) => c.value = a),
90
90
  size: "small",
91
91
  class: "custom-select"
92
92
  }, {
@@ -140,8 +140,8 @@ const oe = { class: "yahee-comporehensive-search" }, te = {
140
140
  ])) : w("", !0)
141
141
  ]),
142
142
  t(e(Z), {
143
- modelValue: c.value,
144
- "onUpdate:modelValue": l[5] || (l[5] = (a) => c.value = a),
143
+ modelValue: d.value,
144
+ "onUpdate:modelValue": l[5] || (l[5] = (a) => d.value = a),
145
145
  title: "批量查询",
146
146
  width: "30%",
147
147
  "before-close": V,
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),c=require("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),r=require("element-plus");require("element-plus/theme-chalk/src/base.scss");require("element-plus/theme-chalk/src/input.scss");require("element-plus/theme-chalk/src/checkbox.scss");require("element-plus/theme-chalk/src/tag.scss");require("element-plus/theme-chalk/src/option.scss");require("element-plus/theme-chalk/src/option-group.scss");require("element-plus/theme-chalk/src/scrollbar.scss");require("element-plus/theme-chalk/src/popper.scss");require("element-plus/theme-chalk/src/select.scss");require("element-plus/theme-chalk/src/dialog.scss");require("element-plus/theme-chalk/src/overlay.scss");require("element-plus/theme-chalk/src/form.scss");require("element-plus/theme-chalk/src/form-item.scss");require("element-plus/theme-chalk/src/row.scss");require("element-plus/theme-chalk/src/button.scss");require("element-plus/theme-chalk/src/link.scss");require("element-plus/theme-chalk/src/config-provider.scss");require("element-plus/theme-chalk/src/badge.scss");require("element-plus/theme-chalk/src/message.scss");const B=require("@element-plus/icons-vue"),b=require("../node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js"),F={class:"yahee-comporehensive-search"},T={key:0,class:"search-type-checkbox"},P={class:"dialog-footer"},I=e.defineComponent({name:"YaheeComprehensiveSearch",__name:"comprehensive-search",props:{dealSearch:{type:Function,default:c.noop},confirmSearch:{type:Function,default:c.noop},pasteFormat:{type:Function,default:c.noop},isInSearchChange:{type:Function,default:c.noop},defaultSearch:{default:""},options:{default:()=>[]},placeholderText:{default:""},showPatchSearch:{type:Boolean,default:!1},showPatchCheckbox:{type:Boolean}},setup(m){const C=b,V=m,{dealSearch:d,defaultSearch:v,pasteFormat:i,confirmSearch:w,isInSearchChange:y,options:h,showPatchSearch:x,showPatchCheckbox:g}=e.toRefs(V),n=e.ref(v.value),a=e.ref(""),f=e.ref(!1),k=e.ref(!1),u=e.ref(!1),o=e.ref({searchType:"WHOLE_SEARCH",searchContent:""}),E={selectedSearchType:[{required:!0,message:"请输入查询类型",trigger:"blur"}],searchContent:[{required:!0,message:"请输入查询内容",trigger:"blur"}]};function S(){u.value=!0}function p(){u.value=!1}const s=()=>{if(!a.value){r.ElMessage.warning("请输入搜索关键字");return}d.value(n.value,a.value)},q=()=>{d.value(n.value,a.value)};return(N,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElConfigProvider),{locale:e.unref(C)},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(e.unref(r.ElInput),{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=l=>a.value=l),placeholder:N.placeholderText,class:"input-with-select",clearable:"",maxlength:"30",onChange:s,onKeyup:e.withKeys(s,["enter"]),onPaste:e.unref(i),onClear:q},{prepend:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=l=>n.value=l),size:"small",class:"custom-select"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),l=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:l.label,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),append:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{size:"12",color:"#3366cc",style:{cursor:"pointer"},class:"icon-cusor",onClick:s},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Search))]),_:1})]),_:1},8,["modelValue","placeholder","onPaste"]),e.unref(g)?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(r.ElCheckbox),{modelValue:f.value,"onUpdate:modelValue":t[2]||(t[2]=l=>f.value=l),onChange:e.unref(y)},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode(e.toDisplayString("在筛选条件内查询"))])),_:1},8,["modelValue","onChange"]),e.unref(x)?(e.openBlock(),e.createBlock(e.unref(r.ElLink),{key:0,type:"primary",onClick:S},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode(e.toDisplayString("批量查询"))])),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(r.ElDialog),{modelValue:u.value,"onUpdate:modelValue":t[5]||(t[5]=l=>u.value=l),title:"批量查询",width:"30%","before-close":p,"append-to-body":!0,draggable:""},{footer:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(r.ElButton),{type:"primary",loading:k.value,onClick:e.unref(w)},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1},8,["loading","onClick"]),e.createVNode(e.unref(r.ElButton),{onClick:p},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode(e.toDisplayString("关闭"))])),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElForm),{ref:"batchSearchFormRef",model:o.value,rules:E},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElRow),{class:"row-class"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"searchType"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:o.value.searchType,"onUpdate:modelValue":t[3]||(t[3]=l=>o.value.searchType=l),size:"small",class:"custom-select"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),l=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:l.label,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(e.unref(r.ElRow),{class:"row-class"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"searchContent",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:o.value.searchContent,"onUpdate:modelValue":t[4]||(t[4]=l=>o.value.searchContent=l),placeholder:"请输入批量查询内容,从EXCEL复制可自动替换为`,`",type:"textarea",rows:5,onPaste:e.unref(i)},null,8,["modelValue","onPaste"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])]),_:1},8,["locale"]))}});module.exports=I;
1
+ "use strict";const e=require("vue"),c=require("../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/lodash.js"),r=require("element-plus");require("element-plus/theme-chalk/src/base.scss");require("element-plus/theme-chalk/src/input.scss");require("element-plus/theme-chalk/src/checkbox.scss");require("element-plus/theme-chalk/src/tag.scss");require("element-plus/theme-chalk/src/option.scss");require("element-plus/theme-chalk/src/option-group.scss");require("element-plus/theme-chalk/src/scrollbar.scss");require("element-plus/theme-chalk/src/popper.scss");require("element-plus/theme-chalk/src/select.scss");require("element-plus/theme-chalk/src/dialog.scss");require("element-plus/theme-chalk/src/overlay.scss");require("element-plus/theme-chalk/src/form.scss");require("element-plus/theme-chalk/src/form-item.scss");require("element-plus/theme-chalk/src/row.scss");require("element-plus/theme-chalk/src/button.scss");require("element-plus/theme-chalk/src/link.scss");require("element-plus/theme-chalk/src/config-provider.scss");require("element-plus/theme-chalk/src/badge.scss");require("element-plus/theme-chalk/src/message.scss");const B=require("@element-plus/icons-vue"),b=require("../node_modules/.pnpm/element-plus@2.8.3_vue@3.5.4_typescript@5.6.2_/node_modules/element-plus/es/locale/lang/zh-cn.js"),F={class:"yahee-comporehensive-search"},T={key:0,class:"search-type-checkbox"},P={class:"dialog-footer"},I=e.defineComponent({name:"YaheeComprehensiveSearch",__name:"comprehensive-search",props:{dealSearch:{type:Function,default:c.noop},confirmSearch:{type:Function,default:c.noop},pasteFormat:{type:Function,default:c.noop},isInSearchChange:{type:Function,default:c.noop},defaultSearch:{default:""},options:{default:()=>[]},placeholderText:{default:""},showPatchSearch:{type:Boolean,default:!1},showPatchCheckbox:{type:Boolean}},setup(m){const C=b,V=m,{dealSearch:d,defaultSearch:v,pasteFormat:i,confirmSearch:w,isInSearchChange:y,options:h,showPatchSearch:g,showPatchCheckbox:x}=e.toRefs(V),n=e.ref(v.value),a=e.ref(""),f=e.ref(!1),k=e.ref(!1),u=e.ref(!1),o=e.ref({searchType:"WHOLE_SEARCH",searchContent:""}),E={selectedSearchType:[{required:!0,message:"请输入查询类型",trigger:"blur"}],searchContent:[{required:!0,message:"请输入查询内容",trigger:"blur"}]};function S(){u.value=!0}function p(){u.value=!1}const s=()=>{if(!a.value){r.ElMessage.warning("请输入搜索关键字");return}d.value(n.value,a.value)},q=()=>{console.log("继续处理"),d.value(n.value,a.value)};return(N,t)=>(e.openBlock(),e.createBlock(e.unref(r.ElConfigProvider),{locale:e.unref(C)},{default:e.withCtx(()=>[e.createElementVNode("div",F,[e.createVNode(e.unref(r.ElInput),{modelValue:a.value,"onUpdate:modelValue":t[1]||(t[1]=l=>a.value=l),placeholder:N.placeholderText,class:"input-with-select",clearable:"",maxlength:"30",onChange:s,onKeyup:e.withKeys(s,["enter"]),onPaste:e.unref(i),onClear:q},{prepend:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:n.value,"onUpdate:modelValue":t[0]||(t[0]=l=>n.value=l),size:"small",class:"custom-select"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),l=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:l.label,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),append:e.withCtx(()=>[e.createVNode(e.unref(r.ElIcon),{size:"12",color:"#3366cc",style:{cursor:"pointer"},class:"icon-cusor",onClick:s},{default:e.withCtx(()=>[e.createVNode(e.unref(B.Search))]),_:1})]),_:1},8,["modelValue","placeholder","onPaste"]),e.unref(x)?(e.openBlock(),e.createElementBlock("div",T,[e.createVNode(e.unref(r.ElCheckbox),{modelValue:f.value,"onUpdate:modelValue":t[2]||(t[2]=l=>f.value=l),onChange:e.unref(y)},{default:e.withCtx(()=>t[6]||(t[6]=[e.createTextVNode(e.toDisplayString("在筛选条件内查询"))])),_:1},8,["modelValue","onChange"]),e.unref(g)?(e.openBlock(),e.createBlock(e.unref(r.ElLink),{key:0,type:"primary",onClick:S},{default:e.withCtx(()=>t[7]||(t[7]=[e.createTextVNode(e.toDisplayString("批量查询"))])),_:1})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),e.createVNode(e.unref(r.ElDialog),{modelValue:u.value,"onUpdate:modelValue":t[5]||(t[5]=l=>u.value=l),title:"批量查询",width:"30%","before-close":p,"append-to-body":!0,draggable:""},{footer:e.withCtx(()=>[e.createElementVNode("div",P,[e.createVNode(e.unref(r.ElButton),{type:"primary",loading:k.value,onClick:e.unref(w)},{default:e.withCtx(()=>t[8]||(t[8]=[e.createTextVNode(e.toDisplayString("确认"))])),_:1},8,["loading","onClick"]),e.createVNode(e.unref(r.ElButton),{onClick:p},{default:e.withCtx(()=>t[9]||(t[9]=[e.createTextVNode(e.toDisplayString("关闭"))])),_:1})])]),default:e.withCtx(()=>[e.createVNode(e.unref(r.ElForm),{ref:"batchSearchFormRef",model:o.value,rules:E},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElRow),{class:"row-class"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"searchType"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElSelect),{modelValue:o.value.searchType,"onUpdate:modelValue":t[3]||(t[3]=l=>o.value.searchType=l),size:"small",class:"custom-select"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(h),l=>(e.openBlock(),e.createBlock(e.unref(r.ElOption),{key:l.label,label:l.label,value:l.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1})]),_:1}),e.createVNode(e.unref(r.ElRow),{class:"row-class"},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElFormItem),{prop:"searchContent",style:{width:"100%"}},{default:e.withCtx(()=>[e.createVNode(e.unref(r.ElInput),{modelValue:o.value.searchContent,"onUpdate:modelValue":t[4]||(t[4]=l=>o.value.searchContent=l),placeholder:"请输入批量查询内容,从EXCEL复制可自动替换为`,`",type:"textarea",rows:5,onPaste:e.unref(i)},null,8,["modelValue","onPaste"])]),_:1})]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])]),_:1},8,["locale"]))}});module.exports=I;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "yahee-components",
3
3
  "private": false,
4
- "version": "0.0.8",
4
+ "version": "0.0.9",
5
5
  "description": "深圳前海亚讯前端组件库",
6
6
  "main": "lib",
7
7
  "module": "es",