@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.
@@ -1,4 +1,4 @@
1
- import { OpenOptions, UseTableSelectModalProps, OpenReturnType } from '../interface';
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< OpenReturnType<TableRowType>>;
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 m } from "vue";
2
- import { useCreateTableModal as w } from "./use-create-table-modal.mjs";
3
- const f = (e) => e.id;
4
- function K(e) {
5
- const { finishCallback: o, getRowKey: r, ...a } = e, { destroy: t, openModal: c, closeModal: d, ...l } = w({
6
- ...a,
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: r || f
9
- }), u = async (p = [], y = {}) => {
10
- const s = await c(p, y) || {
11
- keys: [],
12
- rows: []
13
- };
14
- return o == null || o(s), s;
15
- }, n = () => {
16
- d();
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 m(() => {
19
- n(), t();
28
+ return f(() => {
29
+ s(), a();
20
30
  }), {
21
- open: u,
22
- destroy: t,
23
- close: n,
24
- ...l
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 S, openBlock as a, createElementBlock as n, normalizeClass as o, unref as t, Fragment as c, createElementVNode as r, createVNode as s, renderSlot as u, withCtx as f, createTextVNode as E, toDisplayString as C, renderList as L, createBlock as y, resolveDynamicComponent as T, createCommentVNode as v } from "vue";
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 N, Empty as g } from "@aplus-frontend/antdv";
5
- import { useLocale as B } from "../../../config-provider/hooks/use-locale.mjs";
6
- import { useNamespace as M } from "../../../config-provider/hooks/use-namespace.mjs";
7
- import { ApTitle as b } from "../../ap-title/index.mjs";
8
- const R = /* @__PURE__ */ S({
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(V, { emit: h }) {
17
- const { t: i } = B(), d = h, I = () => {
18
- d("clear");
19
- }, k = (e) => {
20
- d("deleteItem", e);
21
- }, { m: l } = M("ap-table-modal");
22
- return (e, $) => (a(), n("div", {
23
- class: o([
24
- e.renderSelectedItem ? t(l)("table-layout") : "",
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 ? (a(), n(c, { key: 0 }, [
29
- r("div", {
30
- class: o(t(l)("table-layout-left"))
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
- s(t(b), {
33
- style: { "margin-bottom": "16px" },
34
- title: e.leftTitle
35
- }, null, 8, ["title"]),
36
- r("div", {
37
- class: o(t(l)("table-layout-left-content"))
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
- u(e.$slots, "default")
43
+ b(e.$slots, "default")
40
44
  ], 2)
41
- ], 2),
42
- r("div", {
43
- class: o(t(l)("table-layout-right"))
45
+ ], 2)) : T("", !0),
46
+ c("div", {
47
+ class: a(t(r)("table-layout-right"))
44
48
  }, [
45
- s(t(b), {
46
- title: `${t(i)("ap.apTableModal.selected")} (${e.selectedList.length})`
49
+ m(t(I), {
50
+ title: `${t(d)("ap.apTableModal.selected")} (${e.selectedList.length})`
47
51
  }, {
48
- suffix: f(() => [
49
- s(t(N), {
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: I
59
+ onClick: L
53
60
  }, {
54
- default: f(() => [
55
- E(C(t(i)("ap.apTableModal.clear")), 1)
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
- r("div", {
63
- class: o(t(l)("table-layout-right-content"))
69
+ c("div", {
70
+ class: a(t(r)("table-layout-right-content"))
64
71
  }, [
65
- (a(!0), n(c, null, L(e.selectedList, (m) => {
66
- var p;
67
- return a(), y(T((p = e.renderSelectedItem) == null ? void 0 : p.call(e, m, { deleteItem: k })), { key: m });
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 ? (a(), y(t(g), {
76
+ e.selectedList.length === 0 ? (l(), s(t(k), {
70
77
  key: 0,
71
- image: t(g).PRESENTED_IMAGE_SIMPLE,
78
+ image: t(k).PRESENTED_IMAGE_SIMPLE,
72
79
  style: { "margin-top": "100px" }
73
- }, null, 8, ["image"])) : v("", !0)
80
+ }, null, 8, ["image"])) : T("", !0)
74
81
  ], 2)
75
82
  ], 2)
76
- ], 64)) : u(e.$slots, "default", { key: 1 })
83
+ ], 64)) : b(e.$slots, "default", { key: 1 })
77
84
  ], 2));
78
85
  }
79
86
  });
80
87
  export {
81
- R as default
88
+ q as default
82
89
  };
@@ -5,7 +5,7 @@ export interface ApTitleProps {
5
5
  /**
6
6
  * 小标题
7
7
  */
8
- title: string;
8
+ title?: string;
9
9
  /**
10
10
  * 帮助消息
11
11
  */
@@ -1,4 +1,4 @@
1
- import { OpenOptions, UseTableSelectModalProps, OpenReturnType } from '../interface';
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< OpenReturnType<TableRowType>>;
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 M=require("vue"),b=require("./use-create-table-modal.js"),p=e=>e.id;function w(e){const{finishCallback:o,getRowKey:r,...a}=e,{destroy:t,openModal:l,closeModal:c,...u}=b.useCreateTableModal({...a,destroyOnUnmounted:!1,getRowKey:r||p}),d=async(y=[],i={})=>{const n=await l(y,i)||{keys:[],rows:[]};return o==null||o(n),n},s=()=>{c()};return M.onUnmounted(()=>{s(),t()}),{open:d,destroy:t,close:s,...u}}exports.useTableSelectModal=w;
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 r=require("@aplus-frontend/antdv"),m=require("../../../config-provider/hooks/use-locale.js"),p=require("../../../config-provider/hooks/use-namespace.js"),i=require("../../ap-title/index.js"),f=e.defineComponent({__name:"index",props:{leftTitle:{default:""},renderSelectedItem:{},selectedList:{default:()=>[]}},emits:["clear","deleteItem"],setup(y,{emit:d}){const{t:a}=m.useLocale(),n=d,c=()=>{n("clear")},u=t=>{n("deleteItem",t)},{m:l}=p.useNamespace("ap-table-modal");return(t,k)=>(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},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left"))},[e.createVNode(e.unref(i.ApTitle),{style:{"margin-bottom":"16px"},title:t.leftTitle},null,8,["title"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-left-content"))},[e.renderSlot(t.$slots,"default")],2)],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l)("table-layout-right"))},[e.createVNode(e.unref(i.ApTitle),{title:`${e.unref(a)("ap.apTableModal.selected")} (${t.selectedList.length})`},{suffix:e.withCtx(()=>[e.createVNode(e.unref(r.Button),{type:"link",style:{padding:"0px",height:"22px","border-width":"0px"},onClick:c},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("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,o=>{var s;return e.openBlock(),e.createBlock(e.resolveDynamicComponent((s=t.renderSelectedItem)==null?void 0:s.call(t,o,{deleteItem:u})),{key:o})}),128)),t.selectedList.length===0?(e.openBlock(),e.createBlock(e.unref(r.Empty),{key:0,image:e.unref(r.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=f;
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;
@@ -5,7 +5,7 @@ export interface ApTitleProps {
5
5
  /**
6
6
  * 小标题
7
7
  */
8
- title: string;
8
+ title?: string;
9
9
  /**
10
10
  * 帮助消息
11
11
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aplus-frontend/ui",
3
- "version": "0.4.12",
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/hooks": "1.0.7",
69
- "@aplus-frontend/utils": "1.0.49"
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
  });
@@ -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
  }
@@ -9,12 +9,6 @@
9
9
  .ant-picker {
10
10
  display: flex;
11
11
  }
12
- .ant-input-group {
13
- .ant-picker {
14
- flex: 1;
15
- }
16
- }
17
-
18
12
  .ant-input-number {
19
13
  width: 100%;
20
14
  }
@@ -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
  }