auto-vue-manual 0.0.2 → 0.0.4

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 +1,26 @@
1
- 自用组件库,引入无用!
1
+ # 自用组件库
2
+
3
+ ## ProTable 属性说明
4
+
5
+ - **columns**: `ColumnProps[]` // 列配置项 ==> 必传
6
+ - **data**: `any[]` // 静态 table data 数据,若存在则不会使用 requestApi 返回的 data ==> 非必传
7
+ - **api**: `string` // 请求表格数据的 api ==> 非必传
8
+ - **url**: `string` // 实际请求接口
9
+ - **sumUrl**: `string` // 汇总接口
10
+ - **autoSearch**: `boolean` // 是否自动执行请求 api ==> 非必传(默认为 true)
11
+ - **requestError**: `(params: any) => void` // 表格 api 请求错误监听 ==> 非必传
12
+ - **dataCallback**: `(data: any) => any` // 返回数据的回调函数,可以对数据进行处理 ==> 非必传
13
+ - **title**: `string` // 表格标题 ==> 非必传
14
+ - **pagination**: `boolean` // 是否需要分页组件 ==> 非必传(默认为 true)
15
+ - **initParam**: `any` // 初始化请求参数 ==> 非必传(默认为 {})
16
+ - **border**: `boolean` // 是否带有纵向边框 ==> 非必传(默认为 true)
17
+ - **toolButton**: `("refresh" | "setting" | "search")[] | boolean` // 是否显示表格功能按钮 ==> 非必传(默认为 true)
18
+ - **rowKey**: `string` // 行数据的 Key,用来优化 Table 的渲染,当表格数据多选时,所指定的 id ==> 非必传(默认为 id)
19
+ - **searchCol**: `number | Record<BreakPoint, number>` // 表格搜索项 每列占比配置 ==> 非必传 { xs: 1, sm: 2, md: 2, lg: 3, xl: 4 }
20
+ - **loading**: `Boolean` // 列表加载状态
21
+ - **size**: `"" | "small" | "default" | "large"` // 列表大小
22
+ - **pageSize**: `number` // 列表页大小
23
+ - **rowH**: `number` // 列表行高
24
+ - **extH**: `number` // 列表额外高度
25
+ - **sumText**: `string` // 汇总文本 ==> 非必传(默认为 Total)
26
+ - **sumTextFormat**: `string` // 汇总文本格式 ==> 非必传(默认为 *)
@@ -1,13 +1,15 @@
1
- const t = (e) => {
1
+ import "vue";
2
+ import "element-plus";
3
+ const r = (e) => {
2
4
  if (!e.request)
3
5
  throw new Error("request function is required");
4
6
  e.request, e.mittBus;
5
- }, r = {
7
+ }, o = {
6
8
  install: (e, i) => {
7
- Reflect.ownKeys(e._context.provides).some((n) => String(n) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), t(i);
9
+ Reflect.ownKeys(e._context.provides).some((t) => String(t) === "Symbol(pinia)") || console.warn("Pinia is not provided. Please install and provide Pinia in your app."), r(i);
8
10
  },
9
11
  version: "__VERSION__"
10
12
  };
11
13
  export {
12
- r as default
14
+ o as default
13
15
  };
@@ -1 +1 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n():typeof define=="function"&&define.amd?define(n):(e=typeof globalThis<"u"?globalThis:e||self,e.AutoVuePage=n())})(this,function(){"use strict";const e=i=>{if(!i.request)throw new Error("request function is required");i.request,i.mittBus};return{install:(i,t)=>{Reflect.ownKeys(i._context.provides).some(s=>String(s)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),e(t)},version:"__VERSION__"}});
1
+ (function(e,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["vue","element-plus"],n):(e=typeof globalThis<"u"?globalThis:e||self,e.AutoVuePage=n())})(this,function(){"use strict";const e=i=>{if(!i.request)throw new Error("request function is required");i.request,i.mittBus};return{install:(i,t)=>{Reflect.ownKeys(i._context.provides).some(s=>String(s)==="Symbol(pinia)")||console.warn("Pinia is not provided. Please install and provide Pinia in your app."),e(t)},version:"__VERSION__"}});