@lingshugroup/web-plus 1.0.0 → 1.0.2
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 +14 -0
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.js +182 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.js.br +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/dist/locale/zh-cn/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/index/index.cjs +1 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/index/index.js +9 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/src/config-provider/index.cjs +1 -1
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/src/config-provider/index.js +6 -6
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config/index.js +10 -10
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config/index.js.br +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/config-provider/src/hooks/use-global-config/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/radio/index/index.cjs +1 -1
- package/lib/node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/radio/index/index.js +6 -6
- package/lib/packages/ls-components/components/dialog/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js +47 -39
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/dialog/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index.js +2 -2
- package/lib/packages/ls-components/components/form/Form.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/Form.vue/index2.js +106 -85
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/Form.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index.js +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js +206 -181
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/form/FormItem.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/form/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/form/types/index.js +10 -2
- package/lib/packages/ls-components/components/form/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/form/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/icon/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/icon/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/icon/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/icon/Index.vue/index2.js +10 -9
- package/lib/packages/ls-components/components/icon/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/icon/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/icon/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/icon/types/index.js +4 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index.js +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js +40 -34
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/types/index.js +8 -4
- package/lib/packages/ls-components/components/table/Table.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index.js +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/table/Table.vue/index2.js +196 -199
- package/lib/packages/ls-components/components/table/Table.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/table/Table.vue/index2.js.gz +0 -0
- package/package.json +1 -1
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});/*! Element Plus v2.8.1 */var u={name:"zh-cn",el:{breadcrumb:{label:"面包屑"},colorpicker:{confirm:"确定",clear:"清空",defaultLabel:"颜色选择器",description:"当前颜色 {color},按 Enter 键选择新颜色",alphaLabel:"选择透明度的值"},datepicker:{now:"此刻",today:"今天",cancel:"取消",clear:"清空",confirm:"确定",dateTablePrompt:"使用方向键与 Enter 键可选择日期",monthTablePrompt:"使用方向键与 Enter 键可选择月份",yearTablePrompt:"使用方向键与 Enter 键可选择年份",selectedDate:"已选日期",selectDate:"选择日期",selectTime:"选择时间",startDate:"开始日期",startTime:"开始时间",endDate:"结束日期",endTime:"结束时间",prevYear:"前一年",nextYear:"后一年",prevMonth:"上个月",nextMonth:"下个月",year:"年",month1:"1 月",month2:"2 月",month3:"3 月",month4:"4 月",month5:"5 月",month6:"6 月",month7:"7 月",month8:"8 月",month9:"9 月",month10:"10 月",month11:"11 月",month12:"12 月",weeks:{sun:"日",mon:"一",tue:"二",wed:"三",thu:"四",fri:"五",sat:"六"},weeksFull:{sun:"星期日",mon:"星期一",tue:"星期二",wed:"星期三",thu:"星期四",fri:"星期五",sat:"星期六"},months:{jan:"一月",feb:"二月",mar:"三月",apr:"四月",may:"五月",jun:"六月",jul:"七月",aug:"八月",sep:"九月",oct:"十月",nov:"十一月",dec:"十二月"}},inputNumber:{decrease:"减少数值",increase:"增加数值"},select:{loading:"加载中",noMatch:"无匹配数据",noData:"无数据",placeholder:"请选择"},dropdown:{toggleDropdown:"切换下拉选项"},mention:{loading:"加载中"},cascader:{noMatch:"无匹配数据",loading:"加载中",placeholder:"请选择",noData:"暂无数据"},pagination:{goto:"前往",pagesize:"条/页",total:"共 {total} 条",pageClassifier:"页",page:"页",prev:"上一页",next:"下一页",currentPage:"第 {pager} 页",prevPages:"向前 {pager} 页",nextPages:"向后 {pager} 页",deprecationWarning:"你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"},dialog:{close:"关闭此对话框"},drawer:{close:"关闭此对话框"},messagebox:{title:"提示",confirm:"确定",cancel:"取消",error:"输入的数据不合法!",close:"关闭此对话框"},upload:{deleteTip:"按 delete 键可删除",delete:"删除",preview:"查看图片",continue:"继续上传"},slider:{defaultLabel:"滑块介于 {min} 至 {max}",defaultRangeStartLabel:"选择起始值",defaultRangeEndLabel:"选择结束值"},table:{emptyText:"暂无数据",confirmFilter:"筛选",resetFilter:"重置",clearFilter:"全部",sumText:"合计"},tour:{next:"下一步",previous:"上一步",finish:"结束导览"},tree:{emptyText:"暂无数据"},transfer:{noMatch:"无匹配数据",noData:"无数据",titles:["列表 1","列表 2"],filterPlaceholder:"请输入搜索内容",noCheckedFormat:"共 {total} 项",hasCheckedFormat:"已选 {checked}/{total} 项"},image:{error:"加载失败"},pageHeader:{title:"返回"},popconfirm:{confirmButtonText:"确定",cancelButtonText:"取消"},carousel:{leftArrow:"上一张幻灯片",rightArrow:"下一张幻灯片",indicator:"幻灯片切换至索引 {index}"}}};exports.default=u;
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/*! Element Plus v2.8.1 */
|
|
2
|
+
var u = {
|
|
3
|
+
name: "zh-cn",
|
|
4
|
+
el: {
|
|
5
|
+
breadcrumb: {
|
|
6
|
+
label: "面包屑"
|
|
7
|
+
},
|
|
8
|
+
colorpicker: {
|
|
9
|
+
confirm: "确定",
|
|
10
|
+
clear: "清空",
|
|
11
|
+
defaultLabel: "颜色选择器",
|
|
12
|
+
description: "当前颜色 {color},按 Enter 键选择新颜色",
|
|
13
|
+
alphaLabel: "选择透明度的值"
|
|
14
|
+
},
|
|
15
|
+
datepicker: {
|
|
16
|
+
now: "此刻",
|
|
17
|
+
today: "今天",
|
|
18
|
+
cancel: "取消",
|
|
19
|
+
clear: "清空",
|
|
20
|
+
confirm: "确定",
|
|
21
|
+
dateTablePrompt: "使用方向键与 Enter 键可选择日期",
|
|
22
|
+
monthTablePrompt: "使用方向键与 Enter 键可选择月份",
|
|
23
|
+
yearTablePrompt: "使用方向键与 Enter 键可选择年份",
|
|
24
|
+
selectedDate: "已选日期",
|
|
25
|
+
selectDate: "选择日期",
|
|
26
|
+
selectTime: "选择时间",
|
|
27
|
+
startDate: "开始日期",
|
|
28
|
+
startTime: "开始时间",
|
|
29
|
+
endDate: "结束日期",
|
|
30
|
+
endTime: "结束时间",
|
|
31
|
+
prevYear: "前一年",
|
|
32
|
+
nextYear: "后一年",
|
|
33
|
+
prevMonth: "上个月",
|
|
34
|
+
nextMonth: "下个月",
|
|
35
|
+
year: "年",
|
|
36
|
+
month1: "1 月",
|
|
37
|
+
month2: "2 月",
|
|
38
|
+
month3: "3 月",
|
|
39
|
+
month4: "4 月",
|
|
40
|
+
month5: "5 月",
|
|
41
|
+
month6: "6 月",
|
|
42
|
+
month7: "7 月",
|
|
43
|
+
month8: "8 月",
|
|
44
|
+
month9: "9 月",
|
|
45
|
+
month10: "10 月",
|
|
46
|
+
month11: "11 月",
|
|
47
|
+
month12: "12 月",
|
|
48
|
+
weeks: {
|
|
49
|
+
sun: "日",
|
|
50
|
+
mon: "一",
|
|
51
|
+
tue: "二",
|
|
52
|
+
wed: "三",
|
|
53
|
+
thu: "四",
|
|
54
|
+
fri: "五",
|
|
55
|
+
sat: "六"
|
|
56
|
+
},
|
|
57
|
+
weeksFull: {
|
|
58
|
+
sun: "星期日",
|
|
59
|
+
mon: "星期一",
|
|
60
|
+
tue: "星期二",
|
|
61
|
+
wed: "星期三",
|
|
62
|
+
thu: "星期四",
|
|
63
|
+
fri: "星期五",
|
|
64
|
+
sat: "星期六"
|
|
65
|
+
},
|
|
66
|
+
months: {
|
|
67
|
+
jan: "一月",
|
|
68
|
+
feb: "二月",
|
|
69
|
+
mar: "三月",
|
|
70
|
+
apr: "四月",
|
|
71
|
+
may: "五月",
|
|
72
|
+
jun: "六月",
|
|
73
|
+
jul: "七月",
|
|
74
|
+
aug: "八月",
|
|
75
|
+
sep: "九月",
|
|
76
|
+
oct: "十月",
|
|
77
|
+
nov: "十一月",
|
|
78
|
+
dec: "十二月"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
inputNumber: {
|
|
82
|
+
decrease: "减少数值",
|
|
83
|
+
increase: "增加数值"
|
|
84
|
+
},
|
|
85
|
+
select: {
|
|
86
|
+
loading: "加载中",
|
|
87
|
+
noMatch: "无匹配数据",
|
|
88
|
+
noData: "无数据",
|
|
89
|
+
placeholder: "请选择"
|
|
90
|
+
},
|
|
91
|
+
dropdown: {
|
|
92
|
+
toggleDropdown: "切换下拉选项"
|
|
93
|
+
},
|
|
94
|
+
mention: {
|
|
95
|
+
loading: "加载中"
|
|
96
|
+
},
|
|
97
|
+
cascader: {
|
|
98
|
+
noMatch: "无匹配数据",
|
|
99
|
+
loading: "加载中",
|
|
100
|
+
placeholder: "请选择",
|
|
101
|
+
noData: "暂无数据"
|
|
102
|
+
},
|
|
103
|
+
pagination: {
|
|
104
|
+
goto: "前往",
|
|
105
|
+
pagesize: "条/页",
|
|
106
|
+
total: "共 {total} 条",
|
|
107
|
+
pageClassifier: "页",
|
|
108
|
+
page: "页",
|
|
109
|
+
prev: "上一页",
|
|
110
|
+
next: "下一页",
|
|
111
|
+
currentPage: "第 {pager} 页",
|
|
112
|
+
prevPages: "向前 {pager} 页",
|
|
113
|
+
nextPages: "向后 {pager} 页",
|
|
114
|
+
deprecationWarning: "你使用了一些已被废弃的用法,请参考 el-pagination 的官方文档"
|
|
115
|
+
},
|
|
116
|
+
dialog: {
|
|
117
|
+
close: "关闭此对话框"
|
|
118
|
+
},
|
|
119
|
+
drawer: {
|
|
120
|
+
close: "关闭此对话框"
|
|
121
|
+
},
|
|
122
|
+
messagebox: {
|
|
123
|
+
title: "提示",
|
|
124
|
+
confirm: "确定",
|
|
125
|
+
cancel: "取消",
|
|
126
|
+
error: "输入的数据不合法!",
|
|
127
|
+
close: "关闭此对话框"
|
|
128
|
+
},
|
|
129
|
+
upload: {
|
|
130
|
+
deleteTip: "按 delete 键可删除",
|
|
131
|
+
delete: "删除",
|
|
132
|
+
preview: "查看图片",
|
|
133
|
+
continue: "继续上传"
|
|
134
|
+
},
|
|
135
|
+
slider: {
|
|
136
|
+
defaultLabel: "滑块介于 {min} 至 {max}",
|
|
137
|
+
defaultRangeStartLabel: "选择起始值",
|
|
138
|
+
defaultRangeEndLabel: "选择结束值"
|
|
139
|
+
},
|
|
140
|
+
table: {
|
|
141
|
+
emptyText: "暂无数据",
|
|
142
|
+
confirmFilter: "筛选",
|
|
143
|
+
resetFilter: "重置",
|
|
144
|
+
clearFilter: "全部",
|
|
145
|
+
sumText: "合计"
|
|
146
|
+
},
|
|
147
|
+
tour: {
|
|
148
|
+
next: "下一步",
|
|
149
|
+
previous: "上一步",
|
|
150
|
+
finish: "结束导览"
|
|
151
|
+
},
|
|
152
|
+
tree: {
|
|
153
|
+
emptyText: "暂无数据"
|
|
154
|
+
},
|
|
155
|
+
transfer: {
|
|
156
|
+
noMatch: "无匹配数据",
|
|
157
|
+
noData: "无数据",
|
|
158
|
+
titles: ["列表 1", "列表 2"],
|
|
159
|
+
filterPlaceholder: "请输入搜索内容",
|
|
160
|
+
noCheckedFormat: "共 {total} 项",
|
|
161
|
+
hasCheckedFormat: "已选 {checked}/{total} 项"
|
|
162
|
+
},
|
|
163
|
+
image: {
|
|
164
|
+
error: "加载失败"
|
|
165
|
+
},
|
|
166
|
+
pageHeader: {
|
|
167
|
+
title: "返回"
|
|
168
|
+
},
|
|
169
|
+
popconfirm: {
|
|
170
|
+
confirmButtonText: "确定",
|
|
171
|
+
cancelButtonText: "取消"
|
|
172
|
+
},
|
|
173
|
+
carousel: {
|
|
174
|
+
leftArrow: "上一张幻灯片",
|
|
175
|
+
rightArrow: "下一张幻灯片",
|
|
176
|
+
indicator: "幻灯片切换至索引 {index}"
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
export {
|
|
181
|
+
u as default
|
|
182
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../src/config-provider/index.cjs"),o=require("../../../utils/vue/install/index.cjs"),i=o.withInstall(e.default);exports.messageConfig=e.messageConfig;exports.ElConfigProvider=i;exports.default=i;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import o from "../src/config-provider/index.js";
|
|
2
|
+
import { messageConfig as n } from "../src/config-provider/index.js";
|
|
3
|
+
import { withInstall as r } from "../../../utils/vue/install/index.js";
|
|
4
|
+
const e = r(o);
|
|
5
|
+
export {
|
|
6
|
+
e as ElConfigProvider,
|
|
7
|
+
e as default,
|
|
8
|
+
n as messageConfig
|
|
9
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),s=require("../hooks/use-global-config/index.cjs"),u=require("../config-provider-props/index.cjs"),n={},l=e.defineComponent({name:"ElConfigProvider",props:u.configProviderProps,setup(o,{slots:t}){e.watch(()=>o.message,i=>{Object.assign(n,i??{})},{immediate:!0,deep:!0});const r=s.provideGlobalConfig(o);return()=>e.renderSlot(t,"default",{config:r==null?void 0:r.value})}});exports.default=l;exports.messageConfig=n;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as n, watch as t, renderSlot as
|
|
2
|
-
import { provideGlobalConfig as
|
|
1
|
+
import { defineComponent as n, watch as t, renderSlot as f } from "vue";
|
|
2
|
+
import { provideGlobalConfig as m } from "../hooks/use-global-config/index.js";
|
|
3
3
|
import { configProviderProps as s } from "../config-provider-props/index.js";
|
|
4
|
-
const d = {}
|
|
5
|
-
n({
|
|
4
|
+
const d = {}, p = n({
|
|
6
5
|
name: "ElConfigProvider",
|
|
7
6
|
props: s,
|
|
8
7
|
setup(e, { slots: i }) {
|
|
9
8
|
t(() => e.message, (r) => {
|
|
10
9
|
Object.assign(d, r ?? {});
|
|
11
10
|
}, { immediate: !0, deep: !0 });
|
|
12
|
-
const o =
|
|
13
|
-
return () =>
|
|
11
|
+
const o = m(e);
|
|
12
|
+
return () => f(i, "default", { config: o == null ? void 0 : o.value });
|
|
14
13
|
}
|
|
15
14
|
});
|
|
16
15
|
export {
|
|
16
|
+
p as default,
|
|
17
17
|
d as messageConfig
|
|
18
18
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var s = (l, r) => g(l, "name", { value: r, configurable: !0 });
|
|
3
|
-
import { ref as x, getCurrentInstance as m,
|
|
3
|
+
import { ref as x, getCurrentInstance as m, computed as t, unref as c, inject as y, provide as I } from "vue";
|
|
4
4
|
import { configProviderContextKey as p } from "../../constants/index.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
5
|
+
import { namespaceContextKey as _, useNamespace as b, defaultNamespace as z } from "../../../../../hooks/use-namespace/index/index.js";
|
|
6
|
+
import { localeContextKey as K, useLocale as G } from "../../../../../hooks/use-locale/index/index.js";
|
|
7
|
+
import { zIndexContextKey as N, useZIndex as O, defaultInitialZIndex as S } from "../../../../../hooks/use-z-index/index/index.js";
|
|
8
8
|
import { debugWarn as E } from "../../../../../utils/error/index.js";
|
|
9
9
|
import { SIZE_INJECTION_KEY as V } from "../../../../../hooks/use-size/index/index.js";
|
|
10
10
|
import { emptyValuesContextKey as Z } from "../../../../../hooks/use-empty-values/index/index.js";
|
|
@@ -19,15 +19,15 @@ function C(l, r = void 0) {
|
|
|
19
19
|
}
|
|
20
20
|
s(C, "useGlobalConfig");
|
|
21
21
|
function A(l, r) {
|
|
22
|
-
const o = C(), a =
|
|
22
|
+
const o = C(), a = b(l, t(() => {
|
|
23
23
|
var e;
|
|
24
|
-
return ((e = o.value) == null ? void 0 : e.namespace) ||
|
|
25
|
-
})), n =
|
|
24
|
+
return ((e = o.value) == null ? void 0 : e.namespace) || z;
|
|
25
|
+
})), n = G(t(() => {
|
|
26
26
|
var e;
|
|
27
27
|
return (e = o.value) == null ? void 0 : e.locale;
|
|
28
|
-
})), i =
|
|
28
|
+
})), i = O(t(() => {
|
|
29
29
|
var e;
|
|
30
|
-
return ((e = o.value) == null ? void 0 : e.zIndex) ||
|
|
30
|
+
return ((e = o.value) == null ? void 0 : e.zIndex) || S;
|
|
31
31
|
})), u = t(() => {
|
|
32
32
|
var e;
|
|
33
33
|
return c(r) || ((e = o.value) == null ? void 0 : e.size) || "";
|
|
@@ -51,7 +51,7 @@ const j = /* @__PURE__ */ s((l, r, o = !1) => {
|
|
|
51
51
|
const f = c(l);
|
|
52
52
|
return i != null && i.value ? k(i.value, f) : f;
|
|
53
53
|
});
|
|
54
|
-
return u(p, e), u(
|
|
54
|
+
return u(p, e), u(K, t(() => e.value.locale)), u(_, t(() => e.value.namespace)), u(N, t(() => e.value.zIndex)), u(V, {
|
|
55
55
|
size: t(() => e.value.size || "")
|
|
56
56
|
}), u(Z, t(() => ({
|
|
57
57
|
emptyValues: e.value.emptyValues,
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../src/radio2/index.cjs"),t=require("../src/radio-button2/index.cjs"),e=require("../src/radio-group2/index.cjs"),o=require("../../../utils/vue/install/index.cjs"),l=o.withInstall(a.default,{RadioButton:t.default,RadioGroup:e.default}),u=o.withNoopInstall(e.default)
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("../src/radio2/index.cjs"),t=require("../src/radio-button2/index.cjs"),e=require("../src/radio-group2/index.cjs"),o=require("../../../utils/vue/install/index.cjs"),l=o.withInstall(a.default,{RadioButton:t.default,RadioGroup:e.default}),u=o.withNoopInstall(e.default),i=o.withNoopInstall(t.default);exports.ElRadio=l;exports.ElRadioButton=i;exports.ElRadioGroup=u;exports.default=l;
|
|
@@ -2,13 +2,13 @@ import r from "../src/radio2/index.js";
|
|
|
2
2
|
import o from "../src/radio-button2/index.js";
|
|
3
3
|
import t from "../src/radio-group2/index.js";
|
|
4
4
|
import { withInstall as a, withNoopInstall as i } from "../../../utils/vue/install/index.js";
|
|
5
|
-
const
|
|
5
|
+
const n = a(r, {
|
|
6
6
|
RadioButton: o,
|
|
7
7
|
RadioGroup: t
|
|
8
|
-
}),
|
|
9
|
-
i(o);
|
|
8
|
+
}), s = i(t), R = i(o);
|
|
10
9
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
n as ElRadio,
|
|
11
|
+
R as ElRadioButton,
|
|
12
|
+
s as ElRadioGroup,
|
|
13
|
+
n as default
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-0b4149cb"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-0b4149cb"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var x=Object.defineProperty;var r=(t,n)=>x(t,"name",{value:n,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),S=,/* empty css */f=,/* empty css */a=,/* empty css */q=,/* empty css */B=,/* empty css */N={class:"dialog-footer"},_=e.defineComponent({name:"LSDialog",inheritAttrs:!1,__name:"Index",props:e.mergeModels(f.lsDialogProp,{modelValue:{type:Boolean},modelModifiers:{}}),emits:e.mergeModels(f.lsEmitNames,["update:modelValue"]),setup(t,{emit:n}){const s=t,i=n,l=e.useModel(t,"modelValue"),p=S.useNamespace("dialog").b(),C=e.ref({width:"50%",closeOnClickModal:!1,closeOnPressEscape:!1,zIndex:2e3}),d=e.computed(()=>a.default({txt:"取消"},s.btnCancelConfig)),u=e.computed(()=>a.default({type:"primary",txt:"确定"},s.btnConfirmConfig));function g(){l.value=!1,i("onCancel")}r(g,"handleClose");function h(){i("onConfirm")}return r(h,"handleConfirm"),(o,c)=>{const v=q.ElScrollbar,m=e.resolveComponent("LSButton"),V=B.ElDialog;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(p))},[e.createVNode(V,e.mergeProps({modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=b=>l.value=b)},e.unref(a.default)(e.unref(C),o.$attrs)),e.createSlots({header:e.withCtx(()=>[e.renderSlot(o.$slots,"header",{},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(v,{"max-height":"600px"},{default:e.withCtx(()=>[e.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:2},[o.hasFooter?{name:"footer",fn:e.withCtx(()=>[e.createElementVNode("div",N,[o.hasCancelBtn?(e.openBlock(),e.createBlock(m,e.mergeProps({key:0},e.unref(d),{disabled:o.loading,onClick:g}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(d).txt),1)]),_:1},16,["disabled"])):e.createCommentVNode("",!0),e.createVNode(m,e.mergeProps(e.unref(u),{loading:o.loading,disabled:o.loading,onClick:h}),{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u).txt),1)]),_:1},16,["loading","disabled"])])]),key:"0"}:void 0]),1040,["modelValue"])],2)}}});exports.default=_;
|
|
@@ -1,85 +1,93 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var D = Object.defineProperty;
|
|
2
|
+
var r = (l, n) => D(l, "name", { value: n, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
6
|
+
/* empty css */
|
|
7
|
+
import { defineComponent as M, mergeModels as g, useModel as L, ref as P, computed as h, resolveComponent as $, openBlock as b, createElementBlock as w, normalizeClass as z, unref as o, createVNode as s, mergeProps as i, createSlots as A, withCtx as t, renderSlot as v, createElementVNode as I, createBlock as O, createTextVNode as V, toDisplayString as B, createCommentVNode as F } from "vue";
|
|
8
|
+
import { useNamespace as T } from "../../_hooks/useNamespace/index.js";
|
|
9
|
+
import { lsDialogProp as U, lsEmitNames as j } from "../types/index.js";
|
|
10
|
+
import d from "../../../../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/merge/index.js";
|
|
11
|
+
import { ElScrollbar as q } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/scrollbar/index/index.js";
|
|
12
|
+
import { ElDialog as G } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.4.38_typescript@5.5.4_/node_modules/element-plus/es/components/dialog/index/index.js";
|
|
13
|
+
const H = { class: "dialog-footer" }, ne = /* @__PURE__ */ M({
|
|
12
14
|
name: "LSDialog",
|
|
13
15
|
inheritAttrs: !1,
|
|
14
16
|
__name: "Index",
|
|
15
|
-
props: /* @__PURE__ */
|
|
17
|
+
props: /* @__PURE__ */ g(U, {
|
|
16
18
|
modelValue: {
|
|
17
19
|
type: Boolean
|
|
18
20
|
},
|
|
19
21
|
modelModifiers: {}
|
|
20
22
|
}),
|
|
21
|
-
emits: /* @__PURE__ */
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
23
|
+
emits: /* @__PURE__ */ g(j, ["update:modelValue"]),
|
|
24
|
+
setup(l, { emit: n }) {
|
|
25
|
+
const m = l, c = n, a = L(l, "modelValue"), k = T("dialog").b(), _ = P({
|
|
24
26
|
width: "50%",
|
|
25
27
|
closeOnClickModal: !1,
|
|
26
|
-
closeOnPressEscape: !1
|
|
27
|
-
|
|
28
|
+
closeOnPressEscape: !1,
|
|
29
|
+
zIndex: 2e3
|
|
30
|
+
}), f = h(() => d(
|
|
28
31
|
{
|
|
29
32
|
txt: "取消"
|
|
30
33
|
},
|
|
31
|
-
|
|
32
|
-
)),
|
|
34
|
+
m.btnCancelConfig
|
|
35
|
+
)), u = h(() => d(
|
|
33
36
|
{
|
|
34
37
|
type: "primary",
|
|
35
38
|
txt: "确定"
|
|
36
39
|
},
|
|
37
|
-
|
|
40
|
+
m.btnConfirmConfig
|
|
38
41
|
));
|
|
39
|
-
function N() {
|
|
40
|
-
a.value = !1, m("onCancel");
|
|
41
|
-
}
|
|
42
|
-
s(N, "handleClose");
|
|
43
42
|
function S() {
|
|
44
|
-
|
|
43
|
+
a.value = !1, c("onCancel");
|
|
44
|
+
}
|
|
45
|
+
r(S, "handleClose");
|
|
46
|
+
function y() {
|
|
47
|
+
c("onConfirm");
|
|
45
48
|
}
|
|
46
|
-
return
|
|
47
|
-
const
|
|
48
|
-
return
|
|
49
|
-
class:
|
|
49
|
+
return r(y, "handleConfirm"), (e, p) => {
|
|
50
|
+
const E = q, C = $("LSButton"), N = G;
|
|
51
|
+
return b(), w("div", {
|
|
52
|
+
class: z(o(k))
|
|
50
53
|
}, [
|
|
51
|
-
|
|
54
|
+
s(N, i({
|
|
52
55
|
modelValue: a.value,
|
|
53
|
-
"onUpdate:modelValue":
|
|
54
|
-
}, o(
|
|
56
|
+
"onUpdate:modelValue": p[0] || (p[0] = (x) => a.value = x)
|
|
57
|
+
}, o(d)(o(_), e.$attrs)), A({
|
|
55
58
|
header: t(() => [
|
|
56
|
-
|
|
59
|
+
v(e.$slots, "header", {}, void 0, !0)
|
|
57
60
|
]),
|
|
58
61
|
default: t(() => [
|
|
59
|
-
|
|
62
|
+
s(E, { "max-height": "600px" }, {
|
|
63
|
+
default: t(() => [
|
|
64
|
+
v(e.$slots, "default", {}, void 0, !0)
|
|
65
|
+
]),
|
|
66
|
+
_: 3
|
|
67
|
+
})
|
|
60
68
|
]),
|
|
61
69
|
_: 2
|
|
62
70
|
}, [
|
|
63
71
|
e.hasFooter ? {
|
|
64
72
|
name: "footer",
|
|
65
73
|
fn: t(() => [
|
|
66
|
-
|
|
67
|
-
e.hasCancelBtn ? (
|
|
74
|
+
I("div", H, [
|
|
75
|
+
e.hasCancelBtn ? (b(), O(C, i({ key: 0 }, o(f), {
|
|
68
76
|
disabled: e.loading,
|
|
69
|
-
onClick:
|
|
77
|
+
onClick: S
|
|
70
78
|
}), {
|
|
71
79
|
default: t(() => [
|
|
72
|
-
B(
|
|
80
|
+
V(B(o(f).txt), 1)
|
|
73
81
|
]),
|
|
74
82
|
_: 1
|
|
75
83
|
}, 16, ["disabled"])) : F("", !0),
|
|
76
|
-
|
|
84
|
+
s(C, i(o(u), {
|
|
77
85
|
loading: e.loading,
|
|
78
86
|
disabled: e.loading,
|
|
79
|
-
onClick:
|
|
87
|
+
onClick: y
|
|
80
88
|
}), {
|
|
81
89
|
default: t(() => [
|
|
82
|
-
B(
|
|
90
|
+
V(B(o(u).txt), 1)
|
|
83
91
|
]),
|
|
84
92
|
_: 1
|
|
85
93
|
}, 16, ["loading", "disabled"])
|
|
@@ -93,5 +101,5 @@ const q = { class: "dialog-footer" }, ee = /* @__PURE__ */ _({
|
|
|
93
101
|
}
|
|
94
102
|
});
|
|
95
103
|
export {
|
|
96
|
-
|
|
104
|
+
ne as default
|
|
97
105
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-562e6c3d"]]);exports.default=r;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const _ = /* @__PURE__ */ r(o, [["__scopeId", "data-v-562e6c3d"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
_ as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var L=Object.defineProperty;var a=(c,p)=>L(c,"name",{value:p,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),v=,/* empty css */V=,/* empty css */C=,/* empty css */D=,/* empty css */I=,/* empty css */N=,/* empty css */T=,/* empty css */w=,/* empty css */_=e.defineComponent({name:"LSForm"}),A=e.defineComponent({..._,props:V.lsFormProps,emits:["submit","reset","update:form-data","changeSelect","changeRadio"],setup(c,{expose:p,emit:B}){const q=c,u=B,n=e.useAttrs(),S=e.computed(()=>n&&n.hasOwnProperty("inline")?typeof n.inline=="boolean"&&n.inline===!1?{}:n&&n["label-position"]==="top"?{class:"form-item-buttons "}:{}:n&&n["label-position"]==="top"?{"label-position":"top"}:{label:" "}),s=e.ref();let l=e.reactive({});function F(t){t&&(t.resetFields(),u("reset",l))}a(F,"resetForm");async function k(t){t&&await t.validate((o,d)=>{o&&u("submit",l)})}a(k,"submitForm");function $(){return new Promise((t,o)=>{if(!s.value)return t(!1);s.value.validate((d,f)=>{d?t(l):o(f)})})}a($,"validate");function b(t,o){D.default(l,t,o)}a(b,"updateFormData"),e.watch(()=>q.formData,t=>{l=t||{}},{deep:!0,immediate:!0});function g(t,o){u("changeSelect",t,o)}a(g,"changeSelect");function h(t,o){u("changeRadio",t,o)}return a(h,"changeRadio"),p({FormRef:s,validate:$,submitForm:k}),(t,o)=>{const d=I.ElCol,f=N.ElRow,y=T.ElButton,R=w.ElFormItem,E=w.ElForm;return e.openBlock(),e.createBlock(E,e.mergeProps({ref_key:"FormRef",ref:s,"label-position":"left","require-asterisk-position":"right","label-width":t.labelWidth,"hide-required-asterisk":!!t.read},t.$attrs,{model:e.unref(l),disabled:t.loading||t.disabled,class:[t.read&&t.hasDefReadStyle?"show-label":""]}),{default:e.withCtx(()=>[t.column>1?(e.openBlock(),e.createBlock(f,{key:0,gutter:10},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.formItems,r=>(e.openBlock(),e.createBlock(d,{key:r.prop,span:r.isRow?24:24/t.column},{default:e.withCtx(()=>[r.type==="slot"?e.renderSlot(t.$slots,r.prop,{key:0},void 0,!0):(e.openBlock(),e.createBlock(v.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(C.default)(e.unref(l),r.prop),colon:t.colon,read:t.read,"label-empty":t.labelEmpty,ref_for:!0},r,{"onUpdate:value":b,onChangeSelect:g,onChangeRadio:h}),e.createSlots({_:2},[e.renderList(t.$slots,(P,i)=>({name:i,fn:e.withCtx(({row:m})=>[e.renderSlot(t.$slots,i,{row:{...m}},void 0,!0)])}))]),1040,["value","colon","read","label-empty"]))]),_:2},1032,["span"]))),128))]),_:3})):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(t.formItems,r=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:r.prop},[r.type==="slot"?e.renderSlot(t.$slots,r.prop,{key:0},void 0,!0):(e.openBlock(),e.createBlock(v.default,e.mergeProps({key:1,"is-value":!0,value:e.unref(C.default)(e.unref(l),r.prop),colon:t.colon,read:t.read,"label-empty":t.labelEmpty,ref_for:!0},r,{"onUpdate:value":b,onChangeSelect:g,onChangeRadio:h}),e.createSlots({_:2},[e.renderList(t.$slots,(P,i)=>({name:i,fn:e.withCtx(({row:m})=>[e.renderSlot(t.$slots,i,{row:{...m}},void 0,!0)])}))]),1040,["value","colon","read","label-empty"]))],64))),128)),e.renderSlot(t.$slots,"default",{},void 0,!0),t.showButtons?(e.openBlock(),e.createBlock(R,e.mergeProps({key:2},e.unref(S),{class:t.buttonsClass}),{default:e.withCtx(()=>[e.createVNode(y,{type:"primary",class:e.normalizeClass(t.confirmClassName),loading:t.loading&&t.showBtnLoading,onClick:o[0]||(o[0]=r=>k(s.value))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.confirmText),1)]),_:1},8,["class","loading"]),t.showReset?(e.openBlock(),e.createBlock(y,{key:0,onClick:o[1]||(o[1]=r=>F(s.value))},{default:e.withCtx(()=>[e.createTextVNode(" 重置 ")]),_:1})):e.createCommentVNode("",!0)]),_:1},16,["class"])):e.createCommentVNode("",!0)]),_:3},16,["label-width","hide-required-asterisk","model","disabled","class"])}}});exports.default=A;
|