dlzn-ui 2.0.16 → 2.0.22
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.
- package/assets/Picker-CBqZNv2a.css +1 -0
- package/assets/card-BA6XkAYT.css +2 -0
- package/assets/image-DfMYLUCM.css +1 -0
- package/assets/input-number-CMgDqkh-.css +2 -0
- package/assets/pagination-B9tRH6dt.css +1 -0
- package/assets/{provider-CW7ZfoeY.css → provider-XeFy2v3X.css} +1 -1
- package/assets/table-BcyMyXjz.css +1 -0
- package/assets/{textarea-z-4sHFLB.css → textarea-D6OBW0hp.css} +1 -1
- package/chunks/{AssignUser-Ds0SzWSC.mjs → AssignUser-B8KO6qit.mjs} +3 -3
- package/chunks/{Common-DyuM41yx.mjs → Common-DZTByJ2b.mjs} +1 -1
- package/chunks/Day-D47hdyiq.mjs +275 -0
- package/chunks/{DictTypeDetail-90mc8fa1.mjs → DictTypeDetail-DDv2c9JG.mjs} +2 -2
- package/chunks/{Hour-BL_7zdsY.mjs → Hour-CkkZZ5R6.mjs} +1 -1
- package/chunks/{Index-CwksT4hO.mjs → Index-0-JzYXfb.mjs} +1 -1
- package/chunks/{Index-BPHL8J52.mjs → Index-2AaTfz2L.mjs} +2 -2
- package/chunks/{Index-eWToVefC.mjs → Index-AH0WCRJO.mjs} +1 -1
- package/chunks/{Index--rlVexBg.mjs → Index-BOv4n_q9.mjs} +1 -1
- package/chunks/{Index-BgAFqGXG.mjs → Index-CSNXgzLe.mjs} +2 -2
- package/chunks/{Index-7ubKF9v4.mjs → Index-CT0eb17V.mjs} +1 -1
- package/chunks/{Index-BXjVn9TE.mjs → Index-C_JjguDb.mjs} +1 -1
- package/chunks/{Index-DiOdyjva.mjs → Index-CgJ94bEi.mjs} +1 -1
- package/chunks/{Index-CS1bfxu7.mjs → Index-Cu2Ud84o.mjs} +1 -1
- package/chunks/{Index-Bi44jQm2.mjs → Index-D6pUjcEN.mjs} +1 -1
- package/chunks/{Index-DC0L_zaY.mjs → Index-DBQnzqsw.mjs} +1 -1
- package/chunks/{Index-Bu5a_B5n.mjs → Index-DLHAN-m-.mjs} +1 -1
- package/chunks/{Index-CEehhVZR.mjs → Index-DsO5SwJk.mjs} +2 -2
- package/chunks/{Index-De48YIRG.mjs → Index-vcnN6L-y.mjs} +1 -1
- package/chunks/{IndexItem-B7qjaAzq.mjs → IndexItem-CUgu9du0.mjs} +2 -2
- package/chunks/{Log-BncwEzcE.mjs → Log-CPni6oj5.mjs} +2 -2
- package/chunks/{LoginBg-BtuSDFUq.mjs → LoginBg-D3SWh-C6.mjs} +2 -2
- package/chunks/{Minute-D6qi9-Bq.mjs → Minute-Dl21u3sJ.mjs} +1 -1
- package/chunks/{Month-B4m3vDps.mjs → Month-DIgPlTW3.mjs} +1 -1
- package/chunks/{Second-Cb6eUrAr.mjs → Second-C9JrfdJq.mjs} +1 -1
- package/chunks/{SelectDept-DVwKLSdI.mjs → SelectDept-BdP4Fevb.mjs} +2 -2
- package/chunks/{SelectMenu-D1fa5g0-.mjs → SelectMenu-C8uTKPyO.mjs} +2 -2
- package/chunks/{SelectUser-BqucEetn.mjs → SelectUser-Ce69wfaR.mjs} +2 -2
- package/chunks/{UserInfo-DUVL2uDb.mjs → UserInfo-BXDXYNSa.mjs} +1 -1
- package/chunks/{app-N2L1j0dZ.mjs → app-C4vupHU4.mjs} +1 -1
- package/chunks/{card-BfHb58zl.mjs → card-Domqu1Hz.mjs} +7 -7
- package/chunks/{checkbox-CLlUEbkk.mjs → checkbox-DsFECVao.mjs} +5 -5
- package/chunks/{custom-page-list-k-CAcJ5H.mjs → custom-page-list-DNONwY-V.mjs} +5 -5
- package/chunks/{custom-page-table-ClN4nM3U.mjs → custom-page-table-y7emjJnS.mjs} +2 -2
- package/chunks/{image-BEsiUWeF.mjs → image-cancjWRE.mjs} +7 -7
- package/chunks/{image-viewer-BZux9RvX.mjs → image-viewer-CBPx8-8E.mjs} +5 -5
- package/chunks/{input-B8jjJrK5.mjs → input-UQjpNb61.mjs} +9 -9
- package/chunks/{input-number-B4oTaRne.mjs → input-number-q9JM7-Uo.mjs} +7 -7
- package/chunks/{link-Byr_BYPx.mjs → link-nbeAJ6Mt.mjs} +5 -5
- package/chunks/{overview-uo7gHw9o.mjs → overview-YqvRmr0O.mjs} +1 -1
- package/chunks/{page-list-DOAYgiyu.mjs → page-list-DMDDWHTe.mjs} +4 -4
- package/chunks/{page-query-D4lJE4q9.mjs → page-query-CRbcQbQW.mjs} +1 -1
- package/chunks/{page-table-BizUvlg4.mjs → page-table-C1hMMXID.mjs} +3 -3
- package/chunks/{pagination-BDbOy8c6.mjs → pagination-CQPdVoCT.mjs} +8 -8
- package/chunks/{popconfirm-DxWa7vWm.mjs → popconfirm-Bc93K9mT.mjs} +5 -5
- package/chunks/{popup-BO_hNSY5.mjs → popup-4CBPH3ga.mjs} +5 -5
- package/chunks/{provider-DyIvT7Vi.mjs → provider-BhFm5rvy.mjs} +128 -128
- package/chunks/{range-input-CKFoK49E.mjs → range-input-CkZteidJ.mjs} +5 -5
- package/chunks/{slider-C63Gzbld.mjs → slider-DSeKLd2m.mjs} +5 -5
- package/chunks/{switch-CqV3-avv.mjs → switch-DNPmkfa_.mjs} +5 -5
- package/chunks/{tab-panel-CtYeK29i.mjs → tab-panel-yh4fFZ2r.mjs} +5 -5
- package/chunks/{table-Ds66y4wd.mjs → table-CqT9HbMR.mjs} +12 -12
- package/chunks/{tag-CfeJWJii.mjs → tag-CQPtIWU2.mjs} +5 -5
- package/chunks/{tag-input-iNXrRXk2.mjs → tag-input-BuAFWI1F.mjs} +9 -9
- package/chunks/{textarea-xkwOhNut.mjs → textarea-CYirMH7f.mjs} +7 -7
- package/components/app/index.mjs +1 -1
- package/components/app/src/app.mjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/button.mjs +1 -1
- package/components/card/index.mjs +1 -1
- package/components/card/src/card.mjs +1 -1
- package/components/checkbox/index.mjs +1 -1
- package/components/checkbox/src/checkbox.mjs +1 -1
- package/components/checkbox-group/index.mjs +1 -1
- package/components/checkbox-group/src/checkbox-group.mjs +1 -1
- package/components/cron/index.mjs +1 -1
- package/components/cron/src/Common.mjs +1 -1
- package/components/cron/src/Day.mjs +1 -1
- package/components/cron/src/Hour.mjs +1 -1
- package/components/cron/src/Minute.mjs +1 -1
- package/components/cron/src/Month.mjs +1 -1
- package/components/cron/src/Picker.mjs +82 -112
- package/components/cron/src/Second.mjs +1 -1
- package/components/cron/src/cron.mjs +1 -1
- package/components/custom-page-list/index.mjs +1 -1
- package/components/custom-page-list/src/custom-page-list.mjs +1 -1
- package/components/custom-page-table/index.mjs +1 -1
- package/components/custom-page-table/src/custom-page-table.mjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/form.mjs +1 -1
- package/components/image/index.mjs +1 -1
- package/components/image/src/image.mjs +1 -1
- package/components/image-viewer/index.mjs +1 -1
- package/components/image-viewer/src/image-viewer.mjs +1 -1
- package/components/index.mjs +25 -25
- package/components/input/index.mjs +1 -1
- package/components/input/src/input.mjs +1 -1
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/input-number.mjs +1 -1
- package/components/link/index.mjs +1 -1
- package/components/link/src/link.mjs +1 -1
- package/components/overview/index.mjs +1 -1
- package/components/overview/src/DicLabel/Index.mjs +1 -1
- package/components/overview/src/IndexItem.mjs +1 -1
- package/components/overview/src/OptionLabel/Index.mjs +1 -1
- package/components/overview/src/overview.mjs +1 -1
- package/components/page-list/index.mjs +1 -1
- package/components/page-list/src/page-list.mjs +1 -1
- package/components/page-query/index.mjs +1 -1
- package/components/page-query/src/page-query.mjs +1 -1
- package/components/page-table/index.mjs +1 -1
- package/components/page-table/src/page-table.mjs +1 -1
- package/components/pagination/index.mjs +1 -1
- package/components/pagination/src/pagination.mjs +1 -1
- package/components/popconfirm/index.mjs +1 -1
- package/components/popconfirm/src/popconfirm.mjs +1 -1
- package/components/popup/index.mjs +1 -1
- package/components/popup/src/popup.mjs +1 -1
- package/components/provider/index.mjs +1 -1
- package/components/provider/src/Provider.mjs +1 -1
- package/components/radio-group/index.mjs +1 -1
- package/components/radio-group/src/radio-group.mjs +1 -1
- package/components/range-input/index.mjs +1 -1
- package/components/range-input/src/range-input.mjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/select.mjs +1 -1
- package/components/select-sys-user/index.mjs +1 -1
- package/components/select-sys-user/src/Picker.mjs +2 -2
- package/components/select-sys-user/src/select-sys-user.mjs +1 -1
- package/components/slider/index.mjs +1 -1
- package/components/slider/src/slider.mjs +1 -1
- package/components/switch/index.mjs +1 -1
- package/components/switch/src/switch.mjs +1 -1
- package/components/tab-panel/index.mjs +1 -1
- package/components/tab-panel/src/tab-panel.mjs +1 -1
- package/components/table/index.mjs +1 -1
- package/components/table/src/table.mjs +1 -1
- package/components/tag/index.mjs +1 -1
- package/components/tag/src/tag.mjs +1 -1
- package/components/tag-input/index.mjs +1 -1
- package/components/tag-input/src/tag-input.mjs +1 -1
- package/components/textarea/index.mjs +1 -1
- package/components/textarea/src/textarea.mjs +1 -1
- package/components/tree/index.mjs +1 -1
- package/components/tree/src/tree.mjs +1 -1
- package/components/tree-select/index.mjs +1 -1
- package/components/tree-select/src/tree-select.mjs +1 -1
- package/components/upload/index.mjs +1 -1
- package/components/upload/src/upload.mjs +1 -1
- package/hooks/useDicOptions/index.mjs +1 -1
- package/hooks/useSysUser/index.mjs +1 -1
- package/layout/Entry.mjs +1 -1
- package/layout/Home.mjs +14 -9
- package/layout/Login.mjs +2 -2
- package/layout/NotFound.mjs +1 -1
- package/layout/modules/Aside.mjs +1 -1
- package/layout/modules/Breadcrumb.mjs +1 -1
- package/layout/modules/Header.mjs +1 -1
- package/layout/modules/LoginBg.mjs +1 -1
- package/layout/profile/Index.mjs +4 -4
- package/layout/profile/ResetPwd.mjs +1 -1
- package/layout/profile/UserInfo.mjs +1 -1
- package/main.mjs +2 -2
- package/package.json +7 -4
- package/plugins/autoImport/$alova/index.mjs +1 -1
- package/plugins/autoImport/$confirm/index.mjs +1 -1
- package/plugins/autoImport/$dialog/index.mjs +1 -1
- package/plugins/autoImport/$drawer/index.mjs +1 -1
- package/plugins/captcha/captcha.mjs +1 -1
- package/plugins/captcha/index.mjs +1 -1
- package/plugins/initialize/webUpdateNotify.mjs +1 -1
- package/plugins/tableRenders/cell/Buttons/Index.mjs +1 -1
- package/plugins/tableRenders/cell/DicLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Image/Index.mjs +1 -1
- package/plugins/tableRenders/cell/ImageViewer/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Input/Index.mjs +1 -1
- package/plugins/tableRenders/cell/InputNumber/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Link/Index.mjs +1 -1
- package/plugins/tableRenders/cell/OptionLabel/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Select/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Switch/Index.mjs +1 -1
- package/plugins/tableRenders/cell/Tags/Index.mjs +1 -1
- package/plugins/tableRenders/cell/TypographyTextLink/Index.mjs +1 -1
- package/plugins/tableRenders/cell/index.mjs +12 -12
- package/proj-template/.editorconfig +10 -0
- package/proj-template/.gitattributes +1 -0
- package/proj-template/.vscode/extensions.json +20 -0
- package/proj-template/.vscode/settings.json +104 -0
- package/proj-template/.vscode/ts.code-snippets +104 -0
- package/proj-template/.vscode/vue.code-snippets +31 -0
- package/proj-template/apply.ts +12 -0
- package/proj-template/eslint.config.ts +6 -0
- package/proj-template/patches/omi@7.7.13.patch +15 -0
- package/proj-template/patches/tdesign-web-components.patch +446 -0
- package/proj-template/pnpm-workspace.yaml +73 -0
- package/proj-template/prettier.config.ts +7 -0
- package/proj-template/src/app-params.ts +4 -0
- package/proj-template/src/main.ts +4 -0
- package/proj-template/stylelint.config.ts +5 -0
- package/proj-template/tsconfig.app.json +26 -0
- package/proj-template/tsconfig.json +12 -0
- package/proj-template/tsconfig.node.json +25 -0
- package/proj-template/vite.config.ts +20 -0
- package/router/index.mjs +1 -1
- package/store/modules/common.mjs +1 -1
- package/store/modules/login.mjs +1 -1
- package/store/modules/recentRouters.mjs +1 -1
- package/store/modules/router.mjs +1 -1
- package/store/modules/user.mjs +1 -1
- package/views/system/dept/index.mjs +2 -2
- package/views/system/dept/utils.mjs +1 -1
- package/views/system/dict/index.mjs +3 -3
- package/views/system/dict/modules/DictTypeDetail.mjs +1 -1
- package/views/system/menu/index.mjs +2 -2
- package/views/system/post/index.mjs +2 -2
- package/views/system/role/index.mjs +5 -5
- package/views/system/role/modules/AssignUser.mjs +1 -1
- package/views/system/role/modules/SelectDept.mjs +1 -1
- package/views/system/role/modules/SelectMenu.mjs +1 -1
- package/views/system/role/modules/SelectUser.mjs +1 -1
- package/views/system/user/index.mjs +6 -6
- package/views/tool/job/index.mjs +3 -3
- package/views/tool/job/modules/Log.mjs +1 -1
- package/assets/Picker-Cyw0VxVm.css +0 -1
- package/assets/card-_JgeY1kg.css +0 -2
- package/assets/image-B0R_Wg4e.css +0 -1
- package/assets/input-number-CYEGbleB.css +0 -2
- package/assets/pagination-D7QwybX3.css +0 -1
- package/assets/table-BAM00F7-.css +0 -1
- package/chunks/Day-CkdOjvVD.mjs +0 -299
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-CSNXgzLe.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-AH0WCRJO.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-CgJ94bEi.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-0-JzYXfb.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-Cu2Ud84o.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-DBQnzqsw.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-D6pUjcEN.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-C_JjguDb.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-BOv4n_q9.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-vcnN6L-y.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../chunks/Index-
|
|
1
|
+
import { t as e } from "../../../../chunks/Index-CT0eb17V.mjs";
|
|
2
2
|
export { e as default };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { n as e } from "../../../chunks/useAppContext-D47amIp5.mjs";
|
|
2
2
|
import { t } from "../../../chunks/Index-BChP9CTL.mjs";
|
|
3
|
-
import { t as n } from "../../../chunks/Index-
|
|
3
|
+
import { t as n } from "../../../chunks/Index-2AaTfz2L.mjs";
|
|
4
4
|
import { t as r } from "../../../chunks/Index-BuqrJDKe.mjs";
|
|
5
|
-
import { t as i } from "../../../chunks/Index-
|
|
5
|
+
import { t as i } from "../../../chunks/Index-CSNXgzLe.mjs";
|
|
6
6
|
import { t as a } from "../../../chunks/Index-Bye0GY_j.mjs";
|
|
7
7
|
import { t as o } from "../../../chunks/Index-BwWS0oPl.mjs";
|
|
8
8
|
import { t as s } from "../../../chunks/Index-bEWcnIHJ.mjs";
|
|
9
|
-
import { t as c } from "../../../chunks/Index-
|
|
10
|
-
import { t as l } from "../../../chunks/Index-
|
|
11
|
-
import { t as u } from "../../../chunks/Index-
|
|
12
|
-
import { t as d } from "../../../chunks/Index-
|
|
13
|
-
import { t as f } from "../../../chunks/Index-
|
|
14
|
-
import { t as p } from "../../../chunks/Index-
|
|
15
|
-
import { t as m } from "../../../chunks/Index-
|
|
16
|
-
import { t as h } from "../../../chunks/Index
|
|
17
|
-
import { t as g } from "../../../chunks/Index-
|
|
9
|
+
import { t as c } from "../../../chunks/Index-AH0WCRJO.mjs";
|
|
10
|
+
import { t as l } from "../../../chunks/Index-CgJ94bEi.mjs";
|
|
11
|
+
import { t as u } from "../../../chunks/Index-0-JzYXfb.mjs";
|
|
12
|
+
import { t as d } from "../../../chunks/Index-Cu2Ud84o.mjs";
|
|
13
|
+
import { t as f } from "../../../chunks/Index-DBQnzqsw.mjs";
|
|
14
|
+
import { t as p } from "../../../chunks/Index-D6pUjcEN.mjs";
|
|
15
|
+
import { t as m } from "../../../chunks/Index-C_JjguDb.mjs";
|
|
16
|
+
import { t as h } from "../../../chunks/Index-BOv4n_q9.mjs";
|
|
17
|
+
import { t as g } from "../../../chunks/Index-vcnN6L-y.mjs";
|
|
18
18
|
import { t as _ } from "../../../chunks/Index-CZnP6jHo.mjs";
|
|
19
|
-
import { t as v } from "../../../chunks/Index-
|
|
19
|
+
import { t as v } from "../../../chunks/Index-CT0eb17V.mjs";
|
|
20
20
|
import { t as y } from "../../../chunks/Wrapper-C6BtJDSa.mjs";
|
|
21
21
|
//#region ../../packages/dlzn-ui/plugins/tableRenders/cell/index.ts
|
|
22
22
|
var b = /* #__PURE__ */ Object.assign({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* text=auto eol=lf
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recommendations": [
|
|
3
|
+
"DavidAnson.vscode-markdownlint",
|
|
4
|
+
"EditorConfig.EditorConfig",
|
|
5
|
+
// 不区分大小写
|
|
6
|
+
"Vue.volar",
|
|
7
|
+
"bradlc.vscode-tailwindcss",
|
|
8
|
+
"dbaeumer.vscode-eslint",
|
|
9
|
+
"esbenp.prettier-vscode",
|
|
10
|
+
"intellsmi.comment-translate",
|
|
11
|
+
"omkarbhede.tailwindcss-tune",
|
|
12
|
+
"rikka.folder-alias",
|
|
13
|
+
"streetsidesoftware.code-spell-checker",
|
|
14
|
+
"stylelint.vscode-stylelint",
|
|
15
|
+
"vunguyentuan.vscode-css-variables"
|
|
16
|
+
],
|
|
17
|
+
"unwantedRecommendations": [
|
|
18
|
+
"octref.vetur" // 和 volar 冲突
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"[html]": {
|
|
3
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
4
|
+
},
|
|
5
|
+
"[json]": {
|
|
6
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
7
|
+
},
|
|
8
|
+
"[json5]": {
|
|
9
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
10
|
+
},
|
|
11
|
+
"[jsonc]": {
|
|
12
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
13
|
+
},
|
|
14
|
+
"[markdown]": {
|
|
15
|
+
"editor.acceptSuggestionOnEnter": "on",
|
|
16
|
+
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
|
|
17
|
+
"editor.quickSuggestions": {
|
|
18
|
+
"comments": "off",
|
|
19
|
+
"other": "on",
|
|
20
|
+
"strings": "on"
|
|
21
|
+
},
|
|
22
|
+
"editor.wordWrap": "off",
|
|
23
|
+
"files.trimTrailingWhitespace": false
|
|
24
|
+
},
|
|
25
|
+
"[svg]": {
|
|
26
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
27
|
+
},
|
|
28
|
+
"[xml]": {
|
|
29
|
+
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
|
|
30
|
+
},
|
|
31
|
+
"cSpell.words": [
|
|
32
|
+
"Arrayable",
|
|
33
|
+
"autoresize",
|
|
34
|
+
"bprogress",
|
|
35
|
+
"cronosjs",
|
|
36
|
+
"cronstrue",
|
|
37
|
+
"dlzn",
|
|
38
|
+
"Exclusify",
|
|
39
|
+
"formkit",
|
|
40
|
+
"iconify",
|
|
41
|
+
"Popconfirm",
|
|
42
|
+
"quartzcron",
|
|
43
|
+
"secondarycontainer",
|
|
44
|
+
"tdesign",
|
|
45
|
+
"wordcloud"
|
|
46
|
+
],
|
|
47
|
+
"cssVariables.languages": [
|
|
48
|
+
"astro",
|
|
49
|
+
"css",
|
|
50
|
+
"html",
|
|
51
|
+
"javascript",
|
|
52
|
+
"javascriptreact",
|
|
53
|
+
"less",
|
|
54
|
+
"postcss",
|
|
55
|
+
"scss",
|
|
56
|
+
"source.css.styled",
|
|
57
|
+
"svelte",
|
|
58
|
+
"tailwindcss",
|
|
59
|
+
"typescript",
|
|
60
|
+
"typescriptreact",
|
|
61
|
+
"vue",
|
|
62
|
+
"vue-html",
|
|
63
|
+
"vue-postcss"
|
|
64
|
+
],
|
|
65
|
+
"cssVariables.lookupFiles": [
|
|
66
|
+
"node_modules/tdesign-vue-next/esm/common/style/web/_global.less",
|
|
67
|
+
"node_modules/tdesign-vue-next/esm/common/style/web/theme/**/*.less"
|
|
68
|
+
],
|
|
69
|
+
"editor.quickSuggestions": {
|
|
70
|
+
"strings": "on"
|
|
71
|
+
},
|
|
72
|
+
"eslint.validate": [
|
|
73
|
+
"astro",
|
|
74
|
+
"css",
|
|
75
|
+
"gql",
|
|
76
|
+
"graphql",
|
|
77
|
+
"html",
|
|
78
|
+
"javascript",
|
|
79
|
+
"javascriptreact",
|
|
80
|
+
"json",
|
|
81
|
+
"json5",
|
|
82
|
+
"jsonc",
|
|
83
|
+
"less",
|
|
84
|
+
"markdown",
|
|
85
|
+
"pcss",
|
|
86
|
+
"postcss",
|
|
87
|
+
"scss",
|
|
88
|
+
"svelte",
|
|
89
|
+
"svg",
|
|
90
|
+
"toml",
|
|
91
|
+
"typescript",
|
|
92
|
+
"typescriptreact",
|
|
93
|
+
"vue",
|
|
94
|
+
"xml",
|
|
95
|
+
"yaml"
|
|
96
|
+
],
|
|
97
|
+
"fileheader.configObj": {
|
|
98
|
+
"autoAdd": false, // 检测文件没有头部注释,自动添加文件头部注释
|
|
99
|
+
"createHeader": false // 新建文件自动添加头部注释
|
|
100
|
+
},
|
|
101
|
+
"vue.editor.focusMode": true,
|
|
102
|
+
"vue.inlayHints.destructuredProps": true,
|
|
103
|
+
"vue.inlayHints.vBindShorthand": true
|
|
104
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
{
|
|
2
|
+
"useRequest alova": {
|
|
3
|
+
"prefix": "useRequest",
|
|
4
|
+
"body": [
|
|
5
|
+
"const { data, loading, send } = useRequest(xxx, {",
|
|
6
|
+
" immediate: false,",
|
|
7
|
+
" initialData: [],",
|
|
8
|
+
"})",
|
|
9
|
+
],
|
|
10
|
+
"description": "useRequest alova",
|
|
11
|
+
},
|
|
12
|
+
"useWatcher alova": {
|
|
13
|
+
"prefix": "useWatcher",
|
|
14
|
+
"body": [
|
|
15
|
+
"const { data, onSuccess } = useWatcher(",
|
|
16
|
+
" () =>",
|
|
17
|
+
" xxx({",
|
|
18
|
+
" projId: props.id,",
|
|
19
|
+
" }),",
|
|
20
|
+
" [() => props.id],",
|
|
21
|
+
" {",
|
|
22
|
+
" immediate: true,",
|
|
23
|
+
" initialData: [],",
|
|
24
|
+
" middleware: async (_, next) => {",
|
|
25
|
+
" if (!isFalsy(brandId.value)) {",
|
|
26
|
+
" next()",
|
|
27
|
+
" }",
|
|
28
|
+
" },",
|
|
29
|
+
" },",
|
|
30
|
+
")",
|
|
31
|
+
],
|
|
32
|
+
"description": "useWatcher alova",
|
|
33
|
+
},
|
|
34
|
+
"usePagination alova": {
|
|
35
|
+
"prefix": "usePagination",
|
|
36
|
+
"body": [
|
|
37
|
+
"const { data, page, pageSize, refresh, total } = usePagination(",
|
|
38
|
+
" // Method实例获取函数,它将接收page和pageSize,并返回一个Method实例",
|
|
39
|
+
" (page, pageSize) => queryStudents(page, pageSize),",
|
|
40
|
+
" {",
|
|
41
|
+
" data: (response) => response.rows,",
|
|
42
|
+
" immediate: false, // 默认为 true",
|
|
43
|
+
" initialData: {",
|
|
44
|
+
" data: [],",
|
|
45
|
+
" total: 0,",
|
|
46
|
+
" },",
|
|
47
|
+
" },",
|
|
48
|
+
")",
|
|
49
|
+
],
|
|
50
|
+
"description": "usePagination alova",
|
|
51
|
+
},
|
|
52
|
+
"新建一个form弹窗": {
|
|
53
|
+
"prefix": "$form_confirm",
|
|
54
|
+
"body": [
|
|
55
|
+
"const formRef = ref<FormInstance | null>(null)",
|
|
56
|
+
"",
|
|
57
|
+
"watch(",
|
|
58
|
+
" formRef,",
|
|
59
|
+
" () => {",
|
|
60
|
+
" formRef.value!.setFormData(row)",
|
|
61
|
+
" },",
|
|
62
|
+
" {",
|
|
63
|
+
" once: true,",
|
|
64
|
+
" },",
|
|
65
|
+
")",
|
|
66
|
+
"\\$confirm({",
|
|
67
|
+
" body: () =>",
|
|
68
|
+
" h(TForm, {",
|
|
69
|
+
" items: [formItemMap.menuName],",
|
|
70
|
+
" labelAlign: 'right',",
|
|
71
|
+
" layout: 'vertical',",
|
|
72
|
+
" ref: formRef,",
|
|
73
|
+
" }),",
|
|
74
|
+
" header: '添加字典类型',",
|
|
75
|
+
" onConfirmCallback: async () => {",
|
|
76
|
+
" await \\$alova.Post('system/dict/type', await formRef.value!.validate())",
|
|
77
|
+
" \\$msg('字典添加成功')",
|
|
78
|
+
" pageListRef.value!.query()",
|
|
79
|
+
" },",
|
|
80
|
+
" width: 430, // 730",
|
|
81
|
+
"})",
|
|
82
|
+
],
|
|
83
|
+
"description": "新建一个form弹窗",
|
|
84
|
+
},
|
|
85
|
+
"新建一个confirm弹窗": {
|
|
86
|
+
"prefix": "$confirm",
|
|
87
|
+
"body": [
|
|
88
|
+
"const compoRef = ref<InstanceType<typeof Component> | null>(null)",
|
|
89
|
+
"",
|
|
90
|
+
"void \\$confirm({",
|
|
91
|
+
" body: () =>",
|
|
92
|
+
" h(Component, {",
|
|
93
|
+
" ref: compoRef,",
|
|
94
|
+
" }),",
|
|
95
|
+
" header: 'xxx',",
|
|
96
|
+
" onConfirmCallback: async () => {",
|
|
97
|
+
" await compoRef.value!.handleSubmit()",
|
|
98
|
+
" },",
|
|
99
|
+
" width: 430, // 730",
|
|
100
|
+
"})",
|
|
101
|
+
],
|
|
102
|
+
"description": "新建一个confirm弹窗",
|
|
103
|
+
},
|
|
104
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"定义props vue3.5+": {
|
|
3
|
+
"prefix": "props",
|
|
4
|
+
"body": [
|
|
5
|
+
"const { msg = 'hello' } = defineProps<{",
|
|
6
|
+
" msg?:string",
|
|
7
|
+
"}>()"
|
|
8
|
+
],
|
|
9
|
+
"description": "定义props vue3.5+"
|
|
10
|
+
},
|
|
11
|
+
"定义props": {
|
|
12
|
+
"prefix": "withDefaults",
|
|
13
|
+
"body": [
|
|
14
|
+
"const props = withDefaults(defineProps<{",
|
|
15
|
+
" msg?:string",
|
|
16
|
+
"}>(), {",
|
|
17
|
+
" msg: 'hello',",
|
|
18
|
+
"})"
|
|
19
|
+
],
|
|
20
|
+
"description": "定义props"
|
|
21
|
+
},
|
|
22
|
+
"定义emits vue3.3+": {
|
|
23
|
+
"prefix": "emits",
|
|
24
|
+
"body": [
|
|
25
|
+
"const emit = defineEmits<{",
|
|
26
|
+
" change: [id: number]",
|
|
27
|
+
"}>()"
|
|
28
|
+
],
|
|
29
|
+
"description": "定义emits vue3.3+"
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { fileURLToPath } from 'node:url'
|
|
2
|
+
import { cp } from 'node:fs/promises'
|
|
3
|
+
import { cwd } from 'node:process'
|
|
4
|
+
import { basename } from 'node:path'
|
|
5
|
+
const current = fileURLToPath(new URL('.', import.meta.url))
|
|
6
|
+
|
|
7
|
+
export default () => {
|
|
8
|
+
return cp(current, cwd(), {
|
|
9
|
+
recursive: true,
|
|
10
|
+
filter: (src) => basename(src) !== 'apply.ts',
|
|
11
|
+
})
|
|
12
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
diff --git a/omi.d.ts b/omi.d.ts
|
|
2
|
+
index 0aa3fda08375a5d711d81156645382a8db4cba38..b0fb9187ffc60ec2c1e3af7a5d455060949ee638 100644
|
|
3
|
+
--- a/omi.d.ts
|
|
4
|
+
+++ b/omi.d.ts
|
|
5
|
+
@@ -1141,7 +1141,8 @@ declare global {
|
|
6
|
+
[tagName: string]: any;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
-
|
|
10
|
+
- type Ref<T=HTMLElement> = { current?: T }
|
|
11
|
+
+
|
|
12
|
+
+ // NOTE: omi previously declared a global `type Ref` here, which conflicts with
|
|
13
|
+
+ // Vue's `Ref` (e.g. unplugin-auto-import). Kept only as Omi.Ref in the namespace above.
|
|
14
|
+
}
|
|
15
|
+
|