cimu-parcel 1.0.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.
@@ -0,0 +1,46 @@
1
+ import { defineComponent as _, computed as c, resolveComponent as i, createBlock as s, openBlock as a, mergeProps as b, withCtx as p, createElementBlock as k, Fragment as V, renderList as x, createTextVNode as N, toDisplayString as B } from "vue";
2
+ const y = /* @__PURE__ */ _({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(d, { emit: m }) {
10
+ const e = d, t = m, n = {
11
+ label: e.config.fieldNames?.label ?? "label",
12
+ value: e.config.fieldNames?.value ?? "value"
13
+ }, u = c({
14
+ get: () => e.value,
15
+ set: (o) => {
16
+ t("update:value", o), t("callback", {
17
+ value: o,
18
+ config: e.config
19
+ });
20
+ }
21
+ }), f = c(() => e.config.options ?? []);
22
+ return (o, r) => {
23
+ const g = i("el-radio"), v = i("el-radio-group");
24
+ return a(), s(v, b({
25
+ modelValue: u.value,
26
+ "onUpdate:modelValue": r[0] || (r[0] = (l) => u.value = l)
27
+ }, o.config), {
28
+ default: p(() => [
29
+ (a(!0), k(V, null, x(f.value, (l) => (a(), s(g, {
30
+ key: l,
31
+ label: l[n.value]
32
+ }, {
33
+ default: p(() => [
34
+ N(B(l[n.label]), 1)
35
+ ]),
36
+ _: 2
37
+ }, 1032, ["label"]))), 128))
38
+ ]),
39
+ _: 1
40
+ }, 16, ["modelValue"]);
41
+ };
42
+ }
43
+ });
44
+ export {
45
+ y as default
46
+ };
@@ -0,0 +1,44 @@
1
+ import { defineComponent as g, computed as s, resolveComponent as p, createBlock as i, openBlock as t, mergeProps as _, withCtx as b, createElementBlock as k, Fragment as V, renderList as x } from "vue";
2
+ const C = /* @__PURE__ */ g({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(r, { emit: m }) {
10
+ const e = r, a = m, n = {
11
+ label: e.config.fieldNames?.label ?? "label",
12
+ value: e.config.fieldNames?.value ?? "value"
13
+ }, c = s({
14
+ get: () => e.value,
15
+ set: (o) => {
16
+ a("update:value", o), a("callback", {
17
+ value: o,
18
+ config: e.config
19
+ });
20
+ }
21
+ }), f = s(() => e.config.options ?? []);
22
+ return (o, u) => {
23
+ const d = p("el-option"), v = p("el-select");
24
+ return t(), i(v, _({
25
+ modelValue: c.value,
26
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => c.value = l),
27
+ "collapse-tags": "",
28
+ "collapse-tags-tooltip": ""
29
+ }, o.config), {
30
+ default: b(() => [
31
+ (t(!0), k(V, null, x(f.value, (l) => (t(), i(d, {
32
+ key: l,
33
+ label: l[n.label],
34
+ value: l[n.value]
35
+ }, null, 8, ["label", "value"]))), 128))
36
+ ]),
37
+ _: 1
38
+ }, 16, ["modelValue"]);
39
+ };
40
+ }
41
+ });
42
+ export {
43
+ C as default
44
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as c, computed as r, resolveComponent as s, createBlock as i, openBlock as d, mergeProps as f } from "vue";
2
+ const _ = /* @__PURE__ */ c({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(u, { emit: a }) {
10
+ const o = u, n = a, t = r({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ n("update:value", e), n("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ });
19
+ return (e, l) => {
20
+ const m = s("el-input-number");
21
+ return d(), i(m, f({
22
+ modelValue: t.value,
23
+ "onUpdate:modelValue": l[0] || (l[0] = (p) => t.value = p)
24
+ }, e.config), null, 16, ["modelValue"]);
25
+ };
26
+ }
27
+ });
28
+ export {
29
+ _ as default
30
+ };
@@ -0,0 +1,47 @@
1
+ import { defineComponent as v, computed as r, resolveComponent as s, createBlock as p, openBlock as t, mergeProps as _, withCtx as i, createElementBlock as k, Fragment as x, renderList as V, createTextVNode as h, toDisplayString as N } from "vue";
2
+ const C = /* @__PURE__ */ v({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {},
7
+ col: {}
8
+ },
9
+ emits: ["update:value", "callback"],
10
+ setup(m, { emit: d }) {
11
+ const e = m, a = d, n = {
12
+ label: e.config.fieldNames?.label ?? "label",
13
+ value: e.config.fieldNames?.value ?? "value"
14
+ }, c = r({
15
+ get: () => e.value,
16
+ set: (o) => {
17
+ a("update:value", o), a("callback", {
18
+ value: o,
19
+ config: e.config
20
+ });
21
+ }
22
+ }), f = r(() => e.config.options ?? []);
23
+ return (o, u) => {
24
+ const g = s("el-checkbox"), b = s("el-checkbox-group");
25
+ return t(), p(b, _({
26
+ modelValue: c.value,
27
+ "onUpdate:modelValue": u[0] || (u[0] = (l) => c.value = l)
28
+ }, o.config), {
29
+ default: i(() => [
30
+ (t(!0), k(x, null, V(f.value, (l) => (t(), p(g, {
31
+ key: l,
32
+ label: l[n.value]
33
+ }, {
34
+ default: i(() => [
35
+ h(N(l[n.label]), 1)
36
+ ]),
37
+ _: 2
38
+ }, 1032, ["label"]))), 128))
39
+ ]),
40
+ _: 1
41
+ }, 16, ["modelValue"]);
42
+ };
43
+ }
44
+ });
45
+ export {
46
+ C as default
47
+ };
@@ -0,0 +1,30 @@
1
+ import { defineComponent as p, computed as r, resolveComponent as s, createBlock as i, openBlock as d, mergeProps as f } from "vue";
2
+ const v = /* @__PURE__ */ p({
3
+ __name: "index",
4
+ props: {
5
+ value: { type: [String, Number, Boolean] },
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(a, { emit: u }) {
10
+ const o = a, t = u, l = r({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ t("update:value", e), t("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ });
19
+ return (e, n) => {
20
+ const c = s("el-switch");
21
+ return d(), i(c, f({
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => l.value = m)
24
+ }, e.config), null, 16, ["modelValue"]);
25
+ };
26
+ }
27
+ });
28
+ export {
29
+ v as default
30
+ };
@@ -0,0 +1,33 @@
1
+ import { defineComponent as m, computed as n, resolveComponent as r, createBlock as d, openBlock as f, mergeProps as g } from "vue";
2
+ const _ = /* @__PURE__ */ m({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(c, { emit: s }) {
10
+ const o = c, t = s, l = n({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ t("update:value", e), t("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ }), p = n(() => o.config.options ?? []);
19
+ return (e, a) => {
20
+ const u = r("el-cascader");
21
+ return f(), d(u, g({
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => l.value = i),
24
+ options: p.value,
25
+ "collapse-tags": "",
26
+ "collapse-tags-tooltip": ""
27
+ }, e.config), null, 16, ["modelValue", "options"]);
28
+ };
29
+ }
30
+ });
31
+ export {
32
+ _ as default
33
+ };
@@ -0,0 +1,35 @@
1
+ import { defineComponent as c, computed as m, resolveComponent as d, createBlock as i, openBlock as s, mergeProps as f } from "vue";
2
+ const g = /* @__PURE__ */ c({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(n, { emit: p }) {
10
+ const o = n, a = p, t = m({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ a("update:value", e), a("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ });
19
+ return (e, l) => {
20
+ const r = d("el-date-picker");
21
+ return s(), i(r, f({
22
+ modelValue: t.value,
23
+ "onUpdate:modelValue": l[0] || (l[0] = (u) => t.value = u)
24
+ }, e.config, {
25
+ type: e.config.dateType || "date",
26
+ "value-format": e.config.valueFormat || "YYYY-MM-DD",
27
+ "start-placeholder": "开始日期",
28
+ "end-placeholder": "结束日期"
29
+ }), null, 16, ["modelValue", "type", "value-format"]);
30
+ };
31
+ }
32
+ });
33
+ export {
34
+ g as default
35
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as m, computed as i, resolveComponent as r, createBlock as s, openBlock as d, mergeProps as f } from "vue";
2
+ const v = /* @__PURE__ */ m({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(a, { emit: p }) {
10
+ const o = a, t = p, n = i({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ t("update:value", e), t("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ });
19
+ return (e, l) => {
20
+ const u = r("el-input");
21
+ return d(), s(u, f({
22
+ modelValue: n.value,
23
+ "onUpdate:modelValue": l[0] || (l[0] = (c) => n.value = c)
24
+ }, e.config, {
25
+ type: e.config.type || "text"
26
+ }), null, 16, ["modelValue", "type"]);
27
+ };
28
+ }
29
+ });
30
+ export {
31
+ v as default
32
+ };
@@ -0,0 +1,32 @@
1
+ import { defineComponent as i, computed as m, resolveComponent as c, createBlock as r, openBlock as d, mergeProps as f } from "vue";
2
+ const v = /* @__PURE__ */ i({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(l, { emit: u }) {
10
+ const o = l, t = u, n = m({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ t("update:value", e), t("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ });
19
+ return (e, a) => {
20
+ const p = c("el-input");
21
+ return d(), r(p, f({
22
+ modelValue: n.value,
23
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => n.value = s),
24
+ type: "textarea",
25
+ autosize: e.config.autosize || { minRows: 4, maxRows: 6 }
26
+ }, e.config), null, 16, ["modelValue", "autosize"]);
27
+ };
28
+ }
29
+ });
30
+ export {
31
+ v as default
32
+ };
@@ -0,0 +1,31 @@
1
+ import { defineComponent as r, computed as a, resolveComponent as i, createBlock as d, openBlock as f, mergeProps as v } from "vue";
2
+ const _ = /* @__PURE__ */ r({
3
+ __name: "index",
4
+ props: {
5
+ value: {},
6
+ config: {}
7
+ },
8
+ emits: ["update:value", "callback"],
9
+ setup(c, { emit: u }) {
10
+ const o = c, t = u, l = a({
11
+ get: () => o.value,
12
+ set: (e) => {
13
+ t("update:value", e), t("callback", {
14
+ value: e,
15
+ config: o.config
16
+ });
17
+ }
18
+ }), s = a(() => o.config.options ?? []);
19
+ return (e, n) => {
20
+ const p = i("el-tree-select");
21
+ return f(), d(p, v({
22
+ modelValue: l.value,
23
+ "onUpdate:modelValue": n[0] || (n[0] = (m) => l.value = m),
24
+ data: s.value
25
+ }, e.config), null, 16, ["modelValue", "data"]);
26
+ };
27
+ }
28
+ });
29
+ export {
30
+ _ as default
31
+ };
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/git_pull.bat ADDED
@@ -0,0 +1,51 @@
1
+ @echo off
2
+ :: 自动化 Git 操作脚本
3
+ :: 用于执行 git pull, git add, git commit 和 git push
4
+
5
+ :: 捕获 Ctrl+C 中断
6
+ :: 禁止 Ctrl+C 中断
7
+ echo Press Ctrl+C to abort at any point.
8
+
9
+ :: 开始执行命令
10
+ echo Starting git pull...
11
+ git pull
12
+ if %ERRORLEVEL% neq 0 (
13
+ echo "git pull failed, stopping..."
14
+ pause
15
+ exit /b %ERRORLEVEL%
16
+ )
17
+ echo Git pull completed successfully.
18
+ pause
19
+
20
+ echo Starting git add...
21
+ git add .
22
+ if %ERRORLEVEL% neq 0 (
23
+ echo "git add failed, stopping..."
24
+ pause
25
+ exit /b %ERRORLEVEL%
26
+ )
27
+ echo Git add completed successfully.
28
+ pause
29
+
30
+ echo Starting git commit...
31
+ git commit -m "Your commit message"
32
+ if %ERRORLEVEL% neq 0 (
33
+ echo "git commit failed, stopping..."
34
+ pause
35
+ exit /b %ERRORLEVEL%
36
+ )
37
+ echo Git commit completed successfully.
38
+ pause
39
+
40
+ echo Starting git push...
41
+ git push
42
+ if %ERRORLEVEL% neq 0 (
43
+ echo "git push failed, stopping..."
44
+ pause
45
+ exit /b %ERRORLEVEL%
46
+ )
47
+ echo Git push completed successfully.
48
+ pause
49
+
50
+ :: 保持窗口打开,不需要按任意键
51
+ cmd /k echo "All Git commands executed successfully! Press Ctrl+C to close."
package/index.html ADDED
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <link rel="icon" type="image/svg+xml" href="/vite.svg" />
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
+ <title>Vite + Vue + TS</title>
8
+ </head>
9
+ <body>
10
+ <div id="app"></div>
11
+ <script type="module" src="/src/main.ts"></script>
12
+ </body>
13
+ </html>
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "cimu-parcel",
3
+ "private": false,
4
+ "version": "1.0.2",
5
+ "type": "module",
6
+ "main": "dist/cimu-parcel.umd.js",
7
+ "module": "dist/cimu-parcel.es.js",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/cimu-parcel.es.js",
11
+ "require": "./dist/cimu-parcel.umd.js"
12
+ },
13
+ "./dist/style.css": {
14
+ "import": "./dist/cimu-parcel.css",
15
+ "require": "./dist/cimu-parcel.css"
16
+ }
17
+ },
18
+ "scripts": {
19
+ "dev": "vite",
20
+ "build": "vue-tsc -b && vite build",
21
+ "preview": "vite preview"
22
+ },
23
+ "dependencies": {
24
+ "@element-plus/icons-vue": "^2.3.2",
25
+ "@types/node": "^24.3.0",
26
+ "dayjs": "^1.11.15",
27
+ "element-plus": "^2.11.1",
28
+ "path": "^0.12.7",
29
+ "sortablejs": "^1.15.6",
30
+ "vue": "^3.5.18",
31
+ "vue-router": "^4.5.1"
32
+ },
33
+ "devDependencies": {
34
+ "@vitejs/plugin-vue": "^6.0.1",
35
+ "@vitejs/plugin-vue-jsx": "^5.1.1",
36
+ "@vue/runtime-dom": "^3.5.20",
37
+ "@vue/tsconfig": "^0.7.0",
38
+ "sass-embedded": "^1.91.0",
39
+ "typescript": "^5.9.2",
40
+ "vite": "^7.1.2",
41
+ "vue-tsc": "^3.0.5"
42
+ }
43
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
@@ -0,0 +1 @@
1
+ {"root":["./src/index.ts","./src/main.ts","./src/vite-env.d.ts","./src/api/interface/index.ts","./src/components/index.ts","./src/components/basisform/interface/index.ts","./src/components/grid/interface/index.ts","./src/components/protable/interface/index.ts","./src/hooks/dict.ts","./src/hooks/useform.ts","./src/hooks/useselection.ts","./src/hooks/usetable.ts","./src/hooks/interface/index.ts","./src/plugins/index.ts","./src/utils/formvalidate.ts","./src/utils/index.ts","./src/utils/is/index.ts","./src/app-basistable.vue","./src/app-protable.vue","./src/app-form.vue","./src/app.vue","./src/components/basisdetail/descriptions.vue","./src/components/basisdetail/index.vue","./src/components/basisform/index.vue","./src/components/basistable/index.vue","./src/components/basistable/components/colsetting.vue","./src/components/basistable/components/formdialog.vue","./src/components/basistable/components/formitem.vue","./src/components/basistable/components/tablecolumn.vue","./src/components/control/cascader/index.vue","./src/components/control/checkbox/index.vue","./src/components/control/date/index.vue","./src/components/control/input/index.vue","./src/components/control/input-number/index.vue","./src/components/control/radio/index.vue","./src/components/control/select/index.vue","./src/components/control/switch/index.vue","./src/components/control/textarea/index.vue","./src/components/control/tree-select/index.vue","./src/components/dialog/index.vue","./src/components/grid/index.vue","./src/components/grid/components/griditem.vue","./src/components/pagination/index.vue","./src/components/protable/index.vue","./src/components/protable/components/colsetting.vue","./src/components/protable/components/pagination.vue","./src/components/protable/components/tablecolumn.vue","./src/components/searchform/index.vue","./src/components/searchform/components/searchformitem.vue","./src/components/validcode/index.vue","./vite.config.ts"],"version":"5.9.2"}