@fangzhongya/vue-archive 0.0.2-11 → 0.0.2-4

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 (32) hide show
  1. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
  2. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
  3. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
  4. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
  5. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
  6. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
  7. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
  8. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -0
  9. package/dist/es/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
  10. package/dist/es/packages/components/use/index.js +1 -1
  11. package/dist/es/packages/components/use/retrie/choice/index.vue.js +1 -1
  12. package/dist/es/packages/components/use/set-code.vue.js +3 -3
  13. package/dist/es/packages/config.js +1 -1
  14. package/dist/es/packages/utils/common.js +3 -3
  15. package/dist/es/packages/utils/glob.js +5 -5
  16. package/dist/es/style.css +2 -2
  17. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js +0 -0
  18. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js +0 -0
  19. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js +0 -0
  20. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js +0 -0
  21. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js +0 -0
  22. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js +0 -0
  23. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js +0 -0
  24. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js +0 -0
  25. package/dist/lib/node_modules/.pnpm/{@fangzhongya_utils@0.0.7-11 → @fangzhongya_utils@0.0.7-10}/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js +0 -0
  26. package/dist/lib/packages/components/use/index.js +1 -1
  27. package/dist/lib/packages/components/use/retrie/choice/index.vue.js +1 -1
  28. package/dist/lib/packages/components/use/set-code.vue.js +1 -1
  29. package/dist/lib/packages/config.js +1 -1
  30. package/dist/lib/packages/utils/common.js +1 -1
  31. package/dist/lib/packages/utils/glob.js +1 -1
  32. package/package.json +12 -10
@@ -5,7 +5,7 @@ import E from "./set-code.vue.js";
5
5
  import O from "./set-expose.vue.js";
6
6
  import $ from "./set-slot.vue.js";
7
7
  import { getPropsValue as D, getEmitsValue as w, getExposeValue as U, getSlotValue as k } from "../../utils/props.js";
