@varlet/ui 3.3.1 → 3.3.2

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.
@@ -7,7 +7,8 @@ var stdin_default = {
7
7
  "--app-bar-left-gap": "6px",
8
8
  "--app-bar-right-gap": "6px",
9
9
  "--app-bar-border-radius": "4px",
10
- "--app-bar-font-size": "var(--font-size-lg)"
10
+ "--app-bar-font-size": "var(--font-size-lg)",
11
+ "--app-bar-border-bottom": "thin solid var(--color-outline)"
11
12
  };
12
13
  export {
13
14
  stdin_default as default
@@ -7,7 +7,8 @@ var stdin_default = {
7
7
  "--app-bar-left-gap": "6px",
8
8
  "--app-bar-right-gap": "6px",
9
9
  "--app-bar-border-radius": "4px",
10
- "--app-bar-font-size": "var(--font-size-lg)"
10
+ "--app-bar-font-size": "var(--font-size-lg)",
11
+ "--app-bar-border-bottom": "thin solid var(--color-outline)"
11
12
  };
12
13
  export {
13
14
  stdin_default as default
@@ -7,7 +7,8 @@ var stdin_default = {
7
7
  "--app-bar-left-gap": "6px",
8
8
  "--app-bar-right-gap": "6px",
9
9
  "--app-bar-border-radius": "4px",
10
- "--app-bar-font-size": "var(--font-size-lg)"
10
+ "--app-bar-font-size": "var(--font-size-lg)",
11
+ "--app-bar-border-bottom": "thin solid var(--color-outline)"
11
12
  };
12
13
  export {
13
14
  stdin_default as default
@@ -45,9 +45,10 @@ import {
45
45
  onActivated,
46
46
  onDeactivated,
47
47
  Comment,
48
- Fragment
48
+ Fragment,
49
+ defineComponent
49
50
  } from "vue";
50
- import { createNamespaceFn, isArray, isPlainObject } from "@varlet/shared";
51
+ import { createNamespaceFn, isArray, isPlainObject, isString } from "@varlet/shared";
51
52
  function pickProps(props, propsKey) {
52
53
  return Array.isArray(propsKey) ? propsKey.reduce((pickedProps, key) => {
53
54
  pickedProps[key] = props[key];
@@ -184,7 +185,22 @@ function formatElevation(elevation, defaultLevel) {
184
185
  }
185
186
  return `var-elevation--${elevation}`;
186
187
  }
188
+ const MaybeVNode = defineComponent({
189
+ props: {
190
+ is: {
191
+ type: [String, Object]
192
+ },
193
+ tag: {
194
+ type: String,
195
+ default: "span"
196
+ }
197
+ },
198
+ setup(props) {
199
+ return () => isString(props.is) ? h(props.tag, props.is) : props.is;
200
+ }
201
+ });
187
202
  export {
203
+ MaybeVNode,
188
204
  createNamespace,
189
205
  defineListenerProp,
190
206
  flatFragment,