@aplus-frontend/ui 0.4.12 → 0.4.13
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/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +5 -2
- package/es/src/business/ap-table-modal/hooks/use-table-select-modal.mjs +31 -21
- package/es/src/business/ap-table-modal/interface.d.ts +3 -1
- package/es/src/business/ap-table-modal/table-layout/index.vue.d.ts +4 -2
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +53 -46
- package/es/src/business/ap-title/interface.d.ts +1 -1
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.d.ts +5 -2
- package/lib/src/business/ap-table-modal/hooks/use-table-select-modal.js +1 -1
- package/lib/src/business/ap-table-modal/interface.d.ts +3 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-title/interface.d.ts +1 -1
- package/package.json +3 -3
- package/theme/ap-form/ap-form-item.css +7 -4
- package/theme/ap-form/ap-form-item.less +10 -7
- package/theme/ap-form/index.css +7 -7
- package/theme/ap-form/search-form.css +7 -7
- package/theme/ap-form/search-form.less +0 -6
- package/theme/ap-table/ap-table.css +7 -7
- package/theme/ap-table-modal/index.css +7 -7
- package/theme/editable-table/index.css +7 -7
- package/theme/index.css +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenOptions, UseTableSelectModalProps
|
|
1
|
+
import { OpenOptions, UseTableSelectModalProps } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
3
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
4
|
export declare function useTableSelectModal<TableRowType = Record<string, any>>(props: UseTableSelectModalProps<TableRowType>): {
|
|
@@ -24,7 +24,10 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
|
|
|
24
24
|
getShownColumns: () => TableColumnsType<any>;
|
|
25
25
|
} | null | undefined;
|
|
26
26
|
isDestroyed: true;
|
|
27
|
-
open: (selected?: any[], options?: OpenOptions) => Promise<
|
|
27
|
+
open: (selected?: any[], options?: OpenOptions) => Promise<{
|
|
28
|
+
keys: any[];
|
|
29
|
+
rows: TableRowType[];
|
|
30
|
+
}>;
|
|
28
31
|
destroy: () => void;
|
|
29
32
|
close: () => void;
|
|
30
33
|
};
|
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
import { onUnmounted as
|
|
2
|
-
import { useCreateTableModal as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { onUnmounted as f } from "vue";
|
|
2
|
+
import { useCreateTableModal as i } from "./use-create-table-modal.mjs";
|
|
3
|
+
import { AsyncOpenResultError as d } from "../interface.mjs";
|
|
4
|
+
const p = (t) => t.id;
|
|
5
|
+
function K(t) {
|
|
6
|
+
const { finishCallback: n, getRowKey: e, ...u } = t, { destroy: a, openModal: y, closeModal: c, ...m } = i({
|
|
7
|
+
...u,
|
|
7
8
|
destroyOnUnmounted: !1,
|
|
8
|
-
getRowKey:
|
|
9
|
-
}),
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
getRowKey: e || p
|
|
10
|
+
}), l = async (o = [], w = {}) => {
|
|
11
|
+
try {
|
|
12
|
+
const r = await y(o, w) || {
|
|
13
|
+
keys: [],
|
|
14
|
+
rows: []
|
|
15
|
+
};
|
|
16
|
+
return n == null || n(r), r;
|
|
17
|
+
} catch (r) {
|
|
18
|
+
if (r === d.ModalCancel)
|
|
19
|
+
return {
|
|
20
|
+
keys: o == null ? void 0 : o.map(e || p),
|
|
21
|
+
rows: o
|
|
22
|
+
};
|
|
23
|
+
throw r;
|
|
24
|
+
}
|
|
25
|
+
}, s = () => {
|
|
26
|
+
c();
|
|
17
27
|
};
|
|
18
|
-
return
|
|
19
|
-
|
|
28
|
+
return f(() => {
|
|
29
|
+
s(), a();
|
|
20
30
|
}), {
|
|
21
|
-
open:
|
|
22
|
-
destroy:
|
|
23
|
-
close:
|
|
24
|
-
...
|
|
31
|
+
open: l,
|
|
32
|
+
destroy: a,
|
|
33
|
+
close: s,
|
|
34
|
+
...m
|
|
25
35
|
};
|
|
26
36
|
}
|
|
27
37
|
export {
|
|
@@ -72,7 +72,9 @@ export interface ModalTitleSlots {
|
|
|
72
72
|
/** table-layout Props */
|
|
73
73
|
export interface TableLayoutConfig {
|
|
74
74
|
/** 左侧标题 */
|
|
75
|
-
leftTitle?: string;
|
|
75
|
+
leftTitle?: string | VNodeChild;
|
|
76
|
+
/** 右侧标题 */
|
|
77
|
+
rightTitle?: (selectedCount: number) => string | VNodeChild;
|
|
76
78
|
/** 已经选择item渲染, renderSelectedItem有值才为复杂布局 */
|
|
77
79
|
renderSelectedItem?: (record: any, actions: {
|
|
78
80
|
deleteItem: (record: any) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableLayoutConfig } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, VNodeArrayChildren, VNode, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = TableLayoutConfig & {
|
|
4
4
|
selectedList: any[];
|
|
5
5
|
};
|
|
@@ -20,7 +20,9 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
|
|
|
20
20
|
onClear?: (() => any) | undefined;
|
|
21
21
|
onDeleteItem?: ((record: any) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
leftTitle: string
|
|
23
|
+
leftTitle: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}> | null;
|
|
24
26
|
selectedList: any[];
|
|
25
27
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1,82 +1,89 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as v, openBlock as l, createElementBlock as o, normalizeClass as a, unref as t, Fragment as i, createVNode as m, withCtx as n, createBlock as s, resolveDynamicComponent as p, h, createElementVNode as c, renderSlot as b, createCommentVNode as T, createTextVNode as $, toDisplayString as B, renderList as M } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import "../../index.mjs";
|
|
4
|
-
import { Button as
|
|
5
|
-
import { useLocale as
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import { ApTitle as
|
|
8
|
-
const
|
|
4
|
+
import { Button as V, Empty as k } from "@aplus-frontend/antdv";
|
|
5
|
+
import { useLocale as A } from "../../../config-provider/hooks/use-locale.mjs";
|
|
6
|
+
import { useNamespace as D } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { ApTitle as I } from "../../ap-title/index.mjs";
|
|
8
|
+
const q = /* @__PURE__ */ v({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
|
-
leftTitle: { default: "" },
|
|
11
|
+
leftTitle: { type: [String, Object, Number, Boolean, null, Array], default: "" },
|
|
12
|
+
rightTitle: {},
|
|
12
13
|
renderSelectedItem: {},
|
|
13
14
|
selectedList: { default: () => [] }
|
|
14
15
|
},
|
|
15
16
|
emits: ["clear", "deleteItem"],
|
|
16
|
-
setup(
|
|
17
|
-
const { t:
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
|
|
21
|
-
}, { m:
|
|
22
|
-
return (e,
|
|
23
|
-
class:
|
|
24
|
-
e.renderSelectedItem ? t(
|
|
17
|
+
setup(S, { emit: E }) {
|
|
18
|
+
const { t: d } = A(), u = S, f = E, L = () => {
|
|
19
|
+
f("clear");
|
|
20
|
+
}, C = (e) => {
|
|
21
|
+
f("deleteItem", e);
|
|
22
|
+
}, N = (e) => typeof u.rightTitle == "function" ? u.rightTitle(e) : `${d("ap.apTableModal.selected")} (${e})`, { m: r } = D("ap-table-modal");
|
|
23
|
+
return (e, w) => (l(), o("div", {
|
|
24
|
+
class: a([
|
|
25
|
+
e.renderSelectedItem ? t(r)("table-layout") : "",
|
|
25
26
|
{ "complex-layout": !!e.renderSelectedItem }
|
|
26
27
|
])
|
|
27
28
|
}, [
|
|
28
|
-
e.renderSelectedItem ? (
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
e.renderSelectedItem ? (l(), o(i, { key: 0 }, [
|
|
30
|
+
e.leftTitle ? (l(), o("div", {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: a(t(r)("table-layout-left"))
|
|
31
33
|
}, [
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
m(t(I), { style: { "margin-bottom": "16px" } }, {
|
|
35
|
+
prefix: n(() => [
|
|
36
|
+
(l(), s(p(h(i, [e.leftTitle]))))
|
|
37
|
+
]),
|
|
38
|
+
_: 1
|
|
39
|
+
}),
|
|
40
|
+
c("div", {
|
|
41
|
+
class: a(t(r)("table-layout-left-content"))
|
|
38
42
|
}, [
|
|
39
|
-
|
|
43
|
+
b(e.$slots, "default")
|
|
40
44
|
], 2)
|
|
41
|
-
], 2),
|
|
42
|
-
|
|
43
|
-
class:
|
|
45
|
+
], 2)) : T("", !0),
|
|
46
|
+
c("div", {
|
|
47
|
+
class: a(t(r)("table-layout-right"))
|
|
44
48
|
}, [
|
|
45
|
-
|
|
46
|
-
title: `${t(
|
|
49
|
+
m(t(I), {
|
|
50
|
+
title: `${t(d)("ap.apTableModal.selected")} (${e.selectedList.length})`
|
|
47
51
|
}, {
|
|
48
|
-
|
|
49
|
-
s(
|
|
52
|
+
prefix: n(() => [
|
|
53
|
+
(l(), s(p(h(i, [N(e.selectedList.length)]))))
|
|
54
|
+
]),
|
|
55
|
+
suffix: n(() => [
|
|
56
|
+
m(t(V), {
|
|
50
57
|
type: "link",
|
|
51
58
|
style: { padding: "0px", height: "22px", "border-width": "0px" },
|
|
52
|
-
onClick:
|
|
59
|
+
onClick: L
|
|
53
60
|
}, {
|
|
54
|
-
default:
|
|
55
|
-
|
|
61
|
+
default: n(() => [
|
|
62
|
+
$(B(t(d)("ap.apTableModal.clear")), 1)
|
|
56
63
|
]),
|
|
57
64
|
_: 1
|
|
58
65
|
})
|
|
59
66
|
]),
|
|
60
67
|
_: 1
|
|
61
68
|
}, 8, ["title"]),
|
|
62
|
-
|
|
63
|
-
class:
|
|
69
|
+
c("div", {
|
|
70
|
+
class: a(t(r)("table-layout-right-content"))
|
|
64
71
|
}, [
|
|
65
|
-
(
|
|
66
|
-
var
|
|
67
|
-
return
|
|
72
|
+
(l(!0), o(i, null, M(e.selectedList, (y) => {
|
|
73
|
+
var g;
|
|
74
|
+
return l(), s(p((g = e.renderSelectedItem) == null ? void 0 : g.call(e, y, { deleteItem: C })), { key: y });
|
|
68
75
|
}), 128)),
|
|
69
|
-
e.selectedList.length === 0 ? (
|
|
76
|
+
e.selectedList.length === 0 ? (l(), s(t(k), {
|
|
70
77
|
key: 0,
|
|
71
|
-
image: t(
|
|
78
|
+
image: t(k).PRESENTED_IMAGE_SIMPLE,
|
|
72
79
|
style: { "margin-top": "100px" }
|
|
73
|
-
}, null, 8, ["image"])) :
|
|
80
|
+
}, null, 8, ["image"])) : T("", !0)
|
|
74
81
|
], 2)
|
|
75
82
|
], 2)
|
|
76
|
-
], 64)) :
|
|
83
|
+
], 64)) : b(e.$slots, "default", { key: 1 })
|
|
77
84
|
], 2));
|
|
78
85
|
}
|
|
79
86
|
});
|
|
80
87
|
export {
|
|
81
|
-
|
|
88
|
+
q as default
|
|
82
89
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OpenOptions, UseTableSelectModalProps
|
|
1
|
+
import { OpenOptions, UseTableSelectModalProps } from '../interface';
|
|
2
2
|
import { Recordable } from '../../../type';
|
|
3
3
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
4
4
|
export declare function useTableSelectModal<TableRowType = Record<string, any>>(props: UseTableSelectModalProps<TableRowType>): {
|
|
@@ -24,7 +24,10 @@ export declare function useTableSelectModal<TableRowType = Record<string, any>>(
|
|
|
24
24
|
getShownColumns: () => TableColumnsType<any>;
|
|
25
25
|
} | null | undefined;
|
|
26
26
|
isDestroyed: true;
|
|
27
|
-
open: (selected?: any[], options?: OpenOptions) => Promise<
|
|
27
|
+
open: (selected?: any[], options?: OpenOptions) => Promise<{
|
|
28
|
+
keys: any[];
|
|
29
|
+
rows: TableRowType[];
|
|
30
|
+
}>;
|
|
28
31
|
destroy: () => void;
|
|
29
32
|
close: () => void;
|
|
30
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("vue"),w=require("./use-create-table-modal.js"),b=require("../interface.js"),u=t=>t.id;function f(t){const{finishCallback:r,getRowKey:n,...c}=t,{destroy:a,openModal:l,closeModal:y,...i}=w.useCreateTableModal({...c,destroyOnUnmounted:!1,getRowKey:n||u}),d=async(e=[],M={})=>{try{const o=await l(e,M)||{keys:[],rows:[]};return r==null||r(o),o}catch(o){if(o===b.AsyncOpenResultError.ModalCancel)return{keys:e==null?void 0:e.map(n||u),rows:e};throw o}},s=()=>{y()};return p.onUnmounted(()=>{s(),a()}),{open:d,destroy:a,close:s,...i}}exports.useTableSelectModal=f;
|
|
@@ -72,7 +72,9 @@ export interface ModalTitleSlots {
|
|
|
72
72
|
/** table-layout Props */
|
|
73
73
|
export interface TableLayoutConfig {
|
|
74
74
|
/** 左侧标题 */
|
|
75
|
-
leftTitle?: string;
|
|
75
|
+
leftTitle?: string | VNodeChild;
|
|
76
|
+
/** 右侧标题 */
|
|
77
|
+
rightTitle?: (selectedCount: number) => string | VNodeChild;
|
|
76
78
|
/** 已经选择item渲染, renderSelectedItem有值才为复杂布局 */
|
|
77
79
|
renderSelectedItem?: (record: any, actions: {
|
|
78
80
|
deleteItem: (record: any) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TableLayoutConfig } from '../interface';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, VNodeArrayChildren, VNode, RendererNode, RendererElement, ComponentProvideOptions } from 'vue';
|
|
3
3
|
type __VLS_Props = TableLayoutConfig & {
|
|
4
4
|
selectedList: any[];
|
|
5
5
|
};
|
|
@@ -20,7 +20,9 @@ declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, Comp
|
|
|
20
20
|
onClear?: (() => any) | undefined;
|
|
21
21
|
onDeleteItem?: ((record: any) => any) | undefined;
|
|
22
22
|
}>, {
|
|
23
|
-
leftTitle: string
|
|
23
|
+
leftTitle: string | number | boolean | void | VNodeArrayChildren | VNode<RendererNode, RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}> | null;
|
|
24
26
|
selectedList: any[];
|
|
25
27
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
28
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");require("../../index.js");const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../../config-provider/index.js");require("../../index.js");const n=require("@aplus-frontend/antdv"),y=require("../../../config-provider/hooks/use-locale.js"),k=require("../../../config-provider/hooks/use-namespace.js"),c=require("../../ap-title/index.js"),g=e.defineComponent({__name:"index",props:{leftTitle:{type:[String,Object,Number,Boolean,null,Array],default:""},rightTitle:{},renderSelectedItem:{},selectedList:{default:()=>[]}},emits:["clear","deleteItem"],setup(d,{emit:u}){const{t:r}=y.useLocale(),o=d,a=u,m=()=>{a("clear")},p=t=>{a("deleteItem",t)},f=t=>typeof o.rightTitle=="function"?o.rightTitle(t):`${r("ap.apTableModal.selected")} (${t})`,{m:l}=k.useNamespace("ap-table-modal");return(t,h)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([t.renderSelectedItem?e.unref(l)("table-layout"):"",{"complex-layout":!!t.renderSelectedItem}])},[t.renderSelectedItem?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.leftTitle?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(l)("table-layout-left"))},[e.createVNode(e.unref(c.ApTitle),{style:{"margin-bottom":"16px"}},{prefix:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[t.leftTitle]))))]),_:1}),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left-content"))},[e.renderSlot(t.$slots,"default")],2)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right"))},[e.createVNode(e.unref(c.ApTitle),{title:`${e.unref(r)("ap.apTableModal.selected")} (${t.selectedList.length})`},{prefix:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(e.h(e.Fragment,[f(t.selectedList.length)]))))]),suffix:e.withCtx(()=>[e.createVNode(e.unref(n.Button),{type:"link",style:{padding:"0px",height:"22px","border-width":"0px"},onClick:m},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("ap.apTableModal.clear")),1)]),_:1})]),_:1},8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right-content"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.selectedList,i=>{var s;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((s=t.renderSelectedItem)==null?void 0:s.call(t,i,{deleteItem:p})),{key:i})}),128)),t.selectedList.length===0?(e.openBlock(),e.createBlock(e.unref(n.Empty),{key:0,image:e.unref(n.Empty).PRESENTED_IMAGE_SIMPLE,style:{"margin-top":"100px"}},null,8,["image"])):e.createCommentVNode("",!0)],2)],2)],64)):e.renderSlot(t.$slots,"default",{key:1})],2))}});exports.default=g;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aplus-frontend/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.13",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"sortablejs": "^1.15.2",
|
|
66
66
|
"vue-virtual-scroller": "2.0.0-beta.8",
|
|
67
67
|
"vuedraggable": "^4.1.0",
|
|
68
|
-
"@aplus-frontend/
|
|
69
|
-
"@aplus-frontend/
|
|
68
|
+
"@aplus-frontend/utils": "1.0.49",
|
|
69
|
+
"@aplus-frontend/hooks": "1.0.7"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"@aplus-frontend/antdv": "^1.0.11",
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
17
17
|
padding: 0;
|
|
18
18
|
}
|
|
19
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
20
|
-
padding-inline: 11px;
|
|
21
|
-
flex: 1;
|
|
22
|
-
}
|
|
23
19
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
24
20
|
padding-left: 11px;
|
|
25
21
|
}
|
|
@@ -68,3 +64,10 @@
|
|
|
68
64
|
margin-top: 4px;
|
|
69
65
|
margin-bottom: 12px;
|
|
70
66
|
}
|
|
67
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
71
|
+
padding-inline: 11px;
|
|
72
|
+
flex: 1;
|
|
73
|
+
}
|
|
@@ -21,13 +21,6 @@
|
|
|
21
21
|
.ant-picker {
|
|
22
22
|
padding: 0;
|
|
23
23
|
}
|
|
24
|
-
.ant-input-group {
|
|
25
|
-
// tip: 针对包含时区切换的日期选择器
|
|
26
|
-
.ant-select + .ant-picker {
|
|
27
|
-
padding-inline: 11px;
|
|
28
|
-
flex: 1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
24
|
.ant-space-compact-block {
|
|
32
25
|
.ant-input {
|
|
33
26
|
padding-left: 11px;
|
|
@@ -81,4 +74,14 @@
|
|
|
81
74
|
margin-top: 4px;
|
|
82
75
|
margin-bottom: 12px;
|
|
83
76
|
}
|
|
77
|
+
.ant-input-group {
|
|
78
|
+
.ant-picker:only-child {
|
|
79
|
+
width: 100%;
|
|
80
|
+
}
|
|
81
|
+
// tip: 针对包含时区切换的日期选择器
|
|
82
|
+
.ant-select + .ant-picker {
|
|
83
|
+
padding-inline: 11px;
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
84
87
|
});
|
package/theme/ap-form/index.css
CHANGED
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
26
26
|
padding: 0;
|
|
27
27
|
}
|
|
28
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
29
|
-
padding-inline: 11px;
|
|
30
|
-
flex: 1;
|
|
31
|
-
}
|
|
32
28
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
33
29
|
padding-left: 11px;
|
|
34
30
|
}
|
|
@@ -77,6 +73,13 @@
|
|
|
77
73
|
margin-top: 4px;
|
|
78
74
|
margin-bottom: 12px;
|
|
79
75
|
}
|
|
76
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
80
|
+
padding-inline: 11px;
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
80
83
|
.aplus-ap-form-drawer-form__resize-bar {
|
|
81
84
|
width: 4px;
|
|
82
85
|
cursor: ew-resize;
|
|
@@ -119,9 +122,6 @@
|
|
|
119
122
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
120
123
|
display: flex;
|
|
121
124
|
}
|
|
122
|
-
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
123
|
-
flex: 1;
|
|
124
|
-
}
|
|
125
125
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
126
126
|
width: 100%;
|
|
127
127
|
}
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
17
17
|
padding: 0;
|
|
18
18
|
}
|
|
19
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
20
|
-
padding-inline: 11px;
|
|
21
|
-
flex: 1;
|
|
22
|
-
}
|
|
23
19
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
24
20
|
padding-left: 11px;
|
|
25
21
|
}
|
|
@@ -68,15 +64,19 @@
|
|
|
68
64
|
margin-top: 4px;
|
|
69
65
|
margin-bottom: 12px;
|
|
70
66
|
}
|
|
67
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
68
|
+
width: 100%;
|
|
69
|
+
}
|
|
70
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
71
|
+
padding-inline: 11px;
|
|
72
|
+
flex: 1;
|
|
73
|
+
}
|
|
71
74
|
.aplus-ap-form-search-form .ant-form-item {
|
|
72
75
|
margin-bottom: 16px;
|
|
73
76
|
}
|
|
74
77
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
75
78
|
display: flex;
|
|
76
79
|
}
|
|
77
|
-
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
78
|
-
flex: 1;
|
|
79
|
-
}
|
|
80
80
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
81
81
|
width: 100%;
|
|
82
82
|
}
|
|
@@ -211,10 +211,6 @@
|
|
|
211
211
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
212
212
|
padding: 0;
|
|
213
213
|
}
|
|
214
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
215
|
-
padding-inline: 11px;
|
|
216
|
-
flex: 1;
|
|
217
|
-
}
|
|
218
214
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
219
215
|
padding-left: 11px;
|
|
220
216
|
}
|
|
@@ -263,6 +259,13 @@
|
|
|
263
259
|
margin-top: 4px;
|
|
264
260
|
margin-bottom: 12px;
|
|
265
261
|
}
|
|
262
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
266
|
+
padding-inline: 11px;
|
|
267
|
+
flex: 1;
|
|
268
|
+
}
|
|
266
269
|
.aplus-ap-form-drawer-form__resize-bar {
|
|
267
270
|
width: 4px;
|
|
268
271
|
cursor: ew-resize;
|
|
@@ -305,9 +308,6 @@
|
|
|
305
308
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
306
309
|
display: flex;
|
|
307
310
|
}
|
|
308
|
-
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
309
|
-
flex: 1;
|
|
310
|
-
}
|
|
311
311
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
312
312
|
width: 100%;
|
|
313
313
|
}
|
|
@@ -211,10 +211,6 @@
|
|
|
211
211
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
212
212
|
padding: 0;
|
|
213
213
|
}
|
|
214
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
215
|
-
padding-inline: 11px;
|
|
216
|
-
flex: 1;
|
|
217
|
-
}
|
|
218
214
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
219
215
|
padding-left: 11px;
|
|
220
216
|
}
|
|
@@ -263,6 +259,13 @@
|
|
|
263
259
|
margin-top: 4px;
|
|
264
260
|
margin-bottom: 12px;
|
|
265
261
|
}
|
|
262
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
263
|
+
width: 100%;
|
|
264
|
+
}
|
|
265
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
266
|
+
padding-inline: 11px;
|
|
267
|
+
flex: 1;
|
|
268
|
+
}
|
|
266
269
|
.aplus-ap-form-drawer-form__resize-bar {
|
|
267
270
|
width: 4px;
|
|
268
271
|
cursor: ew-resize;
|
|
@@ -305,9 +308,6 @@
|
|
|
305
308
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
306
309
|
display: flex;
|
|
307
310
|
}
|
|
308
|
-
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
309
|
-
flex: 1;
|
|
310
|
-
}
|
|
311
311
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
312
312
|
width: 100%;
|
|
313
313
|
}
|
|
@@ -25,10 +25,6 @@
|
|
|
25
25
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
26
26
|
padding: 0;
|
|
27
27
|
}
|
|
28
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
29
|
-
padding-inline: 11px;
|
|
30
|
-
flex: 1;
|
|
31
|
-
}
|
|
32
28
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
33
29
|
padding-left: 11px;
|
|
34
30
|
}
|
|
@@ -77,6 +73,13 @@
|
|
|
77
73
|
margin-top: 4px;
|
|
78
74
|
margin-bottom: 12px;
|
|
79
75
|
}
|
|
76
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
80
|
+
padding-inline: 11px;
|
|
81
|
+
flex: 1;
|
|
82
|
+
}
|
|
80
83
|
.aplus-ap-form-drawer-form__resize-bar {
|
|
81
84
|
width: 4px;
|
|
82
85
|
cursor: ew-resize;
|
|
@@ -119,9 +122,6 @@
|
|
|
119
122
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
120
123
|
display: flex;
|
|
121
124
|
}
|
|
122
|
-
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
123
|
-
flex: 1;
|
|
124
|
-
}
|
|
125
125
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
126
126
|
width: 100%;
|
|
127
127
|
}
|
package/theme/index.css
CHANGED
|
@@ -375,10 +375,6 @@
|
|
|
375
375
|
.aplus-ap-form-item--bordered .ant-picker {
|
|
376
376
|
padding: 0;
|
|
377
377
|
}
|
|
378
|
-
.aplus-ap-form-item--bordered .ant-input-group .ant-select + .ant-picker {
|
|
379
|
-
padding-inline: 11px;
|
|
380
|
-
flex: 1;
|
|
381
|
-
}
|
|
382
378
|
.aplus-ap-form-item--bordered .ant-space-compact-block .ant-input {
|
|
383
379
|
padding-left: 11px;
|
|
384
380
|
}
|
|
@@ -427,6 +423,13 @@
|
|
|
427
423
|
margin-top: 4px;
|
|
428
424
|
margin-bottom: 12px;
|
|
429
425
|
}
|
|
426
|
+
.aplus-ap-form-item .ant-input-group .ant-picker:only-child {
|
|
427
|
+
width: 100%;
|
|
428
|
+
}
|
|
429
|
+
.aplus-ap-form-item .ant-input-group .ant-select + .ant-picker {
|
|
430
|
+
padding-inline: 11px;
|
|
431
|
+
flex: 1;
|
|
432
|
+
}
|
|
430
433
|
.aplus-ap-form-drawer-form__resize-bar {
|
|
431
434
|
width: 4px;
|
|
432
435
|
cursor: ew-resize;
|
|
@@ -469,9 +472,6 @@
|
|
|
469
472
|
.aplus-ap-form-search-form .ant-form-item-control .ant-picker {
|
|
470
473
|
display: flex;
|
|
471
474
|
}
|
|
472
|
-
.aplus-ap-form-search-form .ant-form-item-control .ant-input-group .ant-picker {
|
|
473
|
-
flex: 1;
|
|
474
|
-
}
|
|
475
475
|
.aplus-ap-form-search-form .ant-form-item-control .ant-input-number {
|
|
476
476
|
width: 100%;
|
|
477
477
|
}
|