8
- import { firstUpper as h } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
8
+ import { firstUpper as h } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
9
9
  const K = g({
10
10
  /**
11
11
  * @props {Stinrg} value 插入数据
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as T, ref as c, computed as h, watch as L, openBlock as s, createElementBlock as i, createElementVNode as f, unref as z, withModifiers as u, withDirectives as D, Fragment as E, renderList as F, normalizeClass as I, toDisplayString as O, vShow as $ } from "vue";
2
- import { toggleArray as J } from "../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js";
2
+ import { toggleArray as J } from "../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js";
3
3
  import { getSonType as P, getString as q } from "../../util.js";
4
4
  const G = { class: "form-select" }, H = ["value", "disabled", "onClick", "onBlur"], K = ["onMousemove", "onMouseout"], Q = { class: "form-select-list" }, R = {
5
5
  key: 0,
@@ -2,9 +2,9 @@ import { defineComponent as C, computed as F, ref as O, openBlock as w, createEl
2
2
  import { vueFormat as g, getFunctionFormat as H, prettierFormat as J, getFunBody as M } from "./util.js";
3
3
  import U from "../code/highlight.vue.js";
4
4
  import { copyCode as Z } from "../../utils/index.js";
5
- import { humpToLine as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
6
- import { firstUpper as _ } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
7
- import { firstLower as z } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
5
+ import { humpToLine as q } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
6
+ import { firstUpper as _ } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js";
7
+ import { firstLower as z } from "../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
8
8
  const G = { class: "set-code" }, I = /* @__PURE__ */ f("div", null, "代码", -1), K = { class: "but-div set-code-but" }, P = ["onClick"], Q = { class: "set-code-html" }, ot = /* @__PURE__ */ C({
9
9
  __name: "set-code",
10
10
  props: {
@@ -1,4 +1,4 @@
1
- import { mergeObject as t } from "../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js";
1
+ import { mergeObject as t } from "../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js";
2
2
  const o = {
3
3
  components: []
4
4
  };
@@ -1,7 +1,7 @@
1
1
  import { setSession as d, getSession as E } from "./storage.js";
2
- import { humpToLine as w } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
3
- import { lineToLargeHump as x } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
4
- import { appearNum as g } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js";
2
+ import { humpToLine as w } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
3
+ import { lineToLargeHump as x } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
4
+ import { appearNum as g } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js";
5
5
  const N = ["vue", "js"];
6
6
  function R(t, e) {
7
7
  let i = w(t.name), n = [];
@@ -1,10 +1,10 @@
1
1
  import { getConfig as T } from "../config.js";
2
2
  import { getComponentsArr as R, defaultExtensions as A, isComprops as I } from "./common.js";
3
- import { humpToLine as u } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
4
- import { lineToLargeHump as O } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
5
- import { firstLower as E } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
6
- import { duplicateRemoval as K } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
7
- import { asyncMergeArray as j } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js";
3
+ import { humpToLine as u } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js";
4
+ import { lineToLargeHump as O } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js";
5
+ import { firstLower as E } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js";
6
+ import { duplicateRemoval as K } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js";
7
+ import { asyncMergeArray as j } from "../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js";
8
8
  import { getTextImport as M } from "./index.js";
9
9
  const m = {}, C = {}, N = [], P = {}, b = {}, x = {};
10
10
  function U() {
package/dist/es/style.css CHANGED
@@ -1,4 +1,4 @@
1
- :root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 0}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;top:0;right:0;left:0;bottom:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
1
+ :root{--bor-cor: rgb(239, 248, 255);--but-cor: rgb(27, 155, 253);--but-hover-cor: rgb(0, 145, 255);--bg-but-hover-cor: rgb(128, 199, 253);--bg-aside-cor: rgb(228, 251, 197);--bg-aside-on-cor: rgb(78, 250, 87);--bg-index-cor: rgb(248, 248, 248);--bg-table-th-cor: rgb(207, 246, 251);--bg-table-td-cor: rgb(221, 243, 246);--bg-test-cor: rgb(236 255 236);--bg-test-err-cor: rgb(255, 210, 210);--bg-test-pro-cor: rgb(203, 246, 255);--bg-test-err-pro-cor: rgb(251, 203, 255);--te-test-err-cor: rgb(247, 56, 56);--te-test-pro-cor: rgb(106, 131, 255);--bg-test-body: rgb(255, 255, 255);--bg-code-highlig: rgb(255, 251, 223);--bg-box-cor: rgb(198, 198, 198);--bg-md-cor: rgb(255, 233, 243);--bg-use-cor: rgb(193, 219, 255);--bg-use-component-cor: rgb(246, 246, 246);--text-cor: rgb(0, 0, 0);--fs-1: 12px;--fs-2: 14px;--fs-3: 16px;--fs-4: 18px;--fs-5: 20px}.__document{position:fixed;top:0;left:0;width:100vw;height:100vh;overflow:auto;text-align:left;width:100%;height:100%;padding:0;margin:0}.__document .but-div{cursor:pointer;color:var(--but-cor);padding:5px 10px}.__document .but-div:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside{padding:20px 0}.__document .aside .aside-li{padding:5px 10px;height:60px;font-size:20px;font-weight:600;border-bottom:1px solid var(--bor-cor);cursor:pointer;display:flex;flex-direction:row;align-items:center}.__document .aside .aside-li:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.__document .aside .aside-li.on{background-color:var(--bg-aside-on-cor)}.__document .aside .aside-li .aside-li-name{width:100%}.__document .aside .aside-li .aside-li-name .aside-li-name-alias{font-size:var(--fs-2)}.__document .aside .aside-li .aside-li-name .aside-li-name-aliass{font-size:var(--fs-1)}.__document .md{position:relative}.__document .use .use-component{padding:10px;display:flex;justify-content:center;align-items:center;height:300px;background-color:var(--bg-use-component-cor)}.__document .set-code .set-code-buts{display:flex;align-items:center}.__document .form-item.error{background-color:var(--te-test-err-cor)}.__document .compo .compo-top .compo-top-name{padding:10px;font-size:var(--fs-4)}.__document .compo .compo-top .compo-top-name .compo-top-name-li{font-size:var(--fs-2)}.__document .compo .compo-top .compo-top-info{padding:10px;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-info .compo-top-athor,.__document .compo .compo-top .compo-top-info .compo-top-date{flex:1;display:flex;flex-direction:row;align-items:center}.__document .compo .compo-top .compo-top-descriptions{padding:0 10px;font-size:var(--fs-2)}.__document .compo .compo-li h4{margin:10px 0 0;padding:10px}.__document .compo .compo-li .compo-talbe{width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body{border:1px solid var(--bor-cor);width:100%}.__document .compo .compo-li .compo-talbe .compo-talbe-body td,.__document .compo .compo-li .compo-talbe .compo-talbe-body th{padding:5px 10px;border-bottom:1px solid var(--bor-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body th{background-color:var(--bg-table-th-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body td{background-color:var(--bg-table-td-cor)}.__document .compo .compo-li .compo-talbe .compo-talbe-body tr:last-child td{border-bottom:0}.__document .compo .compo-li .compo-talbe .compo-talbe-body .compo-talbe-zw{width:100%;text-align:center;padding:10px}.__document .compo .compo-md{padding:10px;background-color:var(--bg-md-cor)}.__document .compo .compo-use{padding:10px;background-color:var(--bg-use-cor)}.__document .main .main-but{text-align:right;display:flex;flex-direction:row;align-items:center}.__document .test.error .test-top{background-color:var(--bg-test-err-cor)}.__document .test.proposal .test-top{background-color:var(--bg-test-pro-cor)}.__document .test.error-proposal .test-top{background-color:var(--bg-test-err-pro-cor)}.__document .test .test-top{padding:5px;background-color:var(--bg-test-cor)}.__document .test .test-top .test-top-error{color:var(--te-test-err-cor)}.__document .test .test-top .test-top-proposal{color:var(--te-test-pro-cor)}.__document .test .test-div .test-body{padding:5px;background-color:var(--bg-test-body)}.__document .code{padding:0}.__document .code .code-top .code-top-but,.__document .code .code-top .code-top-but .top-but-files{display:flex;flex-direction:row;align-items:center}.__document .code .code-highlightjs{padding:0}.__document .code .code-highlightjs .hljs{background-color:var(--bg-code-highlig)}.__document .box-url{position:relative}.__document .box-url:hover .box-url-box{display:block}.__document .box-url .box-url-box{position:fixed;top:25px;display:none;background-color:var(--bg-box-cor);font-size:var(--fs-1);color:var(--text-cor);z-index:100000}.__document .box-url .box-url-box .box-div-li{height:20px;line-height:20px;display:flex;flex-direction:row;align-items:center}.__document .box-url .box-url-box .box-div-li .box-div-li-span{white-space:nowrap;padding:5px 10px}.__document .__document-index{width:100%;height:100%;padding:0;margin:0;display:flex;flex-direction:row}.__document .__document-index .index-aside{width:250px;position:relative;z-index:100}.__document .__document-index .index-aside .index-aside-div{height:100%;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-index .index-body{flex:1;position:relative;background-color:var(--bg-index-cor)}.__document .__document-index .index-body .index-div{padding:20px;position:absolute;top:0;right:0;left:0;bottom:0;overflow-y:auto}.__document .__document-tests{padding:10px;height:100%;position:relative}.__document .__document-tests .tests-top .but-div.on{background-color:var(--bg-aside-on-cor)}.__document .__document-develop,.__document .__document-single{padding:10px;height:100%;position:relative}.__document .__document-single .single-top .single-top-li{display:flex;flex-direction:row;align-items:center}.__document .__document-single .single-top .single-top-li .single-top-li-span{padding:5px 10px}.__document .__document-compon{padding:10px;height:100%;position:relative}.__document .__document-compon .__document-compon-body.choice{padding-left:30px}.__document .__document-compon .__document-compon-choice{position:absolute;top:0;bottom:0;left:0;z-index:100;display:flex;overflow-y:auto;background-color:var(--bg-aside-cor)}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but{cursor:pointer}.__document .__document-compon .__document-compon-choice .__document-compon-choice-but:hover{color:var(--but-hover-cor);background-color:var(--bg-but-hover-cor)}.form-select .form-select-box{position:absolute;z-index:100;background-color:#fff;text-align:center}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}/*!
2
2
  Theme: StackOverflow Light
3
3
  Description: Light theme as used on stackoverflow.com
4
4
  Author: stackoverflow.com
@@ -10,4 +10,4 @@
10
10
  Updated for @stackoverflow/stacks v0.64.0
11
11
  Code Blocks: /blob/v0.64.0/lib/css/components/_stacks-code-blocks.less
12
12
  Colors: /blob/v0.64.0/lib/css/exports/_stacks-constants-colors.less
13
- */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-section,.hljs-selector-tag{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-id,.hljs-template-tag,.hljs-type{color:#b75501}.hljs-selector-class{color:#015692}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-string,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-literal,.hljs-title{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.form-select .form-select-box{position:absolute;z-index:100;background-color:#fff;text-align:center}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}
13
+ */.hljs{color:#2f3337;background:#f6f6f6}.hljs-subst{color:#2f3337}.hljs-comment{color:#656e77}.hljs-attr,.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-section,.hljs-selector-tag{color:#015692}.hljs-attribute{color:#803378}.hljs-name,.hljs-number,.hljs-quote,.hljs-selector-id,.hljs-template-tag,.hljs-type{color:#b75501}.hljs-selector-class{color:#015692}.hljs-link,.hljs-regexp,.hljs-selector-attr,.hljs-string,.hljs-symbol,.hljs-template-variable,.hljs-variable{color:#54790d}.hljs-meta,.hljs-selector-pseudo{color:#015692}.hljs-built_in,.hljs-literal,.hljs-title{color:#b75501}.hljs-bullet,.hljs-code{color:#535a60}.hljs-meta .hljs-string{color:#54790d}.hljs-deletion{color:#c02d2e}.hljs-addition{color:#2f6f44}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.form-select{position:relative}.form-select .form-select-box{position:absolute;background-color:#fff;text-align:center}.form-select .form-select-box .form-select-list-div{border:1px solid #fff}.form-select .form-select-box .form-select-list-div .form-select-list-li{padding:10px;border-bottom:1px solid #eee}.form-select .form-select-box .form-select-list-div .form-select-list-li:last-child{border:0}.form-select .form-select-box .form-select-list-div .form-select-list-li.active{color:#0051ff}
@@ -1 +1 @@
1
- "use strict";const t=require("vue"),x=require("./set-props.vue.js"),q=require("./set-emit.vue.js"),E=require("./set-code.vue.js"),b=require("./set-expose.vue.js"),C=require("./set-slot.vue.js"),i=require("../../utils/props.js"),V=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),j=t.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,T,v,D,a){console.log("render",new Date().getTime());const r=t.reactive({emitValue:{},slotValue:{}}),n=v.value;let c="div";n.component?c=t.defineAsyncComponent(n.component):n.name&&(c=t.resolveComponent(n.name));const u=v.param,d=i.getPropsValue(u.props),m=i.getEmitsValue(u.emits),y=i.getExposeValue(u.expose),h=i.getSlotValue(u.slot),l={},f={};d.forEach(s=>{let e=s.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(l[e]=a.propsValue[e],o&&o.length>1&&m.push({name:"update:"+e,description:s.description,selectable:"value:["+s.type+"]"}))}}),m.forEach(s=>{let e=s.name;if(e.includes("-")){let p=e.split("-");p=p.map((_,U)=>V.firstUpper(_)),e=p.join("")}else e=V.firstUpper(e);const o="on"+e;l[o]=(...p)=>{const _={arr:p,_date_:new Date().getTime()};r.emitValue[s.name]=_}});let g;return h.forEach(s=>{const e=s.name||"default";f[e]=o=>{if(r.slotValue[e])return t.h(t.defineComponent({props:{scope:{type:Object}},template:r.slotValue[e]}),{scope:o})}}),t.h("div",{class:"use"},[t.h("div",{class:"use-props"},t.h(x,{name:n.name,list:d,onChange:(s,e)=>{a.propsValue=s,a.propsText=e}})),t.h("div",{class:"use-component"},t.h(c,{...l,ref:s=>{g=s}},f)),t.h("div",{class:"use-code"},t.h(E,{name:n.name,value:l,propsText:a.propsText,slotValue:r.slotValue})),t.h("div",{class:"use-emit"},t.h(q,{name:n.name,list:m,value:r.emitValue})),t.h("div",{class:"use-expose"},t.h(b,{name:n.name,list:y,getRef:()=>g})),t.h("div",{class:"use-slot"},t.h(C,{name:n.name,list:h,onChange:(s,e)=>{r.slotValue[s]=e}}))])},data(){return{propsValue:{},propsText:{}}}});module.exports=j;
1
+ "use strict";const t=require("vue"),x=require("./set-props.vue.js"),q=require("./set-emit.vue.js"),E=require("./set-code.vue.js"),b=require("./set-expose.vue.js"),C=require("./set-slot.vue.js"),i=require("../../utils/props.js"),V=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),j=t.defineComponent({props:{value:{type:Object},param:{type:Object}},render(O,T,v,D,a){console.log("render",new Date().getTime());const r=t.reactive({emitValue:{},slotValue:{}}),n=v.value;let c="div";n.component?c=t.defineAsyncComponent(n.component):n.name&&(c=t.resolveComponent(n.name));const u=v.param,d=i.getPropsValue(u.props),m=i.getEmitsValue(u.emits),y=i.getExposeValue(u.expose),h=i.getSlotValue(u.slot),l={},f={};d.forEach(s=>{let e=s.name;if(!e.includes(".")){let o=e.split("/");e=(o[0]||"").trim(),e&&(l[e]=a.propsValue[e],o&&o.length>1&&m.push({name:"update:"+e,description:s.description,selectable:"value:["+s.type+"]"}))}}),m.forEach(s=>{let e=s.name;if(e.includes("-")){let p=e.split("-");p=p.map((_,U)=>V.firstUpper(_)),e=p.join("")}else e=V.firstUpper(e);const o="on"+e;l[o]=(...p)=>{const _={arr:p,_date_:new Date().getTime()};r.emitValue[s.name]=_}});let g;return h.forEach(s=>{const e=s.name||"default";f[e]=o=>{if(r.slotValue[e])return t.h(t.defineComponent({props:{scope:{type:Object}},template:r.slotValue[e]}),{scope:o})}}),t.h("div",{class:"use"},[t.h("div",{class:"use-props"},t.h(x,{name:n.name,list:d,onChange:(s,e)=>{a.propsValue=s,a.propsText=e}})),t.h("div",{class:"use-component"},t.h(c,{...l,ref:s=>{g=s}},f)),t.h("div",{class:"use-code"},t.h(E,{name:n.name,value:l,propsText:a.propsText,slotValue:r.slotValue})),t.h("div",{class:"use-emit"},t.h(q,{name:n.name,list:m,value:r.emitValue})),t.h("div",{class:"use-expose"},t.h(b,{name:n.name,list:y,getRef:()=>g})),t.h("div",{class:"use-slot"},t.h(C,{name:n.name,list:h,onChange:(s,e)=>{r.slotValue[s]=e}}))])},data(){return{propsValue:{},propsText:{}}}});module.exports=j;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("vue"),S=require("../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js"),v=require("../../util.js"),C={class:"form-select"},x=["value","disabled","onClick","onBlur"],A=["onMousemove","onMouseout"],j={class:"form-select-list"},O={key:0,class:"form-select-list-div"},T=["onClick"],q={key:1,class:"no-data"},L=e.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","change"],setup(h,{emit:g}){const l=h,u=e.ref(),a=e.ref(!1),c=e.ref(!1),r=e.ref([]),y=e.computed(()=>r.value.map(t=>d(t)).join(",")),p=e.computed(()=>{let t=l.dataType||"";return(v.getSonType(t)||[])[1]});e.watch(()=>l.modelValue,()=>{b()},{immediate:!0});function _(t=[]){return p.value=="string"?t.map(n=>v.getString(n)):p.value=="number"?t.map(n=>{let o=Number(n);return isNaN(o)&&(o=0),o}):t}function k(t){return new Function("",`{
1
+ "use strict";const e=require("vue"),S=require("../../../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-GOJN3OQ4.js"),v=require("../../util.js"),C={class:"form-select"},x=["value","disabled","onClick","onBlur"],A=["onMousemove","onMouseout"],j={class:"form-select-list"},O={key:0,class:"form-select-list-div"},T=["onClick"],q={key:1,class:"no-data"},L=e.defineComponent({__name:"index",props:{modelValue:{type:null},dataType:{type:[String,Array]},disabled:Boolean,list:{type:Array},config:{type:Object,default(){return{label:"label",prop:"prop"}}}},emits:["value","change"],setup(h,{emit:g}){const l=h,u=e.ref(),a=e.ref(!1),c=e.ref(!1),r=e.ref([]),y=e.computed(()=>r.value.map(t=>d(t)).join(",")),p=e.computed(()=>{let t=l.dataType||"";return(v.getSonType(t)||[])[1]});e.watch(()=>l.modelValue,()=>{b()},{immediate:!0});function _(t=[]){return p.value=="string"?t.map(n=>v.getString(n)):p.value=="number"?t.map(n=>{let o=Number(n);return isNaN(o)&&(o=0),o}):t}function k(t){return new Function("",`{
2
2
  var a = ${t};
3
3
  return a;
4
4
  }`)}function b(){r.value=[];let t=l.modelValue,n=[];const o=k(t);if(o instanceof Array&&(n=o),l.list)for(let i=0;i<l.list.length;i++){const f=l.list[i];n.includes(s(f))&&r.value.push(f)}m()}function d(t){var o;let n=(o=l.config)==null?void 0:o.label;return n&&typeof t=="object"&&t?t[n]:t}function s(t){var o;let n=(o=l.config)==null?void 0:o.prop;return n&&typeof t=="object"&&t?t[n]:t}function B(t){return r.value.map(n=>s(n)).includes(s(t))}function w(){l.disabled||(a.value=!0)}function M(){c.value||(a.value=!1)}function V(){c.value=!0}function E(){c.value=!1}function N(t){u.value&&u.value.focus(),r.value=S.toggleArray(r.value,t,l.config.prop),m()}function m(){let t=_(r.value.map(n=>s(n)));g("value",t,JSON.stringify(t))}return(t,n)=>(e.openBlock(),e.createElementBlock("div",C,[e.createElementVNode("input",{value:e.unref(y),readonly:"",placeholder:"请选择",type:"text",disabled:l.disabled,ref_key:"refInput",ref:u,onClick:e.withModifiers(w,["stop"]),onBlur:e.withModifiers(M,["stop"])},null,40,x),e.createElementVNode("div",{onMousemove:e.withModifiers(V,["stop"]),onMouseout:e.withModifiers(E,["stop"]),class:"form-select-box"},[e.withDirectives(e.createElementVNode("div",j,[l.list&&l.list.length>0?(e.openBlock(),e.createElementBlock("div",O,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.list,(o,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["form-select-list-li",{active:B(o)}]),onClick:e.withModifiers(f=>N(o),["stop"])},[e.createElementVNode("span",null,e.toDisplayString(d(o)),1)],10,T))),256))])):(e.openBlock(),e.createElementBlock("div",q," 暂无数据 "))],512),[[e.vShow,a.value]])],40,A)]))}});module.exports=L;
@@ -1,4 +1,4 @@
1
- "use strict";const e=require("vue"),d=require("./util.js"),V=require("../code/highlight.vue.js"),N=require("../../utils/index.js"),O=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),_=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),S=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js"),q={class:"set-code"},y=e.createElementVNode("div",null,"代码",-1),F={class:"but-div set-code-but"},w=["onClick"],B={class:"set-code-html"},J=e.defineComponent({__name:"set-code",props:{name:{type:String},value:{type:Object},slotValue:{type:Object},propsText:{type:Object}},setup(b){const r=b,m=e.computed(()=>{const s=[],t=[];let i=!0;const n=r.value;Object.keys(n).forEach(o=>{let p=n[o];if(/^on[A-Z]/.test(o)&&typeof p=="function"){let u=o.substring(2);const a=o.split(":");let l;if(a.length>1?(l=a[0]+a.slice(1).map(f=>_.firstUpper(f)).join(""),u=S.firstLower(u)):(l=a[0],u=O.humpToLine(u)),a.includes("-")){let f=l.split("-");f=f.map((g,E)=>E!=0?_.firstUpper(g):g),l=f.join("")}s.push(" @"+u+'="'+l+'"'),t.push("function "+l+"(...arr) {"),t.push(" console.log('"+l+"', arr)"),t.push("}")}else if(s.push(" :"+o+'="'+o+'"'),typeof p=="function")t.push("const "+o+" = "+$(p,o));else if(i&&(i=!1,t.unshift("import { ref } from 'vue';")),typeof p>"u")t.push("const "+o+" = ref();");else{let u=T(p,o);t.push("const "+o+" = ref("+u+");")}}),s.length>0&&s.unshift("");const c=x(r.slotValue);return`<!--${r.name}-->
1
+ "use strict";const e=require("vue"),d=require("./util.js"),V=require("../code/highlight.vue.js"),N=require("../../utils/index.js"),O=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),_=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js"),S=require("../../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js"),q={class:"set-code"},y=e.createElementVNode("div",null,"代码",-1),F={class:"but-div set-code-but"},w=["onClick"],B={class:"set-code-html"},J=e.defineComponent({__name:"set-code",props:{name:{type:String},value:{type:Object},slotValue:{type:Object},propsText:{type:Object}},setup(b){const r=b,m=e.computed(()=>{const s=[],t=[];let i=!0;const n=r.value;Object.keys(n).forEach(o=>{let p=n[o];if(/^on[A-Z]/.test(o)&&typeof p=="function"){let u=o.substring(2);const a=o.split(":");let l;if(a.length>1?(l=a[0]+a.slice(1).map(f=>_.firstUpper(f)).join(""),u=S.firstLower(u)):(l=a[0],u=O.humpToLine(u)),a.includes("-")){let f=l.split("-");f=f.map((g,E)=>E!=0?_.firstUpper(g):g),l=f.join("")}s.push(" @"+u+'="'+l+'"'),t.push("function "+l+"(...arr) {"),t.push(" console.log('"+l+"', arr)"),t.push("}")}else if(s.push(" :"+o+'="'+o+'"'),typeof p=="function")t.push("const "+o+" = "+$(p,o));else if(i&&(i=!1,t.unshift("import { ref } from 'vue';")),typeof p>"u")t.push("const "+o+" = ref();");else{let u=T(p,o);t.push("const "+o+" = ref("+u+");")}}),s.length>0&&s.unshift("");const c=x(r.slotValue);return`<!--${r.name}-->
2
2
  <template>
3
3
  <div>
4
4
  <${r.name}${s.join(`
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js"),n={components:[]};function o(e){return t.mergeObject(n,e,2)}function r(e){return n[e]}exports.getConfig=r;exports.userConfig=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-RD4EP3M5.js"),n={components:[]};function o(e){return t.mergeObject(n,e,2)}function r(e){return n[e]}exports.getConfig=r;exports.userConfig=o;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./storage.js"),x=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),C=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js"),m=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js"),E=["vue","js"];function R(t,e){let i=x.humpToLine(t.name),n=[];return t.alias&&n.push(t.alias+"-"+i),e&&e.length>0&&e.forEach(s=>{t.alias&&n.push(t.alias+"-"+s+"-"+i),n.push(s+"-"+i)}),n}function S(t){return t.sort((e,i)=>{let n=m.appearNum(e,"/"),s=m.appearNum(i,"/");return n==s?i.length-e.length:s-n}),t}function N(t=[],e=[],i=[]){let n=e;(!n||n.length==0)&&(n=E);let s=[];return t&&t.length>0&&(s=t),i&&i.length>0&&i.forEach(a=>{n==null||n.forEach(l=>{s.push(a+"."+l)})}),s=[...new Set(s)],S(s)}function w(t,e,i={},n=""){for(let s=0;s<e.length;s++){const a=e[s],l=new RegExp("^.*/([^/]+)"+a+"$");let c=t.match(l);if(c){const u=[],o={};let g="";Object.keys(i).forEach(h=>{let f=i[h];t.startsWith(f+"/")&&(g=f,o[h]=f,u.push(h))});let p=c[1],r={dir:"",name:C.lineToLargeHump(p),value:p,key:"",tdir:"",adir:g,alias:n,aliass:o,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0};return r.aliasNames=R(r,u),r}}}function K(t){d.setSession("aside.key",t)}function T(){return d.getSession("aside.key")}function q(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function A(t,e){return new RegExp(e+".+\\.js$").test(t)}function y(t,e,i,n,s){const a=[],l=[],c=N(e.matchexts,e.extensions,e.matchs),u=q(e.dir);return t.forEach(o=>{const g=new RegExp("^"+e.dir);let p=o.replace(g,"");if(s.comprops&&A(p,s.comprops)){let r={};r.comprops=s.comprops,r.value=s.comprops,r.dir=e.dir,r.tdir=u,r.key=o,r.raw="",r.getRaw=i[o],a.push(r)}else{let r=w(p,c,e.aliass,e.alias);r&&(r.comprops=s.comprops,r.dir=e.dir,r.tdir=u,r.key=o,r.component=n[o],r.getRaw=i[o],l.push(r))}}),{props:a,components:l}}exports.defaultExtensions=E;exports.getAsideKey=T;exports.getComponentsArr=y;exports.getMatchs=N;exports.getUrlName=w;exports.isComprops=A;exports.setAsideKey=K;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./storage.js"),x=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),C=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js"),m=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js"),E=["vue","js"];function R(t,e){let i=x.humpToLine(t.name),n=[];return t.alias&&n.push(t.alias+"-"+i),e&&e.length>0&&e.forEach(s=>{t.alias&&n.push(t.alias+"-"+s+"-"+i),n.push(s+"-"+i)}),n}function S(t){return t.sort((e,i)=>{let n=m.appearNum(e,"/"),s=m.appearNum(i,"/");return n==s?i.length-e.length:s-n}),t}function N(t=[],e=[],i=[]){let n=e;(!n||n.length==0)&&(n=E);let s=[];return t&&t.length>0&&(s=t),i&&i.length>0&&i.forEach(a=>{n==null||n.forEach(l=>{s.push(a+"."+l)})}),s=[...new Set(s)],S(s)}function w(t,e,i={},n=""){for(let s=0;s<e.length;s++){const a=e[s],l=new RegExp("^.*/([^/]+)"+a+"$");let c=t.match(l);if(c){const u=[],o={};let g="";Object.keys(i).forEach(h=>{let f=i[h];t.startsWith(f+"/")&&(g=f,o[h]=f,u.push(h))});let p=c[1],r={dir:"",name:C.lineToLargeHump(p),value:p,key:"",tdir:"",adir:g,alias:n,aliass:o,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0};return r.aliasNames=R(r,u),r}}}function K(t){d.setSession("aside.key",t)}function T(){return d.getSession("aside.key")}function q(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function A(t,e){return new RegExp(e+".+\\.js$").test(t)}function y(t,e,i,n,s){const a=[],l=[],c=N(e.matchexts,e.extensions,e.matchs),u=q(e.dir);return t.forEach(o=>{const g=new RegExp("^"+e.dir);let p=o.replace(g,"");if(s.comprops&&A(p,s.comprops)){let r={};r.comprops=s.comprops,r.value=s.comprops,r.dir=e.dir,r.tdir=u,r.key=o,r.raw="",r.getRaw=i[o],a.push(r)}else{let r=w(p,c,e.aliass,e.alias);r&&(r.comprops=s.comprops,r.dir=e.dir,r.tdir=u,r.key=o,r.component=n[o],r.getRaw=i[o],l.push(r))}}),{props:a,components:l}}exports.defaultExtensions=E;exports.getAsideKey=T;exports.getComponentsArr=y;exports.getMatchs=N;exports.getUrlName=w;exports.isComprops=A;exports.setAsideKey=K;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../config.js"),d=require("./common.js"),h=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),O=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js"),C=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js"),y=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js"),L=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-11/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js"),A=require("./index.js"),u={},N={},j=[],b={},P={},x={};function H(){return E.getConfig("example")}function K(e,t,s){const n=Object.assign({exampless:[],examplessRaw:[]},t,s),r=[],a=n.examples;a&&Object.keys(a).forEach(i=>{r.push(i),P[i]=a[i]}),n.exampless=r,n.examples=void 0;const o=[],l=n.examplesRaw;l&&Object.keys(l).forEach(i=>{o.push(i),x[i]=l[i]}),n.examplessRaw=o,n.examplesRaw=void 0,b[e]=n}function I(e,t="vue"){let s="";if(t=="vue"){let r=new RegExp(/(<script([^>]*)>)((.|\n|\r)*)(<\/script>)/g).exec(e);r&&(s=r[3])}else t=="js"&&(s=e);if(s){const n=A.getTextImport(s);let r=n==null?void 0:n.map(o=>o.n);const a=[];return r&&r.length>0&&r.forEach(o=>{o&&(o.startsWith("./")||o.startsWith("../"))&&a.push(o)}),a}}function M(e){return new Promise(t=>{e?e.raw?t(e.raw):e.getRaw?e.getRaw().then(s=>{const n=(s||"")+"";e.raw=n,e.getRaw=null,t(n)}):t(""):t("")})}function U(e,t){e=(e||"")+"";let s="";switch(e){case"1":s=t.tdir+"/";break;case"2":s=t.adir+"/";break;case"3":s=t.tdir+"/"+t.adir+"/";break}return s}function W(e,t,s){var l,i;e=(e||"")+"",s=(s||"")+"";let n=h.humpToLine(t.name),r=[];const a=Object.values(t.aliass||{});if(e==="1")t.alias&&r.push(t.alias+"-"+n);else if(e==="2")a&&a.length>0&&a.forEach(c=>{r.push(c+"-"+n)});else if(e==="3"){let c="";t.alias&&(c=t.alias+"-"),a==null||a.forEach(m=>{r.push(c+m+"-"+n)})}else e==="4"?(l=t.aliasNames)==null||l.forEach(c=>{r.push(h.humpToLine(c))}):e=="9"&&(r.push(n),(i=t.aliasNames)==null||i.forEach(c=>{r.push(h.humpToLine(c))}));r.length==0&&r.push(n);let o=[];return s==="1"?r.forEach(c=>{let m=O.lineToLargeHump(c);o.push(m,C.firstLower(m))}):s==="2"?r.forEach(c=>{let m=O.lineToLargeHump(c);o.push(c,m,C.firstLower(m))}):o=[...r],o=[...new Set(o)],o}function k(e,t,s,n){const r=[];return s.examplessRaw.forEach(a=>{for(let o=0;o<t.length;o++){const l=t[o];if(a==e+l+"/"+s.md+".md"){r.push({topurl:e,comkey:n.key,name:n.name,value:l,key:a,raw:"",getRaw:x[a]});break}}}),r}function R(e){g();const t=u[e];if(t.tests)return t.tests;{const s=b[t.dir],n=s.dir+U(s.level||0,t),r=W(s.aliaslevel||0,t,s.componentName||0);t.mds=k(n,r,s,t);const a={};return s.exampless.forEach(o=>{for(let l=0;l<r.length;l++){const i=r[l];if(o.startsWith(n+i+"/")){const c=new RegExp("^\\"+n+i+"/(.*)/index\\."+d.defaultExtensions.join("|")+"$");let m="",f=o.match(c);f&&f.length>1&&(m=f[1]),a[o]={topurl:n,name:i,value:m,comname:t.name,comkey:t.key,key:o,component:P[o],raw:"",getRaw:x[o]};break}}}),t.tests=a,a}}function B(e){if(e){const t=R(e);return Object.values(t)}else return[]}function J(e,t,s){g();const n=R(s),r=[];if(t){let a=n[t];if(a)return r.push(a),r}return Object.values(n).forEach(a=>{a.name+"/"+a.value==e&&r.push(a)}),r}function S(e){return R(e),u[e].mds}function T(e,t,s){let n=I(t,s)||[],r=e.split("/");return n.map(a=>{let o=/\.([a-z]+)$/g;if(a.startsWith("./")){let l=r.slice(0,r.length-1).join("/"),i=a.substring(2);return o.test(i)||(a=a+".js"),{name:a,value:i,head:l,key:l+"/"+i}}else{let l=a.split("/"),i=0;for(let w=0;w<l.length;w++)if(l[w]!=".."){i=w;break}let c=l.slice(i,l.length),m=r.slice(0,r.length-i-1).join("/"),f=c.join("/");return o.test(f)||(a=a+".js"),{name:a,value:f,head:m,key:m+"/"+f}}})}function X(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>({raw:"",value:n.value,key:n.key,getRaw:x[n.key]}));L.asyncMergeArray(s,(n,r,a,o)=>{a.raw?n():a.getRaw?a.getRaw().then(l=>{const i=(l||"")+"";a.raw=i,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}function Z(){const e=H(),t=E.getConfig("components");t==null||t.forEach(s=>{var r;V(s);let n=s.dir||((r=s==null?void 0:s.resolver)==null?void 0:r.dir)||"";K(n,e,s.example)}),console.log("componentsObj",u)}const p="default";function D(e){let t=h.humpToLine(e.name),s=[...e.aliasNames];s.push(t),s.forEach(n=>{j.push({name:n,value:e.key})})}function F(e,t){const s={};t==null||t.forEach(n=>{u[n.key]=n,D(n);const r=Object.values(n.aliass||{});r&&r.length?r.forEach(a=>{s[a]=s[a]||[],s[a].push(n.key)}):(s[p]=s[p]||[],s[p].push(n.key))})}function V(e){var n;let t,s;e.resolver?(t=e.alias||((n=e.resolver)==null?void 0:n.alias)||p,s=d.getComponentsArr(e.resolver.urls||[],e.resolver,e.componentsRaw,e.components,e)):(t=e.alias||p,s=d.getComponentsArr(Object.keys(e.componentsRaw),e,e.componentsRaw,e.components,e)),s&&(s!=null&&s.props)&&s.props.forEach(r=>{N[r.key]=r}),F(t,s.components)}function $(e){return g(),u[e]}function g(){return Object.keys(u).length==0&&Z(),Object.values(u)}function Q(e,t,s){g();const n=[];if(s){let a=u[s];if(a&&a.key)return[a]}let r=h.humpToLine(e);return j.forEach(a=>{t?a.name.includes(r)&&n.push(u[a.value]):a.name==r&&n.push(u[a.value])}),y.duplicateRemoval(n,"key")}async function G(e,t){let s=e;if(e){let n=T(t.key,e,"js").filter(r=>r.key.startsWith(t.head));s+=await q(n)}return s}function Y(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>N[n.key]);L.asyncMergeArray(s,(n,r,a,o)=>{a.raw?n():a.getRaw?a.getRaw().then(async l=>{const i=(l||"")+"";let c=await G(i,e[o]);a.raw=c,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}async function q(e){const t=await Y(e);return((t==null?void 0:t.map(n=>n.raw))||[]).join(`
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../config.js"),d=require("./common.js"),h=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),O=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js"),C=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-4OBNLDTJ.js"),y=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-ZVBCHJA5.js"),L=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-10/node_modules/@fangzhongya/utils/dist/chunk-XQB2HUHZ.js"),A=require("./index.js"),u={},N={},j=[],b={},P={},x={};function H(){return E.getConfig("example")}function K(e,t,s){const n=Object.assign({exampless:[],examplessRaw:[]},t,s),r=[],a=n.examples;a&&Object.keys(a).forEach(i=>{r.push(i),P[i]=a[i]}),n.exampless=r,n.examples=void 0;const o=[],l=n.examplesRaw;l&&Object.keys(l).forEach(i=>{o.push(i),x[i]=l[i]}),n.examplessRaw=o,n.examplesRaw=void 0,b[e]=n}function I(e,t="vue"){let s="";if(t=="vue"){let r=new RegExp(/(<script([^>]*)>)((.|\n|\r)*)(<\/script>)/g).exec(e);r&&(s=r[3])}else t=="js"&&(s=e);if(s){const n=A.getTextImport(s);let r=n==null?void 0:n.map(o=>o.n);const a=[];return r&&r.length>0&&r.forEach(o=>{o&&(o.startsWith("./")||o.startsWith("../"))&&a.push(o)}),a}}function M(e){return new Promise(t=>{e?e.raw?t(e.raw):e.getRaw?e.getRaw().then(s=>{const n=(s||"")+"";e.raw=n,e.getRaw=null,t(n)}):t(""):t("")})}function U(e,t){e=(e||"")+"";let s="";switch(e){case"1":s=t.tdir+"/";break;case"2":s=t.adir+"/";break;case"3":s=t.tdir+"/"+t.adir+"/";break}return s}function W(e,t,s){var l,i;e=(e||"")+"",s=(s||"")+"";let n=h.humpToLine(t.name),r=[];const a=Object.values(t.aliass||{});if(e==="1")t.alias&&r.push(t.alias+"-"+n);else if(e==="2")a&&a.length>0&&a.forEach(c=>{r.push(c+"-"+n)});else if(e==="3"){let c="";t.alias&&(c=t.alias+"-"),a==null||a.forEach(m=>{r.push(c+m+"-"+n)})}else e==="4"?(l=t.aliasNames)==null||l.forEach(c=>{r.push(h.humpToLine(c))}):e=="9"&&(r.push(n),(i=t.aliasNames)==null||i.forEach(c=>{r.push(h.humpToLine(c))}));r.length==0&&r.push(n);let o=[];return s==="1"?r.forEach(c=>{let m=O.lineToLargeHump(c);o.push(m,C.firstLower(m))}):s==="2"?r.forEach(c=>{let m=O.lineToLargeHump(c);o.push(c,m,C.firstLower(m))}):o=[...r],o=[...new Set(o)],o}function k(e,t,s,n){const r=[];return s.examplessRaw.forEach(a=>{for(let o=0;o<t.length;o++){const l=t[o];if(a==e+l+"/"+s.md+".md"){r.push({topurl:e,comkey:n.key,name:n.name,value:l,key:a,raw:"",getRaw:x[a]});break}}}),r}function R(e){g();const t=u[e];if(t.tests)return t.tests;{const s=b[t.dir],n=s.dir+U(s.level||0,t),r=W(s.aliaslevel||0,t,s.componentName||0);t.mds=k(n,r,s,t);const a={};return s.exampless.forEach(o=>{for(let l=0;l<r.length;l++){const i=r[l];if(o.startsWith(n+i+"/")){const c=new RegExp("^\\"+n+i+"/(.*)/index\\."+d.defaultExtensions.join("|")+"$");let m="",f=o.match(c);f&&f.length>1&&(m=f[1]),a[o]={topurl:n,name:i,value:m,comname:t.name,comkey:t.key,key:o,component:P[o],raw:"",getRaw:x[o]};break}}}),t.tests=a,a}}function B(e){if(e){const t=R(e);return Object.values(t)}else return[]}function J(e,t,s){g();const n=R(s),r=[];if(t){let a=n[t];if(a)return r.push(a),r}return Object.values(n).forEach(a=>{a.name+"/"+a.value==e&&r.push(a)}),r}function S(e){return R(e),u[e].mds}function T(e,t,s){let n=I(t,s)||[],r=e.split("/");return n.map(a=>{let o=/\.([a-z]+)$/g;if(a.startsWith("./")){let l=r.slice(0,r.length-1).join("/"),i=a.substring(2);return o.test(i)||(a=a+".js"),{name:a,value:i,head:l,key:l+"/"+i}}else{let l=a.split("/"),i=0;for(let w=0;w<l.length;w++)if(l[w]!=".."){i=w;break}let c=l.slice(i,l.length),m=r.slice(0,r.length-i-1).join("/"),f=c.join("/");return o.test(f)||(a=a+".js"),{name:a,value:f,head:m,key:m+"/"+f}}})}function X(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>({raw:"",value:n.value,key:n.key,getRaw:x[n.key]}));L.asyncMergeArray(s,(n,r,a,o)=>{a.raw?n():a.getRaw?a.getRaw().then(l=>{const i=(l||"")+"";a.raw=i,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}function Z(){const e=H(),t=E.getConfig("components");t==null||t.forEach(s=>{var r;V(s);let n=s.dir||((r=s==null?void 0:s.resolver)==null?void 0:r.dir)||"";K(n,e,s.example)}),console.log("componentsObj",u)}const p="default";function D(e){let t=h.humpToLine(e.name),s=[...e.aliasNames];s.push(t),s.forEach(n=>{j.push({name:n,value:e.key})})}function F(e,t){const s={};t==null||t.forEach(n=>{u[n.key]=n,D(n);const r=Object.values(n.aliass||{});r&&r.length?r.forEach(a=>{s[a]=s[a]||[],s[a].push(n.key)}):(s[p]=s[p]||[],s[p].push(n.key))})}function V(e){var n;let t,s;e.resolver?(t=e.alias||((n=e.resolver)==null?void 0:n.alias)||p,s=d.getComponentsArr(e.resolver.urls||[],e.resolver,e.componentsRaw,e.components,e)):(t=e.alias||p,s=d.getComponentsArr(Object.keys(e.componentsRaw),e,e.componentsRaw,e.components,e)),s&&(s!=null&&s.props)&&s.props.forEach(r=>{N[r.key]=r}),F(t,s.components)}function $(e){return g(),u[e]}function g(){return Object.keys(u).length==0&&Z(),Object.values(u)}function Q(e,t,s){g();const n=[];if(s){let a=u[s];if(a&&a.key)return[a]}let r=h.humpToLine(e);return j.forEach(a=>{t?a.name.includes(r)&&n.push(u[a.value]):a.name==r&&n.push(u[a.value])}),y.duplicateRemoval(n,"key")}async function G(e,t){let s=e;if(e){let n=T(t.key,e,"js").filter(r=>r.key.startsWith(t.head));s+=await q(n)}return s}function Y(e){return new Promise(t=>{if(e&&e.length>0){let s=e.map(n=>N[n.key]);L.asyncMergeArray(s,(n,r,a,o)=>{a.raw?n():a.getRaw?a.getRaw().then(async l=>{const i=(l||"")+"";let c=await G(i,e[o]);a.raw=c,a.getRaw=null,n()}):n()}).then(()=>{t(s)})}else t([])})}async function q(e){const t=await Y(e);return((t==null?void 0:t.map(n=>n.raw))||[]).join(`
2
2
  `)}async function _(e,t){let s=e;if(e&&t.comprops){let n=T(t.key,e,"vue").filter(a=>d.isComprops(a.name,t.comprops||"")),r=await q(n);s+=r}return s}function v(e){return new Promise(t=>{if(e){g();const s=u[e];s?s.raw?t(s.raw):s.getRaw?s.getRaw().then(async n=>{const r=(n||"")+"",a=await _(r,s);s.raw=a,s.getRaw=null,t(a)}):t(""):t("")}else t("")})}exports.defaultName=p;exports.getCompoName=Q;exports.getCompoNameKey=$;exports.getCompoNameObj=g;exports.getKeyMds=S;exports.getLocalTextArr=X;exports.getLocalTextComponents=v;exports.getLocalTextTests=M;exports.getTestImportUrl=T;exports.getTestName=B;exports.getTestNameObj=J;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.2-11",
4
+ "version": "0.0.2-4",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",
@@ -26,18 +26,22 @@
26
26
  "preview": "vite preview",
27
27
  "test": "vitest test"
28
28
  },
29
- "devDependencies": {
30
- "@fangzhongya/create": "0.2.1-4",
31
- "@fangzhongya/utils": "0.0.7-11",
32
- "@fangzhongya/vue-components": "0.1.3",
33
- "@highlightjs/vue-plugin": "^2.1.0",
34
- "@types/node": "^18.13.0",
35
- "@vitejs/plugin-vue": "^4.0.0",
29
+ "dependencies": {
36
30
  "comment-parser": "^1.3.1",
37
31
  "es-module-lexer": "^1.1.1",
38
32
  "highlight.js": "^11.7.0",
39
33
  "markdown-it": "^13.0.1",
34
+ "vue": "^3.2.47",
35
+ "vue-router": "^4.1.6",
40
36
  "prettier": "^2.8.4",
37
+ "@highlightjs/vue-plugin": "^2.1.0"
38
+ },
39
+ "devDependencies": {
40
+ "@fangzhongya/create": "0.2.1",
41
+ "@fangzhongya/utils": "0.0.7-10",
42
+ "@fangzhongya/vue-components": "0.1.2-9",
43
+ "@types/node": "^18.13.0",
44
+ "@vitejs/plugin-vue": "^4.0.0",
41
45
  "sass": "^1.58.0",
42
46
  "tsup": "^6.6.0",
43
47
  "typescript": "^4.9.5",
@@ -45,8 +49,6 @@
45
49
  "vite": "^4.1.1",
46
50
  "vite-plugin-dts": "^1.7.2",
47
51
  "vitest": "^0.28.4",
48
- "vue": "^3.2.47",
49
- "vue-router": "^4.1.6",
50
52
  "vue-tsc": "^1.0.24"
51
53
  },
52
54
  "main": "./dist/lib/packages/index.js",