cc1-ui 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cc1-ui.js CHANGED
@@ -7,7 +7,7 @@ const VMask = () => defineAsyncComponent(() => import('./index-ycYY--mh.js'));
7
7
  const VCircle = () => defineAsyncComponent(() => import('./index-ti4E-Nv5.js'));
8
8
  const VIcon = () => defineAsyncComponent(() => import('./index-BGzY32VF.js'));
9
9
  const VSelect = () => defineAsyncComponent(() => import('./index-CpyM3z5X.js'));
10
- const VSIcon = () => defineAsyncComponent(() => import('./index-BlU8Q4GS.js'));
10
+ const VSIcon = () => defineAsyncComponent(() => import('./index-mrAwG3J3.js'));
11
11
  const install = async (app) => {
12
12
  app.component("VButton", VButton());
13
13
  app.component("VSwitch", VSwitch());
@@ -138,15 +138,45 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
138
138
  default: any;
139
139
  };
140
140
  }>> & Readonly<{}>, {
141
+ /**
142
+ * 图标的class样式
143
+ */
141
144
  icon: string;
145
+ /**
146
+ * text样式
147
+ */
142
148
  text: any;
149
+ /**
150
+ * 幽灵样式
151
+ */
143
152
  ghost: any;
153
+ /**
154
+ * 样式类型
155
+ */
144
156
  type: "primary" | "success" | "error" | "warning";
157
+ /**
158
+ * 大小
159
+ */
145
160
  size: "middle" | "large" | "small";
161
+ /**
162
+ * 铺满
163
+ */
146
164
  long: any;
165
+ /**
166
+ * 加载状态
167
+ */
147
168
  loading: any;
169
+ /**
170
+ * 点击函数
171
+ */
148
172
  cmd: any;
173
+ /**
174
+ * 按钮类型
175
+ */
149
176
  htmlType: string;
177
+ /**
178
+ * 点击状态
179
+ */
150
180
  disabled: any;
151
181
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
152
182
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -272,15 +302,45 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
272
302
  default: any;
273
303
  };
274
304
  }>> & Readonly<{}>, {
305
+ /**
306
+ * 图标的class样式
307
+ */
275
308
  icon: string;
309
+ /**
310
+ * text样式
311
+ */
276
312
  text: any;
313
+ /**
314
+ * 幽灵样式
315
+ */
277
316
  ghost: any;
317
+ /**
318
+ * 样式类型
319
+ */
278
320
  type: "primary" | "success" | "error" | "warning";
321
+ /**
322
+ * 大小
323
+ */
279
324
  size: "middle" | "large" | "small";
325
+ /**
326
+ * 铺满
327
+ */
280
328
  long: any;
329
+ /**
330
+ * 加载状态
331
+ */
281
332
  loading: any;
333
+ /**
334
+ * 点击函数
335
+ */
282
336
  cmd: any;
337
+ /**
338
+ * 按钮类型
339
+ */
283
340
  htmlType: string;
341
+ /**
342
+ * 点击状态
343
+ */
284
344
  disabled: any;
285
345
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
286
346
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -129,14 +129,41 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
129
129
  default: number;
130
130
  };
131
131
  }>> & Readonly<{}>, {
132
+ /**
133
+ * 进度,0-100
134
+ */
132
135
  length: number;
136
+ /**
137
+ * 进度条宽度
138
+ */
133
139
  width: number;
140
+ /**
141
+ * 背景色
142
+ */
134
143
  bgColor: string;
144
+ /**
145
+ * 背景色-渐变
146
+ */
135
147
  bgColors: never[];
148
+ /**
149
+ * 底色
150
+ */
136
151
  runColor: string;
152
+ /**
153
+ * 底色-渐变
154
+ */
137
155
  runColors: never[];
156
+ /**
157
+ * 进度色
158
+ */
138
159
  successColor: string;
160
+ /**
161
+ * 进度色-渐变
162
+ */
139
163
  successColors: never[];
164
+ /**
165
+ * 进度条厚度
166
+ */
140
167
  strokeWidth: number;
141
168
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
142
169
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -250,14 +277,41 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
250
277
  default: number;
251
278
  };
252
279
  }>> & Readonly<{}>, {
280
+ /**
281
+ * 进度,0-100
282
+ */
253
283
  length: number;
284
+ /**
285
+ * 进度条宽度
286
+ */
254
287
  width: number;
288
+ /**
289
+ * 背景色
290
+ */
255
291
  bgColor: string;
292
+ /**
293
+ * 背景色-渐变
294
+ */
256
295
  bgColors: never[];
296
+ /**
297
+ * 底色
298
+ */
257
299
  runColor: string;
300
+ /**
301
+ * 底色-渐变
302
+ */
258
303
  runColors: never[];
304
+ /**
305
+ * 进度色
306
+ */
259
307
  successColor: string;
308
+ /**
309
+ * 进度色-渐变
310
+ */
260
311
  successColors: never[];
312
+ /**
313
+ * 进度条厚度
314
+ */
261
315
  strokeWidth: number;
262
316
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
263
317
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -85,12 +85,33 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
85
85
  default: string;
86
86
  };
