cc1-ui 0.0.1
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 +1 -0
- package/dist/autoimport.d.ts +18 -0
- package/dist/autoimport.js +160 -0
- package/dist/cc1-ui.js +86 -0
- package/dist/components/Button/index.vue.d.ts +292 -0
- package/dist/components/Button/style.css +166 -0
- package/dist/components/Circle/index.vue.d.ts +269 -0
- package/dist/components/Circle/style.css +17 -0
- package/dist/components/Icon/index.vue.d.ts +96 -0
- package/dist/components/Icon/style.css +0 -0
- package/dist/components/Mask/index.vue.d.ts +194 -0
- package/dist/components/Mask/style.css +30 -0
- package/dist/components/SIcon/index.vue.d.ts +135 -0
- package/dist/components/SIcon/style.css +0 -0
- package/dist/components/Scale/index.vue.d.ts +21 -0
- package/dist/components/Scale/style.css +19 -0
- package/dist/components/Select/index.vue.d.ts +49 -0
- package/dist/components/Select/style.css +78 -0
- package/dist/components/Switch/index.vue.d.ts +37 -0
- package/dist/components/Switch/style.css +39 -0
- package/dist/index-BGzY32VF.js +145 -0
- package/dist/index-BlU8Q4GS.js +184 -0
- package/dist/index-BvvdDtUd.js +56 -0
- package/dist/index-CpyM3z5X.js +185 -0
- package/dist/index-l4J1-e0K.js +50 -0
- package/dist/index-lDlR9NjA.js +169 -0
- package/dist/index-ti4E-Nv5.js +172 -0
- package/dist/index-ycYY--mh.js +79 -0
- package/dist/index.css +0 -0
- package/dist/index.d.ts +26 -0
- package/dist/vconf.d.ts +153 -0
- package/package.json +59 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
vue3组件
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Plugin } from 'vite';
|
|
2
|
+
/**
|
|
3
|
+
* 按需导入组件
|
|
4
|
+
* @param config
|
|
5
|
+
* @returns
|
|
6
|
+
*/
|
|
7
|
+
export declare function UIAuto(config: {
|
|
8
|
+
/**
|
|
9
|
+
* 是否需要按需打包,可用环境来区分
|
|
10
|
+
*/
|
|
11
|
+
isBuild: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 手动导入需要的组件名
|
|
14
|
+
* @example
|
|
15
|
+
* ["VButton","VSwitch","VScale","VMask","VCircle","VIcon","VSelect","VSIcon"]
|
|
16
|
+
*/
|
|
17
|
+
include?: string[];
|
|
18
|
+
}): Plugin;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.UIAuto = UIAuto;
|
|
37
|
+
const path = __importStar(require("path"));
|
|
38
|
+
const util_1 = require("./util");
|
|
39
|
+
let btime = new Date().getTime();
|
|
40
|
+
const log = (str, time = false) => {
|
|
41
|
+
console.log('');
|
|
42
|
+
console.log('\u001b[42;30m cc1-ui \u001b[40;32m ' + str + ' \u001b[0m');
|
|
43
|
+
if (time)
|
|
44
|
+
console.log('耗时:', new Date().getTime() - btime);
|
|
45
|
+
btime = new Date().getTime();
|
|
46
|
+
};
|
|
47
|
+
const tagList = ["VButton", "VSwitch", "VScale", "VMask", "VCircle", "VIcon", "VSelect", "VSIcon"];
|
|
48
|
+
const extractTags = (str) => {
|
|
49
|
+
const regex = /<([a-zA-Z\-]+)(?=\s|>|\/>)/g;
|
|
50
|
+
const tags = [];
|
|
51
|
+
let match;
|
|
52
|
+
while ((match = regex.exec(str)) !== null) {
|
|
53
|
+
tags.push(match[1]);
|
|
54
|
+
}
|
|
55
|
+
return [
|
|
56
|
+
...new Set(tags.map((tag) => {
|
|
57
|
+
tag = tag.replace(/-(\w)/g, (_, c) => c.toUpperCase());
|
|
58
|
+
return tag.charAt(0).toUpperCase() + tag.slice(1);
|
|
59
|
+
}))
|
|
60
|
+
];
|
|
61
|
+
};
|
|
62
|
+
const getTagList = (str, name) => {
|
|
63
|
+
const re = new RegExp(`<${name}(.*?)<\/${name}>`, 'gs');
|
|
64
|
+
return Array.from(re[Symbol.matchAll](str)).map((item) => {
|
|
65
|
+
return item[0];
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
const cmddir = path.resolve('./');
|
|
69
|
+
const conf = {
|
|
70
|
+
src: path.resolve(path.join(cmddir, './src')),
|
|
71
|
+
use: [],
|
|
72
|
+
config: {},
|
|
73
|
+
diy: {
|
|
74
|
+
tablecolumn: {
|
|
75
|
+
fixed: false
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const names = [
|
|
80
|
+
'黄风大圣',
|
|
81
|
+
'牛魔王',
|
|
82
|
+
'孙悟空',
|
|
83
|
+
'猪八戒',
|
|
84
|
+
'沙和尚',
|
|
85
|
+
'白龙马',
|
|
86
|
+
'唐僧',
|
|
87
|
+
'观音菩萨',
|
|
88
|
+
'如来佛祖',
|
|
89
|
+
'玉帝',
|
|
90
|
+
'王母娘娘',
|
|
91
|
+
'太上老君',
|
|
92
|
+
'太白金星'
|
|
93
|
+
];
|
|
94
|
+
const getName = () => {
|
|
95
|
+
return names[Math.floor(Math.random() * names.length)];
|
|
96
|
+
};
|
|
97
|
+
const init = async () => {
|
|
98
|
+
await (0, util_1.readDir)(conf.src, async (location) => {
|
|
99
|
+
if (location.substring(location.length - 3) === 'vue') {
|
|
100
|
+
const ctx = await (0, util_1.readFile)(location);
|
|
101
|
+
if (ctx) {
|
|
102
|
+
const tags = extractTags(ctx);
|
|
103
|
+
tags.forEach((tag) => {
|
|
104
|
+
if (tagList.includes(tag))
|
|
105
|
+
conf.use.push(tag);
|
|
106
|
+
});
|
|
107
|
+
if (ctx.indexOf('VTableColumn') != -1 && !conf.diy.tablecolumn.fixed) {
|
|
108
|
+
const _tarr = getTagList(ctx, 'VTableColumn');
|
|
109
|
+
for (let i = 0; i < _tarr.length; i++) {
|
|
110
|
+
const _str = _tarr[i];
|
|
111
|
+
if (_str.indexOf('fixed') != -1) {
|
|
112
|
+
conf.diy.tablecolumn.fixed = true;
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
const inludeList = conf.config.include;
|
|
121
|
+
if (inludeList) {
|
|
122
|
+
conf.use = conf.use.concat(inludeList.filter((_item) => tagList.includes(_item)));
|
|
123
|
+
}
|
|
124
|
+
conf.use = [...new Set(conf.use)];
|
|
125
|
+
log(`🥰🥰【${getName()}】:使用组件列表 => ${conf.use.join(',')}`);
|
|
126
|
+
};
|
|
127
|
+
function UIAuto(config) {
|
|
128
|
+
conf.config = config;
|
|
129
|
+
const isBuild = config.isBuild;
|
|
130
|
+
return {
|
|
131
|
+
name: 'vite:cc1-ui',
|
|
132
|
+
enforce: 'pre',
|
|
133
|
+
async configResolved() {
|
|
134
|
+
if (!isBuild)
|
|
135
|
+
return;
|
|
136
|
+
await init();
|
|
137
|
+
},
|
|
138
|
+
transform(code, id) {
|
|
139
|
+
if (!isBuild)
|
|
140
|
+
return;
|
|
141
|
+
let comImport = path.resolve(id);
|
|
142
|
+
comImport = comImport.replace(/[\/\\]/g, '#');
|
|
143
|
+
if (comImport.indexOf('cc1-ui#dist#cc1-ui.js') != -1) {
|
|
144
|
+
let res = code.split('\n');
|
|
145
|
+
for (let i = 0; i < res.length; i++) {
|
|
146
|
+
if (res[i].includes('defineAsyncComponent(') || res[i].includes('app.component(')) {
|
|
147
|
+
if (!conf.use.includes(res[i])) {
|
|
148
|
+
res[i] = '';
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
log(`🥰🥰【${getName()}】一顿操作终于编译完成啦`);
|
|
153
|
+
return res.join('\n');
|
|
154
|
+
}
|
|
155
|
+
else if (comImport.indexOf('cc1-ui#dist#index.css') != -1) {
|
|
156
|
+
return conf.use.map((v) => `@import url('./components/${v.toLowerCase().substring(1)}/style.css');`).join('\n');
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
}
|
package/dist/cc1-ui.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { defineAsyncComponent } from 'vue';
|
|
2
|
+
|
|
3
|
+
const VButton = () => defineAsyncComponent(() => import('./index-lDlR9NjA.js'));
|
|
4
|
+
const VSwitch = () => defineAsyncComponent(() => import('./index-BvvdDtUd.js'));
|
|
5
|
+
const VScale = () => defineAsyncComponent(() => import('./index-l4J1-e0K.js'));
|
|
6
|
+
const VMask = () => defineAsyncComponent(() => import('./index-ycYY--mh.js'));
|
|
7
|
+
const VCircle = () => defineAsyncComponent(() => import('./index-ti4E-Nv5.js'));
|
|
8
|
+
const VIcon = () => defineAsyncComponent(() => import('./index-BGzY32VF.js'));
|
|
9
|
+
const VSelect = () => defineAsyncComponent(() => import('./index-CpyM3z5X.js'));
|
|
10
|
+
const VSIcon = () => defineAsyncComponent(() => import('./index-BlU8Q4GS.js'));
|
|
11
|
+
const install = async (app) => {
|
|
12
|
+
app.component("VButton", VButton());
|
|
13
|
+
app.component("VSwitch", VSwitch());
|
|
14
|
+
app.component("VScale", VScale());
|
|
15
|
+
app.component("VMask", VMask());
|
|
16
|
+
app.component("VCircle", VCircle());
|
|
17
|
+
app.component("VIcon", VIcon());
|
|
18
|
+
app.component("VSelect", VSelect());
|
|
19
|
+
app.component("VSIcon", VSIcon());
|
|
20
|
+
};
|
|
21
|
+
if (!window.VConf) {
|
|
22
|
+
const getLoad = (obj) => {
|
|
23
|
+
return {
|
|
24
|
+
resource: {},
|
|
25
|
+
setRes: (url, content) => {
|
|
26
|
+
const _fun = obj.fun;
|
|
27
|
+
_fun.resource[url] = content;
|
|
28
|
+
},
|
|
29
|
+
getRes: (url) => {
|
|
30
|
+
const _fun = obj.fun;
|
|
31
|
+
return _fun.resource[url];
|
|
32
|
+
},
|
|
33
|
+
load: {},
|
|
34
|
+
getResorce: async (_url, save = false) => {
|
|
35
|
+
const _fun = obj.fun;
|
|
36
|
+
let filestr;
|
|
37
|
+
const req = _fun.load[_url];
|
|
38
|
+
if (req) {
|
|
39
|
+
filestr = await req;
|
|
40
|
+
} else {
|
|
41
|
+
_fun.load[_url] = new Promise(async (res) => {
|
|
42
|
+
const _json = await FileUtil.getFile(_url);
|
|
43
|
+
if (save && _json) _fun.setRes(_url, _json);
|
|
44
|
+
res(_json);
|
|
45
|
+
_fun.load[_url] = void 0;
|
|
46
|
+
delete _fun.load[_url];
|
|
47
|
+
});
|
|
48
|
+
filestr = await _fun.load[_url];
|
|
49
|
+
}
|
|
50
|
+
return filestr;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
const VConf = {
|
|
55
|
+
vsicon: {
|
|
56
|
+
url: "https://cdn.c44.cc/vsicon",
|
|
57
|
+
lib: "ant",
|
|
58
|
+
name: "up",
|
|
59
|
+
size: "20",
|
|
60
|
+
unit: "px",
|
|
61
|
+
fun: {}
|
|
62
|
+
},
|
|
63
|
+
vicon: {
|
|
64
|
+
url: "https://cdn.c44.cc/vicon",
|
|
65
|
+
lib: "ant",
|
|
66
|
+
name: "up",
|
|
67
|
+
size: "20",
|
|
68
|
+
unit: "px",
|
|
69
|
+
color: "currentColor",
|
|
70
|
+
nofill: false,
|
|
71
|
+
fun: {}
|
|
72
|
+
},
|
|
73
|
+
zindex: {
|
|
74
|
+
mask: 1e3
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
VConf.vicon.fun = getLoad(VConf.vicon);
|
|
78
|
+
VConf.vsicon.fun = getLoad(VConf.vsicon);
|
|
79
|
+
window.VConf = VConf;
|
|
80
|
+
}
|
|
81
|
+
const index = {
|
|
82
|
+
install,
|
|
83
|
+
VConf: window.VConf
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export { index as default };
|
|
@@ -0,0 +1,292 @@
|
|
|
1
|
+
declare const conf: {
|
|
2
|
+
loading: any;
|
|
3
|
+
hover: boolean;
|
|
4
|
+
active: boolean;
|
|
5
|
+
type: any;
|
|
6
|
+
};
|
|
7
|
+
declare const ok: () => Promise<void>;
|
|
8
|
+
declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
|
|
9
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
10
|
+
type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_3) => any;
|
|
14
|
+
}>;
|
|
15
|
+
declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
|
+
/**
|
|
17
|
+
* 图标的class样式
|
|
18
|
+
*/
|
|
19
|
+
icon: {
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* text样式
|
|
24
|
+
*/
|
|
25
|
+
text: {
|
|
26
|
+
default: any;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* 幽灵样式
|
|
30
|
+
*/
|
|
31
|
+
ghost: {
|
|
32
|
+
default: any;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* 样式类型
|
|
36
|
+
*/
|
|
37
|
+
type: {
|
|
38
|
+
default: "primary" | "success" | "error" | "warning";
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* 大小
|
|
42
|
+
*/
|
|
43
|
+
size: {
|
|
44
|
+
default: "large" | "middle" | "small";
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* 铺满
|
|
48
|
+
*/
|
|
49
|
+
long: {
|
|
50
|
+
default: any;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* 加载状态
|
|
54
|
+
*/
|
|
55
|
+
loading: {
|
|
56
|
+
default: any;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 点击函数
|
|
60
|
+
*/
|
|
61
|
+
cmd: {
|
|
62
|
+
default: any | Function;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 按钮类型
|
|
66
|
+
*/
|
|
67
|
+
htmlType: {
|
|
68
|
+
default: string;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* 点击状态
|
|
72
|
+
*/
|
|
73
|
+
disabled: {
|
|
74
|
+
default: any;
|
|
75
|
+
};
|
|
76
|
+
}>, {
|
|
77
|
+
conf: typeof conf;
|
|
78
|
+
ok: typeof ok;
|
|
79
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
/**
|
|
81
|
+
* 图标的class样式
|
|
82
|
+
*/
|
|
83
|
+
icon: {
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* text样式
|
|
88
|
+
*/
|
|
89
|
+
text: {
|
|
90
|
+
default: any;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* 幽灵样式
|
|
94
|
+
*/
|
|
95
|
+
ghost: {
|
|
96
|
+
default: any;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 样式类型
|
|
100
|
+
*/
|
|
101
|
+
type: {
|
|
102
|
+
default: "primary" | "success" | "error" | "warning";
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* 大小
|
|
106
|
+
*/
|
|
107
|
+
size: {
|
|
108
|
+
default: "large" | "middle" | "small";
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* 铺满
|
|
112
|
+
*/
|
|
113
|
+
long: {
|
|
114
|
+
default: any;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* 加载状态
|
|
118
|
+
*/
|
|
119
|
+
loading: {
|
|
120
|
+
default: any;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* 点击函数
|
|
124
|
+
*/
|
|
125
|
+
cmd: {
|
|
126
|
+
default: any | Function;
|
|
127
|
+
};
|
|
128
|
+
/**
|
|
129
|
+
* 按钮类型
|
|
130
|
+
*/
|
|
131
|
+
htmlType: {
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
/**
|
|
135
|
+
* 点击状态
|
|
136
|
+
*/
|
|
137
|
+
disabled: {
|
|
138
|
+
default: any;
|
|
139
|
+
};
|
|
140
|
+
}>> & Readonly<{}>, {
|
|
141
|
+
icon: string;
|
|
142
|
+
text: any;
|
|
143
|
+
ghost: any;
|
|
144
|
+
type: "primary" | "success" | "error" | "warning";
|
|
145
|
+
size: "middle" | "large" | "small";
|
|
146
|
+
long: any;
|
|
147
|
+
loading: any;
|
|
148
|
+
cmd: any;
|
|
149
|
+
htmlType: string;
|
|
150
|
+
disabled: any;
|
|
151
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
152
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
153
|
+
/**
|
|
154
|
+
* 图标的class样式
|
|
155
|
+
*/
|
|
156
|
+
icon: {
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* text样式
|
|
161
|
+
*/
|
|
162
|
+
text: {
|
|
163
|
+
default: any;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* 幽灵样式
|
|
167
|
+
*/
|
|
168
|
+
ghost: {
|
|
169
|
+
default: any;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* 样式类型
|
|
173
|
+
*/
|
|
174
|
+
type: {
|
|
175
|
+
default: "primary" | "success" | "error" | "warning";
|
|
176
|
+
};
|
|
177
|
+
/**
|
|
178
|
+
* 大小
|
|
179
|
+
*/
|
|
180
|
+
size: {
|
|
181
|
+
default: "large" | "middle" | "small";
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* 铺满
|
|
185
|
+
*/
|
|
186
|
+
long: {
|
|
187
|
+
default: any;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* 加载状态
|
|
191
|
+
*/
|
|
192
|
+
loading: {
|
|
193
|
+
default: any;
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* 点击函数
|
|
197
|
+
*/
|
|
198
|
+
cmd: {
|
|
199
|
+
default: any | Function;
|
|
200
|
+
};
|
|
201
|
+
/**
|
|
202
|
+
* 按钮类型
|
|
203
|
+
*/
|
|
204
|
+
htmlType: {
|
|
205
|
+
default: string;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* 点击状态
|
|
209
|
+
*/
|
|
210
|
+
disabled: {
|
|
211
|
+
default: any;
|
|
212
|
+
};
|
|
213
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
214
|
+
/**
|
|
215
|
+
* 图标的class样式
|
|
216
|
+
*/
|
|
217
|
+
icon: {
|
|
218
|
+
default: string;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* text样式
|
|
222
|
+
*/
|
|
223
|
+
text: {
|
|
224
|
+
default: any;
|
|
225
|
+
};
|
|
226
|
+
/**
|
|
227
|
+
* 幽灵样式
|
|
228
|
+
*/
|
|
229
|
+
ghost: {
|
|
230
|
+
default: any;
|
|
231
|
+
};
|
|
232
|
+
/**
|
|
233
|
+
* 样式类型
|
|
234
|
+
*/
|
|
235
|
+
type: {
|
|
236
|
+
default: "primary" | "success" | "error" | "warning";
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* 大小
|
|
240
|
+
*/
|
|
241
|
+
size: {
|
|
242
|
+
default: "large" | "middle" | "small";
|
|
243
|
+
};
|
|
244
|
+
/**
|
|
245
|
+
* 铺满
|
|
246
|
+
*/
|
|
247
|
+
long: {
|
|
248
|
+
default: any;
|
|
249
|
+
};
|
|
250
|
+
/**
|
|
251
|
+
* 加载状态
|
|
252
|
+
*/
|
|
253
|
+
loading: {
|
|
254
|
+
default: any;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* 点击函数
|
|
258
|
+
*/
|
|
259
|
+
cmd: {
|
|
260
|
+
default: any | Function;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* 按钮类型
|
|
264
|
+
*/
|
|
265
|
+
htmlType: {
|
|
266
|
+
default: string;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* 点击状态
|
|
270
|
+
*/
|
|
271
|
+
disabled: {
|
|
272
|
+
default: any;
|
|
273
|
+
};
|
|
274
|
+
}>> & Readonly<{}>, {
|
|
275
|
+
icon: string;
|
|
276
|
+
text: any;
|
|
277
|
+
ghost: any;
|
|
278
|
+
type: "primary" | "success" | "error" | "warning";
|
|
279
|
+
size: "middle" | "large" | "small";
|
|
280
|
+
long: any;
|
|
281
|
+
loading: any;
|
|
282
|
+
cmd: any;
|
|
283
|
+
htmlType: string;
|
|
284
|
+
disabled: any;
|
|
285
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
286
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
287
|
+
export default _default;
|
|
288
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
289
|
+
new (): {
|
|
290
|
+
$slots: S;
|
|
291
|
+
};
|
|
292
|
+
};
|