persagy-vant 0.0.30 → 0.0.31

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.
Files changed (210) hide show
  1. package/es/cell/Cell.d.ts +34 -1
  2. package/es/cell/Cell.mjs +48 -12
  3. package/es/cell/index.css +1 -1
  4. package/es/cell/index.d.ts +20 -1
  5. package/es/cell/index.less +19 -0
  6. package/es/cell/var.less +1 -1
  7. package/es/collapse-item/CollapseItem.d.ts +25 -0
  8. package/es/collapse-item/index.d.ts +18 -0
  9. package/es/content-panel/ContentPanel.d.ts +46 -0
  10. package/es/content-panel/ContentPanel.mjs +72 -0
  11. package/es/content-panel/index.css +1 -0
  12. package/es/content-panel/index.d.ts +33 -0
  13. package/es/content-panel/index.less +54 -0
  14. package/es/content-panel/index.mjs +8 -0
  15. package/es/content-panel/style/index.mjs +11 -0
  16. package/es/content-panel/style/less.mjs +11 -0
  17. package/es/content-panel/var.css +0 -0
  18. package/es/content-panel/var.less +3 -0
  19. package/es/dialog/Dialog.d.ts +4 -0
  20. package/es/dialog/Dialog.mjs +14 -1
  21. package/es/dialog/function-call.d.ts +2 -0
  22. package/es/dialog/types.d.ts +2 -0
  23. package/es/field/Field.d.ts +25 -0
  24. package/es/field/Field.mjs +1 -1
  25. package/es/field/index.d.ts +18 -0
  26. package/es/index.d.ts +6 -1
  27. package/es/index.mjs +16 -1
  28. package/es/info-card/InfoCard.d.ts +1 -0
  29. package/es/info-card/InfoCard.mjs +1 -0
  30. package/es/label/Label.d.ts +67 -0
  31. package/es/label/Label.mjs +22 -7
  32. package/es/label/index.css +1 -1
  33. package/es/label/index.d.ts +45 -0
  34. package/es/label/index.less +19 -0
  35. package/es/label/var.less +4 -1
  36. package/es/loading/Loading.mjs +18 -21
  37. package/es/material-action-bar/MaterialActionBar.d.ts +66 -0
  38. package/es/material-action-bar/MaterialActionBar.mjs +132 -0
  39. package/es/material-action-bar/index.css +1 -0
  40. package/es/material-action-bar/index.d.ts +58 -0
  41. package/es/material-action-bar/index.less +33 -0
  42. package/es/material-action-bar/index.mjs +8 -0
  43. package/es/material-action-bar/style/index.mjs +19 -0
  44. package/es/material-action-bar/style/less.mjs +19 -0
  45. package/es/material-add/MaterialAdd.mjs +12 -7
  46. package/es/material-add/index.css +1 -1
  47. package/es/material-add/index.less +7 -5
  48. package/es/material-add/style/index.mjs +7 -0
  49. package/es/material-add/style/less.mjs +7 -0
  50. package/es/material-detail/MaterialDetail.d.ts +64 -0
  51. package/es/material-detail/MaterialDetail.mjs +192 -0
  52. package/es/material-detail/index.css +1 -0
  53. package/es/material-detail/index.d.ts +40 -0
  54. package/es/material-detail/index.less +20 -0
  55. package/es/material-detail/index.mjs +8 -0
  56. package/es/material-detail/style/index.mjs +11 -0
  57. package/es/material-detail/style/less.mjs +11 -0
  58. package/es/material-display-bar/MaterialDisplayBar.d.ts +159 -0
  59. package/es/material-display-bar/MaterialDisplayBar.mjs +109 -0
  60. package/es/material-display-bar/index.css +1 -0
  61. package/es/material-display-bar/index.d.ts +103 -0
  62. package/es/material-display-bar/index.less +113 -0
  63. package/es/material-display-bar/index.mjs +8 -0
  64. package/es/material-display-bar/style/index.mjs +11 -0
  65. package/es/material-display-bar/style/less.mjs +11 -0
  66. package/es/material-display-bar/var.css +0 -0
  67. package/es/material-display-bar/var.less +12 -0
  68. package/es/rate/RateCell.mjs +4 -1
  69. package/es/rate/index.css +1 -1
  70. package/es/rate/index.less +16 -3
  71. package/es/search/Search.d.ts +14 -1
  72. package/es/search/Search.mjs +5 -3
  73. package/es/search/index.css +1 -1
  74. package/es/search/index.d.ts +9 -0
  75. package/es/search/index.less +10 -0
  76. package/es/search/types.d.ts +1 -0
  77. package/es/step/index.css +1 -1
  78. package/es/step/var.less +2 -2
  79. package/es/style/base.css +1 -1
  80. package/es/style/css-variables.css +1 -1
  81. package/es/style/var.less +1 -1
  82. package/es/title-bar/TitleBar.d.ts +85 -0
  83. package/es/title-bar/TitleBar.mjs +62 -0
  84. package/es/title-bar/index.css +1 -0
  85. package/es/title-bar/index.d.ts +60 -0
  86. package/es/title-bar/index.less +25 -0
  87. package/es/title-bar/index.mjs +8 -0
  88. package/es/title-bar/style/index.mjs +4 -0
  89. package/es/title-bar/style/less.mjs +4 -0
  90. package/es/title-bar/var.css +0 -0
  91. package/es/title-bar/var.less +6 -0
  92. package/es/tree-select/TreeSelect.d.ts +13 -0
  93. package/es/tree-select/TreeSelect.mjs +4 -2
  94. package/es/tree-select/index.css +1 -1
  95. package/es/tree-select/index.d.ts +9 -0
  96. package/es/tree-select/index.less +6 -0
  97. package/lib/cell/Cell.d.ts +34 -1
  98. package/lib/cell/Cell.js +46 -10
  99. package/lib/cell/index.css +1 -1
  100. package/lib/cell/index.d.ts +20 -1
  101. package/lib/cell/index.less +19 -0
  102. package/lib/cell/var.less +1 -1
  103. package/lib/collapse-item/CollapseItem.d.ts +25 -0
  104. package/lib/collapse-item/index.d.ts +18 -0
  105. package/lib/content-panel/ContentPanel.d.ts +46 -0
  106. package/lib/content-panel/ContentPanel.js +91 -0
  107. package/lib/content-panel/index.css +1 -0
  108. package/lib/content-panel/index.d.ts +33 -0
  109. package/lib/content-panel/index.js +37 -0
  110. package/lib/content-panel/index.less +54 -0
  111. package/lib/content-panel/style/index.js +11 -0
  112. package/lib/content-panel/style/less.js +11 -0
  113. package/lib/content-panel/var.css +0 -0
  114. package/lib/content-panel/var.less +3 -0
  115. package/lib/dialog/Dialog.d.ts +4 -0
  116. package/lib/dialog/Dialog.js +13 -0
  117. package/lib/dialog/function-call.d.ts +2 -0
  118. package/lib/dialog/types.d.ts +2 -0
  119. package/lib/dog1.jpg +0 -0
  120. package/lib/dog2.jpg +0 -0
  121. package/lib/dog3.jpg +0 -0
  122. package/lib/field/Field.d.ts +25 -0
  123. package/lib/field/Field.js +1 -1
  124. package/lib/field/index.d.ts +18 -0
  125. package/lib/index.css +1 -1
  126. package/lib/index.d.ts +6 -1
  127. package/lib/index.js +16 -1
  128. package/lib/index.less +6 -1
  129. package/lib/info-card/InfoCard.d.ts +1 -0
  130. package/lib/info-card/InfoCard.js +1 -0
  131. package/lib/label/Label.d.ts +67 -0
  132. package/lib/label/Label.js +21 -6
  133. package/lib/label/index.css +1 -1
  134. package/lib/label/index.d.ts +45 -0
  135. package/lib/label/index.less +19 -0
  136. package/lib/label/var.less +4 -1
  137. package/lib/loading/Loading.js +18 -21
  138. package/lib/material-action-bar/MaterialActionBar.d.ts +66 -0
  139. package/lib/material-action-bar/MaterialActionBar.js +151 -0
  140. package/lib/material-action-bar/index.css +1 -0
  141. package/lib/material-action-bar/index.d.ts +58 -0
  142. package/lib/material-action-bar/index.js +37 -0
  143. package/lib/material-action-bar/index.less +33 -0
  144. package/lib/material-action-bar/style/index.js +19 -0
  145. package/lib/material-action-bar/style/less.js +19 -0
  146. package/lib/material-add/MaterialAdd.js +12 -7
  147. package/lib/material-add/index.css +1 -1
  148. package/lib/material-add/index.less +7 -5
  149. package/lib/material-add/style/index.js +7 -0
  150. package/lib/material-add/style/less.js +7 -0
  151. package/lib/material-detail/MaterialDetail.d.ts +64 -0
  152. package/lib/material-detail/MaterialDetail.js +211 -0
  153. package/lib/material-detail/index.css +1 -0
  154. package/lib/material-detail/index.d.ts +40 -0
  155. package/lib/material-detail/index.js +37 -0
  156. package/lib/material-detail/index.less +20 -0
  157. package/lib/material-detail/style/index.js +11 -0
  158. package/lib/material-detail/style/less.js +11 -0
  159. package/lib/material-display-bar/MaterialDisplayBar.d.ts +159 -0
  160. package/lib/material-display-bar/MaterialDisplayBar.js +128 -0
  161. package/lib/material-display-bar/index.css +1 -0
  162. package/lib/material-display-bar/index.d.ts +103 -0
  163. package/lib/material-display-bar/index.js +37 -0
  164. package/lib/material-display-bar/index.less +113 -0
  165. package/lib/material-display-bar/style/index.js +11 -0
  166. package/lib/material-display-bar/style/less.js +11 -0
  167. package/lib/material-display-bar/var.css +0 -0
  168. package/lib/material-display-bar/var.less +12 -0
  169. package/lib/rate/RateCell.js +4 -1
  170. package/lib/rate/index.css +1 -1
  171. package/lib/rate/index.less +16 -3
  172. package/lib/search/Search.d.ts +14 -1
  173. package/lib/search/Search.js +5 -3
  174. package/lib/search/index.css +1 -1
  175. package/lib/search/index.d.ts +9 -0
  176. package/lib/search/index.less +10 -0
  177. package/lib/search/types.d.ts +1 -0
  178. package/lib/step/index.css +1 -1
  179. package/lib/step/var.less +2 -2
  180. package/lib/style/base.css +1 -1
  181. package/lib/style/css-variables.css +1 -1
  182. package/lib/style/var.less +1 -1
  183. package/lib/title-bar/TitleBar.d.ts +85 -0
  184. package/lib/title-bar/TitleBar.js +81 -0
  185. package/lib/title-bar/index.css +1 -0
  186. package/lib/title-bar/index.d.ts +60 -0
  187. package/lib/title-bar/index.js +37 -0
  188. package/lib/title-bar/index.less +25 -0
  189. package/lib/title-bar/style/index.js +4 -0
  190. package/lib/title-bar/style/less.js +4 -0
  191. package/lib/title-bar/var.css +0 -0
  192. package/lib/title-bar/var.less +6 -0
  193. package/lib/tree-select/TreeSelect.d.ts +13 -0
  194. package/lib/tree-select/TreeSelect.js +3 -1
  195. package/lib/tree-select/index.css +1 -1
  196. package/lib/tree-select/index.d.ts +9 -0
  197. package/lib/tree-select/index.less +6 -0
  198. package/lib/vant.cjs.js +1641 -1218
  199. package/lib/vant.es.js +1641 -1218
  200. package/lib/vant.js +1641 -1218
  201. package/lib/vant.min.js +1 -1
  202. package/lib/web-types.json +1 -1
  203. package/package.json +1 -1
  204. package/skills/use-persagy-vant/references/business-component-catalog.md +8 -3
  205. package/skills/use-persagy-vant/references/component-catalog.md +7 -4
  206. package/skills/use-persagy-vant/references/component-documentation.md +1 -1
  207. package/skills/use-persagy-vant/references/design-interaction-baseline.md +3 -3
  208. package/skills/use-persagy-vant/references/page-recipes.md +18 -5
  209. package/skills/use-persagy-vant/references/reuse-policy.md +1 -1
  210. package/skills/use-persagy-vant/references/usage-patterns.md +9 -1