87
87
  }>> & Readonly<{}>, {
88
+ /**
89
+ * 使用的图标大小,默认为'20'
90
+ */
88
91
  size: any;
92
+ /**
93
+ * 使用的图标名称,默认为'up'
94
+ */
89
95
  name: string;
96
+ /**
97
+ * 加载静态资源地址,如https://cdn.xx.xx/vicon或者/static/vicon
98
+ */
90
99
  url: string;
100
+ /**
101
+ * 使用的图标库名称,默认为'ant'
102
+ */
91
103
  lib: string;
104
+ /**
105
+ * 使用的图标颜色,默认为'currentColor'
106
+ */
92
107
  color: any;
108
+ /**
109
+ * 如果为true,使用设计的图标颜色使得color属性无效。默认为false,一般用于多色或固定色图标
110
+ */
93
111
  nofill: boolean;
112
+ /**
113
+ * 图标宽高显示单位,默认为px
114
+ */
94
115
  unit: string;
95
116
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
96
117
  export default _default;
@@ -92,11 +92,29 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
92
92
  }>> & Readonly<{
93
93
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
94
94
  }>, {
95
+ /**
96
+ * 开启背景色
97
+ */
95
98
  mask: boolean;
99
+ /**
100
+ * 是否显示
101
+ */
96
102
  show: boolean;
103
+ /**
104
+ * 背景色
105
+ */
97
106
  maskBgColor: string;
107
+ /**
108
+ * 是否可以点击背景关闭
109
+ */
98
110
  closemask: boolean;
111
+ /**
112
+ * 放置位置
113
+ */
99
114
  to: string;
115
+ /**
116
+ * 是否是布局显示,默认是全屏
117
+ */
100
118
  box: any;
101
119
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
102
120
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
@@ -178,11 +196,29 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
178
196
  }>> & Readonly<{
179
197
  "onUpdate:show"?: ((...args: any[]) => any) | undefined;
180
198
  }>, {
199
+ /**
200
+ * 开启背景色
201
+ */
181
202
  mask: boolean;
203
+ /**
204
+ * 是否显示
205
+ */
182
206
  show: boolean;
207
+ /**
208
+ * 背景色
209
+ */
183
210
  maskBgColor: string;
211
+ /**
212
+ * 是否可以点击背景关闭
213
+ */
184
214
  closemask: boolean;
215
+ /**
216
+ * 放置位置
217
+ */
185
218
  to: string;
219
+ /**
220
+ * 是否是布局显示,默认是全屏
221
+ */
186
222
  box: any;
187
223
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
188
224
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -6,13 +6,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
6
6
  default: string;
7
7
  };
8
8
  /**
9
- * 使用的图标库名称,默认为''
9
+ * 使用的图标库名称,默认为'',传入wx,此时对应[域名或static]/vsicon/wx目录
10
10
  */
11
11
  lib: {
12
12
  default: string;
13
13
  };
14
14
  /**
15
- * 使用的图标名称,默认为'up'
15
+ * 使用的图标名称,默认为'up',对应[域名或static]/vsicon/up.svg
16
+ * @p 如果lib存在值比如wx,则对应[域名或static]/vsicon/wx/up.svg
16
17
  */
17
18
  name: {
18
19
  default: string;
@@ -42,7 +43,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
42
43
  default: string[] | string;
43
44
  };
44
45
  /**
45
- * 鼠标悬浮时使用的图标颜色,默认为[]
46
+ * 鼠标悬浮时使用的图标颜色,默认为undefined
46
47
  */
47
48
  hoverColor: {
48
49
  default: string[] | string;
@@ -67,13 +68,14 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
67
68
  default: string;
68
69
  };
69
70
  /**
70
- * 使用的图标库名称,默认为''
71
+ * 使用的图标库名称,默认为'',传入wx,此时对应[域名或static]/vsicon/wx目录
71
72
  */
72
73
  lib: {
73
74
  default: string;
74
75
  };
75
76
  /**
76
- * 使用的图标名称,默认为'up'
77
+ * 使用的图标名称,默认为'up',对应[域名或static]/vsicon/up.svg
78
+ * @p 如果lib存在值比如wx,则对应[域名或static]/vsicon/wx/up.svg
77
79
  */
78
80
  name: {
79
81
  default: string;
@@ -103,7 +105,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
103
105
  default: string[] | string;
104
106
  };
