jwt-ui 1.10.5-10 → 1.10.5-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/lib/jwt-ui.es.js +17 -26
- package/lib/jwt-ui.umd.js +1 -1
- package/package.json +1 -1
package/lib/jwt-ui.es.js
CHANGED
|
@@ -88,52 +88,43 @@ const MY = hr({
|
|
|
88
88
|
emits: ["update:modelValue", "change", "select"],
|
|
89
89
|
setup(e, { emit: t }) {
|
|
90
90
|
const n = Ly(), r = wr({
|
|
91
|
-
|
|
92
|
-
listData: [],
|
|
93
|
-
searchVal: "",
|
|
94
|
-
timer: null
|
|
91
|
+
listData: []
|
|
95
92
|
}), i = En({
|
|
96
93
|
get: () => e.modelValue || "",
|
|
97
|
-
set: (
|
|
98
|
-
t("update:modelValue",
|
|
94
|
+
set: (u) => {
|
|
95
|
+
t("update:modelValue", u);
|
|
99
96
|
}
|
|
100
|
-
}), o = (
|
|
101
|
-
const { listApi:
|
|
102
|
-
if (!
|
|
97
|
+
}), o = () => {
|
|
98
|
+
const { listApi: u, options: s } = e;
|
|
99
|
+
if (!u) {
|
|
100
|
+
r.listData = s || [];
|
|
103
101
|
return;
|
|
104
|
-
|
|
102
|
+
}
|
|
103
|
+
const f = {
|
|
105
104
|
sort: "id",
|
|
106
105
|
order: "desc",
|
|
107
106
|
per_page: 100,
|
|
108
107
|
...e.exParams
|
|
109
108
|
};
|
|
110
|
-
|
|
111
|
-
url:
|
|
109
|
+
e.request({
|
|
110
|
+
url: u,
|
|
112
111
|
method: "get",
|
|
113
|
-
params:
|
|
114
|
-
}).then((
|
|
115
|
-
r.listData =
|
|
112
|
+
params: f
|
|
113
|
+
}).then((d) => {
|
|
114
|
+
r.listData = d || [];
|
|
116
115
|
});
|
|
117
|
-
}, a = (
|
|
118
|
-
|
|
119
|
-
const { valueKey: f } = e, d = r.listData.find((p) => p[f] === s);
|
|
120
|
-
t("select", d);
|
|
121
|
-
}
|
|
122
|
-
}, u = (s) => {
|
|
123
|
-
r.searchVal = s, s ? (clearTimeout(r.timer), r.timer = setTimeout(() => {
|
|
124
|
-
o();
|
|
125
|
-
}, 500)) : o();
|
|
116
|
+
}, a = (u) => {
|
|
117
|
+
t("change", u);
|
|
126
118
|
};
|
|
127
119
|
return Us(() => {
|
|
128
120
|
setTimeout(() => {
|
|
129
|
-
o(
|
|
121
|
+
o();
|
|
130
122
|
}, 50);
|
|
131
123
|
}), {
|
|
132
124
|
attrs: n,
|
|
133
125
|
selectModel: i,
|
|
134
126
|
...no(r),
|
|
135
127
|
handleSelectChange: a,
|
|
136
|
-
remoteMethod: u,
|
|
137
128
|
getDataList: o
|
|
138
129
|
};
|
|
139
130
|
}
|
package/lib/jwt-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Mo,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("vue"),require("dayjs"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","dayjs","element-plus"],w):(Mo=typeof globalThis<"u"?globalThis:Mo||self,w(Mo["jwt-ui"]={},Mo.Vue,Mo.dayjs,Mo.elementPlus))})(this,function(Mo,w,yV,br){"use strict";const Xl=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(yV),jCe="",sr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},bV=w.defineComponent({name:"JwtCascaderServer",components:{},props:{modelValue:{type:[String,Number,Array],default:""},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,default:null}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=w.useAttrs();console.log("attrs",n);const r=w.reactive({listData:[]}),i=w.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),o=()=>{console.log("attrs",n);const{listApi:l,options:s}=n;if(!l){r.listData=s||[];return}const f={sort:"id",order:"desc",per_page:1e3,...e.exParams};e.request({url:l,method:"get",params:f}).then(d=>{console.log("listData",d),r.listData=d||[]})},a=l=>{t("change",l)};return w.onMounted(()=>{setTimeout(()=>{o()},50)}),{attrs:n,selectModel:i,...w.toRefs(r),handleSelectChange:a,getDataList:o}}});function wV(e,t,n,r,i,o){const a=w.resolveComponent("el-cascader");return w.openBlock(),w.createBlock(a,w.mergeProps({modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=l=>e.selectModel=l)},e.attrs,{options:e.listData,onChange:e.handleSelectChange}),null,16,["modelValue","options","onChange"])}const $V=Object.freeze(Object.defineProperty({__proto__:null,default:sr(bV,[["render",wV]])},Symbol.toStringTag,{value:"Module"})),VCe="",EV=w.defineComponent({name:"JwtCascaderServer",components:{},props:{modelValue:{type:[String,Number,Array],default:""},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,default:null}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=w.useAttrs(),r=w.reactive({
|
|
1
|
+
(function(Mo,w){typeof exports=="object"&&typeof module<"u"?w(exports,require("vue"),require("dayjs"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","dayjs","element-plus"],w):(Mo=typeof globalThis<"u"?globalThis:Mo||self,w(Mo["jwt-ui"]={},Mo.Vue,Mo.dayjs,Mo.elementPlus))})(this,function(Mo,w,yV,br){"use strict";const Xl=(e=>e&&typeof e=="object"&&"default"in e?e:{default:e})(yV),jCe="",sr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},bV=w.defineComponent({name:"JwtCascaderServer",components:{},props:{modelValue:{type:[String,Number,Array],default:""},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,default:null}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=w.useAttrs();console.log("attrs",n);const r=w.reactive({listData:[]}),i=w.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),o=()=>{console.log("attrs",n);const{listApi:l,options:s}=n;if(!l){r.listData=s||[];return}const f={sort:"id",order:"desc",per_page:1e3,...e.exParams};e.request({url:l,method:"get",params:f}).then(d=>{console.log("listData",d),r.listData=d||[]})},a=l=>{t("change",l)};return w.onMounted(()=>{setTimeout(()=>{o()},50)}),{attrs:n,selectModel:i,...w.toRefs(r),handleSelectChange:a,getDataList:o}}});function wV(e,t,n,r,i,o){const a=w.resolveComponent("el-cascader");return w.openBlock(),w.createBlock(a,w.mergeProps({modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=l=>e.selectModel=l)},e.attrs,{options:e.listData,onChange:e.handleSelectChange}),null,16,["modelValue","options","onChange"])}const $V=Object.freeze(Object.defineProperty({__proto__:null,default:sr(bV,[["render",wV]])},Symbol.toStringTag,{value:"Module"})),VCe="",EV=w.defineComponent({name:"JwtCascaderServer",components:{},props:{modelValue:{type:[String,Number,Array],default:""},request:{type:Function,require:!0,default:()=>{}},fillUrl:{type:Function,default:null}},emits:["update:modelValue","change","select"],setup(e,{emit:t}){const n=w.useAttrs(),r=w.reactive({listData:[]}),i=w.computed({get:()=>e.modelValue||"",set:l=>{t("update:modelValue",l)}}),o=()=>{const{listApi:l,options:s}=e;if(!l){r.listData=s||[];return}const f={sort:"id",order:"desc",per_page:100,...e.exParams};e.request({url:l,method:"get",params:f}).then(d=>{r.listData=d||[]})},a=l=>{t("change",l)};return w.onMounted(()=>{setTimeout(()=>{o()},50)}),{attrs:n,selectModel:i,...w.toRefs(r),handleSelectChange:a,getDataList:o}}});function CV(e,t,n,r,i,o){const a=w.resolveComponent("el-cascader");return w.openBlock(),w.createBlock(a,w.mergeProps({modelValue:e.selectModel,"onUpdate:modelValue":t[0]||(t[0]=l=>e.selectModel=l)},e.attrs,{options:e.listData,onChange:e.handleSelectChange}),null,16,["modelValue","options","onChange"])}const SV=Object.freeze(Object.defineProperty({__proto__:null,default:sr(EV,[["render",CV]])},Symbol.toStringTag,{value:"Module"})),HCe="";var vb;if(typeof global>"u"){if("ActiveXObject"in window){var g8="\u62B1\u6B49\uFF0CwangEditor V5+ \u7248\u672C\u5F00\u59CB\uFF0C\u4E0D\u5728\u652F\u6301 IE \u6D4F\u89C8\u5668";g8+=`
|
|
2
2
|
Sorry, wangEditor V5+ versions do not support IE browser.`,console.error(g8)}v8(),m8()}else global&&((vb=global.navigator)===null||vb===void 0?void 0:vb.userAgent.match("QQBrowser"))&&(v8(),m8());function v8(){typeof globalThis>"u"&&(window.globalThis=window)}function m8(){typeof AggregateError>"u"&&(window.AggregateError=function(e,t){var n=new Error(t);return n.errors=e,n})}if(typeof global=="object"){var xV=Object.getOwnPropertyDescriptor(global,"window");(!global.window||xV.set)&&(global.window=global,global.requestAnimationFrame=function(){},global.navigator={userAgent:""},global.location={hostname:"0.0.0.0",port:0,protocol:"http:"},global.btoa=function(){},global.crypto={getRandomValues:function(e){return nodeCrypto.randomFillSync(e)}}),global.document!=null&&global.document.getElementsByTagName==null&&(global.document.getElementsByTagName=function(){return[]})}/*!
|
|
3
3
|
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
4
4
|
*
|