@fangzhongya/vue-archive 0.0.70 → 0.0.72

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 (23) hide show
  1. package/dist/node/index.cjs +1055 -101279
  2. package/dist/node/index.js +1047 -101270
  3. package/dist/packages/components/use/code.d.ts +25 -17
  4. package/dist/packages/components/use/retrie/input/codemirror/codemirror.cjs +1 -3
  5. package/dist/packages/components/use/retrie/input/codemirror/codemirror.d.ts +2 -1
  6. package/dist/packages/components/use/retrie/input/codemirror/codemirror.js +21 -23
  7. package/dist/packages/components/use/retrie/input/codemirror/codemirror.vue.cjs +5 -1
  8. package/dist/packages/components/use/retrie/input/codemirror/codemirror.vue.js +47 -39
  9. package/dist/packages/components/use/retrie/input/editor/editor.cjs +1 -3
  10. package/dist/packages/components/use/retrie/input/editor/editor.d.ts +4 -26
  11. package/dist/packages/components/use/retrie/input/editor/editor.js +23 -23
  12. package/dist/packages/components/use/retrie/input/editor/editor.vue.cjs +5 -1
  13. package/dist/packages/components/use/retrie/input/editor/editor.vue.js +34 -29
  14. package/dist/packages/components/use/retrie/input/editor/init.cjs +1 -1
  15. package/dist/packages/components/use/retrie/input/editor/init.d.ts +3 -0
  16. package/dist/packages/components/use/retrie/input/editor/init.js +14 -11
  17. package/dist/packages/components/use/retrie/input/index.d.ts +3 -3
  18. package/dist/packages/components/use/retrie/input/index.vue.cjs +1 -1
  19. package/dist/packages/components/use/retrie/input/index.vue.js +25 -28
  20. package/dist/packages/components/use/retrie/input/text.d.ts +5 -11
  21. package/dist/packages/components/use/retrie/input/text.vue.cjs +5 -1
  22. package/dist/packages/components/use/retrie/input/text.vue.js +18 -20
  23. package/package.json +7 -7
@@ -1,25 +1,19 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from '../../../../../vue/dist/vue.esm-bundler.js';
2
2
  declare const _default: DefineComponent<ExtractPropTypes<{
3
3
  modelValue: {
4
- type: null;
5
- };
6
- check: {
7
- type: FunctionConstructor;
8
- default(): string;
4
+ type: StringConstructor;
5
+ default: string;
9
6
  };
10
7
  }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
11
8
  "update:modelValue": (...args: any[]) => void;