@@ -0,0 +1,72 @@
1
+ import { defineComponent, createVNode as _createVNode } from "vue";
2
+ import { createNamespace, makeStringProp, truthProp } from "../utils/index.mjs";
3
+ import { ActionSheet } from "../action-sheet/index.mjs";
4
+ import { NavBar } from "../nav-bar/index.mjs";
5
+ import { Icon } from "../icon/index.mjs";
6
+ import { Button } from "../button/index.mjs";
7
+ const [name, bem] = createNamespace("content-panel");
8
+ const contentPanelProps = {
9
+ show: Boolean,
10
+ title: String,
11
+ confirmText: makeStringProp("\u6211\u5DF2\u77E5\u6653"),
12
+ showFooter: truthProp
13
+ };
14
+ var stdin_default = defineComponent({
15
+ name,
16
+ props: contentPanelProps,
17
+ emits: ["update:show", "confirm", "close"],
18
+ setup(props, {
19
+ emit,
20
+ slots
21
+ }) {
22
+ const close = () => {
23
+ emit("update:show", false);
24
+ emit("close");
25
+ };
26
+ const confirm = () => {
27
+ emit("confirm");
28
+ close();
29
+ };
30
+ return () => _createVNode(ActionSheet, {
31
+ "show": props.show,
32
+ "class": bem(),
33
+ "onUpdate:show": (show) => {
34
+ emit("update:show", show);
35
+ if (!show)
36
+ emit("close");
37
+ }
38
+ }, {
39
+ default: () => {
40
+ var _a, _b;
41
+ return [_createVNode("div", {
42
+ "class": bem("content")
43
+ }, [_createVNode("div", {
44
+ "class": bem("nav-wrapper")
45
+ }, [_createVNode(NavBar, {
46
+ "title": props.title,
47
+ "border": false,
48
+ "class": bem("nav")
49
+ }, {
50
+ left: () => _createVNode(Icon, {
51
+ "name": "cross",
52
+ "size": "22",
53
+ "onClick": close
54
+ }, null)
55
+ })]), _createVNode("div", {
56
+ "class": bem("body")
57
+ }, [(_a = slots.default) == null ? void 0 : _a.call(slots)]), props.showFooter && _createVNode("div", {
58
+ "class": bem("footer")
59
+ }, [((_b = slots.footer) == null ? void 0 : _b.call(slots)) || _createVNode(Button, {
60
+ "block": true,
61
+ "type": "primary",
62
+ "onClick": confirm
63
+ }, {
64
+ default: () => [props.confirmText]
65
+ })])])];
66
+ }
67
+ });
68
+ }
69
+ });
70
+ export {
71
+ stdin_default as default
72
+ };
@@ -0,0 +1 @@
1
+ :root{--van-content-panel-background: var(--van-gray-1);--van-content-panel-radius: var(--van-border-radius-xl);--van-content-panel-footer-padding: var(--van-padding-xs) 12px}.van-content-panel{box-sizing:border-box;display:flex;height:calc(100% - 96px);max-height:calc(100% - 96px);overflow:hidden;background:var(--van-content-panel-background);border-radius:var(--van-content-panel-radius) var(--van-content-panel-radius) 0 0}.van-content-panel .van-action-sheet__content{display:flex;flex:1;min-height:0;overflow:hidden}.van-content-panel__content{display:flex;flex:1;flex-direction:column;min-height:0;overflow:hidden;background:var(--van-content-panel-background)}.van-content-panel__nav-wrapper{flex:none}.van-content-panel__nav{--van-nav-bar-background-color: var(--van-gray-1)}.van-content-panel__nav .van-nav-bar__left--slot{left:var(--van-padding-md);padding:0}.van-content-panel__body{flex:1;min-height:0;overflow-y:auto}.van-content-panel__footer{flex:none;padding:var(--van-content-panel-footer-padding);background:var(--van-white);box-shadow:0 3px 12px rgba(27,33,41,.12),0 .5px 3px rgba(27,33,41,.08)}
@@ -0,0 +1,33 @@
1
+ export declare const ContentPanel: import("../utils").WithInstall<import("vue").DefineComponent<{
2
+ show: BooleanConstructor;
3
+ title: StringConstructor;
4
+ confirmText: {
5
+ type: import("vue").PropType<string>;
6
+ default: string;
7
+ };
8
+ showFooter: {
9
+ type: BooleanConstructor;
10
+ default: true;
11
+ };
12
+ }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "update:show" | "confirm")[], "close" | "update:show" | "confirm", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
13
+ show: BooleanConstructor;
14
+ title: StringConstructor;
15
+ confirmText: {
16
+ type: import("vue").PropType<string>;
17
+ default: string;
18
+ };
19
+ showFooter: {
20
+ type: BooleanConstructor;
21
+ default: true;
22
+ };
23
+ }>> & {
24
+ onClose?: ((...args: any[]) => any) | undefined;
25
+ "onUpdate:show"?: ((...args: any[]) => any) | undefined;
26
+ onConfirm?: ((...args: any[]) => any) | undefined;
27
+ }, {
28
+ show: boolean;
29
+ confirmText: string;
30
+ showFooter: boolean;
31
+ }>>;
32
+ export default ContentPanel;
33
+ export type { ContentPanelProps } from './ContentPanel';
@@ -0,0 +1,54 @@
1
+ @import './var.less';
2
+
3
+ :root {
4
+ --van-content-panel-background: @content-panel-background;
5
+ --van-content-panel-radius: @content-panel-radius;
6
+ --van-content-panel-footer-padding: @content-panel-footer-padding;
7
+ }
8
+
9
+ .van-content-panel {
10
+ box-sizing: border-box;
11
+ display: flex;
12
+ height: calc(100% - 96px);
13
+ max-height: calc(100% - 96px);
14
+ overflow: hidden;
15
+ background: var(--van-content-panel-background);
16
+ border-radius: var(--van-content-panel-radius) var(--van-content-panel-radius) 0 0;
17
+
18
+ .van-action-sheet__content {
19
+ display: flex;
20
+ flex: 1;
21
+ min-height: 0;
22
+ overflow: hidden;
23
+ }
24
+
25
+ &__content {
26
+ display: flex;
27
+ flex: 1;
28
+ flex-direction: column;
29
+ min-height: 0;
30
+ overflow: hidden;
31
+ background: var(--van-content-panel-background);
32
+ }
33
+
34
+ &__nav-wrapper { flex: none; }
35
+
36
+ &__nav {
37
+ --van-nav-bar-background-color: var(--van-gray-1);
38
+
39
+ .van-nav-bar__left--slot { left: var(--van-padding-md); padding: 0; }
40
+ }
41
+
42
+ &__body {
43
+ flex: 1;
44
+ min-height: 0;
45
+ overflow-y: auto;
46
+ }
47
+
48
+ &__footer {
49
+ flex: none;
50
+ padding: var(--van-content-panel-footer-padding);
51
+ background: var(--van-white);
52
+ box-shadow: 0 3px 12px rgb(27 33 41 / 12%), 0 0.5px 3px rgb(27 33 41 / 8%);
53
+ }
54
+ }
@@ -0,0 +1,8 @@
1
+ import { withInstall } from "../utils/index.mjs";
2
+ import _ContentPanel from "./ContentPanel.mjs";
3
+ const ContentPanel = withInstall(_ContentPanel);
4
+ var stdin_default = ContentPanel;
5
+ export {
6
+ ContentPanel,
7
+ stdin_default as default
8
+ };
@@ -0,0 +1,11 @@
1
+ import "../../style/base.css";
2
+ import "../../badge/index.css";
3
+ import "../../icon/index.css";
4
+ import "../../loading/index.css";
5
+ import "../../button/index.css";
6
+ import "../../overlay/index.css";
7
+ import "../../popup/index.css";
8
+ import "../../popover/index.css";
9
+ import "../../nav-bar/index.css";
10
+ import "../../action-sheet/index.css";
11
+ import "../index.css";
@@ -0,0 +1,11 @@
1
+ import "../../style/base.less";
2
+ import "../../badge/index.less";
3
+ import "../../icon/index.less";
4
+ import "../../loading/index.less";
5
+ import "../../button/index.less";
6
+ import "../../overlay/index.less";
7
+ import "../../popup/index.less";
8
+ import "../../popover/index.less";
9
+ import "../../nav-bar/index.less";
10
+ import "../../action-sheet/index.less";
11
+ import "../index.less";
File without changes
@@ -0,0 +1,3 @@
1
+ @content-panel-background: var(--van-gray-1);
2
+ @content-panel-radius: var(--van-border-radius-xl);
3
+ @content-panel-footer-padding: var(--van-padding-xs) 12px;
@@ -1,4 +1,5 @@
1
1
  import { type PropType, type ExtractPropTypes } from 'vue';