105
107
  /**
106
- * 鼠标悬浮时使用的图标颜色,默认为[]
108
+ * 鼠标悬浮时使用的图标颜色,默认为undefined
107
109
  */
108
110
  hoverColor: {
109
111
  default: string[] | string;
@@ -121,15 +123,45 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
121
123
  default: string;
122
124
  };
123
125
  }>> & Readonly<{}>, {
126
+ /**
127
+ * 使用的图标大小,默认为'20'
128
+ */
124
129
  size: any;
130
+ /**
131
+ * 图标大小-宽
132
+ */
125
133
  width: any;
134
+ /**
135
+ * 图标大小-高
136
+ */
126
137
  height: any;
138
+ /**
139
+ * 使用的图标名称,默认为'up',对应[域名或static]/vsicon/up.svg @p 如果lib存在值比如wx,则对应[域名或static]/vsicon/wx/up.svg
140
+ */
127
141
  name: string;
142
+ /**
143
+ * 加载静态资源地址,如https://cdn.xx.xx/vsicon或者/static/vsicon
144
+ */
128
145
  url: string;
146
+ /**
147
+ * 使用的图标库名称,默认为'',传入wx,此时对应[域名或static]/vsicon/wx目录
148
+ */
129
149
  lib: string;
150
+ /**
151
+ * 使用的图标颜色,默认为[]
152
+ */
130
153
  color: string | string[];
154
+ /**
155
+ * 图标宽高显示单位,默认为px
156
+ */
131
157
  unit: string;
158
+ /**
159
+ * 鼠标悬浮时使用的图标颜色,默认为undefined
160
+ */
132
161
  hoverColor: string | string[];
162
+ /**
163
+ * 用于hover时的dom元素id或者class,默认为undefined
164
+ */
133
165
  pid: string;
134
166
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
135
167
  export default _default;
@@ -44,6 +44,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
44
44
  active: any;
45
45
  placeholder: string;
46
46
  list: Item[];
47
+ /**
48
+ * 可输入进行过滤
49
+ */
47
50
  filterable: any;
48
51
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
52
  export default _default;
@@ -8,11 +8,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  */
9
9
  url: { default: "" },
10
10
  /**
11
- * 使用的图标库名称,默认为''
11
+ * 使用的图标库名称,默认为'',传入wx,此时对应[域名或static]/vsicon/wx目录
12
12
  */
13
13
  lib: { default: "" },
14
14
  /**
15
- * 使用的图标名称,默认为'up'
15
+ * 使用的图标名称,默认为'up',对应[域名或static]/vsicon/up.svg
16
+ * @p 如果lib存在值比如wx,则对应[域名或static]/vsicon/wx/up.svg
16
17
  */
17
18
  name: { default: "" },
18
19
  /**
@@ -32,7 +33,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
33
  */
33
34
  color: { default: [] },
34
35
  /**
35
- * 鼠标悬浮时使用的图标颜色,默认为[]
36
+ * 鼠标悬浮时使用的图标颜色,默认为undefined
36
37
  */
37
38
  hoverColor: { default: void 0 },
38
39
  /**
package/dist/index.d.ts CHANGED
@@ -17,9 +17,9 @@ declare module 'vue' {
17
17
  VIcon:typeof import('./components/Icon/index.vue')['default']
18
18
  VMask:typeof import('./components/Mask/index.vue')['default']
19
19
  VSIcon:typeof import('./components/SIcon/index.vue')['default']
20
- VScale:typeof import('./components/Scale/index.vue')['default']
21
20
  VSelect:typeof import('./components/Select/index.vue')['default']
22
21
  VSwitch:typeof import('./components/Switch/index.vue')['default']
22
+ VScale:typeof import('./components/Scale/index.vue')['default']
23
23
  }
24
24
  export interface ComponentCustomProperties {
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc1-ui",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "我来助你-Vue3UI库",
5
5
  "repository": {
6
6
  "type": "git",
@@ -33,11 +33,10 @@
33
33
  "build": "npm run build:package && npm run build:types && npm run build:auto",
34
34
  "build:auto": "cd autoimport && npm run build && cd ..",
35
35
  "build:package": "vite build",
36
- "build:types": "vue-tsc --declaration --emitDeclarationOnly && tsc-alias -p tsconfig.json && npm run addtype",
36
+ "build:types": "vue-tsc --declaration --emitDeclarationOnly --removeComments false && tsc-alias -p tsconfig.json && tsx ./build/restoreComments.ts && tsx ./build/buildTypes.ts",
37
37
  "format": "prettier --write . ",
38
38
  "typecheck": "vue-tsc --noEmit",
39
- "addtype": "tsx ./build/buildTypes.ts",
40
- "publish": "npm publish --access public"
39
+ "publishacc": "npm publish --access public"
41
40
  },
42
41
  "devDependencies": {
43
42
  "@types/node": "22.15.2",