12
9
  }, string, PublicProps, Readonly< ExtractPropTypes<{
13
10
  modelValue: {
14
- type: null;
15
- };
16
- check: {
17
- type: FunctionConstructor;
18
- default(): string;
11
+ type: StringConstructor;
12
+ default: string;
19
13
  };
20
14
  }>> & Readonly<{
21
15
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
22
16
  }>, {
23
- check: Function;
17
+ modelValue: string;
24
18
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLTextAreaElement>;
25
19
  export default _default;
@@ -1 +1,5 @@
1
- "use strict";const e=require("vue"),i=e.defineComponent({__name:"text",props:{modelValue:{type:null},check:{type:Function,default(){return""}}},emits:["update:modelValue"],setup(n,{emit:a}){const t=n,c=a,l=e.ref(t.modelValue);e.watch(()=>t.modelValue,()=>{l.value=t.modelValue});async function r(s){const o=l.value;let u=await t.check(o);u&&c("update:modelValue",u)}return(s,o)=>e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{class:"form-input-text",rows:"5","onUpdate:modelValue":o[0]||(o[0]=u=>l.value=u),onBlur:r},null,544)),[[e.vModelText,l.value]])}});module.exports=i;
1
+ "use strict";const e=require("vue"),m=e.defineComponent({__name:"text",props:{modelValue:{type:String,default:`
2
+
3
+
4
+
5
+ `}},emits:["update:modelValue"],setup(u,{emit:n}){const o=u,a=n,l=e.ref(o.modelValue);e.watch(()=>o.modelValue,()=>{l.value=o.modelValue});async function s(r){const t=l.value;t&&a("update:modelValue",t)}return(r,t)=>e.withDirectives((e.openBlock(),e.createElementBlock("textarea",{class:"form-input-text",rows:"5","onUpdate:modelValue":t[0]||(t[0]=c=>l.value=c),onBlur:s},null,544)),[[e.vModelText,l.value]])}});module.exports=m;
@@ -1,36 +1,34 @@
1
- import { defineComponent as m, ref as s, watch as p, withDirectives as d, createElementBlock as i, openBlock as f, vModelText as v } from "vue";
2
- const V = /* @__PURE__ */ m({
1
+ import { defineComponent as s, ref as d, watch as p, withDirectives as c, createElementBlock as i, openBlock as f, vModelText as v } from "vue";
2
+ const V = /* @__PURE__ */ s({
3
3
  __name: "text",
4
4
  props: {
5
5
  modelValue: {
6
- type: null
7
- },
8
- check: {
9
- type: Function,
10
- default() {
11
- return "";
12
- }
6
+ type: String,
7
+ default: `
8
+
9
+
10
+
11
+ `
13
12
  }
14
13
  },
15
14
  emits: ["update:modelValue"],
16
- setup(a, { emit: u }) {
17
- const e = a, n = u, t = s(e.modelValue);
15
+ setup(o, { emit: a }) {
16
+ const l = o, u = a, t = d(l.modelValue);
18
17
  p(
19
- () => e.modelValue,
18
+ () => l.modelValue,
20
19
  () => {
21
- t.value = e.modelValue;
20
+ t.value = l.modelValue;
22
21
  }
23
22
  );
24
- async function r(c) {
25
- const l = t.value;
26
- let o = await e.check(l);
27
- o && n("update:modelValue", o);
23
+ async function n(r) {
24
+ const e = t.value;
25
+ e && u("update:modelValue", e);
28
26
  }
29
- return (c, l) => d((f(), i("textarea", {
27
+ return (r, e) => c((f(), i("textarea", {
30
28
  class: "form-input-text",
31
29
  rows: "5",
32
- "onUpdate:modelValue": l[0] || (l[0] = (o) => t.value = o),
33
- onBlur: r
30
+ "onUpdate:modelValue": e[0] || (e[0] = (m) => t.value = m),
31
+ onBlur: n
34
32
  }, null, 544)), [
35
33
  [v, t.value]
36
34
  ]);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.70",
4
+ "version": "0.0.72",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -25,8 +25,6 @@
25
25
  "@types/node": "^24.3.0",
26
26
  "@vitejs/plugin-vue": "^6.0.1",
27
27
  "fast-glob": "^3.3.3",
28
- "monaco-editor": "0.52.2",
29
- "prettier": "3.6.2",
30
28
  "sass": "^1.90.0",
31
29
  "ts-node": "^10.9.2",
32
30
  "tsup": "^8.5.0",
@@ -36,16 +34,18 @@
36
34
  "vite-plugin-dts": "4.5.4",
37
35
  "vitest": "^3.2.4",
38
36
  "vue-router": "^4.5.1",
39
- "vue-tsc": "^3.0.5",
37
+ "vue-tsc": "^3.0.5"
38
+ },
39
+ "dependencies": {
40
+ "monaco-editor": "^0.52.2",
41
+ "prettier": "^3.6.2",
40
42
  "@codemirror/lang-css": "^6.3.1",
41
43
  "@codemirror/lang-html": "^6.4.9",
42
44
  "@codemirror/lang-javascript": "^6.2.4",
43
45
  "@codemirror/lang-json": "^6.0.2",
44
46
  "@codemirror/state": "^6.5.2",
45
47
  "@codemirror/view": "^6.38.1",
46
- "codemirror": "^6.0.2"
47
- },
48
- "dependencies": {
48
+ "codemirror": "^6.0.2",
49
49
  "comment-parser": "^1.4.1",
50
50
  "highlight.js": "^11.11.1",
51
51
  "markdown-it": "^14.1.0",