@aplus-frontend/ui 0.0.1-beta.26 → 0.0.1-beta.28
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/src/ap-action/style/item.css +6 -1
- package/es/src/ap-form/interface.d.ts +1 -0
- package/es/src/ap-form/modal-form/index.vue.d.ts +11 -2
- package/es/src/ap-form/modal-form/index.vue.mjs +120 -76
- package/es/src/ap-form/style/ap-form-item.css +2 -1
- package/es/src/base-button/index.d.ts +1 -1
- package/es/src/basic/index.d.ts +1 -1
- package/es/src/button/index.d.ts +1 -1
- package/es/src/config-provider/index.d.ts +1 -1
- package/es/src/container/index.d.ts +1 -1
- package/es/src/count-down/index.d.ts +1 -1
- package/es/src/cropper/index.d.ts +369 -0
- package/es/src/description/index.d.ts +1 -1
- package/es/src/dropdown/index.d.ts +1 -1
- package/es/src/icon/index.d.ts +1 -1
- package/es/src/icon-picker/index.d.ts +1 -1
- package/es/src/modal/index.d.ts +963 -0
- package/es/src/pro-table/hooks/use-data-source.mjs +30 -32
- package/es/src/scroll-bar/index.d.ts +1 -2
- package/es/src/strength-meter/index.d.ts +1 -1
- package/es/src/theme/antd-global-overwrite/admin/button.css +12 -6
- package/es/src/theme/antd-global-overwrite/admin/index.css +58 -12
- package/es/src/theme/antd-global-overwrite/admin/modal.css +13 -0
- package/es/src/theme/antd-global-overwrite/admin/table.css +33 -6
- package/es/src/theme/antd-global-overwrite/aplus/button.css +12 -6
- package/es/src/theme/antd-global-overwrite/aplus/index.css +77 -11
- package/es/src/theme/antd-global-overwrite/aplus/modal.css +13 -0
- package/es/src/theme/antd-global-overwrite/aplus/table.css +52 -5
- package/es/src/theme/ap-action/item.css +6 -1
- package/es/src/theme/ap-form/ap-form-item.css +2 -1
- package/es/src/transition/index.d.ts +1 -1
- package/es/src/utils/config-provider-preset.mjs +11 -11
- package/es/src/utils/index.d.ts +8 -0
- package/es/src/utils/index.mjs +29 -17
- package/lib/src/ap-action/style/item.css +6 -1
- package/lib/src/ap-form/interface.d.ts +1 -0
- package/lib/src/ap-form/modal-form/index.vue.d.ts +11 -2
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/style/ap-form-item.css +2 -1
- package/lib/src/base-button/index.d.ts +1 -1
- package/lib/src/basic/index.d.ts +1 -1
- package/lib/src/button/index.d.ts +1 -1
- package/lib/src/config-provider/index.d.ts +1 -1
- package/lib/src/container/index.d.ts +1 -1
- package/lib/src/count-down/index.d.ts +1 -1
- package/lib/src/cropper/index.d.ts +369 -0
- package/lib/src/description/index.d.ts +1 -1
- package/lib/src/dropdown/index.d.ts +1 -1
- package/lib/src/icon/index.d.ts +1 -1
- package/lib/src/icon-picker/index.d.ts +1 -1
- package/lib/src/modal/index.d.ts +963 -0
- package/lib/src/pro-table/hooks/use-data-source.js +1 -1
- package/lib/src/scroll-bar/index.d.ts +1 -2
- package/lib/src/strength-meter/index.d.ts +1 -1
- package/lib/src/theme/antd-global-overwrite/admin/button.css +12 -6
- package/lib/src/theme/antd-global-overwrite/admin/index.css +58 -12
- package/lib/src/theme/antd-global-overwrite/admin/modal.css +13 -0
- package/lib/src/theme/antd-global-overwrite/admin/table.css +33 -6
- package/lib/src/theme/antd-global-overwrite/aplus/button.css +12 -6
- package/lib/src/theme/antd-global-overwrite/aplus/index.css +77 -11
- package/lib/src/theme/antd-global-overwrite/aplus/modal.css +13 -0
- package/lib/src/theme/antd-global-overwrite/aplus/table.css +52 -5
- package/lib/src/theme/ap-action/item.css +6 -1
- package/lib/src/theme/ap-form/ap-form-item.css +2 -1
- package/lib/src/transition/index.d.ts +1 -1
- package/lib/src/utils/config-provider-preset.js +1 -1
- package/lib/src/utils/index.d.ts +8 -0
- package/lib/src/utils/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { isUndefined as a } from "lodash-unified";
|
|
2
|
-
function s(
|
|
2
|
+
function s(e, n) {
|
|
3
3
|
var t, r;
|
|
4
|
-
return
|
|
4
|
+
return e != null && e.parentElement ? e.parentElement.classList.contains(n) ? (t = e.parentElement) != null && t.parentElement ? (r = e.parentElement.parentElement.className) == null ? void 0 : r.includes("basic-table") : !1 : s(e.parentElement, n) : !1;
|
|
5
5
|
}
|
|
6
|
-
const u = (
|
|
7
|
-
const
|
|
8
|
-
return Array.isArray(
|
|
6
|
+
const u = (e) => s(e, "ant-form") && (e == null ? void 0 : e.parentNode) || (document == null ? void 0 : document.body), f = ({ text: e }) => {
|
|
7
|
+
const n = (t) => t == null || t === "";
|
|
8
|
+
return Array.isArray(e) ? n(e[0]) ? "--" : e[0] : n(e) ? "--" : e;
|
|
9
9
|
}, m = !1, o = {
|
|
10
10
|
getPopupContainer: u,
|
|
11
11
|
transformCellText: f,
|
|
12
12
|
autoInsertSpaceInButton: m
|
|
13
13
|
};
|
|
14
|
-
function
|
|
15
|
-
const
|
|
16
|
-
...
|
|
14
|
+
function p(e) {
|
|
15
|
+
const n = {
|
|
16
|
+
...e
|
|
17
17
|
}, t = Object.keys(
|
|
18
18
|
o
|
|
19
19
|
);
|
|
20
20
|
for (const r of t)
|
|
21
|
-
a(
|
|
22
|
-
return
|
|
21
|
+
a(n[r]) && (n[r] = o[r]);
|
|
22
|
+
return n;
|
|
23
23
|
}
|
|
24
24
|
export {
|
|
25
25
|
o as antdConfigProviderPresets,
|
|
26
26
|
m as autoInsertSpaceInButton,
|
|
27
27
|
u as getPopupContainer,
|
|
28
|
-
|
|
28
|
+
p as mergeAntdProvideConfig,
|
|
29
29
|
f as transformCellText
|
|
30
30
|
};
|
package/es/src/utils/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Recordable } from '../type';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* @description: Set ui mount node
|
|
3
5
|
*/
|
|
@@ -12,3 +14,9 @@ export declare function getDynamicProps<T extends Record<string, unknown>, U>(pr
|
|
|
12
14
|
*/
|
|
13
15
|
export declare function omitWhen<T extends object, K extends keyof T>(obj: T, fieldList?: K[], when?: (field: string, fieldValue: T[K]) => boolean): Omit<T, K>;
|
|
14
16
|
export declare function isPascalCase(str: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* 递归处理reactive对象转raw object
|
|
19
|
+
* @param obj
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
export declare function convertReactiveToRaw(obj: Recordable<any>): Recordable<any>;
|
package/es/src/utils/index.mjs
CHANGED
|
@@ -1,31 +1,43 @@
|
|
|
1
|
-
import { unref as
|
|
2
|
-
function
|
|
1
|
+
import { unref as u, markRaw as a } from "vue";
|
|
2
|
+
function l(t) {
|
|
3
3
|
return (t == null ? void 0 : t.parentNode) ?? document.body;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function y(t) {
|
|
6
6
|
return typeof t < "u";
|
|
7
7
|
}
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
return Object.keys(t).map((
|
|
11
|
-
n
|
|
12
|
-
}),
|
|
8
|
+
function p(t) {
|
|
9
|
+
const e = {};
|
|
10
|
+
return Object.keys(t).map((n) => {
|
|
11
|
+
e[n] = u(t[n]);
|
|
12
|
+
}), e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const r = Object.assign({}, t),
|
|
16
|
-
for (let
|
|
17
|
-
const
|
|
18
|
-
(
|
|
14
|
+
function m(t, e = [], n) {
|
|
15
|
+
const r = Object.assign({}, t), o = Object.keys(r);
|
|
16
|
+
for (let i = 0; i < o.length; i += 1) {
|
|
17
|
+
const c = o[i];
|
|
18
|
+
(e.includes(c) || n != null && n(c, r[c])) && delete r[c];
|
|
19
19
|
}
|
|
20
20
|
return r;
|
|
21
21
|
}
|
|
22
22
|
function g(t) {
|
|
23
23
|
return /^[A-Z][A-Za-z]*$/.test(t);
|
|
24
24
|
}
|
|
25
|
+
function s(t) {
|
|
26
|
+
if (Array.isArray(t))
|
|
27
|
+
return t.map((e) => s(e));
|
|
28
|
+
if (typeof t == "object" && t !== null) {
|
|
29
|
+
const e = {};
|
|
30
|
+
for (const n in t)
|
|
31
|
+
e[n] = s(t[n]);
|
|
32
|
+
return a(e);
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
}
|
|
25
36
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
37
|
+
s as convertReactiveToRaw,
|
|
38
|
+
p as getDynamicProps,
|
|
39
|
+
l as getPopupContainer,
|
|
40
|
+
y as isDef,
|
|
29
41
|
g as isPascalCase,
|
|
30
|
-
|
|
42
|
+
m as omitWhen
|
|
31
43
|
};
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
.aplus-action-item--primary {
|
|
8
8
|
color: #0070ff;
|
|
9
9
|
}
|
|
10
|
+
.aplus-action-item--primary:not(.aplus-action-item--disabled):hover {
|
|
11
|
+
color: #66a9ff;
|
|
12
|
+
}
|
|
10
13
|
.aplus-action-item--success {
|
|
11
14
|
color: #2ed1a3;
|
|
12
15
|
}
|
|
@@ -19,10 +22,12 @@
|
|
|
19
22
|
.aplus-action-item--loading {
|
|
20
23
|
opacity: 0.35;
|
|
21
24
|
transition: opacity 0.2s;
|
|
25
|
+
cursor: default;
|
|
22
26
|
}
|
|
23
27
|
.aplus-action-item--loading .btn-loading-icon {
|
|
24
28
|
margin-right: 4px;
|
|
25
29
|
}
|
|
26
30
|
.aplus-action-item--disabled {
|
|
27
|
-
color: #
|
|
31
|
+
color: #CCE2FF;
|
|
32
|
+
cursor: not-allowed;
|
|
28
33
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ApFormModalFormProps, ApFormSubmitterConfig } from '../interface';
|
|
2
2
|
import { VNode, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
|
|
3
|
-
import { FormLabelAlign } from 'ant-design-vue/es/form/interface';
|
|
3
|
+
import { NamePath, ValidateOptions, FormLabelAlign } from 'ant-design-vue/es/form/interface';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { LegacyButtonType, ButtonHTMLType } from 'ant-design-vue/es/button/buttonTypes';
|
|
6
6
|
import { ButtonType, ButtonShape, ButtonSize } from 'ant-design-vue/es/button';
|
|
@@ -27,7 +27,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
|
|
|
27
27
|
};
|
|
28
28
|
open: undefined;
|
|
29
29
|
showCancel: boolean;
|
|
30
|
-
}>, {
|
|
30
|
+
}>, {
|
|
31
|
+
resetFields: (name?: NamePath | undefined) => void;
|
|
32
|
+
clearValidate: (name?: NamePath | undefined) => void;
|
|
33
|
+
validateFields: (nameList?: string | NamePath[] | undefined, options?: ValidateOptions | undefined) => Promise<Partial<any>> | undefined;
|
|
34
|
+
getFieldsValue: (nameList?: true | (string | number)[] | undefined) => Partial<any> | undefined;
|
|
35
|
+
validate: (nameList?: string | NamePath[] | undefined, options?: ValidateOptions | undefined) => Promise<Partial<any>> | undefined;
|
|
36
|
+
scrollToField: (name: NamePath, options?: {}) => void;
|
|
37
|
+
setFieldValue: (key: string, newValue: any) => void;
|
|
38
|
+
setFieldsValue: (values: Record<string, any>) => void;
|
|
39
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
31
40
|
"update:open": (...args: any[]) => void;
|
|
32
41
|
}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApFormModalFormProps>, {
|
|
33
42
|
layout: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),i=require("ant-design-vue");require("../ap-form.vue.js");require("../../hooks/index.js");const T=require("../../utils/slot.js");require("../../config-provider/index.js");const R=require("lodash-unified");require("../style/modal-form.css");const j=require("../../utils/index.js"),M=require("../../hooks/useControllableValue.js"),O=require("../../config-provider/hooks/use-locale.js"),D=require("../../config-provider/hooks/use-namespace.js"),U=require("../ap-form.vue2.js");function g(d){return typeof d=="function"||Object.prototype.toString.call(d)==="[object Object]"&&!e.isVNode(d)}const L=e.defineComponent({__name:"index",props:{initialValues:{},layout:{default:"horizontal"},labelCol:{},wrapperCol:{},colon:{type:Boolean,default:!0},labelAlign:{default:"right"},labelWrap:{type:Boolean},prefixCls:{},requiredMark:{},hideRequiredMark:{type:Boolean,default:!1},rules:{},validateMessages:{},validateOnRuleChange:{type:Boolean,default:!0},scrollToFirstError:{},onSubmit:{},name:{},validateTrigger:{default:"change"},size:{},disabled:{type:Boolean},onValuesChange:{},onFieldsChange:{},onFinishFailed:{},onValidate:{},open:{type:Boolean,default:void 0},"onUpdate:open":{},modalProps:{default:()=>({})},title:{},width:{default:800},onFinish:{},submitter:{type:[Boolean,Object],default:()=>({resetButtonProps:!1})},showCancel:{type:Boolean,default:!0}},emits:["update:open"],setup(d,{expose:C,emit:B}){const o=d,m=e.useSlots(),N=B,s=e.ref(),c=e.ref(),r=e.ref(!1),{value:k,updateValue:f}=M.useControllableValue(o,N,{valuePropName:"open",defaultValue:!1}),{t:v}=O.useLocale(),{b:_,e:h}=D.useNamespace("ap-form-modal-form");e.watch(()=>s.value,l=>{var t;l&&c.value&&((t=l.setFieldsValue)==null||t.call(l,c.value),c.value=void 0)});const V=T.getSingleVNode(m.trigger),q=V?e.cloneVNode(V,{onClick:()=>{f(!0)}}):null,w=e.computed(()=>{var u,p,b,y;let l;const t=[];if(o.submitter===!1)return null;if(o.showCancel){let n;t.push(e.createVNode(i.Button,{onClick:F,disabled:r.value},g(n=v("ap.common.cancelText"))?n:{default:()=>[n]}))}return((u=o.submitter)==null?void 0:u.resetButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps(((p=o.submitter)==null?void 0:p.resetButtonProps)||{},{key:"submit",disabled:r.value,onClick:x}),{default:()=>{var n;return[((n=o.submitter)==null?void 0:n.resetText)||v("ap.common.resetText")]}})),((b=o.submitter)==null?void 0:b.submitButtonProps)!==!1&&t.push(e.createVNode(i.Button,e.mergeProps({type:"primary",key:"submit"},((y=o.submitter)==null?void 0:y.submitButtonProps)||{},{loading:r.value,onClick:P}),{default:()=>{var n;return[((n=o.submitter)==null?void 0:n.submitText)||v("ap.common.okText")]}})),m.submitter?e.createVNode(i.Flex,{justify:"flex-end",class:h("footer")},g(l=m.submitter(t))?l:{default:()=>[l]}):e.createVNode(i.Flex,{justify:"flex-end",class:h("footer")},{default:()=>[e.createVNode(i.Space,null,g(t)?t:{default:()=>[t]})]})});function x(){var l,t,a;o.submitter!==!1&&((l=s.value)==null||l.resetFields(),(a=(t=o.submitter)==null?void 0:t.onReset)==null||a.call(t))}async function P(){var l,t,a,u;if(o.submitter!==!1)try{const p=await((l=s.value)==null?void 0:l.validateFields());(a=(t=o.submitter)==null?void 0:t.onSubmit)==null||a.call(t),r.value=!0,await((u=o.onFinish)==null?void 0:u.call(o,j.convertReactiveToRaw(p)))&&f(!1)}finally{r.value=!1}}function F(){e.unref(r)||f(!1)}function S(l){!l&&e.unref(r)||f(l)}return C({resetFields:l=>{var t;(t=s.value)==null||t.resetFields(l)},clearValidate:l=>{var t;(t=s.value)==null||t.clearValidate(l)},validateFields:(l,t)=>{var a;return(a=s.value)==null?void 0:a.validateFields(l,t)},getFieldsValue:l=>{var t;return(t=s.value)==null?void 0:t.getFieldsValue(l)},validate:(l,t)=>{var a;return(a=s.value)==null?void 0:a.validate(l,t)},scrollToField:(l,t={})=>{var a;(a=s.value)==null||a.scrollToField(l,t)},setFieldValue:(l,t)=>{var a,u;(u=(a=s.value)==null?void 0:a.setFieldValue)==null||u.call(a,l,t)},setFieldsValue:l=>{var t,a;if(!s.value){c.value=l;return}(a=(t=s.value)==null?void 0:t.setFieldsValue)==null||a.call(t,l)}}),(l,t)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(i.Modal),e.mergeProps(l.modalProps,{open:e.unref(k),"onUpdate:open":S,onCancel:F,footer:null,width:l.width,class:e.unref(_)()}),{title:e.withCtx(()=>[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(o.title),1)])]),default:e.withCtx(()=>[e.createVNode(U.default,e.mergeProps({ref_key:"formRef",ref:s},e.unref(R.omit)(o,["modalProps","open","onUpdate:open","title","width","onFinish","submitter"])),{default:e.withCtx(()=>[e.renderSlot(l.$slots,"default")]),_:3},16),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(w.value)))]),_:3},16,["open","width","class"]),(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.unref(q))))],64))}});exports.default=L;
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
border-width: 0 !important;
|
|
21
21
|
height: 30px !important;
|
|
22
22
|
}
|
|
23
|
-
.aplus-ap-form-item--bordered .ant-select-arrow
|
|
23
|
+
.aplus-ap-form-item--bordered .ant-select-arrow,
|
|
24
|
+
.aplus-ap-form-item--bordered .ant-picker-clear {
|
|
24
25
|
inset-inline-end: 0;
|
|
25
26
|
}
|
|
26
27
|
.aplus-ap-form-item--bordered .ant-select-clear {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as ModalButton } from './modal-button.vue';
|
|
2
2
|
import { default as PopConfirmButton } from './pop-confirm-button.vue';
|
|
3
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
3
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
4
4
|
export * from './interface';
|
|
5
5
|
export { ModalButton, PopConfirmButton };
|
|
6
6
|
export declare const BaseButton: {
|
package/lib/src/basic/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, VNodeChild, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, VNode, RendererNode, RendererElement, VNodeChild, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
export declare const BasicHelp: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export declare const Button: {
|
|
3
3
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
4
4
|
type: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { default as __DTS_DEFAULT_0__ } from 'ant-design-vue/es/config-provider/renderEmpty';
|
|
3
3
|
import { TransformCellTextProps } from 'ant-design-vue/es/table/interface';
|
|
4
4
|
import { CSPConfig } from 'ant-design-vue/es/config-provider';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const ScrollContainer: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const CountdownButton: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, CSSProperties, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
|
+
import { CropperOptions } from './interface';
|
|
3
|
+
import { ButtonProps } from '..';
|
|
4
|
+
export * from './interface';
|
|
5
|
+
export declare const CropperImage: {
|
|
6
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
7
|
+
height: {
|
|
8
|
+
type: PropType<string | number>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
options: {
|
|
12
|
+
type: PropType<CropperOptions>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
imageStyle: {
|
|
16
|
+
type: PropType<CSSProperties>;
|
|
17
|
+
default: () => {};
|
|
18
|
+
};
|
|
19
|
+
src: {
|
|
20
|
+
type: PropType<string>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
alt: {
|
|
24
|
+
type: PropType<string>;
|
|
25
|
+
};
|
|
26
|
+
circled: {
|
|
27
|
+
type: PropType<boolean>;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
realTimePreview: {
|
|
31
|
+
type: PropType<boolean>;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
crossorigin: {
|
|
35
|
+
type: PropType<"" | "anonymous" | "use-credentials">;
|
|
36
|
+
default: undefined;
|
|
37
|
+
};
|
|
38
|
+
}>> & {
|
|
39
|
+
onCropend?: ((...args: any[]) => any) | undefined;
|
|
40
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
41
|
+
onCropendError?: ((...args: any[]) => any) | undefined;
|
|
42
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
43
|
+
cropend: (...args: any[]) => void;
|
|
44
|
+
ready: (...args: any[]) => void;
|
|
45
|
+
cropendError: (...args: any[]) => void;
|
|
46
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
47
|
+
height: {
|
|
48
|
+
type: PropType<string | number>;
|
|
49
|
+
default: string;
|
|
50
|
+
};
|
|
51
|
+
options: {
|
|
52
|
+
type: PropType<CropperOptions>;
|
|
53
|
+
default: () => {};
|
|
54
|
+
};
|
|
55
|
+
imageStyle: {
|
|
56
|
+
type: PropType<CSSProperties>;
|
|
57
|
+
default: () => {};
|
|
58
|
+
};
|
|
59
|
+
src: {
|
|
60
|
+
type: PropType<string>;
|
|
61
|
+
required: true;
|
|
62
|
+
};
|
|
63
|
+
alt: {
|
|
64
|
+
type: PropType<string>;
|
|
65
|
+
};
|
|
66
|
+
circled: {
|
|
67
|
+
type: PropType<boolean>;
|
|
68
|
+
default: boolean;
|
|
69
|
+
};
|
|
70
|
+
realTimePreview: {
|
|
71
|
+
type: PropType<boolean>;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
crossorigin: {
|
|
75
|
+
type: PropType<"" | "anonymous" | "use-credentials">;
|
|
76
|
+
default: undefined;
|
|
77
|
+
};
|
|
78
|
+
}>> & {
|
|
79
|
+
onCropend?: ((...args: any[]) => any) | undefined;
|
|
80
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
81
|
+
onCropendError?: ((...args: any[]) => any) | undefined;
|
|
82
|
+
}, {
|
|
83
|
+
height: string | number;
|
|
84
|
+
options: CropperOptions;
|
|
85
|
+
imageStyle: CSSProperties;
|
|
86
|
+
circled: boolean;
|
|
87
|
+
realTimePreview: boolean;
|
|
88
|
+
crossorigin: "" | "anonymous" | "use-credentials";
|
|
89
|
+
}, true, {}, {}, {
|
|
90
|
+
P: {};
|
|
91
|
+
B: {};
|
|
92
|
+
D: {};
|
|
93
|
+
C: {};
|
|
94
|
+
M: {};
|
|
95
|
+
Defaults: {};
|
|
96
|
+
}, Readonly< ExtractPropTypes<{
|
|
97
|
+
height: {
|
|
98
|
+
type: PropType<string | number>;
|
|
99
|
+
default: string;
|
|
100
|
+
};
|
|
101
|
+
options: {
|
|
102
|
+
type: PropType<CropperOptions>;
|
|
103
|
+
default: () => {};
|
|
104
|
+
};
|
|
105
|
+
imageStyle: {
|
|
106
|
+
type: PropType<CSSProperties>;
|
|
107
|
+
default: () => {};
|
|
108
|
+
};
|
|
109
|
+
src: {
|
|
110
|
+
type: PropType<string>;
|
|
111
|
+
required: true;
|
|
112
|
+
};
|
|
113
|
+
alt: {
|
|
114
|
+
type: PropType<string>;
|
|
115
|
+
};
|
|
116
|
+
circled: {
|
|
117
|
+
type: PropType<boolean>;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
realTimePreview: {
|
|
121
|
+
type: PropType<boolean>;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
crossorigin: {
|
|
125
|
+
type: PropType<"" | "anonymous" | "use-credentials">;
|
|
126
|
+
default: undefined;
|
|
127
|
+
};
|
|
128
|
+
}>> & {
|
|
129
|
+
onCropend?: ((...args: any[]) => any) | undefined;
|
|
130
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
131
|
+
onCropendError?: ((...args: any[]) => any) | undefined;
|
|
132
|
+
}, {}, {}, {}, {}, {
|
|
133
|
+
height: string | number;
|
|
134
|
+
options: CropperOptions;
|
|
135
|
+
imageStyle: CSSProperties;
|
|
136
|
+
circled: boolean;
|
|
137
|
+
realTimePreview: boolean;
|
|
138
|
+
crossorigin: "" | "anonymous" | "use-credentials";
|
|
139
|
+
}>;
|
|
140
|
+
__isFragment?: undefined;
|
|
141
|
+
__isTeleport?: undefined;
|
|
142
|
+
__isSuspense?: undefined;
|
|
143
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
144
|
+
height: {
|
|
145
|
+
type: PropType<string | number>;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
options: {
|
|
149
|
+
type: PropType<CropperOptions>;
|
|
150
|
+
default: () => {};
|
|
151
|
+
};
|
|
152
|
+
imageStyle: {
|
|
153
|
+
type: PropType<CSSProperties>;
|
|
154
|
+
default: () => {};
|
|
155
|
+
};
|
|
156
|
+
src: {
|
|
157
|
+
type: PropType<string>;
|
|
158
|
+
required: true;
|
|
159
|
+
};
|
|
160
|
+
alt: {
|
|
161
|
+
type: PropType<string>;
|
|
162
|
+
};
|
|
163
|
+
circled: {
|
|
164
|
+
type: PropType<boolean>;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
|
+
realTimePreview: {
|
|
168
|
+
type: PropType<boolean>;
|
|
169
|
+
default: boolean;
|
|
170
|
+
};
|
|
171
|
+
crossorigin: {
|
|
172
|
+
type: PropType<"" | "anonymous" | "use-credentials">;
|
|
173
|
+
default: undefined;
|
|
174
|
+
};
|
|
175
|
+
}>> & {
|
|
176
|
+
onCropend?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
onReady?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
onCropendError?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
180
|
+
cropend: (...args: any[]) => void;
|
|
181
|
+
ready: (...args: any[]) => void;
|
|
182
|
+
cropendError: (...args: any[]) => void;
|
|
183
|
+
}, string, {
|
|
184
|
+
height: string | number;
|
|
185
|
+
options: CropperOptions;
|
|
186
|
+
imageStyle: CSSProperties;
|
|
187
|
+
circled: boolean;
|
|
188
|
+
realTimePreview: boolean;
|
|
189
|
+
crossorigin: "" | "anonymous" | "use-credentials";
|
|
190
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
191
|
+
$props: {
|
|
192
|
+
onClick?: (() => void) | undefined;
|
|
193
|
+
};
|
|
194
|
+
});
|
|
195
|
+
export declare const CropperAvatar: {
|
|
196
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
197
|
+
width: {
|
|
198
|
+
type: PropType<string | number>;
|
|
199
|
+
default: string;
|
|
200
|
+
};
|
|
201
|
+
size: {
|
|
202
|
+
type: PropType<number>;
|
|
203
|
+
default: number;
|
|
204
|
+
};
|
|
205
|
+
value: {
|
|
206
|
+
type: PropType<string>;
|
|
207
|
+
};
|
|
208
|
+
uploadApi: {
|
|
209
|
+
type: PropType<({ file, name }: {
|
|
210
|
+
file: Blob;
|
|
211
|
+
name: string;
|
|
212
|
+
}) => Promise<void>>;
|
|
213
|
+
};
|
|
214
|
+
showBtn: {
|
|
215
|
+
type: PropType<boolean>;
|
|
216
|
+
default: boolean;
|
|
217
|
+
};
|
|
218
|
+
btnProps: {
|
|
219
|
+
type: PropType<ButtonProps>;
|
|
220
|
+
};
|
|
221
|
+
btnText: {
|
|
222
|
+
type: PropType<string>;
|
|
223
|
+
default: string;
|
|
224
|
+
};
|
|
225
|
+
}>> & {
|
|
226
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
227
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
228
|
+
}, {
|
|
229
|
+
openModal: (data?: unknown, openOnSet?: boolean | undefined) => void;
|
|
230
|
+
closeModal: () => void;
|
|
231
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
232
|
+
change: (...args: any[]) => void;
|
|
233
|
+
"update:value": (...args: any[]) => void;
|
|
234
|
+
}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
235
|
+
width: {
|
|
236
|
+
type: PropType<string | number>;
|
|
237
|
+
default: string;
|
|
238
|
+
};
|
|
239
|
+
size: {
|
|
240
|
+
type: PropType<number>;
|
|
241
|
+
default: number;
|
|
242
|
+
};
|
|
243
|
+
value: {
|
|
244
|
+
type: PropType<string>;
|
|
245
|
+
};
|
|
246
|
+
uploadApi: {
|
|
247
|
+
type: PropType<({ file, name }: {
|
|
248
|
+
file: Blob;
|
|
249
|
+
name: string;
|
|
250
|
+
}) => Promise<void>>;
|
|
251
|
+
};
|
|
252
|
+
showBtn: {
|
|
253
|
+
type: PropType<boolean>;
|
|
254
|
+
default: boolean;
|
|
255
|
+
};
|
|
256
|
+
btnProps: {
|
|
257
|
+
type: PropType<ButtonProps>;
|
|
258
|
+
};
|
|
259
|
+
btnText: {
|
|
260
|
+
type: PropType<string>;
|
|
261
|
+
default: string;
|
|
262
|
+
};
|
|
263
|
+
}>> & {
|
|
264
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
265
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
266
|
+
}, {
|
|
267
|
+
width: string | number;
|
|
268
|
+
size: number;
|
|
269
|
+
showBtn: boolean;
|
|
270
|
+
btnText: string;
|
|
271
|
+
}, true, {}, {}, {
|
|
272
|
+
P: {};
|
|
273
|
+
B: {};
|
|
274
|
+
D: {};
|
|
275
|
+
C: {};
|
|
276
|
+
M: {};
|
|
277
|
+
Defaults: {};
|
|
278
|
+
}, Readonly< ExtractPropTypes<{
|
|
279
|
+
width: {
|
|
280
|
+
type: PropType<string | number>;
|
|
281
|
+
default: string;
|
|
282
|
+
};
|
|
283
|
+
size: {
|
|
284
|
+
type: PropType<number>;
|
|
285
|
+
default: number;
|
|
286
|
+
};
|
|
287
|
+
value: {
|
|
288
|
+
type: PropType<string>;
|
|
289
|
+
};
|
|
290
|
+
uploadApi: {
|
|
291
|
+
type: PropType<({ file, name }: {
|
|
292
|
+
file: Blob;
|
|
293
|
+
name: string;
|
|
294
|
+
}) => Promise<void>>;
|
|
295
|
+
};
|
|
296
|
+
showBtn: {
|
|
297
|
+
type: PropType<boolean>;
|
|
298
|
+
default: boolean;
|
|
299
|
+
};
|
|
300
|
+
btnProps: {
|
|
301
|
+
type: PropType<ButtonProps>;
|
|
302
|
+
};
|
|
303
|
+
btnText: {
|
|
304
|
+
type: PropType<string>;
|
|
305
|
+
default: string;
|
|
306
|
+
};
|
|
307
|
+
}>> & {
|
|
308
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
309
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
310
|
+
}, {
|
|
311
|
+
openModal: (data?: unknown, openOnSet?: boolean | undefined) => void;
|
|
312
|
+
closeModal: () => void;
|
|
313
|
+
}, {}, {}, {}, {
|
|
314
|
+
width: string | number;
|
|
315
|
+
size: number;
|
|
316
|
+
showBtn: boolean;
|
|
317
|
+
btnText: string;
|
|
318
|
+
}>;
|
|
319
|
+
__isFragment?: undefined;
|
|
320
|
+
__isTeleport?: undefined;
|
|
321
|
+
__isSuspense?: undefined;
|
|
322
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
323
|
+
width: {
|
|
324
|
+
type: PropType<string | number>;
|
|
325
|
+
default: string;
|
|
326
|
+
};
|
|
327
|
+
size: {
|
|
328
|
+
type: PropType<number>;
|
|
329
|
+
default: number;
|
|
330
|
+
};
|
|
331
|
+
value: {
|
|
332
|
+
type: PropType<string>;
|
|
333
|
+
};
|
|
334
|
+
uploadApi: {
|
|
335
|
+
type: PropType<({ file, name }: {
|
|
336
|
+
file: Blob;
|
|
337
|
+
name: string;
|
|
338
|
+
}) => Promise<void>>;
|
|
339
|
+
};
|
|
340
|
+
showBtn: {
|
|
341
|
+
type: PropType<boolean>;
|
|
342
|
+
default: boolean;
|
|
343
|
+
};
|
|
344
|
+
btnProps: {
|
|
345
|
+
type: PropType<ButtonProps>;
|
|
346
|
+
};
|
|
347
|
+
btnText: {
|
|
348
|
+
type: PropType<string>;
|
|
349
|
+
default: string;
|
|
350
|
+
};
|
|
351
|
+
}>> & {
|
|
352
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
353
|
+
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
354
|
+
}, {
|
|
355
|
+
openModal: (data?: unknown, openOnSet?: boolean | undefined) => void;
|
|
356
|
+
closeModal: () => void;
|
|
357
|
+
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
358
|
+
change: (...args: any[]) => void;
|
|
359
|
+
"update:value": (...args: any[]) => void;
|
|
360
|
+
}, string, {
|
|
361
|
+
width: string | number;
|
|
362
|
+
size: number;
|
|
363
|
+
showBtn: boolean;
|
|
364
|
+
btnText: string;
|
|
365
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
366
|
+
$props: {
|
|
367
|
+
onClick?: (() => void) | undefined;
|
|
368
|
+
};
|
|
369
|
+
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { CollapseContainerOptions } from '..';
|
|
3
3
|
import { DescItem } from './interface';
|
|
4
4
|
export * from './interface';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
import { DropMenu } from './interface';
|
|
3
3
|
import { Recordable } from '../type';
|
|
4
4
|
export * from './interface';
|
package/lib/src/icon/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const Icon: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from '
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
2
2
|
export * from './interface';
|
|
3
3
|
export declare const IconPicker: {
|
|
4
4
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|