@otwb/ui 2.0.18 → 2.0.20
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
|
}
|
|
@@ -469,7 +465,7 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
469
465
|
props: {
|
|
470
466
|
grid: {
|
|
471
467
|
type: Object,
|
|
472
|
-
default: () => ({})
|
|
468
|
+
default: () => ({ xGap: 12 })
|
|
473
469
|
},
|
|
474
470
|
...pickProps(formProps, "disabled", "model", "labelWidth", "labelAlign", "showFeedback", "size"),
|
|
475
471
|
readonly: {
|
|
@@ -580,19 +576,15 @@ 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:
|
|
584
|
-
labelWidth: H,
|
|
585
|
-
labelAlign: U,
|
|
579
|
+
class: "nformWrap",
|
|
586
580
|
onReset: T,
|
|
587
581
|
onSubmit: w,
|
|
588
582
|
showFeedback: J
|
|
589
583
|
}, q), { default: () => [createVNode(NGrid, mergeProps({
|
|
584
|
+
class: "ngridWrap",
|
|
590
585
|
ref: k,
|
|
591
586
|
itemResponsive: !0
|
|
592
|
-
}, W, {
|
|
593
|
-
class: DataForm_module_default.ngridWrap,
|
|
594
|
-
yGap: J ? 0 : W?.yGap ?? 24
|
|
595
|
-
}), { default: () => {
|
|
587
|
+
}, W, { yGap: J ? 0 : W?.yGap ?? 24 }), { default: () => {
|
|
596
588
|
let w = 0;
|
|
597
589
|
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
590
|
if (e) return;
|
|
@@ -674,12 +666,7 @@ const DataForm = /* @__PURE__ */ defineComponent({
|
|
|
674
666
|
} })] });
|
|
675
667
|
};
|
|
676
668
|
}
|
|
677
|
-
})
|
|
678
|
-
var DataFilter_module_default = {
|
|
679
|
-
submitWrap: "_submitWrap_kqtax_1",
|
|
680
|
-
collapsedBtn: "_collapsedBtn_kqtax_5"
|
|
681
|
-
};
|
|
682
|
-
const DataFilter = /* @__PURE__ */ defineComponent({
|
|
669
|
+
}), DataFilter = /* @__PURE__ */ defineComponent({
|
|
683
670
|
name: "DataFilter",
|
|
684
671
|
props: {
|
|
685
672
|
grid: {
|
|
@@ -770,7 +757,7 @@ const DataFilter = /* @__PURE__ */ defineComponent({
|
|
|
770
757
|
align: "center"
|
|
771
758
|
}, { default: () => [
|
|
772
759
|
P && k.suffix ? createVNode(NButton, {
|
|
773
|
-
class:
|
|
760
|
+
class: "collapsedBtn",
|
|
774
761
|
text: !0,
|
|
775
762
|
type: "primary",
|
|
776
763
|
iconPlacement: "right",
|
|
@@ -779,7 +766,7 @@ const DataFilter = /* @__PURE__ */ defineComponent({
|
|
|
779
766
|
}, { default: () => [E.value ? C("common.page.filter.expand") : C("common.page.filter.collapse")] }) : void 0,
|
|
780
767
|
k.suffix ? void 0 : createVNode("span", null, [createTextVNode("\xA0\xA0\xA0\xA0")]),
|
|
781
768
|
createVNode(NButton, {
|
|
782
|
-
class:
|
|
769
|
+
class: "submitWrap",
|
|
783
770
|
attrType: "submit",
|
|
784
771
|
type: "primary",
|
|
785
772
|
disabled: b.disabled,
|
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-C3FvQCdL.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-C3FvQCdL.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";
|
|
@@ -435,7 +435,7 @@ function createFormHelper() {
|
|
|
435
435
|
showAction: !1,
|
|
436
436
|
onSubmit: l,
|
|
437
437
|
onRest: u,
|
|
438
|
-
style: m ? "padding-right:
|
|
438
|
+
style: m ? "padding-right: .5rem" : void 0
|
|
439
439
|
}, null);
|
|
440
440
|
}
|
|
441
441
|
function createModalHelper() {
|
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
|
},
|
package/dist/components.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._nformWrap_b73uh_1 .n-form-item{display:block!important}._nformWrap_b73uh_1 .n-form-item .n-input,._nformWrap_b73uh_1 .n-form-item .n-base-selection__border,._nformWrap_b73uh_1 .n-form-item .n-base-selection__state-border{border-radius:2px!important}._nformWrap_b73uh_1 .n-form-item .n-text{color:#000!important}._ngridWrap_b73uh_17>div:last-child{align-items:end;display:flex}._submitWrap_kqtax_1{background-color:#176bf8!important}._collapsedBtn_kqtax_5 .n-button__content{color:#000!important}._collapsedBtn_kqtax_5 .n-button__icon{color:#d9d9d9!important}
|