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 CHANGED
@@ -1,5 +1,39 @@
1
- # Vue 3 + TypeScript + Vite
1
+ ERP Plus 组件封装库
2
+ 基于 Element Plus 进行二次封装的组件库,提供更高级的组件抽象和业务场景适配。
2
3
 
3
- This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+ 🚀 特性
5
+ ✅ 基于 Element Plus 2.x 版本
4
6
 
5
- Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
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')
@@ -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, {}, HTMLDivElement>;
2
+ declare const _default: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
3
3
  export default _default;
@@ -1 +1 @@
1
- @charset "UTF-8";.erp-button[data-v-cb037014]{position:relative;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;font-size:14px;line-height:1.5;border-radius:4px;border:1px solid transparent;cursor:pointer;transition:all .3s;outline:none}.erp-button--default[data-v-cb037014]{background-color:#fff;border-color:#dcdfe6;color:#303133}.erp-button--default[data-v-cb037014]:hover{border-color:#409eff;color:#409eff}.erp-button--primary[data-v-cb037014]{background-color:#409eff;color:#fff}.erp-button--primary[data-v-cb037014]:hover{background-color:#73b8ff}.erp-button--disabled[data-v-cb037014]{opacity:.6;cursor:not-allowed}.erp-button--block[data-v-cb037014]{display:block;width:100%}.erp-button__loading[data-v-cb037014]{display:inline-flex;margin-right:8px;animation:rotate-cb037014 1s linear infinite}.erp-button__loading-icon[data-v-cb037014]{width:16px;height:16px}.erp-button__content[data-v-cb037014]{display:inline-flex;align-items:center}@keyframes rotate-cb037014{0%{transform:rotate(0)}to{transform:rotate(360deg)}}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:1.5;color:#303133}
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 c, createElementBlock as d, openBlock as i, normalizeClass as p, createCommentVNode as u, createElementVNode as l, renderSlot as f } from "vue";
2
- const b = c({
3
- name: "YwButton",
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
- disabled: {
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
- block: {
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
- return {
26
- handleClick: (n) => {
27
- !e.disabled && !e.loading && t("click", n);
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
- }), m = (e, t) => {
32
- const o = e.__vccOpts || e;
33
- for (const [n, s] of t)
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 B = [a], v = {
104
+ const h = [l], O = {
79
105
  install(e) {
80
- B.forEach((t) => {
106
+ h.forEach((t) => {
81
107
  e.use(t);
82
108
  });
83
109
  }
84
110
  };
85
111
  export {
86
- v as default
112
+ O as default
87
113
  };
@@ -1 +1 @@
1
- (function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("vue")):typeof define=="function"&&define.amd?define(["vue"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.ErpPlus=o(t.Vue))})(this,function(t){"use strict";const o=t.defineComponent({name:"YwButton",props:{type:{type:String,default:"default",validator:e=>["default","primary","success","warning","danger"].includes(e)},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){return{handleClick:s=>{!e.disabled&&!e.loading&&n("click",s)}}}}),i=(e,n)=>{const l=e.__vccOpts||e;for(const[s,a]of n)l[s]=a;return l},r=["disabled"],c={key:0,class:"erp-button__loading"},p={class:"erp-button__content"};function u(e,n,l,s,a,k){return t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["erp-button",`erp-button--${e.type}`,{"erp-button--disabled":e.disabled,"erp-button--loading":e.loading,"erp-button--block":e.block}]),disabled:e.disabled||e.loading,onClick:n[0]||(n[0]=(...b)=>e.handleClick&&e.handleClick(...b))},[e.loading?(t.openBlock(),t.createElementBlock("span",c,n[1]||(n[1]=[t.createElementVNode("svg",{class:"erp-button__loading-icon",viewBox:"0 0 1024 1024"},[t.createElementVNode("path",{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",fill:"#FFF"}),t.createElementVNode("path",{d:"M512 1024c-282.77 0-512-229.23-512-512 0-282.77 229.23-512 512-512",fill:"currentColor"})],-1)]))):t.createCommentVNode("",!0),t.createElementVNode("span",p,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],10,r)}const d=i(o,[["render",u],["__scopeId","data-v-cb037014"]]);d.install=e=>{e.component("YwButton",d)};const f=[d];return{install(e){f.forEach(n=>{e.use(n)})}}});
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)})}}});
@@ -1,4 +1,3 @@
1
1
  import { Plugin } from 'vue';
2
2
  declare const install: Plugin;
3
3
  export default install;
4
- export * from './packages/Button';
@@ -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
+ };
@@ -0,0 +1,4 @@
1
+ import { Plugin } from 'vue';
2
+ import { default as Avatar } from './Avatar.vue';
3
+ declare const _default: typeof Avatar & Plugin;
4
+ export default _default;
@@ -1,11 +1,39 @@
1
- import { PropType, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
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<"default" | "primary" | "success" | "warning" | "danger">;
9
+ type: PropType<ButtonType>;
5
10
  default: string;
6
- validator: (val: string) => boolean;
7
11
  };
8
- disabled: {
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
- block: {
44
+ disabled: {
17
45
  type: BooleanConstructor;
18
46
  default: boolean;
19
47
  };
20
- }>, {
21
- handleClick: (e: MouseEvent) => void;
22
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "click"[], "click", PublicProps, Readonly< ExtractPropTypes<{
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<"default" | "primary" | "success" | "warning" | "danger">;
84
+ type: PropType<ButtonType>;
25
85
  default: string;
26
- validator: (val: string) => boolean;
27
86
  };
28
- disabled: {
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
- block: {
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
- type: "default" | "primary" | "success" | "warning" | "danger";
44
- disabled: boolean;
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
- block: boolean;
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
+ };
@@ -1,6 +1,4 @@
1
1
  import { Plugin } from 'vue';
2
2
  import { default as Button } from './Button.vue';
3
- import { ButtonEmits } from './types';
4
3
  declare const _default: typeof Button & Plugin;
5
4
  export default _default;
6
- export type { ButtonEmits };