@ganwei-web/gw-base-components-plus 1.0.26 → 1.0.27
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/element-plus-adapter/dist/ElementPlusAdapter.cjs +47 -16
- package/element-plus-adapter/dist/ElementPlusAdapter.cjs.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.css +8 -0
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js +47 -16
- package/element-plus-adapter/dist/ElementPlusAdapter.iife.js.map +1 -1
- package/element-plus-adapter/dist/ElementPlusAdapter.js +48 -17
- package/element-plus-adapter/dist/ElementPlusAdapter.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent, ref, useAttrs, computed, openBlock, createBlock, unref, mergeProps, createSlots, renderList, withCtx, renderSlot, mergeModels, useModel, createElementVNode, normalizeProps, guardReactiveProps, inject, createElementBlock, watch, resolveComponent, createVNode, isVNode } from "vue";
|
|
2
|
-
import { ElButton, ElTag, ElInput, ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElRadio, ElRadioGroup, ElRadioButton, ElSwitch, ElCascader, ElDatePicker, ElTimePicker, ElUpload, ElTransfer, ElTable, ElTableColumn, ElTree, localeContextKey, ElPagination, ElImage, ElProgress, ElBadge, ElCard, ElDescriptions, ElAlert, ElDialog, ElDrawer, ElPopover, ElTooltip, ElNotification as ElNotification$1, vLoading as vLoading$1, ElMenu, ElDropdown, ElTabs, ElTabPane, ElMenuItem, ElSubMenu, ElDropdownMenu, ElDropdownItem, ElCollapse, ElCollapseItem, ElDescriptionsItem, ElMessageBox, ElMessage } from "element-plus";
|
|
2
|
+
import { ElButton, ElTag, ElInput, ElForm, ElFormItem, ElSelect, ElOption, ElCheckbox, ElCheckboxGroup, ElRadio, ElRadioGroup, ElRadioButton, ElSwitch, ElCascader, ElDatePicker, ElTimePicker, ElUpload, ElTransfer, ElTable, ElTableColumn, ElTree, localeContextKey, ElPagination, ElImage, ElProgress, ElBadge, ElCard, ElDescriptions, ElAlert, ElDialog, ElDrawer, ElPopover, ElTooltip, ElNotification as ElNotification$1, vLoading as vLoading$1, ElMenu, ElDropdown, ElTabs, ElTabPane, ElMenuItem, ElSubMenu, ElDropdownMenu, ElDropdownItem, ElCollapse, ElCollapseItem, ElDescriptionsItem, ElMessageBox, ElMessage } from "element-plus";
|
|
3
3
|
import { ElMessage as ElMessage2 } from "element-plus";
|
|
4
4
|
function useExpose(proxyElement) {
|
|
5
5
|
const expose = new Proxy({}, {
|
|
@@ -13,7 +13,7 @@ function useExpose(proxyElement) {
|
|
|
13
13
|
});
|
|
14
14
|
return expose;
|
|
15
15
|
}
|
|
16
|
-
const _sfc_main$
|
|
16
|
+
const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
17
17
|
...{
|
|
18
18
|
inheritAttrs: false
|
|
19
19
|
},
|
|
@@ -61,7 +61,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
const index_vue_vue_type_style_index_0_lang$u = "";
|
|
64
|
-
const _sfc_main$
|
|
64
|
+
const _sfc_main$F = /* @__PURE__ */ defineComponent({
|
|
65
65
|
__name: "index",
|
|
66
66
|
setup(__props, { expose: __expose }) {
|
|
67
67
|
const attrs = useAttrs();
|
|
@@ -93,7 +93,7 @@ function useDataTestId() {
|
|
|
93
93
|
console.warn(`${UI_AUTOMATION_TOKEN} is required to UI Automation`);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
const _sfc_main$
|
|
96
|
+
const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
97
97
|
__name: "ElInput",
|
|
98
98
|
props: {
|
|
99
99
|
"modelValue": {
|
|
@@ -143,7 +143,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
145
|
const ElInput_vue_vue_type_style_index_0_lang = "";
|
|
146
|
-
const _sfc_main$
|
|
146
|
+
const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
147
147
|
__name: "index",
|
|
148
148
|
setup(__props, { expose: __expose }) {
|
|
149
149
|
const proxyElement = ref();
|
|
@@ -168,7 +168,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
168
168
|
}
|
|
169
169
|
});
|
|
170
170
|
const index_vue_vue_type_style_index_0_lang$s = "";
|
|
171
|
-
const _sfc_main$
|
|
171
|
+
const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
172
172
|
__name: "index",
|
|
173
173
|
setup(__props, { expose: __expose }) {
|
|
174
174
|
const attrs = useAttrs();
|
|
@@ -192,7 +192,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
192
192
|
};
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
-
const _sfc_main$
|
|
195
|
+
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
196
196
|
__name: "index",
|
|
197
197
|
setup(__props, { expose: __expose }) {
|
|
198
198
|
const proxyElement = ref();
|
|
@@ -218,7 +218,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
const index_vue_vue_type_style_index_0_lang$r = "";
|
|
221
|
-
const _sfc_main$
|
|
221
|
+
const _sfc_main$A = /* @__PURE__ */ defineComponent({
|
|
222
222
|
__name: "index",
|
|
223
223
|
setup(__props, { expose: __expose }) {
|
|
224
224
|
const attrs = useAttrs();
|
|
@@ -242,7 +242,10 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
|
242
242
|
};
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
const _sfc_main$
|
|
245
|
+
const _sfc_main$z = /* @__PURE__ */ defineComponent({
|
|
246
|
+
...{
|
|
247
|
+
inheritAttrs: false
|
|
248
|
+
},
|
|
246
249
|
__name: "index",
|
|
247
250
|
setup(__props, { expose: __expose }) {
|
|
248
251
|
const proxyElement = ref();
|
|
@@ -267,6 +270,33 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
|
267
270
|
}
|
|
268
271
|
});
|
|
269
272
|
const index_vue_vue_type_style_index_0_lang$q = "";
|
|
273
|
+
const _sfc_main$y = /* @__PURE__ */ defineComponent({
|
|
274
|
+
...{
|
|
275
|
+
inheritAttrs: false
|
|
276
|
+
},
|
|
277
|
+
__name: "index",
|
|
278
|
+
setup(__props, { expose: __expose }) {
|
|
279
|
+
const proxyElement = ref();
|
|
280
|
+
const expose = useExpose(proxyElement);
|
|
281
|
+
__expose(expose);
|
|
282
|
+
const attrs = useAttrs();
|
|
283
|
+
return (_ctx, _cache) => {
|
|
284
|
+
return openBlock(), createBlock(unref(ElCheckboxGroup), mergeProps(unref(attrs), {
|
|
285
|
+
ref_key: "proxyElement",
|
|
286
|
+
ref: proxyElement
|
|
287
|
+
}), createSlots({ _: 2 }, [
|
|
288
|
+
renderList(_ctx.$slots, (value, key) => {
|
|
289
|
+
return {
|
|
290
|
+
name: key,
|
|
291
|
+
fn: withCtx((slotProps) => [
|
|
292
|
+
renderSlot(_ctx.$slots, key, mergeProps(slotProps, { key }))
|
|
293
|
+
])
|
|
294
|
+
};
|
|
295
|
+
})
|
|
296
|
+
]), 1040);
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
});
|
|
270
300
|
const _sfc_main$x = /* @__PURE__ */ defineComponent({
|
|
271
301
|
__name: "index",
|
|
272
302
|
setup(__props, { expose: __expose }) {
|
|
@@ -1325,15 +1355,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
1325
1355
|
const index_vue_vue_type_style_index_0_lang = "";
|
|
1326
1356
|
const Adapter = {
|
|
1327
1357
|
// 基础组件
|
|
1328
|
-
ElButton: _sfc_main$
|
|
1329
|
-
ElTag: _sfc_main$
|
|
1358
|
+
ElButton: _sfc_main$G,
|
|
1359
|
+
ElTag: _sfc_main$F,
|
|
1330
1360
|
// 表单组件
|
|
1331
|
-
ElInput: _sfc_main$
|
|
1332
|
-
ElForm: _sfc_main$
|
|
1333
|
-
ElFormItem: _sfc_main$
|
|
1334
|
-
ElSelect: _sfc_main$
|
|
1335
|
-
ElOption: _sfc_main$
|
|
1336
|
-
ElCheckbox: _sfc_main$
|
|
1361
|
+
ElInput: _sfc_main$E,
|
|
1362
|
+
ElForm: _sfc_main$D,
|
|
1363
|
+
ElFormItem: _sfc_main$C,
|
|
1364
|
+
ElSelect: _sfc_main$B,
|
|
1365
|
+
ElOption: _sfc_main$A,
|
|
1366
|
+
ElCheckbox: _sfc_main$z,
|
|
1367
|
+
ElCheckboxGroup: _sfc_main$y,
|
|
1337
1368
|
ElRadio: _sfc_main$x,
|
|
1338
1369
|
ElRadioGroup: _sfc_main$w,
|
|
1339
1370
|
ElRadioButton: _sfc_main$v,
|