2
+ import type { FieldTextAlign } from '../field/types';
2
3
  import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
3
4
  declare const dialogProps: {
4
5
  show: BooleanConstructor;
@@ -43,6 +44,7 @@ declare const dialogProps: {
43
44
  type: PropType<string>;
44
45
  default: string;
45
46
  };
47
+ inputAlign: PropType<FieldTextAlign>;
46
48
  inputPlaceholder: {
47
49
  type: PropType<string>;
48
50
  default: string;
@@ -113,6 +115,7 @@ declare const _default: import("vue").DefineComponent<{
113
115
  type: PropType<string>;
114
116
  default: string;
115
117
  };
118
+ inputAlign: PropType<FieldTextAlign>;
116
119
  inputPlaceholder: {
117
120
  type: PropType<string>;
118
121
  default: string;
@@ -181,6 +184,7 @@ declare const _default: import("vue").DefineComponent<{
181
184
  type: PropType<string>;
182
185
  default: string;
183
186
  };
187
+ inputAlign: PropType<FieldTextAlign>;
184
188
  inputPlaceholder: {
185
189
  type: PropType<string>;
186
190
  default: string;
@@ -1,4 +1,4 @@
1
- import { ref, reactive, withKeys, defineComponent, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
1
+ import { ref, nextTick, reactive, withKeys, defineComponent, createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
2
2
  import { noop, pick, extend, addUnit, truthProp, isFunction, BORDER_TOP, BORDER_LEFT, unknownProp, numericProp, makeStringProp, callInterceptor, createNamespace } from "../utils/index.mjs";
3
3
  import { popupSharedProps, popupSharedPropKeys } from "../popup/shared.mjs";
4
4
  import { Popup } from "../popup/index.mjs";
@@ -19,6 +19,7 @@ const dialogProps = extend({}, popupSharedProps, {
19
19
  messageAlign: String,
20
20
  showInput: Boolean,
21
21
  inputValue: makeStringProp(""),
22
+ inputAlign: String,
22
23
  inputPlaceholder: makeStringProp("\u8BF7\u8F93\u5165"),
23
24
  inputAutofocus: Boolean,
24
25
  closeOnPopstate: truthProp,
@@ -46,6 +47,7 @@ var stdin_default = defineComponent({
46
47
  slots
47
48
  }) {
48
49
  const root = ref();
50
+ const inputRef = ref();
49
51
  const loading = reactive({
50
52
  confirm: false,
51
53
  cancel: false,
@@ -133,10 +135,12 @@ var stdin_default = defineComponent({
133
135
  emit("input", value);
134
136
  };
135
137
  return _createVNode(Field, {
138
+ "ref": inputRef,
136
139
  "size": "normal",
137
140
  "border": false,
138
141
  "class": bem("input"),
139
142
  "modelValue": props.inputValue,
143
+ "inputAlign": props.inputAlign,
140
144
  "placeholder": props.inputPlaceholder,
141
145
  "autofocus": props.inputAutofocus,
142
146
  "onUpdate:modelValue": onInput
@@ -224,6 +228,14 @@ var stdin_default = defineComponent({
224
228
  }
225
229
  return props.theme === "round-button" ? renderRoundButtons() : renderButtons();
226
230
  };
231
+ const onOpen = () => {
232
+ if (props.inputAutofocus) {
233
+ nextTick(() => {
234
+ var _a;
235
+ return (_a = inputRef.value) == null ? void 0 : _a.focus();
236
+ });
237
+ }
238
+ };
227
239
  return () => {
228
240
  const {
229
241
  width,
@@ -242,6 +254,7 @@ var stdin_default = defineComponent({
242
254
  "tabindex": 0,
243
255
  "aria-labelledby": title || message,
244
256
  "onKeydown": onKeydown,
257
+ "onOpen": onOpen,
245
258
  "onUpdate:show": updateShow
246
259
  }, pick(props, popupInheritKeys)), {
247
260
  default: () => [renderTitle(), renderContent(), renderFooter()]
@@ -104,6 +104,7 @@ declare namespace Dialog {
104
104
  type: import("vue").PropType<string>;
105
105
  default: string;
106
106
  };
107
+ inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
107
108
  inputPlaceholder: {
108
109
  type: import("vue").PropType<string>;
109
110
  default: string;
@@ -172,6 +173,7 @@ declare namespace Dialog {
172
173
  type: import("vue").PropType<string>;
173
174
  default: string;
174
175
  };
176
+ inputAlign: import("vue").PropType<import("..").FieldTextAlign>;
175
177
  inputPlaceholder: {
176
178
  type: import("vue").PropType<string>;
177
179
  default: string;
@@ -1,6 +1,7 @@
1
1
  import { Dialog } from './function-call';
2
2
  import type { CSSProperties, TeleportProps } from 'vue';
3
3
  import type { Interceptor, Numeric } from '../utils';
4
+ import type { FieldTextAlign } from '../field/types';
4
5
  export declare type DialogTheme = 'default' | 'round-button';
5
6
  export declare type DialogAction = 'confirm' | 'cancel' | 'third';
6
7
  export declare type DialogMessage = string | (() => JSX.Element);
@@ -20,6 +21,7 @@ export declare type DialogOptions = {
20
21
  messageAlign?: DialogMessageAlign;
21
22
  showInput?: boolean;
22
23
  inputValue?: string;
24
+ inputAlign?: FieldTextAlign;
23
25
  inputPlaceholder?: string;
24
26
  inputAutofocus?: boolean;
25
27
  overlayClass?: string;
@@ -53,12 +53,18 @@ declare const fieldProps: {
53
53
  title: (NumberConstructor | StringConstructor)[];
54
54
  value: (NumberConstructor | StringConstructor)[];
55
55
  label: (NumberConstructor | StringConstructor)[];
56
+ labelSize: (NumberConstructor | StringConstructor)[];
56
57
  avatar: StringConstructor;
57
58
  rightAvatar: StringConstructor;
58
59
  tags: PropType<import("../utils").Numeric[]>;
59
60
  titleIcon: StringConstructor;
60
61
  rightIcon: StringConstructor;
61
62
  note: (NumberConstructor | StringConstructor)[];
63
+ noteBold: BooleanConstructor;
64
+ noteClickable: BooleanConstructor;
65
+ noteTo: PropType<import("vue-router").RouteLocationRaw>;
66
+ noteUrl: StringConstructor;
67
+ noteReplace: BooleanConstructor;
62
68
  badge: (NumberConstructor | StringConstructor)[];
63
69
  leftSelect: {
64
70
  type: PropType<boolean | undefined>;
@@ -73,6 +79,7 @@ declare const fieldProps: {
73
79
  default: string;
74
80
  };
75
81
  blueMark: BooleanConstructor;
82
+ titleBold: BooleanConstructor;
76
83
  center: BooleanConstructor;
77
84
  isLink: BooleanConstructor;
78
85
  border: {
@@ -170,12 +177,18 @@ declare const _default: import("vue").DefineComponent<{
170
177
  title: (NumberConstructor | StringConstructor)[];
171
178
  value: (NumberConstructor | StringConstructor)[];
172
179
  label: (NumberConstructor | StringConstructor)[];
180
+ labelSize: (NumberConstructor | StringConstructor)[];
173
181
  avatar: StringConstructor;
174
182
  rightAvatar: StringConstructor;
175
183
  tags: PropType<import("../utils").Numeric[]>;
176
184
  titleIcon: StringConstructor;
177
185
  rightIcon: StringConstructor;
178
186
  note: (NumberConstructor | StringConstructor)[];
187
+ noteBold: BooleanConstructor;
188
+ noteClickable: BooleanConstructor;
189
+ noteTo: PropType<import("vue-router").RouteLocationRaw>;
190
+ noteUrl: StringConstructor;
191
+ noteReplace: BooleanConstructor;
179
192
  badge: (NumberConstructor | StringConstructor)[];
180
193
  leftSelect: {
181
194
  type: PropType<boolean | undefined>;
@@ -190,6 +203,7 @@ declare const _default: import("vue").DefineComponent<{
190
203
  default: string;
191
204
  };
192
205
  blueMark: BooleanConstructor;
206
+ titleBold: BooleanConstructor;
193
207
  center: BooleanConstructor;
194
208
  isLink: BooleanConstructor;
195
209
  border: {
@@ -285,12 +299,18 @@ declare const _default: import("vue").DefineComponent<{
285
299
  title: (NumberConstructor | StringConstructor)[];
286
300
  value: (NumberConstructor | StringConstructor)[];
287
301
  label: (NumberConstructor | StringConstructor)[];
302
+ labelSize: (NumberConstructor | StringConstructor)[];
288
303
  avatar: StringConstructor;
289
304
  rightAvatar: StringConstructor;
290
305
  tags: PropType<import("../utils").Numeric[]>;
291
306
  titleIcon: StringConstructor;
292
307
  rightIcon: StringConstructor;
293
308
  note: (NumberConstructor | StringConstructor)[];
309
+ noteBold: BooleanConstructor;
310
+ noteClickable: BooleanConstructor;
311
+ noteTo: PropType<import("vue-router").RouteLocationRaw>;
312
+ noteUrl: StringConstructor;
313
+ noteReplace: BooleanConstructor;
294
314
  badge: (NumberConstructor | StringConstructor)[];
295
315
  leftSelect: {
296
316
  type: PropType<boolean | undefined>;
@@ -305,6 +325,7 @@ declare const _default: import("vue").DefineComponent<{
305
325
  default: string;
306
326
  };
307
327
  blueMark: BooleanConstructor;
328
+ titleBold: BooleanConstructor;
308
329
  center: BooleanConstructor;
309
330
  isLink: BooleanConstructor;
310
331
  border: {
@@ -410,10 +431,14 @@ declare const _default: import("vue").DefineComponent<{
410
431
  required: boolean;
411
432
  center: boolean;
412
433
  size: CellSize;
434
+ noteBold: boolean;
435
+ noteClickable: boolean;
436
+ noteReplace: boolean;
413
437
  leftSelect: boolean | undefined;
414
438
  rightSelect: boolean | undefined;
415
439
  selectType: import("../cell").CellSelectType;
416
440
  blueMark: boolean;
441
+ titleBold: boolean;
417
442
  isLink: boolean;
418
443
  border: boolean;
419
444
  errorBorder: boolean;
@@ -19,7 +19,7 @@ const fieldSharedProps = {
19
19
  formatter: Function,
20
20
  clearIcon: makeStringProp("clear"),
21
21
  modelValue: makeNumericProp(""),
22
- inputAlign: makeStringProp("right"),
22
+ inputAlign: makeStringProp("left"),
23
23
  placeholder: String,
24
24
  autocomplete: String,
25
25
  errorMessage: String,
@@ -5,12 +5,18 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
5
5
  title: (NumberConstructor | StringConstructor)[];
6
6
  value: (NumberConstructor | StringConstructor)[];
7
7
  label: (NumberConstructor | StringConstructor)[];
8
+ labelSize: (NumberConstructor | StringConstructor)[];
8
9
  avatar: StringConstructor;
9
10
  rightAvatar: StringConstructor;
10
11
  tags: import("vue").PropType<import("../utils").Numeric[]>;
11
12
  titleIcon: StringConstructor;
12
13
  rightIcon: StringConstructor;
13
14
  note: (NumberConstructor | StringConstructor)[];
15
+ noteBold: BooleanConstructor;
16
+ noteClickable: BooleanConstructor;
17
+ noteTo: import("vue").PropType<import("vue-router").RouteLocationRaw>;
18
+ noteUrl: StringConstructor;
19
+ noteReplace: BooleanConstructor;
14
20
  badge: (NumberConstructor | StringConstructor)[];
15
21
  leftSelect: {
16
22
  type: import("vue").PropType<boolean | undefined>;
@@ -25,6 +31,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
25
31
  default: string;
26
32
  };
27
33
  blueMark: BooleanConstructor;
34
+ titleBold: BooleanConstructor;
28
35
  center: BooleanConstructor;
29
36
  isLink: BooleanConstructor;
30
37
  border: {
@@ -120,12 +127,18 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
120
127
  title: (NumberConstructor | StringConstructor)[];
121
128
  value: (NumberConstructor | StringConstructor)[];
122
129
  label: (NumberConstructor | StringConstructor)[];
130
+ labelSize: (NumberConstructor | StringConstructor)[];
123
131
  avatar: StringConstructor;
124
132
  rightAvatar: StringConstructor;
125
133
  tags: import("vue").PropType<import("../utils").Numeric[]>;
126
134
  titleIcon: StringConstructor;
127
135
  rightIcon: StringConstructor;
128
136
  note: (NumberConstructor | StringConstructor)[];
137
+ noteBold: BooleanConstructor;
138
+ noteClickable: BooleanConstructor;
139
+ noteTo: import("vue").PropType<import("vue-router").RouteLocationRaw>;
140
+ noteUrl: StringConstructor;
141
+ noteReplace: BooleanConstructor;
129
142
  badge: (NumberConstructor | StringConstructor)[];
130
143
  leftSelect: {
131
144
  type: import("vue").PropType<boolean | undefined>;
@@ -140,6 +153,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
140
153
  default: string;
141
154
  };
142
155
  blueMark: BooleanConstructor;
156
+ titleBold: BooleanConstructor;
143
157
  center: BooleanConstructor;
144
158
  isLink: BooleanConstructor;
145
159
  border: {
@@ -245,10 +259,14 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
245
259
  required: boolean;
246
260
  center: boolean;
247
261
  size: import("..").CellSize;
262
+ noteBold: boolean;
263
+ noteClickable: boolean;
264
+ noteReplace: boolean;
248
265
  leftSelect: boolean | undefined;
249
266
  rightSelect: boolean | undefined;
250
267
  selectType: import("..").CellSelectType;
251
268
  blueMark: boolean;
269
+ titleBold: boolean;
252
270
  isLink: boolean;
253
271
  border: boolean;
254
272
  errorBorder: boolean;
package/es/index.d.ts CHANGED
@@ -26,6 +26,7 @@ export * from "./config-provider";
26
26
  export * from "./contact-card";
27
27
  export * from "./contact-edit";
28
28
  export * from "./contact-list";
29
+ export * from "./content-panel";
29
30
  export * from "./count-down";
30
31
  export * from "./coupon";
31
32
  export * from "./coupon-cell";
@@ -56,7 +57,10 @@ export * from "./list";
56
57
  export * from "./loading";
57
58
  export * from "./locale";
58
59
  export * from "./location-select";
60
+ export * from "./material-action-bar";
59
61
  export * from "./material-add";
62
+ export * from "./material-detail";
63
+ export * from "./material-display-bar";
60
64
  export * from "./multi-person-select";
61
65
  export * from "./nav-bar";
62
66
  export * from "./notice-bar";
@@ -99,6 +103,7 @@ export * from "./tabbar";
99
103
  export * from "./tabbar-item";
100
104
  export * from "./tabs";
101
105
  export * from "./tag";
106
+ export * from "./title-bar";
102
107
  export * from "./toast";
103
108
  export * from "./tree-select";
104
109
  export * from "./uploader";
@@ -111,4 +116,4 @@ declare namespace _default {
111
116
  }
112
117
  export default _default;
113
118
  export function install(app: any): void;
114
- export const version: "0.0.30";
119
+ export const version: "0.0.31";
package/es/index.mjs CHANGED
@@ -26,6 +26,7 @@ import { ConfigProvider } from "./config-provider/index.mjs";
26
26
  import { ContactCard } from "./contact-card/index.mjs";
27
27
  import { ContactEdit } from "./contact-edit/index.mjs";
28
28
  import { ContactList } from "./contact-list/index.mjs";
29
+ import { ContentPanel } from "./content-panel/index.mjs";
29
30
  import { CountDown } from "./count-down/index.mjs";
30
31
  import { Coupon } from "./coupon/index.mjs";
31
32
  import { CouponCell } from "./coupon-cell/index.mjs";
@@ -55,7 +56,10 @@ import { List } from "./list/index.mjs";
55
56
  import { Loading } from "./loading/index.mjs";
56
57
  import { Locale } from "./locale/index.mjs";
57
58
  import { LocationSelect } from "./location-select/index.mjs";
59
+ import { MaterialActionBar } from "./material-action-bar/index.mjs";
58
60
  import { MaterialAdd } from "./material-add/index.mjs";
61
+ import { MaterialDetail } from "./material-detail/index.mjs";
62
+ import { MaterialDisplayBar } from "./material-display-bar/index.mjs";
59
63
  import { MultiPersonSelect } from "./multi-person-select/index.mjs";
60
64
  import { NavBar } from "./nav-bar/index.mjs";
61
65
  import { NoticeBar } from "./notice-bar/index.mjs";
@@ -98,13 +102,14 @@ import { Tabbar } from "./tabbar/index.mjs";
98
102
  import { TabbarItem } from "./tabbar-item/index.mjs";
99
103
  import { Tabs } from "./tabs/index.mjs";
100
104
  import { Tag } from "./tag/index.mjs";
105
+ import { TitleBar } from "./title-bar/index.mjs";
101
106
  import { Toast } from "./toast/index.mjs";
102
107
  import { TreeSelect } from "./tree-select/index.mjs";
103
108
  import { Uploader } from "./uploader/index.mjs";
104
109
  import { VideoPreview } from "./video-preview/index.mjs";
105
110
  import { WorkOrderCard } from "./work-order-card/index.mjs";
106
111
  import { WorkOrderFilter } from "./work-order-filter/index.mjs";
107
- const version = "0.0.30";
112
+ const version = "0.0.31";
108
113
  function install(app) {
109
114
  const components = [
110
115
  ActionBar,
@@ -135,6 +140,7 @@ function install(app) {
135
140
  ContactCard,
136
141
  ContactEdit,
137
142
  ContactList,
143
+ ContentPanel,
138
144
  CountDown,
139
145
  Coupon,
140
146
  CouponCell,
@@ -164,7 +170,10 @@ function install(app) {
164
170
  Loading,
165
171
  Locale,
166
172
  LocationSelect,
173
+ MaterialActionBar,
167
174
  MaterialAdd,
175
+ MaterialDetail,
176
+ MaterialDisplayBar,
168
177
  MultiPersonSelect,
169
178
  NavBar,
170
179
  NoticeBar,
@@ -207,6 +216,7 @@ function install(app) {
207
216
  TabbarItem,
208
217
  Tabs,
209
218
  Tag,
219
+ TitleBar,
210
220
  Toast,
211
221
  TreeSelect,
212
222
  Uploader,
@@ -250,6 +260,7 @@ export * from "./config-provider/index.mjs";
250
260
  export * from "./contact-card/index.mjs";
251
261
  export * from "./contact-edit/index.mjs";
252
262
  export * from "./contact-list/index.mjs";
263
+ export * from "./content-panel/index.mjs";
253
264
  export * from "./count-down/index.mjs";
254
265
  export * from "./coupon/index.mjs";
255
266
  export * from "./coupon-cell/index.mjs";
@@ -280,7 +291,10 @@ export * from "./list/index.mjs";
280
291
  export * from "./loading/index.mjs";
281
292
  export * from "./locale/index.mjs";
282
293
  export * from "./location-select/index.mjs";
294
+ export * from "./material-action-bar/index.mjs";
283
295
  export * from "./material-add/index.mjs";
296
+ export * from "./material-detail/index.mjs";
297
+ export * from "./material-display-bar/index.mjs";
284
298
  export * from "./multi-person-select/index.mjs";
285
299
  export * from "./nav-bar/index.mjs";
286
300
  export * from "./notice-bar/index.mjs";
@@ -323,6 +337,7 @@ export * from "./tabbar/index.mjs";
323
337
  export * from "./tabbar-item/index.mjs";
324
338
  export * from "./tabs/index.mjs";
325
339
  export * from "./tag/index.mjs";
340
+ export * from "./title-bar/index.mjs";
326
341
  export * from "./toast/index.mjs";
327
342
  export * from "./tree-select/index.mjs";
328
343
  export * from "./uploader/index.mjs";
@@ -2,6 +2,7 @@ import { type ExtractPropTypes, type PropType } from 'vue';
2
2
  import { type LabelMedia, type LabelType } from '../label';
3
3
  export declare type InfoCardField = {
4
4
  label: string;
5
+ showColon?: boolean;
5
6
  content?: string;
6
7
  type?: LabelType;
7
8
  vertical?: boolean;
@@ -38,6 +38,7 @@ var stdin_default = defineComponent({
38
38
  const renderField = (field, index) => _createVNode(Label, {
39
39
  "key": `${field.label}-${index}`,
40
40
  "label": field.label,
41
+ "showColon": field.showColon,
41
42
  "content": field.content,
42
43
  "type": field.type,
43
44
  "vertical": field.vertical,