erp-plus 1.0.5 → 1.0.6
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/README.md +37 -3
- package/dist/types/App.vue.d.ts +1 -1
- package/dist/types/erp-plus.css +1 -1
- package/dist/types/erp-plus.es.js +86 -60
- package/dist/types/erp-plus.umd.js +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/packages/Avatar/Avatar.vue.d.ts +87 -0
- package/dist/types/packages/Avatar/index.d.ts +4 -0
- package/dist/types/packages/Button/Button.vue.d.ts +151 -16
- package/dist/types/packages/Button/index.d.ts +0 -2
- package/dist/types/packages/DatePicker/DatePicker.vue.d.ts +307 -0
- package/dist/types/packages/DatePicker/index.d.ts +4 -0
- package/dist/types/packages/Form/Form.vue.d.ts +173 -0
- package/dist/types/packages/Form/index.d.ts +4 -0
- package/dist/types/packages/FormItem/FormItem.vue.d.ts +144 -0
- package/dist/types/packages/FormItem/index.d.ts +4 -0
- package/dist/types/packages/Input/Input.vue.d.ts +339 -0
- package/dist/types/packages/Input/index.d.ts +4 -0
- package/dist/types/packages/Select/Select.vue.d.ts +430 -0
- package/dist/types/packages/Select/index.d.ts +4 -0
- package/dist/types/packages/SvgIcon/index.vue.d.ts +32 -0
- package/package.json +12 -10
- package/dist/types/packages/Button/types.d.ts +0 -24
package/README.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
ERP Plus 组件封装库
|
|
2
|
+
基于 Element Plus 进行二次封装的组件库,提供更高级的组件抽象和业务场景适配。
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
🚀 特性
|
|
5
|
+
✅ 基于 Element Plus 2.x 版本
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
📦 开箱即用,简化复杂组件使用
|
|
8
|
+
|
|
9
|
+
🎨 统一的样式和交互规范
|
|
10
|
+
|
|
11
|
+
🔧 高度可配置和可扩展
|
|
12
|
+
|
|
13
|
+
📱 响应式设计,支持移动端
|
|
14
|
+
|
|
15
|
+
🌐 TypeScript 支持
|
|
16
|
+
|
|
17
|
+
🎯 业务场景优化
|
|
18
|
+
|
|
19
|
+
📦 安装
|
|
20
|
+
# 使用 npm
|
|
21
|
+
npm install your-component-library
|
|
22
|
+
|
|
23
|
+
# 使用 yarn
|
|
24
|
+
yarn add your-component-library
|
|
25
|
+
|
|
26
|
+
# 使用 pnpm
|
|
27
|
+
pnpm add your-component-library
|
|
28
|
+
|
|
29
|
+
🔧 快速开始
|
|
30
|
+
|
|
31
|
+
全局引入
|
|
32
|
+
import { createApp } from 'vue'
|
|
33
|
+
import App from './App.vue'
|
|
34
|
+
import ErpPlus from 'erp-plus'
|
|
35
|
+
import 'erp-plus/dist/index.css'
|
|
36
|
+
|
|
37
|
+
const app = createApp(App)
|
|
38
|
+
app.use(ErpPlus)
|
|
39
|
+
app.mount('#app')
|
package/dist/types/App.vue.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {},
|
|
2
|
+
declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3
3
|
export default _default;
|
package/dist/types/erp-plus.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.
|
|
1
|
+
@charset "UTF-8";.yw-button{display:flex;padding:8px 20px;justify-content:center;align-items:center;gap:10px;border-radius:2px;font-weight:500;font-size:14px}.yw-button--default{color:#585966!important;border:1px solid #E5E5EB!important;background:#fff!important}.yw-button--default:hover{border-color:#4b77fa;color:#4b77fa}.yw-button-primary{color:#fff!important;border:1px solid #1951FA!important;background:#1951fa!important}.yw-button-primary:hover{border-color:#4b77fa!important;background:#4b77fa!important}.yw-button-primary.is-plain{color:#1951fa!important;border:1px solid #1951FA!important;background:#e8eefe!important}.yw-button-danger{color:#fff!important;border:1px solid #F53F3F!important;background:#f53f3f!important}.yw-button-danger:hover{border-color:#f57171!important;background:#f57171!important}.yw-button-danger.is-plain{color:#f53f3f!important;border:1px solid #F53F3F!important;background:#feecec!important}.yw-button-warning{color:#fff!important;border:1px solid #FF7D00!important;background:#ff7d00!important}.yw-button-warning:hover{border-color:#ff9733!important;background:#ff9733!important}.yw-button-warning.is-plain{color:#ff7d00!important;border:1px solid #FF7D00!important;background:#fff2e5!important}.yw-button-success{color:#fff!important;border:1px solid #3CB400!important;background:#3cb400!important}.yw-button-success:hover{border-color:#66c600!important;background:#66c600!important}.yw-button-success.is-plain{color:#3cb400!important;border:1px solid #3CB400!important;background:#e6f5de!important}.yw-button-info{color:#e5e5eb!important;border:1px solid #E5E5EB!important;background:#fff!important}.yw-button-text{border:none;background:transparent;color:#1951fa}.yw-button-text:hover{color:#1951fa!important}.yw-button-link{border:none;background:transparent;color:#1951fa;text-decoration:underline}.yw-button.is-disabled{opacity:.6;cursor:not-allowed}.yw-button.is-loading{position:relative;pointer-events:none}.yw-button.is-loading:after{content:"";display:inline-block;width:14px;height:14px;margin-left:8px;border:2px solid transparent;border-top-color:currentColor;border-radius:50%;animation:button-spin 1s linear infinite}.yw-button.is-disabled{opacity:.4;cursor:not-allowed}*{font-family:PingFang SC,Lantinghei SC,Microsoft YaHei,HanHei SC,Helvetica Neue,Open Sans,Arial,Hiragino Sans GB,微软雅黑,STHeiti,WenQuanYi Micro Hei,SimSun,sans-serif,HYWenHei-GEW!important}body{height:100%;margin:0;font-size:14px;color:#585966;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Arial,sans-serif}
|
|
@@ -1,13 +1,37 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
import { defineComponent as r, useSlots as i, resolveComponent as d, createBlock as y, openBlock as B, mergeProps as m, createSlots as g, renderList as b, unref as S, withCtx as k, renderSlot as _, normalizeProps as v, guardReactiveProps as C } from "vue";
|
|
2
|
+
const l = /* @__PURE__ */ r({
|
|
3
|
+
__name: "Button",
|
|
4
4
|
props: {
|
|
5
|
+
// 基础属性
|
|
5
6
|
type: {
|
|
6
7
|
type: String,
|
|
7
|
-
default: "default"
|
|
8
|
-
validator: (e) => ["default", "primary", "success", "warning", "danger"].includes(e)
|
|
8
|
+
default: "default"
|
|
9
9
|
},
|
|
10
|
-
|
|
10
|
+
size: {
|
|
11
|
+
type: String,
|
|
12
|
+
default: "default"
|
|
13
|
+
},
|
|
14
|
+
plain: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
text: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
},
|
|
22
|
+
bg: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
round: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
},
|
|
30
|
+
link: {
|
|
31
|
+
type: Boolean,
|
|
32
|
+
default: !1
|
|
33
|
+
},
|
|
34
|
+
circle: {
|
|
11
35
|
type: Boolean,
|
|
12
36
|
default: !1
|
|
13
37
|
},
|
|
@@ -15,73 +39,75 @@ const b = c({
|
|
|
15
39
|
type: Boolean,
|
|
16
40
|
default: !1
|
|
17
41
|
},
|
|
18
|
-
|
|
42
|
+
disabled: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
autofocus: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
autoInsertSpace: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
dark: {
|
|
19
55
|
type: Boolean,
|
|
20
56
|
default: !1
|
|
57
|
+
},
|
|
58
|
+
// 复杂类型属性
|
|
59
|
+
loadingIcon: {
|
|
60
|
+
type: [String, Object],
|
|
61
|
+
default: void 0
|
|
62
|
+
},
|
|
63
|
+
icon: {
|
|
64
|
+
type: [String, Object],
|
|
65
|
+
default: void 0
|
|
66
|
+
},
|
|
67
|
+
color: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: void 0
|
|
70
|
+
},
|
|
71
|
+
nativeType: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: "button"
|
|
74
|
+
},
|
|
75
|
+
tag: {
|
|
76
|
+
type: [String, Object],
|
|
77
|
+
default: "button"
|
|
21
78
|
}
|
|
22
79
|
},
|
|
23
80
|
emits: ["click"],
|
|
24
81
|
setup(e, { emit: t }) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
82
|
+
const a = i(), s = e, u = t, f = (o) => {
|
|
83
|
+
u("click", o);
|
|
84
|
+
};
|
|
85
|
+
return (o, w) => {
|
|
86
|
+
const c = d("el-button");
|
|
87
|
+
return B(), y(c, m(s, {
|
|
88
|
+
class: ["yw-button-" + e.type, "yw-button"],
|
|
89
|
+
onClick: f
|
|
90
|
+
}), g({ _: 2 }, [
|
|
91
|
+
b(S(a), (j, n) => ({
|
|
92
|
+
name: n,
|
|
93
|
+
fn: k((p) => [
|
|
94
|
+
_(o.$slots, n, v(C(p || {})))
|
|
95
|
+
])
|
|
96
|
+
}))
|
|
97
|
+
]), 1040, ["class"]);
|
|
29
98
|
};
|
|
30
99
|
}
|
|
31
|
-
})
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
o[n] = s;
|
|
35
|
-
return o;
|
|
36
|
-
}, k = ["disabled"], g = {
|
|
37
|
-
key: 0,
|
|
38
|
-
class: "erp-button__loading"
|
|
39
|
-
}, _ = { class: "erp-button__content" };
|
|
40
|
-
function y(e, t, o, n, s, C) {
|
|
41
|
-
return i(), d("button", {
|
|
42
|
-
class: p([
|
|
43
|
-
"erp-button",
|
|
44
|
-
`erp-button--${e.type}`,
|
|
45
|
-
{
|
|
46
|
-
"erp-button--disabled": e.disabled,
|
|
47
|
-
"erp-button--loading": e.loading,
|
|
48
|
-
"erp-button--block": e.block
|
|
49
|
-
}
|
|
50
|
-
]),
|
|
51
|
-
disabled: e.disabled || e.loading,
|
|
52
|
-
onClick: t[0] || (t[0] = (...r) => e.handleClick && e.handleClick(...r))
|
|
53
|
-
}, [
|
|
54
|
-
e.loading ? (i(), d("span", g, t[1] || (t[1] = [
|
|
55
|
-
l("svg", {
|
|
56
|
-
class: "erp-button__loading-icon",
|
|
57
|
-
viewBox: "0 0 1024 1024"
|
|
58
|
-
}, [
|
|
59
|
-
l("path", {
|
|
60
|
-
d: "M512 1024c-282.77 0-512-229.23-512-512s229.23-512 512-512 512 229.23 512 512-229.23 512-512 512zm0-938.67c-235.64 0-426.67 191.03-426.67 426.67s191.03 426.67 426.67 426.67 426.67-191.03 426.67-426.67-191.03-426.67-426.67-426.67z",
|
|
61
|
-
fill: "#FFF"
|
|
62
|
-
}),
|
|
63
|
-
l("path", {
|
|
64
|
-
d: "M512 1024c-282.77 0-512-229.23-512-512 0-282.77 229.23-512 512-512",
|
|
65
|
-
fill: "currentColor"
|
|
66
|
-
})
|
|
67
|
-
], -1)
|
|
68
|
-
]))) : u("", !0),
|
|
69
|
-
l("span", _, [
|
|
70
|
-
f(e.$slots, "default", {}, void 0, !0)
|
|
71
|
-
])
|
|
72
|
-
], 10, k);
|
|
73
|
-
}
|
|
74
|
-
const a = /* @__PURE__ */ m(b, [["render", y], ["__scopeId", "data-v-cb037014"]]);
|
|
75
|
-
a.install = (e) => {
|
|
76
|
-
e.component("YwButton", a);
|
|
100
|
+
});
|
|
101
|
+
l.install = (e) => {
|
|
102
|
+
e.component("YwButton", l);
|
|
77
103
|
};
|
|
78
|
-
const
|
|
104
|
+
const h = [l], O = {
|
|
79
105
|
install(e) {
|
|
80
|
-
|
|
106
|
+
h.forEach((t) => {
|
|
81
107
|
e.use(t);
|
|
82
108
|
});
|
|
83
109
|
}
|
|
84
110
|
};
|
|
85
111
|
export {
|
|
86
|
-
|
|
112
|
+
O as default
|
|
87
113
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t
|
|
1
|
+
(function(e,t){typeof exports=="object"&&typeof module<"u"?module.exports=t(require("vue")):typeof define=="function"&&define.amd?define(["vue"],t):(e=typeof globalThis<"u"?globalThis:e||self,e.ErpPlus=t(e.Vue))})(this,function(e){"use strict";const t=e.defineComponent({__name:"Button",props:{type:{type:String,default:"default"},size:{type:String,default:"default"},plain:{type:Boolean,default:!1},text:{type:Boolean,default:!1},bg:{type:Boolean,default:!1},round:{type:Boolean,default:!1},link:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!1},autoInsertSpace:{type:Boolean,default:!1},dark:{type:Boolean,default:!1},loadingIcon:{type:[String,Object],default:void 0},icon:{type:[String,Object],default:void 0},color:{type:String,default:void 0},nativeType:{type:String,default:"button"},tag:{type:[String,Object],default:"button"}},emits:["click"],setup(n,{emit:o}){const i=e.useSlots(),f=n,d=o,p=l=>{d("click",l)};return(l,y)=>{const u=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(u,e.mergeProps(f,{class:["yw-button-"+n.type,"yw-button"],onClick:p}),e.createSlots({_:2},[e.renderList(e.unref(i),(m,a)=>({name:a,fn:e.withCtx(c=>[e.renderSlot(l.$slots,a,e.normalizeProps(e.guardReactiveProps(c||{})))])}))]),1040,["class"])}}});t.install=n=>{n.component("YwButton",t)};const s=[t];return{install(n){s.forEach(o=>{n.use(o)})}}});
|
package/dist/types/index.d.ts
CHANGED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type shapeType = 'circle' | 'square';
|
|
3
|
+
declare function __VLS_template(): {
|
|
4
|
+
attrs: Partial<{}>;
|
|
5
|
+
slots: any;
|
|
6
|
+
refs: {};
|
|
7
|
+
rootEl: any;
|
|
8
|
+
};
|
|
9
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
10
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
11
|
+
size: {
|
|
12
|
+
type: NumberConstructor;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
shape: {
|
|
16
|
+
type: PropType<shapeType>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
icon: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
src: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
alt: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
srcSet: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
fit: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
default: string;
|
|
38
|
+
};
|
|
39
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
40
|
+
error: (...args: any[]) => void;
|
|
41
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
42
|
+
size: {
|
|
43
|
+
type: NumberConstructor;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
shape: {
|
|
47
|
+
type: PropType<shapeType>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
icon: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
src: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
default: string;
|
|
57
|
+
};
|
|
58
|
+
alt: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
srcSet: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
fit: {
|
|
67
|
+
type: StringConstructor;
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
}>> & Readonly<{
|
|
71
|
+
onError?: ((...args: any[]) => any) | undefined;
|
|
72
|
+
}>, {
|
|
73
|
+
size: number;
|
|
74
|
+
icon: string;
|
|
75
|
+
shape: shapeType;
|
|
76
|
+
src: string;
|
|
77
|
+
alt: string;
|
|
78
|
+
srcSet: string;
|
|
79
|
+
fit: string;
|
|
80
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
81
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
82
|
+
export default _default;
|
|
83
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
84
|
+
new (): {
|
|
85
|
+
$slots: S;
|
|
86
|
+
};
|
|
87
|
+
};
|
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
1
|
+
import { Component, PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'text';
|
|
3
|
+
type ButtonSize = 'large' | 'default' | 'small';
|
|
4
|
+
type NativeType = 'button' | 'submit' | 'reset';
|
|
5
|
+
declare function __VLS_template(): any;
|
|
6
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
7
|
+
declare const __VLS_component: DefineComponent<ExtractPropTypes<{
|
|
3
8
|
type: {
|
|
4
|
-
type: PropType<
|
|
9
|
+
type: PropType<ButtonType>;
|
|
5
10
|
default: string;
|
|
6
|
-
validator: (val: string) => boolean;
|
|
7
11
|
};
|
|
8
|
-
|
|
12
|
+
size: {
|
|
13
|
+
type: PropType<ButtonSize>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
plain: {
|
|
17
|
+
type: BooleanConstructor;
|
|
18
|
+
default: boolean;
|
|
19
|
+
};
|
|
20
|
+
text: {
|
|
21
|
+
type: BooleanConstructor;
|
|
22
|
+
default: boolean;
|
|
23
|
+
};
|
|
24
|
+
bg: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
round: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
link: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
circle: {
|
|
9
37
|
type: BooleanConstructor;
|
|
10
38
|
default: boolean;
|
|
11
39
|
};
|
|
@@ -13,19 +41,74 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
13
41
|
type: BooleanConstructor;
|
|
14
42
|
default: boolean;
|
|
15
43
|
};
|
|
16
|
-
|
|
44
|
+
disabled: {
|
|
17
45
|
type: BooleanConstructor;
|
|
18
46
|
default: boolean;
|
|
19
47
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
48
|
+
autofocus: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
52
|
+
autoInsertSpace: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: boolean;
|
|
55
|
+
};
|
|
56
|
+
dark: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
loadingIcon: {
|
|
61
|
+
type: PropType<string | Component>;
|
|
62
|
+
default: undefined;
|
|
63
|
+
};
|
|
64
|
+
icon: {
|
|
65
|
+
type: PropType<string | Component>;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
color: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
default: undefined;
|
|
71
|
+
};
|
|
72
|
+
nativeType: {
|
|
73
|
+
type: PropType<NativeType>;
|
|
74
|
+
default: string;
|
|
75
|
+
};
|
|
76
|
+
tag: {
|
|
77
|
+
type: PropType<string | Component>;
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
81
|
+
click: (...args: any[]) => void;
|
|
82
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
23
83
|
type: {
|
|
24
|
-
type: PropType<
|
|
84
|
+
type: PropType<ButtonType>;
|
|
25
85
|
default: string;
|
|
26
|
-
validator: (val: string) => boolean;
|
|
27
86
|
};
|
|
28
|
-
|
|
87
|
+
size: {
|
|
88
|
+
type: PropType<ButtonSize>;
|
|
89
|
+
default: string;
|
|
90
|
+
};
|
|
91
|
+
plain: {
|
|
92
|
+
type: BooleanConstructor;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
text: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: boolean;
|
|
98
|
+
};
|
|
99
|
+
bg: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: boolean;
|
|
102
|
+
};
|
|
103
|
+
round: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
default: boolean;
|
|
106
|
+
};
|
|
107
|
+
link: {
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
default: boolean;
|
|
110
|
+
};
|
|
111
|
+
circle: {
|
|
29
112
|
type: BooleanConstructor;
|
|
30
113
|
default: boolean;
|
|
31
114
|
};
|
|
@@ -33,16 +116,68 @@ declare const _default: DefineComponent<ExtractPropTypes<{
|
|
|
33
116
|
type: BooleanConstructor;
|
|
34
117
|
default: boolean;
|
|
35
118
|
};
|
|
36
|
-
|
|
119
|
+
disabled: {
|
|
37
120
|
type: BooleanConstructor;
|
|
38
121
|
default: boolean;
|
|
39
122
|
};
|
|
123
|
+
autofocus: {
|
|
124
|
+
type: BooleanConstructor;
|
|
125
|
+
default: boolean;
|
|
126
|
+
};
|
|
127
|
+
autoInsertSpace: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
131
|
+
dark: {
|
|
132
|
+
type: BooleanConstructor;
|
|
133
|
+
default: boolean;
|
|
134
|
+
};
|
|
135
|
+
loadingIcon: {
|
|
136
|
+
type: PropType<string | Component>;
|
|
137
|
+
default: undefined;
|
|
138
|
+
};
|
|
139
|
+
icon: {
|
|
140
|
+
type: PropType<string | Component>;
|
|
141
|
+
default: undefined;
|
|
142
|
+
};
|
|
143
|
+
color: {
|
|
144
|
+
type: StringConstructor;
|
|
145
|
+
default: undefined;
|
|
146
|
+
};
|
|
147
|
+
nativeType: {
|
|
148
|
+
type: PropType<NativeType>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
tag: {
|
|
152
|
+
type: PropType<string | Component>;
|
|
153
|
+
default: string;
|
|
154
|
+
};
|
|
40
155
|
}>> & Readonly<{
|
|
41
156
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
42
157
|
}>, {
|
|
43
|
-
|
|
44
|
-
|
|
158
|
+
text: boolean;
|
|
159
|
+
size: ButtonSize;
|
|
160
|
+
type: ButtonType;
|
|
161
|
+
plain: boolean;
|
|
162
|
+
bg: boolean;
|
|
163
|
+
round: boolean;
|
|
164
|
+
link: boolean;
|
|
165
|
+
circle: boolean;
|
|
45
166
|
loading: boolean;
|
|
46
|
-
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
autofocus: boolean;
|
|
169
|
+
autoInsertSpace: boolean;
|
|
170
|
+
dark: boolean;
|
|
171
|
+
loadingIcon: string | Component;
|
|
172
|
+
icon: string | Component;
|
|
173
|
+
color: string;
|
|
174
|
+
nativeType: NativeType;
|
|
175
|
+
tag: string | Component;
|
|
47
176
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
177
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
48
178
|
export default _default;
|
|
179
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
180
|
+
new (): {
|
|
181
|
+
$slots: S;
|
|
182
|
+
};
|
|
183
|
+
};
|