@otwb/ui 2.0.18 → 2.0.19
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.
|
@@ -457,10 +457,6 @@ const DataCustom = /* @__PURE__ */ defineComponent({
|
|
|
457
457
|
});
|
|
458
458
|
}
|
|
459
459
|
});
|
|
460
|
-
var DataForm_module_default = {
|
|
461
|
-
nformWrap: "_nformWrap_b73uh_1",
|
|
462
|
-
ngridWrap: "_ngridWrap_b73uh_17"
|
|
463
|
-
};
|
|
464
460
|
function _isSlot$5(e) {
|
|
465
461
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !isVNode(e);
|
|
466
462
|
}
|
|
@@ -580,19 +576,17 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
580
576
|
}), () => {
|
|
581
577
|
let { items: e, loading: x, validation: j, showColon: N, showAction: P, actionAlign: F, submitText: I, submitDisabled: L, resetText: R, tooltipPlacement: B, showFeedback: V, labelWidth: H = "7.2em", labelAlign: U = b.labelPlacement === "top" ? "left" : "right", grid: W, succeeded: G, successText: K = I,...q } = b, J = !b.readonly && V !== !1;
|
|
582
578
|
return createVNode(NForm, mergeProps({
|
|
583
|
-
class:
|
|
579
|
+
class: "nformWrap",
|
|
584
580
|
labelWidth: H,
|
|
585
581
|
labelAlign: U,
|
|
586
582
|
onReset: T,
|
|
587
583
|
onSubmit: w,
|
|
588
584
|
showFeedback: J
|
|
589
585
|
}, q), { default: () => [createVNode(NGrid, mergeProps({
|
|
586
|
+
class: "ngridWrap",
|
|
590
587
|
ref: k,
|
|
591
588
|
itemResponsive: !0
|
|
592
|
-
}, W, {
|
|
593
|
-
class: DataForm_module_default.ngridWrap,
|
|
594
|
-
yGap: J ? 0 : W?.yGap ?? 24
|
|
595
|
-
}), { default: () => {
|
|
589
|
+
}, W, { yGap: J ? 0 : W?.yGap ?? 24 }), { default: () => {
|
|
596
590
|
let w = 0;
|
|
597
591
|
return createVNode(Fragment, null, [e.map(({ hidden: e, name: x, render: S, label: C, showColon: T, span: E = 6, rowSpan: D, offset: k = 0, tooltip: A, tooltipPlacement: N = b.tooltipPlacement, validationStatus: P = j[x]?.errors?.some((e) => e !== void 0) ? "error" : j[x]?.warnings?.some((e) => e !== void 0) ? "warnings" : j[x] ? "success" : void 0, readonly: F = b.readonly, showRequireMark: I = !F, showTooltipWhenReadonly: L = !1,...R }) => {
|
|
598
592
|
if (e) return;
|
|
@@ -674,12 +668,7 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
674
668
|
} })] });
|
|
675
669
|
};
|
|
676
670
|
}
|
|
677
|
-
})
|
|
678
|
-
var DataFilter_module_default = {
|
|
679
|
-
submitWrap: "_submitWrap_kqtax_1",
|
|
680
|
-
collapsedBtn: "_collapsedBtn_kqtax_5"
|
|
681
|
-
};
|
|
682
|
-
const DataFilter = /* @__PURE__ */ defineComponent({
|
|
671
|
+
}), DataFilter = /* @__PURE__ */ defineComponent({
|
|
683
672
|
name: "DataFilter",
|
|
684
673
|
props: {
|
|
685
674
|
grid: {
|
|
@@ -770,7 +759,7 @@ const DataFilter = /* @__PURE__ */ defineComponent({
|
|
|
770
759
|
align: "center"
|
|
771
760
|
}, { default: () => [
|
|
772
761
|
P && k.suffix ? createVNode(NButton, {
|
|
773
|
-
class:
|
|
762
|
+
class: "collapsedBtn",
|
|
774
763
|
text: !0,
|
|
775
764
|
type: "primary",
|
|
776
765
|
iconPlacement: "right",
|
|
@@ -779,7 +768,7 @@ const DataFilter = /* @__PURE__ */ defineComponent({
|
|
|
779
768
|
}, { default: () => [E.value ? C("common.page.filter.expand") : C("common.page.filter.collapse")] }) : void 0,
|
|
780
769
|
k.suffix ? void 0 : createVNode("span", null, [createTextVNode("\xA0\xA0\xA0\xA0")]),
|
|
781
770
|
createVNode(NButton, {
|
|
782
|
-
class:
|
|
771
|
+
class: "submitWrap",
|
|
783
772
|
attrType: "submit",
|
|
784
773
|
type: "primary",
|
|
785
774
|
disabled: b.disabled,
|
package/dist/components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.nformWrap :global(.n-form-item){display:block!important}.nformWrap :global(.n-form-item) :global(.n-input){border-radius:2px!important}.nformWrap :global(.n-form-item) :global(.n-base-selection__border){border-radius:2px!important}.nformWrap :global(.n-form-item) :global(.n-base-selection__state-border){border-radius:2px!important}.nformWrap :global(.n-form-item) :global(.n-text){color:#000!important}.ngridWrap>div:last-child{align-items:end;display:flex}.submitWrap{background-color:#176bf8!important}.collapsedBtn :global(.n-button__content){color:#000!important}.collapsedBtn :global(.n-button__icon){color:#d9d9d9!important}
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./use-i18n-Dx7V4KrY.js";
|
|
2
2
|
import "./directives-CRvPGywW.js";
|
|
3
3
|
import "./use-style-DcT-1dj4.js";
|
|
4
|
-
import { a as NRadios, c as DataSelection, d as useLocaleEdit, f as DataFilter, g as NCheckboxes, h as DataActions, i as renderUsers, l as DataPagination, m as DataCustom, n as DtUserDept, o as DataTable, p as DataForm, r as DtUserRender, s as useDataTableDrag, t as DtDeptRender, u as DataLocaleInput } from "./components-
|
|
4
|
+
import { a as NRadios, c as DataSelection, d as useLocaleEdit, f as DataFilter, g as NCheckboxes, h as DataActions, i as renderUsers, l as DataPagination, m as DataCustom, n as DtUserDept, o as DataTable, p as DataForm, r as DtUserRender, s as useDataTableDrag, t as DtDeptRender, u as DataLocaleInput } from "./components-DEBFtkAu.js";
|
|
5
5
|
export { DataActions, DataCustom, DataFilter, DataForm, DataLocaleInput, DataPagination, DataSelection, DataTable, DtDeptRender, DtUserDept, DtUserRender, NCheckboxes, NRadios, renderUsers, useDataTableDrag, useLocaleEdit };
|
package/dist/page.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as useI18n } from "./use-i18n-Dx7V4KrY.js";
|
|
2
2
|
import "./directives-CRvPGywW.js";
|
|
3
3
|
import "./use-style-DcT-1dj4.js";
|
|
4
|
-
import { a as NRadios, g as NCheckboxes, n as DtUserDept, p as DataForm, r as DtUserRender, t as DtDeptRender } from "./components-
|
|
4
|
+
import { a as NRadios, g as NCheckboxes, n as DtUserDept, p as DataForm, r as DtUserRender, t as DtDeptRender } from "./components-DEBFtkAu.js";
|
|
5
5
|
import { computed, createVNode, defineComponent, h, isVNode, mergeProps, nextTick, ref, shallowRef, unref } from "vue";
|
|
6
6
|
import { until } from "@vueuse/core";
|
|
7
7
|
import { NButton, NCheckbox, NColorPicker, NDatePicker, NDrawer, NDrawerContent, NFlex, NInput, NInputNumber, NModal, NScrollbar, NSelect, NText, NUpload, useMessage } from "ithinkdt-ui";
|
package/package.json
CHANGED
package/unocss-preset.js
CHANGED
|
@@ -95,6 +95,7 @@ const ithinkdt = () => {
|
|
|
95
95
|
'ell-3': 'line-clamp-3',
|
|
96
96
|
'flex-x-center': 'flex items-center',
|
|
97
97
|
'flex-y-center': 'flex justify-center',
|
|
98
|
+
'flex-y-end': 'flex justify-end',
|
|
98
99
|
'flex-center': 'flex justify-center items-center',
|
|
99
100
|
'card': `card-medium`,
|
|
100
101
|
},
|