cosey 0.6.16 → 0.6.17

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.
@@ -16,6 +16,9 @@ export declare const highlightProps: {
16
16
  lang: {
17
17
  type: PropType<xml | json | js | ts | plaintext | "css" | "scss" | "less" | (string & {})>;
18
18
  };
19
+ maxHeight: {
20
+ type: StringConstructor;
21
+ };
19
22
  };
20
23
  export type HighlightProps = ExtractPropTypes<typeof highlightProps>;
21
24
  export interface HighlightSlots {
@@ -23,6 +23,9 @@ const highlightProps = {
23
23
  },
24
24
  lang: {
25
25
  type: String
26
+ },
27
+ maxHeight: {
28
+ type: String
26
29
  }
27
30
  };
28
31
  const highlightSlots = Object;
@@ -5,6 +5,9 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
5
5
  lang: {
6
6
  type: import("vue").PropType<("html" | "svg" | "xml" | "xhtml" | "rss" | "atom" | "xjb" | "xsd" | "xsl" | "plist" | "wsf") | "json" | ("javascript" | "js" | "jsx" | "mjs" | "cjs") | ("typescript" | "ts" | "tsx" | "mts" | "cts") | ("text" | "plaintext" | "txt") | "css" | "scss" | "less" | (string & {})>;
7
7
  };
8
+ maxHeight: {
9
+ type: StringConstructor;
10
+ };
8
11
  }>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
12
  code: {
10
13
  type: StringConstructor;
@@ -12,5 +15,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
12
15
  lang: {
13
16
  type: import("vue").PropType<("html" | "svg" | "xml" | "xhtml" | "rss" | "atom" | "xjb" | "xsd" | "xsl" | "plist" | "wsf") | "json" | ("javascript" | "js" | "jsx" | "mjs" | "cjs") | ("typescript" | "ts" | "tsx" | "mts" | "cts") | ("text" | "plaintext" | "txt") | "css" | "scss" | "less" | (string & {})>;
14
17
  };
18
+ maxHeight: {
19
+ type: StringConstructor;
20
+ };
15
21
  }>> & Readonly<{}>, {}, import("vue").SlotsType<import("./highlight.api").HighlightSlots>, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
16
22
  export default _default;
@@ -22,7 +22,11 @@ var stdin_default = defineComponent({
22
22
  return () => {
23
23
  return createVNode("div", {
24
24
  "class": [hashId.value, prefixCls.value]
25
- }, [createVNode("pre", null, [createVNode("code", {
25
+ }, [createVNode("pre", {
26
+ "style": {
27
+ maxHeight: props.maxHeight
28
+ }
29
+ }, [createVNode("code", {
26
30
  "class": "hljs",
27
31
  "innerHTML": highlightedCode.value
28
32
  }, null)]), createVNode("div", {
@@ -7,6 +7,9 @@ declare const _Highlight: {
7
7
  lang: {
8
8
  type: import("vue").PropType<("html" | "svg" | "xml" | "xhtml" | "rss" | "atom" | "xjb" | "xsd" | "xsl" | "plist" | "wsf") | "json" | ("javascript" | "js" | "jsx" | "mjs" | "cjs") | ("typescript" | "ts" | "tsx" | "mts" | "cts") | ("text" | "plaintext" | "txt") | "css" | "scss" | "less" | (string & {})>;
9
9
  };
10
+ maxHeight: {
11
+ type: StringConstructor;
12
+ };
10
13
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, true, {}, import("vue").SlotsType<import("./highlight.api").HighlightSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
11
14
  P: {};
12
15
  B: {};
@@ -21,6 +24,9 @@ declare const _Highlight: {
21
24
  lang: {
22
25
  type: import("vue").PropType<("html" | "svg" | "xml" | "xhtml" | "rss" | "atom" | "xjb" | "xsd" | "xsl" | "plist" | "wsf") | "json" | ("javascript" | "js" | "jsx" | "mjs" | "cjs") | ("typescript" | "ts" | "tsx" | "mts" | "cts") | ("text" | "plaintext" | "txt") | "css" | "scss" | "less" | (string & {})>;
23
26
  };
27
+ maxHeight: {
28
+ type: StringConstructor;
29
+ };
24
30
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {}>;
25
31
  __isFragment?: never;
26
32
  __isTeleport?: never;
@@ -32,6 +38,9 @@ declare const _Highlight: {
32
38
  lang: {
33
39
  type: import("vue").PropType<("html" | "svg" | "xml" | "xhtml" | "rss" | "atom" | "xjb" | "xsd" | "xsl" | "plist" | "wsf") | "json" | ("javascript" | "js" | "jsx" | "mjs" | "cjs") | ("typescript" | "ts" | "tsx" | "mts" | "cts") | ("text" | "plaintext" | "txt") | "css" | "scss" | "less" | (string & {})>;
34
40
  };
41
+ maxHeight: {
42
+ type: StringConstructor;
43
+ };
35
44
  }>> & Readonly<{}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, import("vue").SlotsType<import("./highlight.api").HighlightSlots>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin;
36
45
  export { _Highlight as Highlight };
37
46
  export default _Highlight;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cosey",
3
- "version": "0.6.16",
3
+ "version": "0.6.17",
4
4
  "description": "基于 Vue3 + vite 的后台管理系统框架",
5
5
  "type": "module",
6
6
  "main": "index.js",