@lingshugroup/web-plus 2.1.2 → 2.1.3
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/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index.js +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.js +239 -211
- package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/list/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/types/index.js +76 -7
- package/lib/packages/ls-components/components/list/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/list/types/index.js.gz +0 -0
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var l=Object.defineProperty;var t=(e,a)=>l(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../_utils/runtime/index.cjs"),o=n.buildProps({listApi:{type:Function},dealParams:{type:Function},dealData:{type:Function},listHookConfig:{type:Object},delApi:{type:Function},dealDelParams:{type:Function},delMessage:{type:[String,Function],default:""},switchApi:{type:Function},dealSwitchParams:{type:Function},showForm:{type:Boolean,default:!0},formClass:{type:String,default:""},formData:{type:Object,default:t(()=>({}),"default")},formItems:{type:Array,default:t(()=>[],"default")},formAttrs:{type:Object,default:t(()=>{},"default")},queryFn:{type:Function},resetFn:{type:Function},tableColumn:{type:Array,default:t(()=>[],"default")},tableRowKey:{type:String,default:"id"},tableAttrs:{type:Object,default:t(()=>{},"default")},tableListeners:{type:Object,default:t(()=>{},"default")},showOperate:{type:Boolean,default:!0},showOperateDivider:{type:Boolean,default:!0},operateClass:{type:String,default:""},showAdd:{type:Boolean,default:!0},disabledAddBtn:{type:Boolean,default:!1},addBtnText:{type:String,default:"添加"},addBtnAttrs:{type:Object,default:t(()=>{},"default")},addFn:{type:Function},showTableSwitch:{type:Boolean,default:!1},switchProp:{type:String,default:"status"},tableSwitchColumn:{type:Object,default:t(()=>{},"default")},tableSwitchAttrs:{type:Object,default:t(()=>{},"default")},tableSwitchPopAttrs:{type:Object,default:t(()=>{},"default")},tableSwitchPopTxt:{type:String,default:"请问是否关闭?"},disabledTableSwitch:{type:[Boolean,Function],default:!1},showTableOperate:{type:Boolean,default:!0},tableOperateColumn:{type:Object,default:t(()=>{},"default")},tableDetailFn:{type:Function},tableEditFn:{type:Function},tableDelFn:{type:Function},showTableDetail:{type:[Boolean,Function],default:!0},disabledTableDetail:{type:[Boolean,Function],default:!1},showTableEdit:{type:[Boolean,Function],default:!0},disabledTableEdit:{type:[Boolean,Function],default:!1},showTableDel:{type:[Boolean,Function],default:!0},disabledTableDel:{type:[Boolean,Function],default:!1},tableDelPopAttrs:{type:Object,default:t(()=>{},"default")},addRoutePath:{type:String,default:""},detailRoutePath:{type:String,default:""},editRoutePath:{type:String,default:""},tableDetailText:{type:[String,Function],default:"查看"},tableEditText:{type:[String,Function],default:"编辑"},tableDelText:{type:[String,Function],default:"删除"},tableDetailType:{type:[String,Function],default:"primary"},tableEditType:{type:[String,Function],default:"primary"},tableDelType:{type:[String,Function],default:"danger"},tableDetailBtnAttrs:{type:Object,default:t(()=>{},"default")},tableEditBtnAttrs:{type:Object,default:t(()=>{},"default")},tableDelBtnAttrs:{type:Object,default:t(()=>{},"default")},skeletonAttrs:{type:Object,default:t(()=>{},"default")},showSkeleton:{type:Boolean,default:!0},popconfirmTxt:{type:[String,Function],default:""}});exports.lsListProps=o;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var l = Object.defineProperty;
|
|
2
2
|
var t = (e, a) => l(e, "name", { value: a, configurable: !0 });
|
|
3
|
-
import { buildProps as
|
|
4
|
-
const
|
|
3
|
+
import { buildProps as n } from "../../_utils/runtime/index.js";
|
|
4
|
+
const i = n({
|
|
5
5
|
// 列表api
|
|
6
6
|
listApi: {
|
|
7
7
|
type: Function
|
|
@@ -26,6 +26,11 @@ const d = o({
|
|
|
26
26
|
dealDelParams: {
|
|
27
27
|
type: Function
|
|
28
28
|
},
|
|
29
|
+
// 删除成功提示话术
|
|
30
|
+
delMessage: {
|
|
31
|
+
type: [String, Function],
|
|
32
|
+
default: ""
|
|
33
|
+
},
|
|
29
34
|
// 开关切换api
|
|
30
35
|
switchApi: {
|
|
31
36
|
type: Function
|
|
@@ -64,6 +69,10 @@ const d = o({
|
|
|
64
69
|
queryFn: {
|
|
65
70
|
type: Function
|
|
66
71
|
},
|
|
72
|
+
// 重置事件(覆盖默认事件)
|
|
73
|
+
resetFn: {
|
|
74
|
+
type: Function
|
|
75
|
+
},
|
|
67
76
|
// 表格列数据
|
|
68
77
|
tableColumn: {
|
|
69
78
|
type: Array,
|
|
@@ -115,16 +124,16 @@ const d = o({
|
|
|
115
124
|
type: String,
|
|
116
125
|
default: "添加"
|
|
117
126
|
},
|
|
118
|
-
// 添加按钮点击事件(覆盖默认事件)
|
|
119
|
-
addFn: {
|
|
120
|
-
type: Function
|
|
121
|
-
},
|
|
122
127
|
// 添加按钮配置项
|
|
123
128
|
addBtnAttrs: {
|
|
124
129
|
type: Object,
|
|
125
130
|
default: /* @__PURE__ */ t(() => {
|
|
126
131
|
}, "default")
|
|
127
132
|
},
|
|
133
|
+
// 添加按钮点击事件(覆盖默认事件)
|
|
134
|
+
addFn: {
|
|
135
|
+
type: Function
|
|
136
|
+
},
|
|
128
137
|
// 是否显示表格开关切换
|
|
129
138
|
showTableSwitch: {
|
|
130
139
|
type: Boolean,
|
|
@@ -141,6 +150,23 @@ const d = o({
|
|
|
141
150
|
default: /* @__PURE__ */ t(() => {
|
|
142
151
|
}, "default")
|
|
143
152
|
},
|
|
153
|
+
// 表格开关配置项
|
|
154
|
+
tableSwitchAttrs: {
|
|
155
|
+
type: Object,
|
|
156
|
+
default: /* @__PURE__ */ t(() => {
|
|
157
|
+
}, "default")
|
|
158
|
+
},
|
|
159
|
+
// 表格开关确认弹窗配置项
|
|
160
|
+
tableSwitchPopAttrs: {
|
|
161
|
+
type: Object,
|
|
162
|
+
default: /* @__PURE__ */ t(() => {
|
|
163
|
+
}, "default")
|
|
164
|
+
},
|
|
165
|
+
// 表格开关确认弹窗文字
|
|
166
|
+
tableSwitchPopTxt: {
|
|
167
|
+
type: String,
|
|
168
|
+
default: "请问是否关闭?"
|
|
169
|
+
},
|
|
144
170
|
// 表格开关切换是否禁用
|
|
145
171
|
disabledTableSwitch: {
|
|
146
172
|
type: [Boolean, Function],
|
|
@@ -165,6 +191,10 @@ const d = o({
|
|
|
165
191
|
tableEditFn: {
|
|
166
192
|
type: Function
|
|
167
193
|
},
|
|
194
|
+
// 表格删除按钮点击事件(覆盖默认事件)
|
|
195
|
+
tableDelFn: {
|
|
196
|
+
type: Function
|
|
197
|
+
},
|
|
168
198
|
// 表格查看按钮是否展示
|
|
169
199
|
showTableDetail: {
|
|
170
200
|
type: [Boolean, Function],
|
|
@@ -195,6 +225,12 @@ const d = o({
|
|
|
195
225
|
type: [Boolean, Function],
|
|
196
226
|
default: !1
|
|
197
227
|
},
|
|
228
|
+
// 表格操作列删除悬浮确认窗配置项
|
|
229
|
+
tableDelPopAttrs: {
|
|
230
|
+
type: Object,
|
|
231
|
+
default: /* @__PURE__ */ t(() => {
|
|
232
|
+
}, "default")
|
|
233
|
+
},
|
|
198
234
|
// 添加页面路由
|
|
199
235
|
addRoutePath: {
|
|
200
236
|
type: String,
|
|
@@ -225,6 +261,39 @@ const d = o({
|
|
|
225
261
|
type: [String, Function],
|
|
226
262
|
default: "删除"
|
|
227
263
|
},
|
|
264
|
+
// 表格查看按钮类型
|
|
265
|
+
tableDetailType: {
|
|
266
|
+
type: [String, Function],
|
|
267
|
+
default: "primary"
|
|
268
|
+
},
|
|
269
|
+
// 表格编辑按钮类型
|
|
270
|
+
tableEditType: {
|
|
271
|
+
type: [String, Function],
|
|
272
|
+
default: "primary"
|
|
273
|
+
},
|
|
274
|
+
// 表格删除按钮类型
|
|
275
|
+
tableDelType: {
|
|
276
|
+
type: [String, Function],
|
|
277
|
+
default: "danger"
|
|
278
|
+
},
|
|
279
|
+
// 表格查看按钮配置
|
|
280
|
+
tableDetailBtnAttrs: {
|
|
281
|
+
type: Object,
|
|
282
|
+
default: /* @__PURE__ */ t(() => {
|
|
283
|
+
}, "default")
|
|
284
|
+
},
|
|
285
|
+
// 表格编辑按钮配置
|
|
286
|
+
tableEditBtnAttrs: {
|
|
287
|
+
type: Object,
|
|
288
|
+
default: /* @__PURE__ */ t(() => {
|
|
289
|
+
}, "default")
|
|
290
|
+
},
|
|
291
|
+
// 表格删除按钮配置
|
|
292
|
+
tableDelBtnAttrs: {
|
|
293
|
+
type: Object,
|
|
294
|
+
default: /* @__PURE__ */ t(() => {
|
|
295
|
+
}, "default")
|
|
296
|
+
},
|
|
228
297
|
// 表格骨架屏配置
|
|
229
298
|
skeletonAttrs: {
|
|
230
299
|
type: Object,
|
|
@@ -243,5 +312,5 @@ const d = o({
|
|
|
243
312
|
}
|
|
244
313
|
});
|
|
245
314
|
export {
|
|
246
|
-
|
|
315
|
+
i as lsListProps
|
|
247
316
|
};
|
|
Binary file
|
|
Binary file
|