3h1-ui 2.1.33 → 2.1.35
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/es/index.js +19 -32
- package/index.ts +27 -0
- package/lib/index.js +19 -32
- package/package.json +4 -5
package/es/index.js
CHANGED
|
@@ -20186,7 +20186,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20186
20186
|
innerProps.value = props22;
|
|
20187
20187
|
};
|
|
20188
20188
|
const attrs = useAttrs$2();
|
|
20189
|
-
|
|
20189
|
+
useSlots();
|
|
20190
20190
|
const getBindValues = computed(() => {
|
|
20191
20191
|
return {
|
|
20192
20192
|
...basicProps,
|
|
@@ -20204,25 +20204,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20204
20204
|
setPage({ current, pageSize });
|
|
20205
20205
|
reload();
|
|
20206
20206
|
};
|
|
20207
|
-
const
|
|
20208
|
-
|
|
20207
|
+
const getFormConfig = computed(() => {
|
|
20208
|
+
console.log({ ...getProps.value.formConfig });
|
|
20209
|
+
return {
|
|
20210
|
+
...getProps.value.formConfig,
|
|
20211
|
+
showAdvancedButton: true
|
|
20212
|
+
};
|
|
20209
20213
|
});
|
|
20210
|
-
const {
|
|
20211
|
-
getFormProps,
|
|
20212
|
-
replaceFormSlotKey,
|
|
20213
|
-
getFormSlotKeys,
|
|
20214
|
-
handleSearchInfoChange
|
|
20215
|
-
} = useTableForm(getProps, slots, getProps.value.api, getLoading);
|
|
20216
|
-
const getFormConfig = {
|
|
20217
|
-
...props2.formConfig,
|
|
20218
|
-
showAdvancedButton: true,
|
|
20219
|
-
submitButtonOptions: {
|
|
20220
|
-
loading: false
|
|
20221
|
-
},
|
|
20222
|
-
compact: true
|
|
20223
|
-
};
|
|
20224
20214
|
const [registerForm, formActions] = useForm();
|
|
20225
20215
|
const formSearch = ref({});
|
|
20216
|
+
const handleSearchFormSubmit = (form) => {
|
|
20217
|
+
formSearch.value = getProps.value.transSearchInfoBeforeReload(form);
|
|
20218
|
+
reload();
|
|
20219
|
+
};
|
|
20226
20220
|
const params = computed(() => {
|
|
20227
20221
|
return {
|
|
20228
20222
|
...getProps.value.searchInfo,
|
|
@@ -20284,20 +20278,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20284
20278
|
key: 0,
|
|
20285
20279
|
class: normalizeClass(getClassName("search"))
|
|
20286
20280
|
}, [
|
|
20287
|
-
createVNode(unref(BasicForm), mergeProps(
|
|
20288
|
-
|
|
20289
|
-
onSubmit:
|
|
20290
|
-
onReset:
|
|
20291
|
-
|
|
20292
|
-
renderList(unref(getFormSlotKeys), (item) => {
|
|
20293
|
-
return {
|
|
20294
|
-
name: unref(replaceFormSlotKey)(item),
|
|
20295
|
-
fn: withCtx((data) => [
|
|
20296
|
-
renderSlot(_ctx.$slots, item, normalizeProps(guardReactiveProps(data || {})))
|
|
20297
|
-
])
|
|
20298
|
-
};
|
|
20281
|
+
createVNode(unref(BasicForm), mergeProps(unref(getFormConfig), {
|
|
20282
|
+
onRegister: unref(registerForm),
|
|
20283
|
+
onSubmit: handleSearchFormSubmit,
|
|
20284
|
+
onReset: handleSearchFormSubmit,
|
|
20285
|
+
onAdvancedChange: _cache[0] || (_cache[0] = () => {
|
|
20299
20286
|
})
|
|
20300
|
-
|
|
20287
|
+
}), null, 16, ["onRegister"])
|
|
20301
20288
|
], 2)) : createCommentVNode("", true),
|
|
20302
20289
|
unref(getProps).isShowToolbar ? (openBlock(), createElementBlock("div", {
|
|
20303
20290
|
key: 1,
|
|
@@ -20408,9 +20395,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20408
20395
|
size: "small",
|
|
20409
20396
|
total: unref(page).total,
|
|
20410
20397
|
current: unref(page).current,
|
|
20411
|
-
"onUpdate:current": _cache[
|
|
20398
|
+
"onUpdate:current": _cache[1] || (_cache[1] = ($event) => unref(page).current = $event),
|
|
20412
20399
|
"page-size": unref(page).pageSize,
|
|
20413
|
-
"onUpdate:page-size": _cache[
|
|
20400
|
+
"onUpdate:page-size": _cache[2] || (_cache[2] = ($event) => unref(page).pageSize = $event),
|
|
20414
20401
|
pageSizeOptions: unref(page).pageSizeOptions,
|
|
20415
20402
|
"show-size-changer": "",
|
|
20416
20403
|
"show-quick-jumper": "",
|
package/index.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import 'virtual:windi-base.css'
|
|
2
|
+
import 'virtual:windi-components.css'
|
|
3
|
+
import 'virtual:windi-utilities.css'
|
|
4
|
+
import 'ant-design-vue/dist/antd.min.css'
|
|
5
|
+
|
|
6
|
+
export * from './src/Form'
|
|
7
|
+
export * from './src/Container'
|
|
8
|
+
export * from './src/Table'
|
|
9
|
+
export * from './src/Modal'
|
|
10
|
+
export * from './src/Page'
|
|
11
|
+
export * from './src/Description'
|
|
12
|
+
export * from './src/Scrollbar'
|
|
13
|
+
// export * from './src/FlowChart'
|
|
14
|
+
export * from './src/Dropdown'
|
|
15
|
+
export * from './src/Drawer'
|
|
16
|
+
export * from './src/Cropper'
|
|
17
|
+
export * from './src/CountTo'
|
|
18
|
+
export * from './src/CountDown'
|
|
19
|
+
export * from './src/Container'
|
|
20
|
+
export * from './src/ClickOutSide'
|
|
21
|
+
export * from './src/Button'
|
|
22
|
+
export * from './src/Basic'
|
|
23
|
+
export * from './src/Tree'
|
|
24
|
+
export * from './src/Icon'
|
|
25
|
+
export * from './src/Loading'
|
|
26
|
+
export * from './src/StrengthMeter'
|
|
27
|
+
export * from './src/TablePlus'
|
package/lib/index.js
CHANGED
|
@@ -20188,7 +20188,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20188
20188
|
innerProps.value = props22;
|
|
20189
20189
|
};
|
|
20190
20190
|
const attrs = vue.useAttrs();
|
|
20191
|
-
|
|
20191
|
+
vue.useSlots();
|
|
20192
20192
|
const getBindValues = vue.computed(() => {
|
|
20193
20193
|
return {
|
|
20194
20194
|
...basicProps,
|
|
@@ -20206,25 +20206,19 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20206
20206
|
setPage({ current, pageSize });
|
|
20207
20207
|
reload();
|
|
20208
20208
|
};
|
|
20209
|
-
const
|
|
20210
|
-
|
|
20209
|
+
const getFormConfig = vue.computed(() => {
|
|
20210
|
+
console.log({ ...getProps.value.formConfig });
|
|
20211
|
+
return {
|
|
20212
|
+
...getProps.value.formConfig,
|
|
20213
|
+
showAdvancedButton: true
|
|
20214
|
+
};
|
|
20211
20215
|
});
|
|
20212
|
-
const {
|
|
20213
|
-
getFormProps,
|
|
20214
|
-
replaceFormSlotKey,
|
|
20215
|
-
getFormSlotKeys,
|
|
20216
|
-
handleSearchInfoChange
|
|
20217
|
-
} = useTableForm(getProps, slots, getProps.value.api, getLoading);
|
|
20218
|
-
const getFormConfig = {
|
|
20219
|
-
...props2.formConfig,
|
|
20220
|
-
showAdvancedButton: true,
|
|
20221
|
-
submitButtonOptions: {
|
|
20222
|
-
loading: false
|
|
20223
|
-
},
|
|
20224
|
-
compact: true
|
|
20225
|
-
};
|
|
20226
20216
|
const [registerForm, formActions] = useForm();
|
|
20227
20217
|
const formSearch = vue.ref({});
|
|
20218
|
+
const handleSearchFormSubmit = (form) => {
|
|
20219
|
+
formSearch.value = getProps.value.transSearchInfoBeforeReload(form);
|
|
20220
|
+
reload();
|
|
20221
|
+
};
|
|
20228
20222
|
const params = vue.computed(() => {
|
|
20229
20223
|
return {
|
|
20230
20224
|
...getProps.value.searchInfo,
|
|
@@ -20286,20 +20280,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20286
20280
|
key: 0,
|
|
20287
20281
|
class: vue.normalizeClass(getClassName("search"))
|
|
20288
20282
|
}, [
|
|
20289
|
-
vue.createVNode(vue.unref(BasicForm), vue.mergeProps(
|
|
20290
|
-
|
|
20291
|
-
onSubmit:
|
|
20292
|
-
onReset:
|
|
20293
|
-
|
|
20294
|
-
vue.renderList(vue.unref(getFormSlotKeys), (item) => {
|
|
20295
|
-
return {
|
|
20296
|
-
name: vue.unref(replaceFormSlotKey)(item),
|
|
20297
|
-
fn: vue.withCtx((data) => [
|
|
20298
|
-
vue.renderSlot(_ctx.$slots, item, vue.normalizeProps(vue.guardReactiveProps(data || {})))
|
|
20299
|
-
])
|
|
20300
|
-
};
|
|
20283
|
+
vue.createVNode(vue.unref(BasicForm), vue.mergeProps(vue.unref(getFormConfig), {
|
|
20284
|
+
onRegister: vue.unref(registerForm),
|
|
20285
|
+
onSubmit: handleSearchFormSubmit,
|
|
20286
|
+
onReset: handleSearchFormSubmit,
|
|
20287
|
+
onAdvancedChange: _cache[0] || (_cache[0] = () => {
|
|
20301
20288
|
})
|
|
20302
|
-
|
|
20289
|
+
}), null, 16, ["onRegister"])
|
|
20303
20290
|
], 2)) : vue.createCommentVNode("", true),
|
|
20304
20291
|
vue.unref(getProps).isShowToolbar ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
20305
20292
|
key: 1,
|
|
@@ -20410,9 +20397,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20410
20397
|
size: "small",
|
|
20411
20398
|
total: vue.unref(page).total,
|
|
20412
20399
|
current: vue.unref(page).current,
|
|
20413
|
-
"onUpdate:current": _cache[
|
|
20400
|
+
"onUpdate:current": _cache[1] || (_cache[1] = ($event) => vue.unref(page).current = $event),
|
|
20414
20401
|
"page-size": vue.unref(page).pageSize,
|
|
20415
|
-
"onUpdate:page-size": _cache[
|
|
20402
|
+
"onUpdate:page-size": _cache[2] || (_cache[2] = ($event) => vue.unref(page).pageSize = $event),
|
|
20416
20403
|
pageSizeOptions: vue.unref(page).pageSizeOptions,
|
|
20417
20404
|
"show-size-changer": "",
|
|
20418
20405
|
"show-quick-jumper": "",
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "3h1-ui",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.35",
|
|
4
4
|
"description": "",
|
|
5
|
-
"main": "
|
|
6
|
-
"module": "es/index.js",
|
|
5
|
+
"main": "index.ts",
|
|
7
6
|
"files": [
|
|
8
7
|
"es",
|
|
9
8
|
"lib"
|
|
@@ -31,8 +30,8 @@
|
|
|
31
30
|
"vue-types": "^5.0.2",
|
|
32
31
|
"vxe-table": "^4.3.6",
|
|
33
32
|
"xe-utils": "^3.5.7",
|
|
34
|
-
"@shy-plugins/
|
|
35
|
-
"@shy-plugins/
|
|
33
|
+
"@shy-plugins/utils": "1.0.14",
|
|
34
|
+
"@shy-plugins/use": "1.0.3"
|
|
36
35
|
},
|
|
37
36
|
"types": "es/ui/index.d.ts",
|
|
38
37
|
"devDependencies": {
|