bm-admin-ui 1.2.48-alpha → 1.2.50-alpha
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/es/components/CollapseTransition/__tests__/index.test.d.ts +1 -0
- package/es/components/CollapseTransition/index.d.ts +32 -0
- package/es/components/CollapseTransition/index.js +117 -0
- package/es/components/CollapseTransition/src/CollapseTransition.vue.d.ts +30 -0
- package/es/components/CollapseTransition/src/props.d.ts +9 -0
- package/es/components/flow-designer/index.js +4 -1
- package/es/components/form-create/index.js +5 -0
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/select-all/index.js +4 -1
- package/es/components/shops-filter/index.d.ts +117 -0
- package/es/components/shops-filter/index.js +1 -3
- package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/es/components/shops-filter/src/shops-filter.vue.d.ts +116 -0
- package/es/components/staffs-selector/index.d.ts +8 -8
- package/es/components/staffs-selector/index.js +0 -1
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -3
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -3
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +2 -2
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +3 -3
- package/es/components/videoView/index.js +4 -1
- package/lib/components/CollapseTransition/__tests__/index.test.d.ts +1 -0
- package/lib/components/CollapseTransition/index.d.ts +32 -0
- package/lib/components/CollapseTransition/index.js +122 -0
- package/lib/components/CollapseTransition/src/CollapseTransition.vue.d.ts +30 -0
- package/lib/components/CollapseTransition/src/props.d.ts +9 -0
- package/lib/components/flow-designer/index.js +4 -1
- package/lib/components/form-create/index.js +5 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/select-all/index.js +4 -1
- package/lib/components/shops-filter/index.d.ts +117 -0
- package/lib/components/shops-filter/index.js +1 -3
- package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/lib/components/shops-filter/src/shops-filter.vue.d.ts +116 -0
- package/lib/components/staffs-selector/index.d.ts +8 -8
- package/lib/components/staffs-selector/index.js +0 -1
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -3
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -3
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +2 -2
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +3 -3
- package/lib/components/videoView/index.js +4 -1
- package/package.json +1 -1
- package/types/components/CollapseTransition/__tests__/index.test.d.ts +1 -0
- package/types/components/CollapseTransition/index.d.ts +32 -0
- package/types/components/CollapseTransition/src/CollapseTransition.vue.d.ts +30 -0
- package/types/components/CollapseTransition/src/props.d.ts +9 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/shops-filter/index.d.ts +117 -0
- package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
- package/types/components/shops-filter/src/shops-filter.vue.d.ts +116 -0
- package/types/components/staffs-selector/index.d.ts +8 -8
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +3 -3
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +3 -3
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +2 -2
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +8 -8
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export type { CollapseTransitionProps } from './src/props';
|
|
2
|
+
declare const BmCollapseTransition: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
3
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
4
|
+
default: string;
|
|
5
|
+
} & {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
11
|
+
default: string;
|
|
12
|
+
} & {
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
}>> & {}>>;
|
|
16
|
+
beforeEnter: (el: any) => void;
|
|
17
|
+
enter: (el: any) => void;
|
|
18
|
+
afterEnter: (el: any) => void;
|
|
19
|
+
beforeLeave: (el: any) => void;
|
|
20
|
+
leave: (el: any) => void;
|
|
21
|
+
afterLeave: (el: any) => void;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
24
|
+
default: string;
|
|
25
|
+
} & {
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
}>>, {
|
|
29
|
+
transition: string;
|
|
30
|
+
}>>;
|
|
31
|
+
export { BmCollapseTransition };
|
|
32
|
+
export default BmCollapseTransition;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { withInstall } from 'bm-admin-ui/es/utils/with-install';
|
|
2
|
+
import { defineComponent, openBlock, createBlock, Transition, withCtx, renderSlot } from 'vue';
|
|
3
|
+
|
|
4
|
+
/*!
|
|
5
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
6
|
+
*
|
|
7
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
8
|
+
* Released under the MIT License.
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
function isObject(o) {
|
|
12
|
+
return Object.prototype.toString.call(o) === '[object Object]';
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function isPlainObject(o) {
|
|
16
|
+
var ctor,prot;
|
|
17
|
+
|
|
18
|
+
if (isObject(o) === false) return false;
|
|
19
|
+
|
|
20
|
+
// If has modified constructor
|
|
21
|
+
ctor = o.constructor;
|
|
22
|
+
if (ctor === undefined) return true;
|
|
23
|
+
|
|
24
|
+
// If has modified prototype
|
|
25
|
+
prot = ctor.prototype;
|
|
26
|
+
if (isObject(prot) === false) return false;
|
|
27
|
+
|
|
28
|
+
// If constructor does not have an Object-specific method
|
|
29
|
+
if (prot.hasOwnProperty('isPrototypeOf') === false) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Most likely a plain Object
|
|
34
|
+
return true;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},t.apply(this,arguments)}function r(e,t){if(null==e)return {};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}const n={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(r){const e=r.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,f=e=>e;let d=f;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;d=e?function(e,t=n.logLevel){!1===n.silent&&console[t](`[VueTypes warn]: ${e}`);}:f;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=e=>c(e)&&p(e,"_vueTypes_name"),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,r=!1){let n,i=!0,o="";n=c(e)?e:{type:e};const a=b(n)?n._vueTypes_name+" - ":"";if(g(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return i;if(!n.required&&void 0===t)return i;v(n.type)?(i=n.type.some(e=>!0===m(e,t,!0)),o=n.type.map(e=>l(e)).join(" or ")):(o=l(n),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof n.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===r?(d(e),!1):e}if(p(n,"validator")&&h(n.validator)){const e=d,o=[];if(d=e=>{o.push(e);},i=n.validator(t),d=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===r?(d(e),i):e}}return i}function j(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(d(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=r;return h(n)&&(r.validator=O(n,r)),r}function _(e,t){const r=j(e,t);return Object.defineProperty(r,"validate",{value(e){return h(this.validator)&&d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=Object.getOwnPropertyDescriptor(e,r);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(n))return o;const{validator:a}=n,s=r(n,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),P=()=>_("function",{type:Function}),x=()=>_("boolean",{type:Boolean}),E=()=>_("string",{type:String}),N=()=>_("number",{type:Number}),q=()=>_("array",{type:Array}),A=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator:e=>y(e)}),S=()=>j("symbol",{validator:e=>"symbol"==typeof e});function D(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(r){const n=e(r);return n||d(`${this._vueTypes_name} - ${t}`),n}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,r=e.reduce((e,t)=>{if(null!=t){const r=t.constructor;-1===e.indexOf(r)&&e.push(r);}return e},[]);return j("oneOf",{type:r.length>0?r:void 0,validator(r){const n=-1!==e.indexOf(r);return n||d(t),n}})}function F(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=[];for(let n=0;n<e.length;n+=1){const i=e[n];if(g(i)){if(b(i)&&"oneOf"===i._vueTypes_name&&i.type){r=r.concat(i.type);continue}if(h(i.validator)&&(t=!0),!0===i.type||!i.type){d('oneOfType - invalid usage of "true" or "null" as types.');continue}r=r.concat(i.type);}else r.push(i);}r=r.filter((e,t)=>r.indexOf(e)===t);const n=r.length>0?r:null;return j("oneOfType",t?{type:n,validator(t){const r=[],n=e.some(e=>{const n=m(b(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return "string"==typeof n&&r.push(n),!0===n});return n||d(`oneOfType - provided value does not match any of the ${r.length} passed-in validators:\n${$(r.join("\n"))}`),n}}:{type:n})}function Y(e){return j("arrayOf",{type:Array,validator(t){let r="";const n=t.every(t=>(r=m(e,t,!0),!0===r));return n||d(`arrayOf - value validation error:\n${$(r)}`),n}})}function B(e){return j("instanceOf",{type:e})}function I(e){return j("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every(n=>(r=m(e,t[n],!0),!0===r));return n||d(`objectOf - value validation error:\n${$(r)}`),n}})}function J(e){const t=Object.keys(e),r=t.filter(t=>{var r;return !(null===(r=e[t])||void 0===r||!r.required)}),n=j("shape",{type:Object,validator(n){if(!c(n))return !1;const i=Object.keys(n);if(r.length>0&&r.some(e=>-1===i.indexOf(e))){const e=r.filter(e=>-1===i.indexOf(e));return d(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(r=>{if(-1===t.indexOf(r))return !0===this._vueTypes_isLoose||(d(`shape - shape definition does not include a "${r}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[r],n[r],!0);return "string"==typeof i&&d(`shape - "${r}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const M=["name","validate","getter"],R=/*#__PURE__*/(()=>{var e;return (e=class{static get any(){return w()}static get func(){return P().def(this.defaults.func)}static get bool(){return x().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return A().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return S()}static get nullable(){return {type:null}}static extend(e){if(v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:n=!1,getter:i=!1}=e,o=r(e,M);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const r=T(t,a,o);return r.validator&&(r.validator=r.validator.bind(r,...e)),r}});let s;return s=i?{get(){const e=Object.assign({},o);return n?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},o);let i;return i=n?_(t,r):j(t,r),r.validator&&(i.validator=r.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=n,e.custom=D,e.oneOf=L,e.instanceOf=B,e.oneOfType=F,e.arrayOf=Y,e.objectOf=I,e.shape=J,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,r=!1)=>r?_(e,t):j(e,t)},e})();function z(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var r;return (r=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(r){this.defaults=!1!==r?t({},!0!==r?r:e):{};}}).defaults=t({},e),r}class C extends(z()){}
|
|
38
|
+
|
|
39
|
+
const collapseTransitionProps = () => ({
|
|
40
|
+
transition: C.string.def('0.25s height ease-in-out'),
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
var _export_sfc = (sfc, props) => {
|
|
44
|
+
const target = sfc.__vccOpts || sfc;
|
|
45
|
+
for (const [key, val] of props) {
|
|
46
|
+
target[key] = val;
|
|
47
|
+
}
|
|
48
|
+
return target;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const __default__ = {
|
|
52
|
+
name: "BmCollapseTransition"
|
|
53
|
+
};
|
|
54
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
55
|
+
...__default__,
|
|
56
|
+
props: collapseTransitionProps(),
|
|
57
|
+
setup(__props) {
|
|
58
|
+
const props = __props;
|
|
59
|
+
const beforeEnter = (el) => {
|
|
60
|
+
el.style.transition = props.transition;
|
|
61
|
+
if (!el.dataset)
|
|
62
|
+
el.dataset = {};
|
|
63
|
+
el.style.height = 0;
|
|
64
|
+
};
|
|
65
|
+
const enter = (el) => {
|
|
66
|
+
if (el.scrollHeight !== 0) {
|
|
67
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
68
|
+
} else {
|
|
69
|
+
el.style.height = "";
|
|
70
|
+
}
|
|
71
|
+
el.style.overflow = "hidden";
|
|
72
|
+
};
|
|
73
|
+
const afterEnter = (el) => {
|
|
74
|
+
el.style.transition = "";
|
|
75
|
+
el.style.height = "";
|
|
76
|
+
el.style.overflow = "";
|
|
77
|
+
};
|
|
78
|
+
const beforeLeave = (el) => {
|
|
79
|
+
if (!el.dataset)
|
|
80
|
+
el.dataset = {};
|
|
81
|
+
el.style.display = "block";
|
|
82
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
83
|
+
el.style.overflow = "hidden";
|
|
84
|
+
};
|
|
85
|
+
const leave = (el) => {
|
|
86
|
+
if (el.scrollHeight !== 0) {
|
|
87
|
+
el.style.transition = props.transition;
|
|
88
|
+
el.style.height = 0;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
const afterLeave = (el) => {
|
|
92
|
+
el.style.transition = "";
|
|
93
|
+
el.style.height = "";
|
|
94
|
+
el.style.overflow = "";
|
|
95
|
+
};
|
|
96
|
+
return (_ctx, _cache) => {
|
|
97
|
+
return openBlock(), createBlock(Transition, {
|
|
98
|
+
onBeforeEnter: beforeEnter,
|
|
99
|
+
onEnter: enter,
|
|
100
|
+
onAfterEnter: afterEnter,
|
|
101
|
+
onBeforeLeave: beforeLeave,
|
|
102
|
+
onLeave: leave,
|
|
103
|
+
onAfterLeave: afterLeave
|
|
104
|
+
}, {
|
|
105
|
+
default: withCtx(() => [
|
|
106
|
+
renderSlot(_ctx.$slots, "default")
|
|
107
|
+
]),
|
|
108
|
+
_: 3
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
var CollapseTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "CollapseTransition.vue"]]);
|
|
114
|
+
|
|
115
|
+
const BmCollapseTransition = withInstall(CollapseTransition);
|
|
116
|
+
|
|
117
|
+
export { BmCollapseTransition, BmCollapseTransition as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
3
|
+
default: string;
|
|
4
|
+
} & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
}, {
|
|
8
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
10
|
+
default: string;
|
|
11
|
+
} & {
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
}>> & {}>>;
|
|
15
|
+
beforeEnter: (el: any) => void;
|
|
16
|
+
enter: (el: any) => void;
|
|
17
|
+
afterEnter: (el: any) => void;
|
|
18
|
+
beforeLeave: (el: any) => void;
|
|
19
|
+
leave: (el: any) => void;
|
|
20
|
+
afterLeave: (el: any) => void;
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
23
|
+
default: string;
|
|
24
|
+
} & {
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}>>, {
|
|
28
|
+
transition: string;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const collapseTransitionProps: () => {
|
|
3
|
+
transition: import("vue-types").VueTypeValidableDef<string> & {
|
|
4
|
+
default: string;
|
|
5
|
+
} & {
|
|
6
|
+
default: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare type CollapseTransitionProps = Partial<ExtractPropTypes<ReturnType<typeof collapseTransitionProps>>>;
|
|
@@ -759,8 +759,11 @@ function isString(val) {
|
|
|
759
759
|
return is(val, 'String');
|
|
760
760
|
}
|
|
761
761
|
|
|
762
|
+
const __default__ = {
|
|
763
|
+
name: "BmFlowDesigner"
|
|
764
|
+
};
|
|
762
765
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
763
|
-
|
|
766
|
+
...__default__,
|
|
764
767
|
props: {
|
|
765
768
|
lineLength: {
|
|
766
769
|
type: Number,
|
package/es/components/index.d.ts
CHANGED
package/es/components/index.js
CHANGED
|
@@ -18,8 +18,11 @@ const _hoisted_5 = ["onClick"];
|
|
|
18
18
|
const _hoisted_6 = /* @__PURE__ */ createElementVNode("span", { class: "checkbox-label" }, "\u53CD\u9009", -1);
|
|
19
19
|
const _hoisted_7 = { key: 0 };
|
|
20
20
|
const _hoisted_8 = { class: "blue" };
|
|
21
|
+
const __default__ = {
|
|
22
|
+
name: "BmSelectAll"
|
|
23
|
+
};
|
|
21
24
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
22
|
-
|
|
25
|
+
...__default__,
|
|
23
26
|
props: {
|
|
24
27
|
value: {
|
|
25
28
|
type: Array || String || Number || void 0,
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
declare const BmShopsFilter: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
selected: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
searchShopProp: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
labelTitle: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
showAlways: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
displayParams: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {
|
|
21
|
+
width: string;
|
|
22
|
+
labelOffset: string;
|
|
23
|
+
labelWidth: string;
|
|
24
|
+
searchWidth: string;
|
|
25
|
+
listMaxHeight: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
loadFilter: {
|
|
29
|
+
type: FunctionConstructor;
|
|
30
|
+
default: () => Promise<never[]>;
|
|
31
|
+
};
|
|
32
|
+
loadData: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
default: () => Promise<never>;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
triggleActive(): void;
|
|
38
|
+
outSideClick(): void;
|
|
39
|
+
changeFilterSelect(index: any, code: any): void;
|
|
40
|
+
onCheckAllChange(e: any): void;
|
|
41
|
+
checkboxChange(): void;
|
|
42
|
+
invertChange(): void;
|
|
43
|
+
clearAll(): void;
|
|
44
|
+
fetchData(): void;
|
|
45
|
+
clearAllSelected(e: any): void;
|
|
46
|
+
filterIsActive(filterIndex: any, code: any): boolean;
|
|
47
|
+
isActive: import("vue").Ref<boolean>;
|
|
48
|
+
searchVal: import("vue").Ref<string>;
|
|
49
|
+
selected: import("vue").Ref<any[]>;
|
|
50
|
+
shopList: import("vue").Ref<{
|
|
51
|
+
shopCode: string;
|
|
52
|
+
shopName: string;
|
|
53
|
+
}[]>;
|
|
54
|
+
shopListByCode: import("vue").Ref<{}>;
|
|
55
|
+
checkAll: import("vue").Ref<boolean>;
|
|
56
|
+
hasCheck: import("vue").Ref<boolean>;
|
|
57
|
+
inverSelect: import("vue").Ref<boolean>;
|
|
58
|
+
shopCheck: import("vue").Ref<{}>;
|
|
59
|
+
filterSelects: import("vue").Ref<never[]>;
|
|
60
|
+
filterArr: import("vue").Ref<{
|
|
61
|
+
list: {
|
|
62
|
+
code: string;
|
|
63
|
+
label: string;
|
|
64
|
+
}[];
|
|
65
|
+
paramsStr: string;
|
|
66
|
+
label?: string | undefined;
|
|
67
|
+
multiple?: boolean | undefined;
|
|
68
|
+
}[]>;
|
|
69
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:selected")[], "change" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
selected: {
|
|
71
|
+
type: ArrayConstructor;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
|
+
searchShopProp: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
labelTitle: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
showAlways: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
displayParams: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
default: () => {
|
|
89
|
+
width: string;
|
|
90
|
+
labelOffset: string;
|
|
91
|
+
labelWidth: string;
|
|
92
|
+
searchWidth: string;
|
|
93
|
+
listMaxHeight: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
loadFilter: {
|
|
97
|
+
type: FunctionConstructor;
|
|
98
|
+
default: () => Promise<never[]>;
|
|
99
|
+
};
|
|
100
|
+
loadData: {
|
|
101
|
+
type: FunctionConstructor;
|
|
102
|
+
default: () => Promise<never>;
|
|
103
|
+
};
|
|
104
|
+
}>> & {
|
|
105
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
labelTitle: string;
|
|
109
|
+
showAlways: boolean;
|
|
110
|
+
loadData: Function;
|
|
111
|
+
selected: unknown[];
|
|
112
|
+
searchShopProp: string;
|
|
113
|
+
displayParams: Record<string, any>;
|
|
114
|
+
loadFilter: Function;
|
|
115
|
+
}>>;
|
|
116
|
+
export { BmShopsFilter };
|
|
117
|
+
export default BmShopsFilter;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const shopsFilterProps: {
|
|
3
|
+
labelTitle: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
showAlways: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
displayParams: {
|
|
12
|
+
type: ObjectConstructor;
|
|
13
|
+
default: () => {
|
|
14
|
+
width: string;
|
|
15
|
+
labelOffset: string;
|
|
16
|
+
labelWidth: string;
|
|
17
|
+
searchWidth: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
filterArr: {
|
|
21
|
+
type: PromiseConstructor;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export declare type ShopsFilterProps = ExtractPropTypes<typeof shopsFilterProps>;
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
selected: {
|
|
3
|
+
type: ArrayConstructor;
|
|
4
|
+
default: () => never[];
|
|
5
|
+
};
|
|
6
|
+
searchShopProp: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
labelTitle: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
showAlways: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
displayParams: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {
|
|
21
|
+
width: string;
|
|
22
|
+
labelOffset: string;
|
|
23
|
+
labelWidth: string;
|
|
24
|
+
searchWidth: string;
|
|
25
|
+
listMaxHeight: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
loadFilter: {
|
|
29
|
+
type: FunctionConstructor;
|
|
30
|
+
default: () => Promise<never[]>;
|
|
31
|
+
};
|
|
32
|
+
loadData: {
|
|
33
|
+
type: FunctionConstructor;
|
|
34
|
+
default: () => Promise<never>;
|
|
35
|
+
};
|
|
36
|
+
}, {
|
|
37
|
+
triggleActive(): void;
|
|
38
|
+
outSideClick(): void;
|
|
39
|
+
changeFilterSelect(index: any, code: any): void;
|
|
40
|
+
onCheckAllChange(e: any): void;
|
|
41
|
+
checkboxChange(): void;
|
|
42
|
+
invertChange(): void;
|
|
43
|
+
clearAll(): void;
|
|
44
|
+
fetchData(): void;
|
|
45
|
+
clearAllSelected(e: any): void;
|
|
46
|
+
filterIsActive(filterIndex: any, code: any): boolean;
|
|
47
|
+
isActive: import("vue").Ref<boolean>;
|
|
48
|
+
searchVal: import("vue").Ref<string>;
|
|
49
|
+
selected: import("vue").Ref<any[]>;
|
|
50
|
+
shopList: import("vue").Ref<{
|
|
51
|
+
shopCode: string;
|
|
52
|
+
shopName: string;
|
|
53
|
+
}[]>;
|
|
54
|
+
shopListByCode: import("vue").Ref<{}>;
|
|
55
|
+
checkAll: import("vue").Ref<boolean>;
|
|
56
|
+
hasCheck: import("vue").Ref<boolean>;
|
|
57
|
+
inverSelect: import("vue").Ref<boolean>;
|
|
58
|
+
shopCheck: import("vue").Ref<{}>;
|
|
59
|
+
filterSelects: import("vue").Ref<never[]>;
|
|
60
|
+
filterArr: import("vue").Ref<{
|
|
61
|
+
list: {
|
|
62
|
+
code: string;
|
|
63
|
+
label: string;
|
|
64
|
+
}[];
|
|
65
|
+
paramsStr: string;
|
|
66
|
+
label?: string | undefined;
|
|
67
|
+
multiple?: boolean | undefined;
|
|
68
|
+
}[]>;
|
|
69
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:selected")[], "change" | "update:selected", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
70
|
+
selected: {
|
|
71
|
+
type: ArrayConstructor;
|
|
72
|
+
default: () => never[];
|
|
73
|
+
};
|
|
74
|
+
searchShopProp: {
|
|
75
|
+
type: StringConstructor;
|
|
76
|
+
default: string;
|
|
77
|
+
};
|
|
78
|
+
labelTitle: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
showAlways: {
|
|
83
|
+
type: BooleanConstructor;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
displayParams: {
|
|
87
|
+
type: ObjectConstructor;
|
|
88
|
+
default: () => {
|
|
89
|
+
width: string;
|
|
90
|
+
labelOffset: string;
|
|
91
|
+
labelWidth: string;
|
|
92
|
+
searchWidth: string;
|
|
93
|
+
listMaxHeight: string;
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
loadFilter: {
|
|
97
|
+
type: FunctionConstructor;
|
|
98
|
+
default: () => Promise<never[]>;
|
|
99
|
+
};
|
|
100
|
+
loadData: {
|
|
101
|
+
type: FunctionConstructor;
|
|
102
|
+
default: () => Promise<never>;
|
|
103
|
+
};
|
|
104
|
+
}>> & {
|
|
105
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
106
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
labelTitle: string;
|
|
109
|
+
showAlways: boolean;
|
|
110
|
+
loadData: Function;
|
|
111
|
+
selected: unknown[];
|
|
112
|
+
searchShopProp: string;
|
|
113
|
+
displayParams: Record<string, any>;
|
|
114
|
+
loadFilter: Function;
|
|
115
|
+
}>;
|
|
116
|
+
export default _default;
|
|
@@ -916,7 +916,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
916
916
|
[key: string]: any;
|
|
917
917
|
}> | null | undefined)[]>;
|
|
918
918
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
919
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
920
920
|
limit: {
|
|
921
921
|
type: NumberConstructor;
|
|
922
922
|
default: number;
|
|
@@ -926,11 +926,11 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
926
926
|
default: () => never[];
|
|
927
927
|
};
|
|
928
928
|
}>> & {
|
|
929
|
-
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
930
929
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
930
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
931
931
|
}, {
|
|
932
|
-
limit: number;
|
|
933
932
|
selected: unknown[];
|
|
933
|
+
limit: number;
|
|
934
934
|
}>;
|
|
935
935
|
radioCmp: import("vue").DefineComponent<{
|
|
936
936
|
list: {
|
|
@@ -947,7 +947,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
947
947
|
searched: import("vue").ComputedRef<boolean>;
|
|
948
948
|
search: () => void;
|
|
949
949
|
radioChange: (e: any) => void;
|
|
950
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
950
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
951
951
|
list: {
|
|
952
952
|
type: ArrayConstructor;
|
|
953
953
|
default: () => never[];
|
|
@@ -957,8 +957,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
957
957
|
default: string;
|
|
958
958
|
};
|
|
959
959
|
}>> & {
|
|
960
|
-
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
961
960
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
961
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
962
962
|
}, {
|
|
963
963
|
list: unknown[];
|
|
964
964
|
selected: string;
|
|
@@ -992,7 +992,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
992
992
|
}> | null | undefined)[]>;
|
|
993
993
|
isFulfill: import("vue").Ref<boolean>;
|
|
994
994
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
995
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
995
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
996
996
|
limit: {
|
|
997
997
|
type: NumberConstructor;
|
|
998
998
|
default: number;
|
|
@@ -1002,11 +1002,11 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1002
1002
|
default: () => never[];
|
|
1003
1003
|
};
|
|
1004
1004
|
}>> & {
|
|
1005
|
-
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1006
1005
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1006
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1007
1007
|
}, {
|
|
1008
|
-
limit: number;
|
|
1009
1008
|
selected: unknown[];
|
|
1009
|
+
limit: number;
|
|
1010
1010
|
}>;
|
|
1011
1011
|
list: any;
|
|
1012
1012
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -500,7 +500,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
500
500
|
emits: ["update:visible", "update:select", "change"],
|
|
501
501
|
setup(__props, { emit }) {
|
|
502
502
|
const props = __props;
|
|
503
|
-
console.log("\u{1F680} ~ props:", props);
|
|
504
503
|
const selected = ref([]);
|
|
505
504
|
const computeSelected = computed(() => {
|
|
506
505
|
let list2 = [];
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
}> | null | undefined)[]>;
|
|
28
28
|
isFulfill: import("vue").Ref<boolean>;
|
|
29
29
|
changeTreeCheck: (checkedKeys: any) => void;
|
|
30
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
limit: {
|
|
32
32
|
type: NumberConstructor;
|
|
33
33
|
default: number;
|
|
@@ -37,10 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: () => never[];
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
limit: number;
|
|
44
43
|
selected: unknown[];
|
|
44
|
+
limit: number;
|
|
45
45
|
}>;
|
|
46
46
|
export default _default;
|
|
@@ -27,7 +27,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
27
27
|
[key: string]: any;
|
|
28
28
|
}> | null | undefined)[]>;
|
|
29
29
|
isFulfill: import("vue").Ref<boolean>;
|
|
30
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
30
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
31
31
|
limit: {
|
|
32
32
|
type: NumberConstructor;
|
|
33
33
|
default: number;
|
|
@@ -37,10 +37,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
37
37
|
default: () => never[];
|
|
38
38
|
};
|
|
39
39
|
}>> & {
|
|
40
|
-
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
41
40
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
42
42
|
}, {
|
|
43
|
-
limit: number;
|
|
44
43
|
selected: unknown[];
|
|
44
|
+
limit: number;
|
|
45
45
|
}>;
|
|
46
46
|
export default _default;
|