@sirpho/components 1.0.1 → 1.0.2
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/dist/components/Box/ComboBox.vue.d.ts +15 -21
- package/dist/components/Box/ModalBox.vue.d.ts +25 -28
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +71 -59
|
@@ -200,24 +200,16 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
200
200
|
inputProps: Partial<import("vue").ExtractPropTypes<{
|
|
201
201
|
id: StringConstructor;
|
|
202
202
|
prefixCls: StringConstructor;
|
|
203
|
-
inputPrefixCls: StringConstructor;
|
|
204
|
-
* @description Vxe Grid的属性
|
|
205
|
-
* @link https://vxetable.cn/#/grid/api
|
|
206
|
-
*/
|
|
203
|
+
inputPrefixCls: StringConstructor;
|
|
207
204
|
defaultValue: import('../../../node_modules/vue-types').VueTypeDef<string | number>;
|
|
208
205
|
value: {
|
|
209
|
-
type: import("vue").PropType<string | number>;
|
|
210
|
-
* @description Input属性
|
|
211
|
-
* @link https://www.antdv.com/components/input-cn#API
|
|
212
|
-
*/
|
|
206
|
+
type: import("vue").PropType<string | number>;
|
|
213
207
|
default: any;
|
|
214
208
|
};
|
|
215
209
|
placeholder: {
|
|
216
210
|
type: import("vue").PropType<string | number>;
|
|
217
211
|
};
|
|
218
|
-
autocomplete: StringConstructor;
|
|
219
|
-
* @description Input Value
|
|
220
|
-
*/
|
|
212
|
+
autocomplete: StringConstructor;
|
|
221
213
|
type: {
|
|
222
214
|
type: import("vue").PropType<string>;
|
|
223
215
|
default: string;
|
|
@@ -228,17 +220,15 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
228
220
|
};
|
|
229
221
|
disabled: {
|
|
230
222
|
type: BooleanConstructor;
|
|
231
|
-
/**
|
|
232
|
-
* @description 传入 request 的请求参数
|
|
233
|
-
* 当params参数发生变化时 会自动发起请求 )
|
|
234
|
-
*/
|
|
235
223
|
default: any;
|
|
236
224
|
};
|
|
237
225
|
readonly: {
|
|
238
226
|
type: BooleanConstructor;
|
|
239
227
|
default: any;
|
|
240
228
|
};
|
|
241
|
-
addonBefore: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
229
|
+
addonBefore: import('../../../node_modules/vue-types').VueTypeValidableDef<any>; /**
|
|
230
|
+
* @description 获取数据源的时机
|
|
231
|
+
*/
|
|
242
232
|
addonAfter: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
243
233
|
prefix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
244
234
|
suffix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
@@ -247,12 +237,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
247
237
|
default: any;
|
|
248
238
|
};
|
|
249
239
|
allowClear: {
|
|
250
|
-
/**
|
|
251
|
-
* @description inputText 文字显示处理
|
|
252
|
-
*/
|
|
253
240
|
type: BooleanConstructor;
|
|
254
241
|
default: any;
|
|
255
|
-
};
|
|
242
|
+
}; /**
|
|
243
|
+
* @description inputText 文字显示处理
|
|
244
|
+
*/
|
|
256
245
|
lazy: {
|
|
257
246
|
type: BooleanConstructor;
|
|
258
247
|
default: boolean;
|
|
@@ -263,6 +252,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
263
252
|
default: any;
|
|
264
253
|
};
|
|
265
254
|
bordered: {
|
|
255
|
+
/**
|
|
256
|
+
* @description 多选传multiple 单选不传
|
|
257
|
+
*/
|
|
266
258
|
type: BooleanConstructor;
|
|
267
259
|
default: any;
|
|
268
260
|
};
|
|
@@ -270,7 +262,9 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
270
262
|
type: import("vue").PropType<boolean | import('../../../node_modules/ant-design-vue/lib/input/inputProps').ShowCountProps>;
|
|
271
263
|
};
|
|
272
264
|
htmlSize: NumberConstructor;
|
|
273
|
-
onPressEnter: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
265
|
+
onPressEnter: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>; /**
|
|
266
|
+
* 基础数据
|
|
267
|
+
*/
|
|
274
268
|
onKeydown: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
275
269
|
onKeyup: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
276
270
|
onFocus: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
@@ -182,7 +182,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
182
182
|
placeholder: {
|
|
183
183
|
type: import("vue").PropType<string | number>;
|
|
184
184
|
};
|
|
185
|
-
autocomplete: StringConstructor;
|
|
185
|
+
autocomplete: StringConstructor; /**
|
|
186
|
+
* @description AutoComplete属性 ant-design-vue
|
|
187
|
+
*/
|
|
186
188
|
type: {
|
|
187
189
|
type: import("vue").PropType<string>;
|
|
188
190
|
default: string;
|
|
@@ -198,10 +200,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
198
200
|
readonly: {
|
|
199
201
|
type: BooleanConstructor;
|
|
200
202
|
default: any;
|
|
201
|
-
};
|
|
202
|
-
* @description 是否在组件的第一次加载时是否需要手动发起请求
|
|
203
|
-
* 或者通过修改params来发起请求
|
|
204
|
-
*/
|
|
203
|
+
};
|
|
205
204
|
addonBefore: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
206
205
|
addonAfter: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
207
206
|
prefix: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
@@ -221,9 +220,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
221
220
|
maxlength: NumberConstructor;
|
|
222
221
|
loading: {
|
|
223
222
|
type: BooleanConstructor;
|
|
224
|
-
|
|
225
|
-
* @description
|
|
223
|
+
/**
|
|
224
|
+
* @description input输入框有值时是否允许删除
|
|
226
225
|
*/
|
|
226
|
+
default: any;
|
|
227
227
|
};
|
|
228
228
|
bordered: {
|
|
229
229
|
type: BooleanConstructor;
|
|
@@ -232,24 +232,19 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
232
232
|
showCount: {
|
|
233
233
|
type: import("vue").PropType<boolean | import('../../../node_modules/ant-design-vue/lib/input/inputProps').ShowCountProps>;
|
|
234
234
|
};
|
|
235
|
-
htmlSize: NumberConstructor;
|
|
236
|
-
|
|
237
|
-
*/
|
|
238
|
-
onPressEnter: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>; /**
|
|
239
|
-
* 弹框的title
|
|
240
|
-
*/
|
|
235
|
+
htmlSize: NumberConstructor;
|
|
236
|
+
onPressEnter: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
241
237
|
onKeydown: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
242
|
-
|
|
238
|
+
onKeyup: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
239
|
+
onFocus: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>; /**
|
|
243
240
|
* 是否使用自定义弹框
|
|
244
241
|
*/
|
|
245
|
-
onKeyup: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').KeyboardEventHandler>;
|
|
246
|
-
onFocus: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
247
242
|
onBlur: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').FocusEventHandler>;
|
|
248
|
-
onChange: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
243
|
+
onChange: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
244
|
+
onInput: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
245
|
+
'onUpdate:value': import("vue").PropType<(val: string) => void>; /**
|
|
249
246
|
* 选择框的类
|
|
250
247
|
*/
|
|
251
|
-
onInput: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/_util/EventInterface').ChangeEventHandler>;
|
|
252
|
-
'onUpdate:value': import("vue").PropType<(val: string) => void>;
|
|
253
248
|
valueModifiers: ObjectConstructor;
|
|
254
249
|
hidden: BooleanConstructor;
|
|
255
250
|
}>>;
|
|
@@ -263,7 +258,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
263
258
|
};
|
|
264
259
|
shape: {
|
|
265
260
|
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonShape>;
|
|
266
|
-
};
|
|
261
|
+
}; /**
|
|
262
|
+
* @description AutoComplete属性 ant-design-vue
|
|
263
|
+
*/
|
|
267
264
|
size: {
|
|
268
265
|
type: import("vue").PropType<import('../../../node_modules/ant-design-vue/lib/button').ButtonSize>;
|
|
269
266
|
};
|
|
@@ -276,11 +273,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
276
273
|
};
|
|
277
274
|
};
|
|
278
275
|
disabled: {
|
|
279
|
-
type: BooleanConstructor;
|
|
280
|
-
* @description setValue & input show label
|
|
281
|
-
*/
|
|
276
|
+
type: BooleanConstructor;
|
|
282
277
|
default: any;
|
|
283
278
|
};
|
|
279
|
+
/**
|
|
280
|
+
* @description setValue & input show label
|
|
281
|
+
*/
|
|
284
282
|
ghost: {
|
|
285
283
|
type: BooleanConstructor;
|
|
286
284
|
default: any;
|
|
@@ -292,14 +290,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
292
290
|
danger: {
|
|
293
291
|
type: BooleanConstructor;
|
|
294
292
|
default: any;
|
|
295
|
-
};
|
|
293
|
+
}; /**
|
|
294
|
+
* @description 下拉表格数据来源
|
|
295
|
+
*/
|
|
296
296
|
icon: import('../../../node_modules/vue-types').VueTypeValidableDef<any>;
|
|
297
297
|
href: StringConstructor;
|
|
298
298
|
target: StringConstructor;
|
|
299
|
-
title: StringConstructor;
|
|
300
|
-
* @description 传入 request 的请求参数
|
|
301
|
-
* 当params参数发生变化时 会自动发起请求 )
|
|
302
|
-
*/
|
|
299
|
+
title: StringConstructor;
|
|
303
300
|
onClick: {
|
|
304
301
|
type: import("vue").PropType<(event: MouseEvent) => void>;
|
|
305
302
|
};
|
package/dist/index.es.js
CHANGED
|
@@ -2889,7 +2889,7 @@ function ac(e, t, n, r, a, o) {
|
|
|
2889
2889
|
Ge(e.$slots, "default", {}, void 0, !0)
|
|
2890
2890
|
]);
|
|
2891
2891
|
}
|
|
2892
|
-
const bc = /* @__PURE__ */ Mt(nc, [["render", ac], ["__scopeId", "data-v-
|
|
2892
|
+
const bc = /* @__PURE__ */ Mt(nc, [["render", ac], ["__scopeId", "data-v-10f888e6"]]);
|
|
2893
2893
|
export {
|
|
2894
2894
|
dc as ComboBox,
|
|
2895
2895
|
cc as FilterExtend,
|
package/dist/index.umd.js
CHANGED
|
@@ -55,4 +55,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
55
55
|
}
|
|
56
56
|
`,Nn=!1,Ns=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Is;r.nextTick(function(){Nn||(typeof window<"u"&&window.document&&window.document.documentElement&&Os(t,{prepend:!0}),Nn=!0)})},ks=["icon","primaryColor","secondaryColor"];function Ds(e,t){if(e==null)return{};var n=Ms(e,t),a,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)a=i[o],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Ms(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,i;for(i=0;i<a.length;i++)o=a[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),a.forEach(function(o){Fs(e,o,n[o])})}return e}function Fs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ye={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Bs(e){var t=e.primaryColor,n=e.secondaryColor;ye.primaryColor=t,ye.secondaryColor=n||En(t),ye.calculated=!!n}function Vs(){return Ne({},ye)}var ce=function(t,n){var a=Ne({},t,n.attrs),o=a.icon,i=a.primaryColor,s=a.secondaryColor,l=Ds(a,ks),f=ye;if(i&&(f={primaryColor:i,secondaryColor:s||En(i)}),Ns(),Es(jn(o),"icon should be icon definiton, but got ".concat(o)),!jn(o))return null;var u=o;return u&&typeof u.icon=="function"&&(u=Ne({},u,{icon:u.icon(f.primaryColor,f.secondaryColor)})),ut(u.icon,"svg-".concat(u.name),Ne({},l,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};ce.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ce.inheritAttrs=!1,ce.displayName="IconBase",ce.getTwoToneColors=Vs,ce.setTwoToneColors=Bs;const dt=ce;function Ls(e,t){return Hs(e)||zs(e,t)||Us(e,t)||Rs()}function Rs(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
57
57
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Us(e,t){if(e){if(typeof e=="string")return kn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kn(e,t)}}function kn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function zs(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(a.push(s.value),!(t&&a.length===t));o=!0);}catch(f){i=!0,l=f}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function Hs(e){if(Array.isArray(e))return e}function Dn(e){var t=In(e),n=Ls(t,2),a=n[0],o=n[1];return dt.setTwoToneColors({primaryColor:a,secondaryColor:o})}function qs(){var e=dt.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Gs=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Ws(e,t){return Xs(e)||Ys(e,t)||Js(e,t)||Ks()}function Ks(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Js(e,t){if(e){if(typeof e=="string")return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mn(e,t)}}function Mn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ys(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(a.push(s.value),!(t&&a.length===t));o=!0);}catch(f){i=!0,l=f}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function Xs(e){if(Array.isArray(e))return e}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),a.forEach(function(o){pt(e,o,n[o])})}return e}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e,t){if(e==null)return{};var n=Qs(e,t),a,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)a=i[o],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Qs(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,i;for(i=0;i<a.length;i++)o=a[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}Dn("#1890ff");var fe=function(t,n){var a,o=Fn({},t,n.attrs),i=o.class,s=o.icon,l=o.spin,f=o.rotate,u=o.tabindex,C=o.twoToneColor,v=o.onClick,_=Zs(o,Gs),j=(a={anticon:!0},pt(a,"anticon-".concat(s.name),Boolean(s.name)),pt(a,i,i),a),E=l===""||l||s.name==="loading"?"anticon-spin":"",I=u;I===void 0&&v&&(I=-1,_.tabindex=I);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=In(C),O=Ws(A,2),m=O[0],c=O[1];return r.createVNode("span",Fn({role:"img","aria-label":s.name},_,{onClick:v,class:j}),[r.createVNode(dt,{class:E,icon:s,primaryColor:m,secondaryColor:c,style:S},null)])};fe.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},fe.displayName="AntdIcon",fe.inheritAttrs=!1,fe.getTwoToneColor=qs,fe.setTwoToneColor=Dn;const ec=fe;var tc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"};const nc=tc;function Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),a.forEach(function(o){rc(e,o,n[o])})}return e}function rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=function(t,n){var a=Bn({},t,n.attrs);return r.createVNode(ec,Bn({},a,{icon:nc}),null)};gt.displayName="DashOutlined",gt.inheritAttrs=!1;const ac=gt,oc={class:"modal-box-container"},ic={style:{color:"red"}},lc=r.defineComponent({props:{gridProps:{default:()=>({})},inputProps:{default:()=>({})},autoCompleteProps:null,buttonProps:{default:()=>({size:"small"})},value:null,option:null,variant:null,remoteConfig:null,manualRequest:{type:Boolean,default:!1},params:null,transformData:{type:Function,default:e=>e},transformInputText:{type:Function,default:()=>{}},allowClear:{type:Boolean,default:!0},mode:{default:""},paramsChangeClear:{type:Boolean,default:!0},data:null,title:null,useModal:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modalProps:{default:()=>({width:"50%"})},selectClass:null,popClass:null,allowInput:{type:Boolean,default:!0},dataProvider:null,beforeModalOpen:null,name:{default:""}},emits:["update:value","change","input","blur"],setup(e,{emit:t}){const n=e,a=r.ref({}),o=r.ref([]),{inputText:i,onClear:s,deselect:l,columns:f,gridData:u,getList:C,gridLoading:v,handleCheckboxChange:_,handleInputChange:j,filter:E,doOnMount:I,setValue:S,setValue1:A,inputValue:O,loadData:m}=yn({props:n,emit:t,xTable:a,isModal:!0}),c=r.computed(()=>n.mode=="multiple"||!n.allowInput),b=()=>{_(),F()},p=r.ref(!1),w=r.ref(!1),P=()=>{n.beforeModalOpen&&!n.beforeModalOpen()||(n.useModal?p.value=!0:w.value=!0,r.nextTick(()=>{!n.manualRequest&&!n.useModal&&C()}))},F=()=>{n.useModal?p.value=!1:w.value=!1,T()},T=()=>{E.value={},a.value.clearFilter(),u.value=[]},k=d=>{F(),n.mode==="multiple"?A(d):S(d)},$={slots:{buttons:"toolbar_buttons"}},q={inputProps:{size:"small",style:{width:"160px"}},gridProps:{autoResize:!0,height:"300",columns:[]}},ve=()=>{const d={},{value:g}=n.option;d[g]=O.value,S(d)},Vn=d=>{const{row:g}=d;if(n.mode==="multiple")return;F();const{value:x}=n.option;O.value=g[x],S(g)},h=d=>{if(!n.name)return;let g=n.name,x=localStorage.getItem(g),V=r.reactive([]);x&&(V=JSON.parse(x)),o.value=d?V.filter(G=>G.value.indexOf(d)>=0):V},y=()=>{if(t("blur"),!n.name||!O.value)return;let d=n.name,g=localStorage.getItem(d),x=[];g?(x=JSON.parse(g),x.length>4&&(x=x.slice(x.length-4,x.length+1)),g.indexOf(O.value)<0&&x.push({value:O.value})):x.push({value:O.value}),localStorage.setItem(d,JSON.stringify(x))};return r.onMounted(I),(d,g)=>{var G,ke;const x=r.resolveComponent("vxe-grid"),V=r.resolveComponent("vxe-modal");return r.openBlock(),r.createElementBlock("div",oc,[r.unref(c)?(r.openBlock(),r.createBlock(r.unref(B.Select),r.mergeProps({key:0,value:r.unref(i)},{...q.inputProps,...n.inputProps,disabled:((G=n.inputProps)==null?void 0:G.disabled)||n.disabled},{mode:n.mode,"allow-clear":e.allowClear,open:!1,"max-tag-count":1,onDeselect:r.unref(l),class:{selectClass:e.selectClass},onClear:r.unref(s)}),{maxTagPlaceholder:r.withCtx(H=>[r.createElementVNode("span",ic,"+ "+r.toDisplayString(H.length),1)]),suffixIcon:r.withCtx(()=>[]),_:1},16,["value","mode","allow-clear","onDeselect","class","onClear"])):r.createCommentVNode("",!0),r.unref(c)?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(B.AutoComplete),r.mergeProps({key:1,size:"small",value:r.unref(O),"onUpdate:value":g[0]||(g[0]=H=>r.isRef(O)?O.value=H:null)},{...n.autoCompleteProps,disabled:((ke=n.autoCompleteProps)==null?void 0:ke.disabled)||n.disabled},{"allow-clear":e.allowClear,options:o.value,onSearch:h,onBlur:y,onChange:g[1]||(g[1]=H=>ve())}),null,16,["value","allow-clear","options"])),r.createVNode(r.unref(B.Button),r.mergeProps({...n.buttonProps},{onClick:P,disabled:n.disabled}),{default:r.withCtx(()=>[r.createVNode(r.unref(ac))]),_:1},16,["disabled"]),e.useModal?r.renderSlot(d.$slots,"modal",{key:2,setValue:k,modalVisible:p.value,params:n.params}):r.createCommentVNode("",!0),r.createVNode(V,r.mergeProps({modelValue:w.value,"onUpdate:modelValue":g[2]||(g[2]=H=>w.value=H),"esc-closable":"","lock-view":"","show-footer":e.mode=="multiple",resize:"",draggable:"",dblclickZoom:"",maskClosable:!1,onClose:T,onConfirm:b},{...n.modalProps}),r.createSlots({default:r.withCtx(()=>{var H;return[r.createVNode(x,r.mergeProps({class:"dropdown-table"},{...q.gridProps,...n.gridProps,columns:r.unref(f)},{"keep-source":"",data:r.unref(u),ref_key:"xTable",ref:a,loading:r.unref(v),"filter-config":{showIcon:!1},"row-config":{isHover:!0,isCurrent:!0},onCellDblclick:Vn,"toolbar-config":$,"checkbox-config":{checkField:"checked",trigger:"row"}}),r.createSlots({toolbar_buttons:r.withCtx(()=>[r.renderSlot(d.$slots,"toolbar_buttons",{loadData:r.unref(m)})]),_:2},[r.renderList((H=n.gridProps)==null?void 0:H.columns,De=>({name:De.field,fn:r.withCtx(()=>[r.createVNode(r.unref(B.Form).ItemRest,null,{default:r.withCtx(()=>[r.createVNode(r.unref(B.Input),{value:r.unref(E)[De.field],"onUpdate:value":hc=>r.unref(E)[De.field]=hc,size:"small",onChange:()=>r.unref(j)(De.field)},null,8,["value","onUpdate:value","onChange"])]),_:2},1024)])}))]),1040,["data","loading"])]}),_:2},[e.title!=null?{name:"title",fn:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(e.title),1)])}:void 0]),1040,["modelValue","show-footer"])])}}}),wc="",sc={name:"PageContainer"},Cc="",cc={"data-component-name":"sirpho-page-container",class:"sirpho-page-container"};function fc(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",cc,[r.renderSlot(e.$slots,"default")])}const uc=tt(sc,[["render",fc]]),dc={name:"QueryFilterContainer"},xc="",pc={"data-component-name":"sirpho-query-filter-container",class:"sirpho-query-filter-container"};function gc(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",pc,[r.renderSlot(e.$slots,"default",{},void 0,!0)])}const mc=tt(dc,[["render",gc],["__scopeId","data-v-
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Js(e,t){if(e){if(typeof e=="string")return Mn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Mn(e,t)}}function Mn(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function Ys(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a=[],o=!0,i=!1,s,l;try{for(n=n.call(e);!(o=(s=n.next()).done)&&(a.push(s.value),!(t&&a.length===t));o=!0);}catch(f){i=!0,l=f}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return a}}function Xs(e){if(Array.isArray(e))return e}function Fn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),a.forEach(function(o){pt(e,o,n[o])})}return e}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zs(e,t){if(e==null)return{};var n=Qs(e,t),a,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)a=i[o],!(t.indexOf(a)>=0)&&Object.prototype.propertyIsEnumerable.call(e,a)&&(n[a]=e[a])}return n}function Qs(e,t){if(e==null)return{};var n={},a=Object.keys(e),o,i;for(i=0;i<a.length;i++)o=a[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}Dn("#1890ff");var fe=function(t,n){var a,o=Fn({},t,n.attrs),i=o.class,s=o.icon,l=o.spin,f=o.rotate,u=o.tabindex,C=o.twoToneColor,v=o.onClick,_=Zs(o,Gs),j=(a={anticon:!0},pt(a,"anticon-".concat(s.name),Boolean(s.name)),pt(a,i,i),a),E=l===""||l||s.name==="loading"?"anticon-spin":"",I=u;I===void 0&&v&&(I=-1,_.tabindex=I);var S=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,A=In(C),O=Ws(A,2),m=O[0],c=O[1];return r.createVNode("span",Fn({role:"img","aria-label":s.name},_,{onClick:v,class:j}),[r.createVNode(dt,{class:E,icon:s,primaryColor:m,secondaryColor:c,style:S},null)])};fe.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String},fe.displayName="AntdIcon",fe.inheritAttrs=!1,fe.getTwoToneColor=qs,fe.setTwoToneColor=Dn;const ec=fe;var tc={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M112 476h160v72H112zm320 0h160v72H432zm320 0h160v72H752z"}}]},name:"dash",theme:"outlined"};const nc=tc;function Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?Object(arguments[t]):{},a=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(n).filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable}))),a.forEach(function(o){rc(e,o,n[o])})}return e}function rc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gt=function(t,n){var a=Bn({},t,n.attrs);return r.createVNode(ec,Bn({},a,{icon:nc}),null)};gt.displayName="DashOutlined",gt.inheritAttrs=!1;const ac=gt,oc={class:"modal-box-container"},ic={style:{color:"red"}},lc=r.defineComponent({props:{gridProps:{default:()=>({})},inputProps:{default:()=>({})},autoCompleteProps:null,buttonProps:{default:()=>({size:"small"})},value:null,option:null,variant:null,remoteConfig:null,manualRequest:{type:Boolean,default:!1},params:null,transformData:{type:Function,default:e=>e},transformInputText:{type:Function,default:()=>{}},allowClear:{type:Boolean,default:!0},mode:{default:""},paramsChangeClear:{type:Boolean,default:!0},data:null,title:null,useModal:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},modalProps:{default:()=>({width:"50%"})},selectClass:null,popClass:null,allowInput:{type:Boolean,default:!0},dataProvider:null,beforeModalOpen:null,name:{default:""}},emits:["update:value","change","input","blur"],setup(e,{emit:t}){const n=e,a=r.ref({}),o=r.ref([]),{inputText:i,onClear:s,deselect:l,columns:f,gridData:u,getList:C,gridLoading:v,handleCheckboxChange:_,handleInputChange:j,filter:E,doOnMount:I,setValue:S,setValue1:A,inputValue:O,loadData:m}=yn({props:n,emit:t,xTable:a,isModal:!0}),c=r.computed(()=>n.mode=="multiple"||!n.allowInput),b=()=>{_(),F()},p=r.ref(!1),w=r.ref(!1),P=()=>{n.beforeModalOpen&&!n.beforeModalOpen()||(n.useModal?p.value=!0:w.value=!0,r.nextTick(()=>{!n.manualRequest&&!n.useModal&&C()}))},F=()=>{n.useModal?p.value=!1:w.value=!1,T()},T=()=>{E.value={},a.value.clearFilter(),u.value=[]},k=d=>{F(),n.mode==="multiple"?A(d):S(d)},$={slots:{buttons:"toolbar_buttons"}},q={inputProps:{size:"small",style:{width:"160px"}},gridProps:{autoResize:!0,height:"300",columns:[]}},ve=()=>{const d={},{value:g}=n.option;d[g]=O.value,S(d)},Vn=d=>{const{row:g}=d;if(n.mode==="multiple")return;F();const{value:x}=n.option;O.value=g[x],S(g)},h=d=>{if(!n.name)return;let g=n.name,x=localStorage.getItem(g),V=r.reactive([]);x&&(V=JSON.parse(x)),o.value=d?V.filter(G=>G.value.indexOf(d)>=0):V},y=()=>{if(t("blur"),!n.name||!O.value)return;let d=n.name,g=localStorage.getItem(d),x=[];g?(x=JSON.parse(g),x.length>4&&(x=x.slice(x.length-4,x.length+1)),g.indexOf(O.value)<0&&x.push({value:O.value})):x.push({value:O.value}),localStorage.setItem(d,JSON.stringify(x))};return r.onMounted(I),(d,g)=>{var G,ke;const x=r.resolveComponent("vxe-grid"),V=r.resolveComponent("vxe-modal");return r.openBlock(),r.createElementBlock("div",oc,[r.unref(c)?(r.openBlock(),r.createBlock(r.unref(B.Select),r.mergeProps({key:0,value:r.unref(i)},{...q.inputProps,...n.inputProps,disabled:((G=n.inputProps)==null?void 0:G.disabled)||n.disabled},{mode:n.mode,"allow-clear":e.allowClear,open:!1,"max-tag-count":1,onDeselect:r.unref(l),class:{selectClass:e.selectClass},onClear:r.unref(s)}),{maxTagPlaceholder:r.withCtx(H=>[r.createElementVNode("span",ic,"+ "+r.toDisplayString(H.length),1)]),suffixIcon:r.withCtx(()=>[]),_:1},16,["value","mode","allow-clear","onDeselect","class","onClear"])):r.createCommentVNode("",!0),r.unref(c)?r.createCommentVNode("",!0):(r.openBlock(),r.createBlock(r.unref(B.AutoComplete),r.mergeProps({key:1,size:"small",value:r.unref(O),"onUpdate:value":g[0]||(g[0]=H=>r.isRef(O)?O.value=H:null)},{...n.autoCompleteProps,disabled:((ke=n.autoCompleteProps)==null?void 0:ke.disabled)||n.disabled},{"allow-clear":e.allowClear,options:o.value,onSearch:h,onBlur:y,onChange:g[1]||(g[1]=H=>ve())}),null,16,["value","allow-clear","options"])),r.createVNode(r.unref(B.Button),r.mergeProps({...n.buttonProps},{onClick:P,disabled:n.disabled}),{default:r.withCtx(()=>[r.createVNode(r.unref(ac))]),_:1},16,["disabled"]),e.useModal?r.renderSlot(d.$slots,"modal",{key:2,setValue:k,modalVisible:p.value,params:n.params}):r.createCommentVNode("",!0),r.createVNode(V,r.mergeProps({modelValue:w.value,"onUpdate:modelValue":g[2]||(g[2]=H=>w.value=H),"esc-closable":"","lock-view":"","show-footer":e.mode=="multiple",resize:"",draggable:"",dblclickZoom:"",maskClosable:!1,onClose:T,onConfirm:b},{...n.modalProps}),r.createSlots({default:r.withCtx(()=>{var H;return[r.createVNode(x,r.mergeProps({class:"dropdown-table"},{...q.gridProps,...n.gridProps,columns:r.unref(f)},{"keep-source":"",data:r.unref(u),ref_key:"xTable",ref:a,loading:r.unref(v),"filter-config":{showIcon:!1},"row-config":{isHover:!0,isCurrent:!0},onCellDblclick:Vn,"toolbar-config":$,"checkbox-config":{checkField:"checked",trigger:"row"}}),r.createSlots({toolbar_buttons:r.withCtx(()=>[r.renderSlot(d.$slots,"toolbar_buttons",{loadData:r.unref(m)})]),_:2},[r.renderList((H=n.gridProps)==null?void 0:H.columns,De=>({name:De.field,fn:r.withCtx(()=>[r.createVNode(r.unref(B.Form).ItemRest,null,{default:r.withCtx(()=>[r.createVNode(r.unref(B.Input),{value:r.unref(E)[De.field],"onUpdate:value":hc=>r.unref(E)[De.field]=hc,size:"small",onChange:()=>r.unref(j)(De.field)},null,8,["value","onUpdate:value","onChange"])]),_:2},1024)])}))]),1040,["data","loading"])]}),_:2},[e.title!=null?{name:"title",fn:r.withCtx(()=>[r.createElementVNode("span",null,r.toDisplayString(e.title),1)])}:void 0]),1040,["modelValue","show-footer"])])}}}),wc="",sc={name:"PageContainer"},Cc="",cc={"data-component-name":"sirpho-page-container",class:"sirpho-page-container"};function fc(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",cc,[r.renderSlot(e.$slots,"default")])}const uc=tt(sc,[["render",fc]]),dc={name:"QueryFilterContainer"},xc="",pc={"data-component-name":"sirpho-query-filter-container",class:"sirpho-query-filter-container"};function gc(e,t,n,a,o,i){return r.openBlock(),r.createElementBlock("div",pc,[r.renderSlot(e.$slots,"default",{},void 0,!0)])}const mc=tt(dc,[["render",gc],["__scopeId","data-v-10f888e6"]]);N.ComboBox=cs,N.FilterExtend=is,N.ModalBox=lc,N.PageContainer=uc,N.QueryFilterContainer=mc,N.StatusPop=ls,N.VxeContainer=Ul,Object.defineProperty(N,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.vxe-container{background-color:#fff}.splitpanes.default-theme .splitpanes__pane{background:#fff}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:.5rem;border-top:unset;margin-top:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:.5rem;border:none;margin:0}.splitpanes.default-theme .splitpanes__splitter{box-sizing:border-box;position:relative;flex-shrink:0;background:#f0f2f5}.my-filter-excel[data-v-4fc5c7cd]{user-select:none;padding:10px 16px;min-width:230px}.my-filter-excel .my-fe-search[data-v-4fc5c7cd]{padding:0}.ant-tabs-top>.ant-tabs-nav[data-v-4fc5c7cd]{margin-bottom:6px}.ant-tabs-tab[data-v-4fc5c7cd]{padding:6px 0}.ant-tabs-tab+.ant-tabs-tab[data-v-4fc5c7cd]{margin-left:20px}.ant-tabs-tab-btn[data-v-4fc5c7cd]{font-size:14px}.my-filter-excel .my-fe-search .my-fe-search-top[data-v-4fc5c7cd]{position:relative;width:100%;padding-bottom:6px}.my-filter-excel .my-fe-search .my-fe-search-top>input[data-v-4fc5c7cd]{border:1px solid #ababab;height:22px;line-height:22px}.my-filter-excel .my-fe-search .my-fe-search-top>.my-fe-search-icon[data-v-4fc5c7cd]{position:absolute;right:5px;top:7px}.my-filter-excel .my-fe-search .my-fe-search-list[data-v-4fc5c7cd]{margin:0;border:1px solid #e2e4e7;height:200px;padding:6px;border-radius:4px}.my-filter-excel .my-fe-search .my-fe-search-list .scroll[data-v-4fc5c7cd]{overflow:auto;height:165px}.my-filter-excel .my-fe-search .my-fe-search-list .my-fe-search-item[data-v-4fc5c7cd]{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:186px}.my-filter-excel .my-fe-search .my-fe-search-list .my-fe-search-item .my-fe-search-item-icon[data-v-4fc5c7cd]{width:16px}.my-filter-excel .my-fe-footer[data-v-4fc5c7cd]{text-align:right;padding-top:10px}.icon-color[data-v-4fc5c7cd]{color:#1e6fff}.container[data-v-4fc5c7cd]{border-radius:4px;border:1px solid #e2e4e7;height:234px;padding:10px}.combo-box-container{width:160px}.combo-box-container .my-dropdown{min-height:300px;background-color:#fff;box-shadow:0 0 6px 2px #0000001a}.combo-box-container .vxe-table--render-default.size--mini .vxe-header--column:not(.col--ellipsis){padding:5px 0}.combo-box-container .ant-select-selection-overflow-item{max-width:80px}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container{width:100%}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-select-sm{height:28px!important;border-radius:4px;box-shadow:none!important;line-height:28px!important}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-select-sm .ant-select-selector{height:28px!important;border-radius:4px;box-shadow:none!important;line-height:28px!important}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-input-affix-wrapper-sm{height:28px;border-radius:4px;box-shadow:none!important;line-height:28px}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-btn-sm{height:28px;border-radius:0 4px 4px 0}.modal-box-container{display:flex;align-items:center;width:180px}.modal-box-container .my-dropdown{min-height:300px;background-color:#fff;box-shadow:0 0 6px 2px #0000001a}.modal-box-container .vxe-table--render-default.size--mini .vxe-header--column:not(.col--ellipsis){padding:5px 0}.modal-box-container .ant-select-selection-overflow-item{max-width:80px}.vxe-table .vxe-cell>.modal-box-container{width:100%}.vxe-table .vxe-cell>.modal-box-container .ant-select-sm{flex:1;height:28px;border-radius:4px 0 0 4px;box-shadow:none!important;line-height:28px}.vxe-table .vxe-cell>.modal-box-container .ant-select-sm .ant-select-selector{height:28px!important;border-radius:4px 0 0 4px;box-shadow:none!important;line-height:28px!important}.vxe-table .vxe-cell>.modal-box-container .ant-input-affix-wrapper-sm{height:28px;border-radius:4px 0 0 4px;box-shadow:none!important;line-height:28px}.vxe-table .vxe-cell>.modal-box-container .ant-btn-sm{height:28px;border-radius:0 4px 4px 0}.dropdown-table .vxe-table--header th .vxe-cell{display:flex!important;align-items:center}.dropdown-table .vxe-table--header th .vxe-cell .vxe-cell--title{flex:1}.sirpho-page-container{padding:.5rem}.sirpho-query-filter-container[data-v-
|
|
1
|
+
.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging *{user-select:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.vxe-container{background-color:#fff}.splitpanes.default-theme .splitpanes__pane{background:#fff}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:.5rem;border-top:unset;margin-top:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:.5rem;border:none;margin:0}.splitpanes.default-theme .splitpanes__splitter{box-sizing:border-box;position:relative;flex-shrink:0;background:#f0f2f5}.my-filter-excel[data-v-4fc5c7cd]{user-select:none;padding:10px 16px;min-width:230px}.my-filter-excel .my-fe-search[data-v-4fc5c7cd]{padding:0}.ant-tabs-top>.ant-tabs-nav[data-v-4fc5c7cd]{margin-bottom:6px}.ant-tabs-tab[data-v-4fc5c7cd]{padding:6px 0}.ant-tabs-tab+.ant-tabs-tab[data-v-4fc5c7cd]{margin-left:20px}.ant-tabs-tab-btn[data-v-4fc5c7cd]{font-size:14px}.my-filter-excel .my-fe-search .my-fe-search-top[data-v-4fc5c7cd]{position:relative;width:100%;padding-bottom:6px}.my-filter-excel .my-fe-search .my-fe-search-top>input[data-v-4fc5c7cd]{border:1px solid #ababab;height:22px;line-height:22px}.my-filter-excel .my-fe-search .my-fe-search-top>.my-fe-search-icon[data-v-4fc5c7cd]{position:absolute;right:5px;top:7px}.my-filter-excel .my-fe-search .my-fe-search-list[data-v-4fc5c7cd]{margin:0;border:1px solid #e2e4e7;height:200px;padding:6px;border-radius:4px}.my-filter-excel .my-fe-search .my-fe-search-list .scroll[data-v-4fc5c7cd]{overflow:auto;height:165px}.my-filter-excel .my-fe-search .my-fe-search-list .my-fe-search-item[data-v-4fc5c7cd]{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:186px}.my-filter-excel .my-fe-search .my-fe-search-list .my-fe-search-item .my-fe-search-item-icon[data-v-4fc5c7cd]{width:16px}.my-filter-excel .my-fe-footer[data-v-4fc5c7cd]{text-align:right;padding-top:10px}.icon-color[data-v-4fc5c7cd]{color:#1e6fff}.container[data-v-4fc5c7cd]{border-radius:4px;border:1px solid #e2e4e7;height:234px;padding:10px}.combo-box-container{width:160px}.combo-box-container .my-dropdown{min-height:300px;background-color:#fff;box-shadow:0 0 6px 2px #0000001a}.combo-box-container .vxe-table--render-default.size--mini .vxe-header--column:not(.col--ellipsis){padding:5px 0}.combo-box-container .ant-select-selection-overflow-item{max-width:80px}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container{width:100%}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-select-sm{height:28px!important;border-radius:4px;box-shadow:none!important;line-height:28px!important}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-select-sm .ant-select-selector{height:28px!important;border-radius:4px;box-shadow:none!important;line-height:28px!important}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-input-affix-wrapper-sm{height:28px;border-radius:4px;box-shadow:none!important;line-height:28px}.vxe-table .vxe-cell>.vxe-pulldown.combo-box-container .ant-btn-sm{height:28px;border-radius:0 4px 4px 0}.modal-box-container{display:flex;align-items:center;width:180px}.modal-box-container .my-dropdown{min-height:300px;background-color:#fff;box-shadow:0 0 6px 2px #0000001a}.modal-box-container .vxe-table--render-default.size--mini .vxe-header--column:not(.col--ellipsis){padding:5px 0}.modal-box-container .ant-select-selection-overflow-item{max-width:80px}.vxe-table .vxe-cell>.modal-box-container{width:100%}.vxe-table .vxe-cell>.modal-box-container .ant-select-sm{flex:1;height:28px;border-radius:4px 0 0 4px;box-shadow:none!important;line-height:28px}.vxe-table .vxe-cell>.modal-box-container .ant-select-sm .ant-select-selector{height:28px!important;border-radius:4px 0 0 4px;box-shadow:none!important;line-height:28px!important}.vxe-table .vxe-cell>.modal-box-container .ant-input-affix-wrapper-sm{height:28px;border-radius:4px 0 0 4px;box-shadow:none!important;line-height:28px}.vxe-table .vxe-cell>.modal-box-container .ant-btn-sm{height:28px;border-radius:0 4px 4px 0}.dropdown-table .vxe-table--header th .vxe-cell{display:flex!important;align-items:center}.dropdown-table .vxe-table--header th .vxe-cell .vxe-cell--title{flex:1}.sirpho-page-container{padding:.5rem}.sirpho-query-filter-container[data-v-10f888e6]{margin-bottom:.5rem;padding:.5rem .5rem 0;background-color:#fff}.sirpho-query-filter-container[data-v-10f888e6] .ant-form-inline .ant-form-item{margin-bottom:8px}.sirpho-query-filter-container[data-v-10f888e6] .ant-form-item-label>label{height:24px}.sirpho-query-filter-container[data-v-10f888e6] .ant-form-item-control-input{min-height:unset}
|
package/package.json
CHANGED
|
@@ -1,59 +1,71 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@sirpho/components",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.js",
|
|
7
|
-
"types": "dist/components/index.d.ts",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"vue": "^
|
|
41
|
-
"vue-
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@sirpho/components",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/components/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.cjs",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
},
|
|
14
|
+
"./*": {
|
|
15
|
+
"import": "./dist/*.js",
|
|
16
|
+
"require": "./dist/*.cjs",
|
|
17
|
+
"types": "./dist/*.d.ts"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"dev": "vite",
|
|
22
|
+
"build": "vue-tsc && vite build",
|
|
23
|
+
"prepublish": "pnpm run build",
|
|
24
|
+
"preview": "vite preview"
|
|
25
|
+
},
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "git+https://github.com/sirpho/components.git"
|
|
29
|
+
},
|
|
30
|
+
"author": "sirpho",
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@ant-design/icons-vue": ">=6.1.0",
|
|
37
|
+
"@types/lodash-es": "^4.17.6",
|
|
38
|
+
"@types/node": "^18.13.0",
|
|
39
|
+
"@types/splitpanes": "^2.2.1",
|
|
40
|
+
"@vitejs/plugin-vue": "^4.0.0",
|
|
41
|
+
"@vitejs/plugin-vue-jsx": "^3.0.1",
|
|
42
|
+
"@vueuse/core": "^9.12.0",
|
|
43
|
+
"ant-design-vue": ">=3.2.0",
|
|
44
|
+
"await-to-js": "^3.0.0",
|
|
45
|
+
"less": "^4.5.1",
|
|
46
|
+
"lodash-es": "^4.17.21",
|
|
47
|
+
"rollup-plugin-external-globals": "^0.7.3",
|
|
48
|
+
"splitpanes": "^3.1.5",
|
|
49
|
+
"typescript": "^4.9.3",
|
|
50
|
+
"vite": "^4.1.0",
|
|
51
|
+
"vite-plugin-dts": "3.6.0",
|
|
52
|
+
"vue": "^3.2.28",
|
|
53
|
+
"vue-tsc": "^1.0.24",
|
|
54
|
+
"vue-types": "^5.0.2",
|
|
55
|
+
"vxe-table": "4.5.0"
|
|
56
|
+
},
|
|
57
|
+
"peerDependencies": {
|
|
58
|
+
"@ant-design/icons-vue": ">=6.1.0",
|
|
59
|
+
"@vueuse/core": ">=8.9.0",
|
|
60
|
+
"ant-design-vue": ">=3.2.0",
|
|
61
|
+
"await-to-js": ">=3.0.0",
|
|
62
|
+
"lodash-es": ">=4.17.0",
|
|
63
|
+
"vue": ">=3.2.25",
|
|
64
|
+
"vxe-table": "^4.3.0 || ^4.5.0 || ^4.6.0"
|
|
65
|
+
},
|
|
66
|
+
"volta": {
|
|
67
|
+
"node": "20.11.1",
|
|
68
|
+
"pnpm": "8.15.4"
|
|
69
|
+
},
|
|
70
|
+
"description": "sirpho components"
|
|
71
|
+
}
|