wlwy-package 3.2.0 → 3.2.1
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/dist/style.css +1 -1
- package/dist/wlwy-package.es.js +89 -23
- package/package.json +1 -1
- package/dist/types/index.d.ts +0 -17
- package/dist/types/packages/axios/index.d.ts +0 -6
- package/dist/types/packages/axios/service.d.ts +0 -21
- package/dist/types/packages/axios/types/index.d.ts +0 -32
- package/dist/types/packages/components/antd/index.d.ts +0 -10
- package/dist/types/packages/components/antd/src/button.vue.d.ts +0 -10
- package/dist/types/packages/components/antd/src/datePicker.vue.d.ts +0 -16
- package/dist/types/packages/components/antd/src/descriptions-item.vue.d.ts +0 -9
- package/dist/types/packages/components/antd/src/descriptions.vue.d.ts +0 -6
- package/dist/types/packages/components/antd/src/modal.vue.d.ts +0 -30
- package/dist/types/packages/components/antd/src/select.vue.d.ts +0 -14
- package/dist/types/packages/components/antd/src/statistic.vue.d.ts +0 -3
- package/dist/types/packages/components/antd/src/upload.vue.d.ts +0 -40
- package/dist/types/packages/components/antd/type.d.ts +0 -164
- package/dist/types/packages/components/common/index.d.ts +0 -20
- package/dist/types/packages/components/common/src/Redirect.vue.d.ts +0 -2
- package/dist/types/packages/components/common/src/configProvider.vue.d.ts +0 -13
- package/dist/types/packages/components/common/src/cropper.vue.d.ts +0 -29
- package/dist/types/packages/components/common/src/dropdown.vue.d.ts +0 -23
- package/dist/types/packages/components/common/src/editTitle.vue.d.ts +0 -18
- package/dist/types/packages/components/common/src/noData.vue.d.ts +0 -7
- package/dist/types/packages/components/common/src/page.vue.d.ts +0 -38
- package/dist/types/packages/components/common/src/pageHead.vue.d.ts +0 -29
- package/dist/types/packages/components/common/src/rangePicker.vue.d.ts +0 -24
- package/dist/types/packages/components/common/src/slashHeader.vue.d.ts +0 -7
- package/dist/types/packages/components/common/src/upload-modal.vue.d.ts +0 -43
- package/dist/types/packages/components/common/type.d.ts +0 -296
- package/dist/types/packages/components/form/business/index.d.ts +0 -8
- package/dist/types/packages/components/form/business/src/channel.vue.d.ts +0 -5
- package/dist/types/packages/components/form/business/src/country.vue.d.ts +0 -3
- package/dist/types/packages/components/form/business/src/customer.vue.d.ts +0 -6
- package/dist/types/packages/components/form/business/src/sku.vue.d.ts +0 -5
- package/dist/types/packages/components/form/business/type.d.ts +0 -36
- package/dist/types/packages/components/form/default/index.d.ts +0 -44
- package/dist/types/packages/components/form/default/src/checkbox.vue.d.ts +0 -18
- package/dist/types/packages/components/form/default/src/custom.vue.d.ts +0 -14
- package/dist/types/packages/components/form/default/src/datePicker.vue.d.ts +0 -6
- package/dist/types/packages/components/form/default/src/dateRange.vue.d.ts +0 -10
- package/dist/types/packages/components/form/default/src/form.vue.d.ts +0 -433
- package/dist/types/packages/components/form/default/src/formCol.vue.d.ts +0 -16
- package/dist/types/packages/components/form/default/src/formItem.vue.d.ts +0 -20
- package/dist/types/packages/components/form/default/src/formItemRest.vue.d.ts +0 -2
- package/dist/types/packages/components/form/default/src/input.vue.d.ts +0 -26
- package/dist/types/packages/components/form/default/src/inputI18n.vue.d.ts +0 -14
- package/dist/types/packages/components/form/default/src/inputMatch.vue.d.ts +0 -18
- package/dist/types/packages/components/form/default/src/inputNumber.vue.d.ts +0 -16
- package/dist/types/packages/components/form/default/src/inputPassword.vue.d.ts +0 -16
- package/dist/types/packages/components/form/default/src/inputTags.vue.d.ts +0 -21
- package/dist/types/packages/components/form/default/src/modal.vue.d.ts +0 -46
- package/dist/types/packages/components/form/default/src/numberRange.vue.d.ts +0 -9
- package/dist/types/packages/components/form/default/src/page.vue.d.ts +0 -48
- package/dist/types/packages/components/form/default/src/radio.vue.d.ts +0 -18
- package/dist/types/packages/components/form/default/src/select.vue.d.ts +0 -21
- package/dist/types/packages/components/form/default/src/selectInput.vue.d.ts +0 -13
- package/dist/types/packages/components/form/default/src/textarea.vue.d.ts +0 -14
- package/dist/types/packages/components/form/default/src/timePicker.vue.d.ts +0 -6
- package/dist/types/packages/components/form/default/src/upload-image.vue.d.ts +0 -23
- package/dist/types/packages/components/form/default/src/upload.vue.d.ts +0 -12
- package/dist/types/packages/components/form/default/src/wrap.vue.d.ts +0 -56
- package/dist/types/packages/components/form/default/type.d.ts +0 -680
- package/dist/types/packages/components/form/index.d.ts +0 -2
- package/dist/types/packages/components/form/type.d.ts +0 -2
- package/dist/types/packages/components/icon/index.d.ts +0 -4
- package/dist/types/packages/components/icon/src/icon.vue.d.ts +0 -12
- package/dist/types/packages/components/icon/src/index.vue.d.ts +0 -9
- package/dist/types/packages/components/icon/src/switch.vue.d.ts +0 -18
- package/dist/types/packages/components/icon/type.d.ts +0 -41
- package/dist/types/packages/components/index.d.ts +0 -7
- package/dist/types/packages/components/layout/blank.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/index.d.ts +0 -7
- package/dist/types/packages/components/layout/index.vue.d.ts +0 -9
- package/dist/types/packages/components/layout/skeleton/list.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/skeleton/switch.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/footer.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/header/index.vue.d.ts +0 -10
- package/dist/types/packages/components/layout/src/header/modules/download.vue.d.ts +0 -6
- package/dist/types/packages/components/layout/src/header/modules/language.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/header/modules/password-modal.vue.d.ts +0 -9
- package/dist/types/packages/components/layout/src/header/modules/topMenu.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/header/modules/warehouse.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/logo.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/siderMenu.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/src/subMenuItem.vue.d.ts +0 -6
- package/dist/types/packages/components/layout/src/tabsNav.vue.d.ts +0 -2
- package/dist/types/packages/components/layout/type.d.ts +0 -17
- package/dist/types/packages/components/lazy/charts/index.d.ts +0 -21
- package/dist/types/packages/components/lazy/charts/index.vue.d.ts +0 -7
- package/dist/types/packages/components/lazy/editor/editor-core.vue.d.ts +0 -36
- package/dist/types/packages/components/lazy/editor/index.d.ts +0 -3
- package/dist/types/packages/components/lazy/editor/index.vue.d.ts +0 -35
- package/dist/types/packages/components/lazy/editor/type.d.ts +0 -62
- package/dist/types/packages/components/list/index.d.ts +0 -7
- package/dist/types/packages/components/list/input.d.ts +0 -432
- package/dist/types/packages/components/list/src/header.vue.d.ts +0 -44
- package/dist/types/packages/components/list/src/index.vue.d.ts +0 -68
- package/dist/types/packages/components/list/src/pager.vue.d.ts +0 -10
- package/dist/types/packages/components/list/src/table.vue.d.ts +0 -774
- package/dist/types/packages/components/list/type.d.ts +0 -346
- package/dist/types/packages/components/table/constants.d.ts +0 -15
- package/dist/types/packages/components/table/index.d.ts +0 -7
- package/dist/types/packages/components/table/resolveInjectColumns.d.ts +0 -17
- package/dist/types/packages/components/table/src/action-column.vue.d.ts +0 -11
- package/dist/types/packages/components/table/src/column.vue.d.ts +0 -82
- package/dist/types/packages/components/table/src/pager.vue.d.ts +0 -314
- package/dist/types/packages/components/table/src/search.vue.d.ts +0 -34
- package/dist/types/packages/components/table/src/table.vue.d.ts +0 -802
- package/dist/types/packages/components/table/type.d.ts +0 -179
- package/dist/types/packages/components/table/useWTableConfig.d.ts +0 -34
- package/dist/types/packages/components/table/vxeDefaultConfig.d.ts +0 -8
- package/dist/types/packages/components/table/warnDeprecated.d.ts +0 -6
- package/dist/types/packages/config.d.ts +0 -27
- package/dist/types/packages/directive/auth.d.ts +0 -4
- package/dist/types/packages/directive/auths.d.ts +0 -4
- package/dist/types/packages/directive/index.d.ts +0 -6
- package/dist/types/packages/hooks/business/index.d.ts +0 -4
- package/dist/types/packages/hooks/business/src/index.d.ts +0 -4
- package/dist/types/packages/hooks/business/src/useCountryDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/src/useCurrencyDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/src/useCustomerDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/src/useWarehouseZoneDict.d.ts +0 -22
- package/dist/types/packages/hooks/business/useBusinessDict.d.ts +0 -2
- package/dist/types/packages/hooks/business/useDict.d.ts +0 -25
- package/dist/types/packages/hooks/index.d.ts +0 -2
- package/dist/types/packages/hooks/private/index.d.ts +0 -2
- package/dist/types/packages/hooks/private/src/useKey.d.ts +0 -1
- package/dist/types/packages/hooks/private/src/useRenderCell.d.ts +0 -71
- package/dist/types/packages/hooks/web/index.d.ts +0 -17
- package/dist/types/packages/hooks/web/src/useAffix.d.ts +0 -19
- package/dist/types/packages/hooks/web/src/useCatchPreloadError.d.ts +0 -6
- package/dist/types/packages/hooks/web/src/useCookie.d.ts +0 -11
- package/dist/types/packages/hooks/web/src/useEmitBack.d.ts +0 -3
- package/dist/types/packages/hooks/web/src/useEnum.d.ts +0 -24
- package/dist/types/packages/hooks/web/src/useExport.d.ts +0 -4
- package/dist/types/packages/hooks/web/src/useFormItemProps.d.ts +0 -22
- package/dist/types/packages/hooks/web/src/useFormStorage.d.ts +0 -18
- package/dist/types/packages/hooks/web/src/useI18n.d.ts +0 -26
- package/dist/types/packages/hooks/web/src/useListConfig.d.ts +0 -16
- package/dist/types/packages/hooks/web/src/useLocale.d.ts +0 -6
- package/dist/types/packages/hooks/web/src/useNProgress.d.ts +0 -5
- package/dist/types/packages/hooks/web/src/usePageForm.d.ts +0 -9
- package/dist/types/packages/hooks/web/src/usePrefixTitle.d.ts +0 -7
- package/dist/types/packages/hooks/web/src/useTabsNav.d.ts +0 -13
- package/dist/types/packages/hooks/web/src/useUpload.d.ts +0 -1
- package/dist/types/packages/hooks/web/src/useWatchForm.d.ts +0 -10
- package/dist/types/packages/hooks/web/src/useWindowSize.d.ts +0 -8
- package/dist/types/packages/index.d.ts +0 -21
- package/dist/types/packages/keys/index.d.ts +0 -6
- package/dist/types/packages/keys/public.d.ts +0 -0
- package/dist/types/packages/plugins/index.d.ts +0 -1
- package/dist/types/packages/plugins/vueI18n/helper.d.ts +0 -1
- package/dist/types/packages/plugins/vueI18n/index.d.ts +0 -14
- package/dist/types/packages/setup/index.d.ts +0 -1
- package/dist/types/packages/setup/vxe.d.ts +0 -10
- package/dist/types/packages/store/index.d.ts +0 -9
- package/dist/types/packages/store/modules/common.d.ts +0 -50
- package/dist/types/packages/store/modules/dict.d.ts +0 -436
- package/dist/types/packages/store/modules/language.d.ts +0 -182
- package/dist/types/packages/store/modules/tagsNav.d.ts +0 -156
- package/dist/types/packages/store/modules/userPermission.d.ts +0 -60
- package/dist/types/packages/type.d.ts +0 -44
- package/dist/types/packages/utils/config.d.ts +0 -1
- package/dist/types/packages/utils/createRefInstanceProxy.d.ts +0 -13
- package/dist/types/packages/utils/formatCellValue.d.ts +0 -82
- package/dist/types/packages/utils/getPrefixTitle.d.ts +0 -5
- package/dist/types/packages/utils/index.d.ts +0 -48
- package/dist/types/packages/utils/type.d.ts +0 -6
- package/dist/types/packages/utils/warehouse.d.ts +0 -30
package/dist/wlwy-package.es.js
CHANGED
|
@@ -943,7 +943,7 @@ const _sfc_main$16 = /* @__PURE__ */ defineComponent({
|
|
|
943
943
|
}
|
|
944
944
|
});
|
|
945
945
|
const configProvider = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["__scopeId", "data-v-f1ca2106"]]);
|
|
946
|
-
const _hoisted_1$
|
|
946
|
+
const _hoisted_1$v = { class: "no-data" };
|
|
947
947
|
const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
948
948
|
__name: "noData",
|
|
949
949
|
props: {
|
|
@@ -960,7 +960,7 @@ const _sfc_main$15 = /* @__PURE__ */ defineComponent({
|
|
|
960
960
|
return props.msg ? t3(props.msg) : props.msg;
|
|
961
961
|
});
|
|
962
962
|
return (_ctx, _cache) => {
|
|
963
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
963
|
+
return openBlock(), createElementBlock("div", _hoisted_1$v, toDisplayString(msg.value), 1);
|
|
964
964
|
};
|
|
965
965
|
}
|
|
966
966
|
});
|
|
@@ -2091,7 +2091,7 @@ const _sfc_main$14 = /* @__PURE__ */ defineComponent({
|
|
|
2091
2091
|
};
|
|
2092
2092
|
}
|
|
2093
2093
|
});
|
|
2094
|
-
const _hoisted_1$
|
|
2094
|
+
const _hoisted_1$u = { class: "w-card-title" };
|
|
2095
2095
|
const _hoisted_2$g = { class: "right" };
|
|
2096
2096
|
const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
2097
2097
|
...{
|
|
@@ -2187,7 +2187,7 @@ const _sfc_main$13 = /* @__PURE__ */ defineComponent({
|
|
|
2187
2187
|
title.value || _ctx.$slots.title ? {
|
|
2188
2188
|
name: "title",
|
|
2189
2189
|
fn: withCtx(() => [
|
|
2190
|
-
createElementVNode("div", _hoisted_1$
|
|
2190
|
+
createElementVNode("div", _hoisted_1$u, [
|
|
2191
2191
|
createElementVNode("div", {
|
|
2192
2192
|
class: normalizeClass(["title", { required: props.required }])
|
|
2193
2193
|
}, [
|
|
@@ -2784,7 +2784,7 @@ const _sfc_main$Z = /* @__PURE__ */ defineComponent({
|
|
|
2784
2784
|
};
|
|
2785
2785
|
}
|
|
2786
2786
|
});
|
|
2787
|
-
const _hoisted_1$
|
|
2787
|
+
const _hoisted_1$t = {
|
|
2788
2788
|
key: 0,
|
|
2789
2789
|
class: "ant-upload-drag-icon"
|
|
2790
2790
|
};
|
|
@@ -2928,7 +2928,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2928
2928
|
onChange: handleChange
|
|
2929
2929
|
}), {
|
|
2930
2930
|
default: withCtx(() => [
|
|
2931
|
-
uploadIcon.value || _ctx.$slots.uploadIcon ? (openBlock(), createElementBlock("p", _hoisted_1$
|
|
2931
|
+
uploadIcon.value || _ctx.$slots.uploadIcon ? (openBlock(), createElementBlock("p", _hoisted_1$t, [
|
|
2932
2932
|
renderSlot(_ctx.$slots, "uploadIcon", {}, () => [
|
|
2933
2933
|
createVNode(unref(WIcon), { type: uploadIcon.value }, null, 8, ["type"])
|
|
2934
2934
|
], true)
|
|
@@ -2979,7 +2979,7 @@ const _sfc_main$Y = /* @__PURE__ */ defineComponent({
|
|
|
2979
2979
|
}
|
|
2980
2980
|
});
|
|
2981
2981
|
const upload = /* @__PURE__ */ _export_sfc(_sfc_main$Y, [["__scopeId", "data-v-1fb3c2b7"]]);
|
|
2982
|
-
const _hoisted_1$
|
|
2982
|
+
const _hoisted_1$s = { class: "cropper-content" };
|
|
2983
2983
|
const _hoisted_2$e = { class: "cropper" };
|
|
2984
2984
|
const _hoisted_3$b = ["src"];
|
|
2985
2985
|
const _hoisted_4$a = { class: "footer-btn" };
|
|
@@ -3106,7 +3106,7 @@ const _sfc_main$X = /* @__PURE__ */ defineComponent({
|
|
|
3106
3106
|
onOk: getCrop
|
|
3107
3107
|
}, {
|
|
3108
3108
|
default: withCtx(() => [
|
|
3109
|
-
createElementVNode("div", _hoisted_1$
|
|
3109
|
+
createElementVNode("div", _hoisted_1$s, [
|
|
3110
3110
|
createElementVNode("div", _hoisted_2$e, [
|
|
3111
3111
|
createVNode(unref(M), mergeProps({
|
|
3112
3112
|
ref_key: "cropper",
|
|
@@ -3559,7 +3559,7 @@ const _sfc_main$W = /* @__PURE__ */ defineComponent({
|
|
|
3559
3559
|
};
|
|
3560
3560
|
}
|
|
3561
3561
|
});
|
|
3562
|
-
const _hoisted_1$
|
|
3562
|
+
const _hoisted_1$r = { class: "w-table-container" };
|
|
3563
3563
|
const _hoisted_2$d = {
|
|
3564
3564
|
key: 0,
|
|
3565
3565
|
class: "w-table-selection-summary"
|
|
@@ -3854,7 +3854,7 @@ const _sfc_main$V = /* @__PURE__ */ defineComponent({
|
|
|
3854
3854
|
emit("pageChange", args);
|
|
3855
3855
|
}
|
|
3856
3856
|
return (_ctx, _cache) => {
|
|
3857
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
3857
|
+
return openBlock(), createElementBlock("div", _hoisted_1$r, [
|
|
3858
3858
|
showToolbar.value ? (openBlock(), createBlock(unref(VxeToolbar), mergeProps({
|
|
3859
3859
|
key: 0,
|
|
3860
3860
|
ref_key: "xToolbarRef",
|
|
@@ -4218,6 +4218,10 @@ const _sfc_main$T = /* @__PURE__ */ defineComponent({
|
|
|
4218
4218
|
};
|
|
4219
4219
|
}
|
|
4220
4220
|
});
|
|
4221
|
+
const _hoisted_1$q = {
|
|
4222
|
+
key: 0,
|
|
4223
|
+
class: "form-row-wrapper"
|
|
4224
|
+
};
|
|
4221
4225
|
const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
4222
4226
|
...{
|
|
4223
4227
|
name: "WForm"
|
|
@@ -4267,6 +4271,37 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4267
4271
|
offset: 0
|
|
4268
4272
|
};
|
|
4269
4273
|
});
|
|
4274
|
+
const slots = useSlots();
|
|
4275
|
+
const categorizedNodes = computed(() => {
|
|
4276
|
+
var _a, _b;
|
|
4277
|
+
const leftNodes = [];
|
|
4278
|
+
const rightNodes = [];
|
|
4279
|
+
const normalNodes = [];
|
|
4280
|
+
const slotContent = (_a = slots.default) == null ? void 0 : _a.call(slots);
|
|
4281
|
+
if (slotContent) {
|
|
4282
|
+
for (const node of slotContent) {
|
|
4283
|
+
if (typeof node !== "object" || node === null) {
|
|
4284
|
+
normalNodes.push(node);
|
|
4285
|
+
continue;
|
|
4286
|
+
}
|
|
4287
|
+
const vnode = node;
|
|
4288
|
+
const flexExtra = (_b = vnode.props) == null ? void 0 : _b["flex-extra"];
|
|
4289
|
+
if (flexExtra === "left") {
|
|
4290
|
+
leftNodes.push(vnode);
|
|
4291
|
+
} else if (flexExtra === "right") {
|
|
4292
|
+
rightNodes.push(vnode);
|
|
4293
|
+
} else {
|
|
4294
|
+
normalNodes.push(vnode);
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
}
|
|
4298
|
+
return { leftNodes, rightNodes, normalNodes };
|
|
4299
|
+
});
|
|
4300
|
+
const flexExtraLeftNodes = computed(() => categorizedNodes.value.leftNodes);
|
|
4301
|
+
const flexExtraRightNodes = computed(() => categorizedNodes.value.rightNodes);
|
|
4302
|
+
const normalSlotNodes = computed(() => categorizedNodes.value.normalNodes);
|
|
4303
|
+
const hasFlexExtraLeft = computed(() => flexExtraLeftNodes.value.length > 0);
|
|
4304
|
+
const hasFlexExtraRight = computed(() => flexExtraRightNodes.value.length > 0);
|
|
4270
4305
|
const { useProvideData, useProvideDisabled, useProvideColumn, useProvideLabelCol, useProvideWrapperCol, useProvideCard } = useFormStorage();
|
|
4271
4306
|
useProvideData(computed(() => props.model));
|
|
4272
4307
|
useProvideDisabled(computed(() => props.disabled));
|
|
@@ -4289,25 +4324,56 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
4289
4324
|
model: props.model
|
|
4290
4325
|
}), {
|
|
4291
4326
|
default: withCtx(() => [
|
|
4292
|
-
props.column && !props.card ? (openBlock(),
|
|
4293
|
-
|
|
4294
|
-
|
|
4295
|
-
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4327
|
+
props.column && !props.card ? (openBlock(), createElementBlock("div", _hoisted_1$q, [
|
|
4328
|
+
hasFlexExtraLeft.value ? (openBlock(), createBlock(unref(Space), {
|
|
4329
|
+
key: 0,
|
|
4330
|
+
class: "flex-extra-left"
|
|
4331
|
+
}, {
|
|
4332
|
+
default: withCtx(() => [
|
|
4333
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(flexExtraLeftNodes.value, (node, index2) => {
|
|
4334
|
+
return openBlock(), createBlock(resolveDynamicComponent(node), {
|
|
4335
|
+
key: `flex-left-${index2}`
|
|
4336
|
+
});
|
|
4337
|
+
}), 128))
|
|
4338
|
+
]),
|
|
4339
|
+
_: 1
|
|
4340
|
+
})) : createCommentVNode("", true),
|
|
4341
|
+
createVNode(unref(Row), {
|
|
4342
|
+
class: "form-row",
|
|
4343
|
+
wrap: "",
|
|
4344
|
+
gutter: props.gutter,
|
|
4345
|
+
align: props.align
|
|
4346
|
+
}, {
|
|
4347
|
+
default: withCtx(() => [
|
|
4348
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(normalSlotNodes.value, (node, index2) => {
|
|
4349
|
+
return openBlock(), createBlock(resolveDynamicComponent(node), {
|
|
4350
|
+
key: `form-item-${index2}`
|
|
4351
|
+
});
|
|
4352
|
+
}), 128))
|
|
4353
|
+
]),
|
|
4354
|
+
_: 1
|
|
4355
|
+
}, 8, ["gutter", "align"]),
|
|
4356
|
+
hasFlexExtraRight.value ? (openBlock(), createBlock(unref(Space), {
|
|
4357
|
+
key: 1,
|
|
4358
|
+
class: "flex-extra-right"
|
|
4359
|
+
}, {
|
|
4360
|
+
default: withCtx(() => [
|
|
4361
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(flexExtraRightNodes.value, (node, index2) => {
|
|
4362
|
+
return openBlock(), createBlock(resolveDynamicComponent(node), {
|
|
4363
|
+
key: `flex-right-${index2}`
|
|
4364
|
+
});
|
|
4365
|
+
}), 128))
|
|
4366
|
+
]),
|
|
4367
|
+
_: 1
|
|
4368
|
+
})) : createCommentVNode("", true)
|
|
4369
|
+
])) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
|
|
4304
4370
|
]),
|
|
4305
4371
|
_: 3
|
|
4306
4372
|
}, 16, ["scrollToFirstError", "layout", "label-align", "label-col", "wrapper-col", "disabled", "name", "model"]);
|
|
4307
4373
|
};
|
|
4308
4374
|
}
|
|
4309
4375
|
});
|
|
4310
|
-
const WForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-
|
|
4376
|
+
const WForm = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-6b613d1a"]]);
|
|
4311
4377
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
4312
4378
|
...{
|
|
4313
4379
|
name: "WFormCol",
|
package/package.json
CHANGED
package/dist/types/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { App } from 'vue';
|
|
2
|
-
import type { Config } from './packages';
|
|
3
|
-
declare const wlwyPackage: {
|
|
4
|
-
install: (app: App) => void;
|
|
5
|
-
setConfig: (options: Config) => void;
|
|
6
|
-
};
|
|
7
|
-
export * from './packages/components';
|
|
8
|
-
export * from './packages/store';
|
|
9
|
-
export * from './packages/hooks';
|
|
10
|
-
export * from './packages/plugins';
|
|
11
|
-
export * from './packages/setup';
|
|
12
|
-
export * from './packages/type';
|
|
13
|
-
export { default as WCharts, type WChartsProps, type WChartsInstance } from './packages/components/lazy/charts';
|
|
14
|
-
export { default as WEditor, type WEditorInstance, type WEditorProps, type InsertFnType, type customUploadFnType } from './packages/components/lazy/editor';
|
|
15
|
-
export { useService, type ServiceType } from './packages/axios';
|
|
16
|
-
export { getTitle } from './packages/utils';
|
|
17
|
-
export default wlwyPackage;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { type AxiosResponse } from 'axios';
|
|
2
|
-
import type { ServiceOptions, ApiResponse, RequestConfig } from './types';
|
|
3
|
-
export declare class service {
|
|
4
|
-
private readonly instance;
|
|
5
|
-
private readonly interceptors?;
|
|
6
|
-
private readonly showLoading?;
|
|
7
|
-
private spinning?;
|
|
8
|
-
private readonly tokenKey;
|
|
9
|
-
constructor(config: ServiceOptions);
|
|
10
|
-
request<T = any>(config: RequestConfig, spinning?: boolean): Promise<AxiosResponse<T>>;
|
|
11
|
-
options<T = any>(url: string, config: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
12
|
-
GET<T = any>(url: string, params?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
13
|
-
DELETE<T = any>(url: string, params: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
14
|
-
POST<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
15
|
-
PUT<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
16
|
-
PATCH<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
17
|
-
UPLOAD<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
18
|
-
EXPORT<T = any>(url: string, data?: any, config?: RequestConfig, spinning?: boolean): Promise<ApiResponse<T>>;
|
|
19
|
-
}
|
|
20
|
-
export default service;
|
|
21
|
-
export type ServiceType = Omit<InstanceType<typeof service>, 'interceptors' | 'showLoading' | 'tokenKey' | 'config' | 'instance' | 'spinning'>;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { AxiosError, AxiosRequestConfig, AxiosResponse, InternalAxiosRequestConfig } from 'axios';
|
|
2
|
-
export type TokenKeys = 'ttoken' | 'ctoken' | 'ptoken';
|
|
3
|
-
export interface ServiceOptions extends RequestConfig {
|
|
4
|
-
tokenKey?: TokenKeys;
|
|
5
|
-
interceptors?: RequestInterceptors;
|
|
6
|
-
showLoading?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type RequestInterceptors = {
|
|
9
|
-
requestInterceptor?: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
|
|
10
|
-
requestInterceptorCatch?: (error: AxiosError) => AxiosError;
|
|
11
|
-
responseInterceptor?: (res: AxiosResponse) => AxiosResponse;
|
|
12
|
-
responseInterceptorCatch?: (error: AxiosError) => AxiosError;
|
|
13
|
-
};
|
|
14
|
-
export interface RequestConfig extends Omit<AxiosRequestConfig, 'headers'> {
|
|
15
|
-
headers?: AxiosRequestConfig['headers'] & {
|
|
16
|
-
OriginalResponse?: boolean;
|
|
17
|
-
Satoken?: string;
|
|
18
|
-
Language?: string;
|
|
19
|
-
'System-Type'?: string;
|
|
20
|
-
timezone?: string;
|
|
21
|
-
warehouse_id?: string;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
export type ApiResponse<T> = {
|
|
25
|
-
code: string;
|
|
26
|
-
errors: string;
|
|
27
|
-
fail: boolean;
|
|
28
|
-
message: string;
|
|
29
|
-
success: boolean;
|
|
30
|
-
result: T;
|
|
31
|
-
timestamp: number;
|
|
32
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type { FooterButtonType, WButtonProps, WCardProps, WDatePickerProps, WDescriptionsProps, WDescriptionsItemProps, WModalProps, WStatisticProps, WUploadProps } from './type';
|
|
2
|
-
export { default as WButton } from './src/button.vue';
|
|
3
|
-
export { default as WCard } from './src/card.vue';
|
|
4
|
-
export { default as WDatePicker } from './src/datePicker.vue';
|
|
5
|
-
export { default as WDescriptions } from './src/descriptions.vue';
|
|
6
|
-
export { default as WDescriptionsItem } from './src/descriptions-item.vue';
|
|
7
|
-
export { default as WModal } from './src/modal.vue';
|
|
8
|
-
export { default as WSelect } from './src/select.vue';
|
|
9
|
-
export { default as WStatistic } from './src/statistic.vue';
|
|
10
|
-
export { default as WUpload } from './src/upload.vue';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { WButtonProps } from '../type';
|
|
2
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<WButtonProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WButtonProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
3
|
-
default?: ((props: {}) => any) | undefined;
|
|
4
|
-
}>;
|
|
5
|
-
export default _default;
|
|
6
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
7
|
-
new (): {
|
|
8
|
-
$slots: S;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { WDatePickerProps } from '../type';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
type __VLS_Props = WDatePickerProps;
|
|
4
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
-
modelValue?: dayjs.Dayjs | string;
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
"update:modelValue": (value: string | dayjs.Dayjs | undefined) => any;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
10
|
-
"onUpdate:modelValue"?: ((value: string | dayjs.Dayjs | undefined) => any) | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
picker: "time" | "date" | "week" | "month" | "quarter" | "year";
|
|
13
|
-
allowClear: boolean;
|
|
14
|
-
futureTimeAllowed: boolean;
|
|
15
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import("vue").PublicProps>, {
|
|
2
|
-
default?: ((props: {}) => any) | undefined;
|
|
3
|
-
}>;
|
|
4
|
-
export default _default;
|
|
5
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
6
|
-
new (): {
|
|
7
|
-
$slots: S;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { WDescriptionsProps } from '../type';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<WDescriptionsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WDescriptionsProps> & Readonly<{}>, {
|
|
3
|
-
size: "default" | "small" | "middle";
|
|
4
|
-
bordered: boolean;
|
|
5
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
6
|
-
export default _default;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { WModalProps } from '../type';
|
|
2
|
-
type __VLS_Props = WModalProps;
|
|
3
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
-
'open'?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare var __VLS_12: string | number, __VLS_13: any, __VLS_15: {};
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
[K in NonNullable<typeof __VLS_12>]?: (props: typeof __VLS_13) => any;
|
|
9
|
-
} & {
|
|
10
|
-
title?: (props: typeof __VLS_15) => any;
|
|
11
|
-
};
|
|
12
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
cancel: (event: MouseEvent) => any;
|
|
14
|
-
ok: (event: MouseEvent) => any;
|
|
15
|
-
"update:open": (value: boolean) => any;
|
|
16
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
17
|
-
onCancel?: ((event: MouseEvent) => any) | undefined;
|
|
18
|
-
onOk?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
20
|
-
}>, {
|
|
21
|
-
title: string;
|
|
22
|
-
destroyOnClose: boolean;
|
|
23
|
-
hideFooter: boolean | import("../type").FooterButtonType[];
|
|
24
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
25
|
-
export default _default;
|
|
26
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
27
|
-
new (): {
|
|
28
|
-
$slots: S;
|
|
29
|
-
};
|
|
30
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { type SelectProps } from 'ant-design-vue';
|
|
2
|
-
type PropsType = Pick<SelectProps, 'tokenSeparators' | 'mode' | 'onChange'>;
|
|
3
|
-
type __VLS_Props = PropsType;
|
|
4
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
5
|
-
'value'?: SelectProps['value'];
|
|
6
|
-
};
|
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, any, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
change: (value: import("ant-design-vue/es/select").SelectValue, option: import("ant-design-vue/es/select").DefaultOptionType | import("ant-design-vue/es/select").DefaultOptionType[]) => any;
|
|
9
|
-
"update:value": (value: (string | number) | (string | number)[] | import("ant-design-vue/es/select").LabeledValue | import("ant-design-vue/es/select").LabeledValue[] | undefined) => any;
|
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
11
|
-
onChange?: ((value: import("ant-design-vue/es/select").SelectValue, option: import("ant-design-vue/es/select").DefaultOptionType | import("ant-design-vue/es/select").DefaultOptionType[]) => any) | undefined;
|
|
12
|
-
"onUpdate:value"?: ((value: (string | number) | (string | number)[] | import("ant-design-vue/es/select").LabeledValue | import("ant-design-vue/es/select").LabeledValue[] | undefined) => any) | undefined;
|
|
13
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
-
export default _default;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { WStatisticProps } from '../type';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<WStatisticProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<WStatisticProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { type UploadFile } from 'ant-design-vue';
|
|
2
|
-
import type { WUploadProps } from '../type';
|
|
3
|
-
type ValueType = string[] | string;
|
|
4
|
-
type __VLS_Props = WUploadProps;
|
|
5
|
-
type __VLS_PublicProps = __VLS_Props & {
|
|
6
|
-
'value'?: ValueType;
|
|
7
|
-
};
|
|
8
|
-
declare var __VLS_10: {}, __VLS_16: {}, __VLS_18: {}, __VLS_33: {}, __VLS_39: {};
|
|
9
|
-
type __VLS_Slots = {} & {
|
|
10
|
-
uploadIcon?: (props: typeof __VLS_10) => any;
|
|
11
|
-
} & {
|
|
12
|
-
uploadText?: (props: typeof __VLS_16) => any;
|
|
13
|
-
} & {
|
|
14
|
-
uploadHint?: (props: typeof __VLS_18) => any;
|
|
15
|
-
} & {
|
|
16
|
-
uploadIcon?: (props: typeof __VLS_33) => any;
|
|
17
|
-
} & {
|
|
18
|
-
uploadText?: (props: typeof __VLS_39) => any;
|
|
19
|
-
};
|
|
20
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
-
"update:value": (value: ValueType | undefined) => any;
|
|
22
|
-
} & {
|
|
23
|
-
change: (value?: string | string[] | undefined) => any;
|
|
24
|
-
remove: (value: UploadFile<any>) => any;
|
|
25
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
26
|
-
onChange?: ((value?: string | string[] | undefined) => any) | undefined;
|
|
27
|
-
onRemove?: ((value: UploadFile<any>) => any) | undefined;
|
|
28
|
-
"onUpdate:value"?: ((value: ValueType | undefined) => any) | undefined;
|
|
29
|
-
}>, {
|
|
30
|
-
dragger: boolean;
|
|
31
|
-
fieldName: string;
|
|
32
|
-
fileName: string;
|
|
33
|
-
maxSize: number;
|
|
34
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, __VLS_Slots>;
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import type { CardProps, DatePickerProps, DescriptionsProps, ModalProps, UploadProps } from 'ant-design-vue';
|
|
2
|
-
import type { UseWindowSizeType } from '../../type';
|
|
3
|
-
import type { RenderCellProps } from '../../hooks/private';
|
|
4
|
-
import type { WIconProp } from '../icon';
|
|
5
|
-
import type { Component } from 'vue';
|
|
6
|
-
export type FooterButtonType = 'ok' | 'cancel' | 'refresh';
|
|
7
|
-
type WidthType = [UseWindowSizeType['NumType']] | [UseWindowSizeType['NumType'], UseWindowSizeType['NumType']] | [UseWindowSizeType['NumType'], UseWindowSizeType['NumType'], UseWindowSizeType['ComparedType']];
|
|
8
|
-
export type WDescriptionsProps = {
|
|
9
|
-
/**
|
|
10
|
-
* 描述列表数据,同 w-form 的 model;未传时透传上层 provide 的数据
|
|
11
|
-
*/
|
|
12
|
-
model?: Record<string, any>;
|
|
13
|
-
/**
|
|
14
|
-
* 是否展示边框
|
|
15
|
-
* @default true
|
|
16
|
-
*/
|
|
17
|
-
bordered?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* 设置列表的大小
|
|
20
|
-
* @default 'middle'
|
|
21
|
-
*/
|
|
22
|
-
size?: DescriptionsProps['size'];
|
|
23
|
-
};
|
|
24
|
-
export type WDescriptionsItemProps = RenderCellProps & {
|
|
25
|
-
/**
|
|
26
|
-
* label
|
|
27
|
-
*/
|
|
28
|
-
label?: string;
|
|
29
|
-
/**
|
|
30
|
-
* 默认值
|
|
31
|
-
* @default '-'
|
|
32
|
-
*/
|
|
33
|
-
defaultValue?: string;
|
|
34
|
-
/**
|
|
35
|
-
* 所占列数,同 a-descriptions-item
|
|
36
|
-
* @default 1
|
|
37
|
-
*/
|
|
38
|
-
span?: number;
|
|
39
|
-
};
|
|
40
|
-
export interface WButtonProps extends Pick<WIconProp, 'authCode'> {
|
|
41
|
-
/**
|
|
42
|
-
* 图标
|
|
43
|
-
*/
|
|
44
|
-
icon?: WIconProp['type'];
|
|
45
|
-
/**
|
|
46
|
-
* 文本
|
|
47
|
-
*/
|
|
48
|
-
text?: string;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* w-modal组件属性
|
|
52
|
-
*/
|
|
53
|
-
export interface WModalProps extends Pick<ModalProps, 'destroyOnClose' | 'okButtonProps' | 'cancelButtonProps' | 'confirmLoading'> {
|
|
54
|
-
/**
|
|
55
|
-
* 弹窗标题
|
|
56
|
-
*/
|
|
57
|
-
title?: string;
|
|
58
|
-
/**
|
|
59
|
-
* 弹窗width
|
|
60
|
-
*/
|
|
61
|
-
width?: string | number | WidthType;
|
|
62
|
-
/**
|
|
63
|
-
* 弹窗底部是否隐藏,可隐藏单独按钮
|
|
64
|
-
*/
|
|
65
|
-
hideFooter?: boolean | Array<FooterButtonType>;
|
|
66
|
-
}
|
|
67
|
-
export interface WUploadProps extends Pick<UploadProps, 'multiple' | 'beforeUpload'> {
|
|
68
|
-
/**
|
|
69
|
-
* 是否为拖拽上传
|
|
70
|
-
* @default true
|
|
71
|
-
*/
|
|
72
|
-
dragger?: boolean;
|
|
73
|
-
/**
|
|
74
|
-
* 上传的地址
|
|
75
|
-
*/
|
|
76
|
-
url?: string;
|
|
77
|
-
/**
|
|
78
|
-
* 上传的参数
|
|
79
|
-
*/
|
|
80
|
-
data?: any;
|
|
81
|
-
/**
|
|
82
|
-
* 上传的字段名,默认file
|
|
83
|
-
*/
|
|
84
|
-
fieldName?: string;
|
|
85
|
-
/**f
|
|
86
|
-
* 上传的文件名称,默认images
|
|
87
|
-
*/
|
|
88
|
-
fileName?: string;
|
|
89
|
-
/**
|
|
90
|
-
* 上传的自定义方法,优先级高于url
|
|
91
|
-
*/
|
|
92
|
-
request: (formData: FormData) => Promise<any>;
|
|
93
|
-
/**
|
|
94
|
-
* 接受上传的文件类型,input[type=file] 的 accept 属性
|
|
95
|
-
*/
|
|
96
|
-
accept?: string;
|
|
97
|
-
/**
|
|
98
|
-
* 上传文件大小限制
|
|
99
|
-
* @default 1024 * 1024 * 10 单位:b
|
|
100
|
-
*/
|
|
101
|
-
maxSize?: number;
|
|
102
|
-
/**
|
|
103
|
-
* 上传图标
|
|
104
|
-
*/
|
|
105
|
-
uploadIcon?: string;
|
|
106
|
-
/**
|
|
107
|
-
* 上传文本
|
|
108
|
-
*/
|
|
109
|
-
uploadText?: string;
|
|
110
|
-
/**
|
|
111
|
-
* 上传提示文本
|
|
112
|
-
*/
|
|
113
|
-
uploadHint?: string;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* w-card 组件属性
|
|
117
|
-
*/
|
|
118
|
-
type TabListType = NonNullable<CardProps['tabList']>[number];
|
|
119
|
-
interface WCardTabListType extends Omit<TabListType, 'key'> {
|
|
120
|
-
key: TabListType['key'] | number;
|
|
121
|
-
value?: string | number;
|
|
122
|
-
label?: string | Component;
|
|
123
|
-
}
|
|
124
|
-
export interface WCardProps extends Omit<CardProps, 'tabList' | 'activeTabKey' | 'defaultActiveTabKey' | 'onTabChange'> {
|
|
125
|
-
/**
|
|
126
|
-
* 卡片标题
|
|
127
|
-
*/
|
|
128
|
-
title?: string;
|
|
129
|
-
/**
|
|
130
|
-
* 卡片右上角的操作区域
|
|
131
|
-
*/
|
|
132
|
-
extra?: string;
|
|
133
|
-
/**
|
|
134
|
-
* 是否必填
|
|
135
|
-
*/
|
|
136
|
-
required?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* 页签标题列表, 可以通过 customTab(antdv v3.0) 插槽自定义 tab
|
|
139
|
-
*/
|
|
140
|
-
tabList?: Array<WCardTabListType>;
|
|
141
|
-
/**
|
|
142
|
-
* 初始化选中页签的 key,如果没有设置 activeTabKey
|
|
143
|
-
*/
|
|
144
|
-
defaultActiveTabKey?: CardProps['defaultActiveTabKey'] | number;
|
|
145
|
-
}
|
|
146
|
-
export interface WStatisticProps {
|
|
147
|
-
title?: string;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* w-date-picker 组件属性
|
|
151
|
-
*/
|
|
152
|
-
export interface WDatePickerProps extends Pick<DatePickerProps, 'picker' | 'format' | 'allowClear' | 'valueFormat'> {
|
|
153
|
-
/**
|
|
154
|
-
* 是否允许选择未来时间
|
|
155
|
-
* @default true
|
|
156
|
-
*/
|
|
157
|
-
futureTimeAllowed?: boolean;
|
|
158
|
-
/**
|
|
159
|
-
* value是否是string类型
|
|
160
|
-
* @default false
|
|
161
|
-
*/
|
|
162
|
-
valueString?: boolean;
|
|
163
|
-
}
|
|
164
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export type { ConfigProviderProp } from './type';
|
|
2
|
-
export { default as WConfigProvider } from './src/configProvider.vue';
|
|
3
|
-
export { default as WRedirect } from './src/Redirect.vue';
|
|
4
|
-
export { default as WNoData } from './src/noData.vue';
|
|
5
|
-
export type { WCropperProp, WCropperInstance } from './type';
|
|
6
|
-
export { default as WCropper } from './src/cropper.vue';
|
|
7
|
-
export type { WTableInstance, WPagerProps, WPagerInstance, ResetPagerParams, PagerState, WColumnProp, WListSearchProps, WListSearchInstance } from '../table';
|
|
8
|
-
export { WTable, WPager, WColumn, WListSearch } from '../table';
|
|
9
|
-
export { default as WEditTitle } from './src/editTitle.vue';
|
|
10
|
-
export type { WDropdownProps, WDropdownListItem } from './type';
|
|
11
|
-
export { default as WDropdown } from './src/dropdown.vue';
|
|
12
|
-
export type { WUploadModalProps } from './type';
|
|
13
|
-
export { default as WUploadModal } from './src/upload-modal.vue';
|
|
14
|
-
export { default as WSlashHeader } from './src/slashHeader.vue';
|
|
15
|
-
export type { WPageHeadProps } from './type';
|
|
16
|
-
export { default as WPageHead } from './src/pageHead.vue';
|
|
17
|
-
export type { WRangePickerProps } from './type';
|
|
18
|
-
export { default as WRangePicker } from './src/rangePicker.vue';
|
|
19
|
-
export type { WPageProps } from './type';
|
|
20
|
-
export { default as WPage } from './src/page.vue';
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ConfigProviderProp } from '../type';
|
|
2
|
-
declare const _default: __VLS_WithSlots<import("vue").DefineComponent<ConfigProviderProp, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ConfigProviderProp> & Readonly<{}>, {
|
|
3
|
-
theme: any;
|
|
4
|
-
readonly delay: number;
|
|
5
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
|
|
6
|
-
default?: ((props: {}) => any) | undefined;
|
|
7
|
-
}>;
|
|
8
|
-
export default _default;
|
|
9
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
10
|
-
new (): {
|
|
11
|
-
$slots: S;
|
|
12
|
-
};
|
|
13
|
-
};
|