ai-front-base 0.2.2 → 0.2.6

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 (91) hide show
  1. package/dist/components/AiDatePicker/index.vue.mjs +62 -9
  2. package/dist/components/AiDatePicker/types.ts +9 -12
  3. package/dist/components/AiDateRangePicker/index.mjs +7 -0
  4. package/dist/components/AiDateRangePicker/index.vue.mjs +33 -0
  5. package/dist/components/AiDateRangePicker/types.ts +33 -0
  6. package/dist/components/AiForm/README.md +35 -0
  7. package/dist/components/AiForm/index.mjs +4 -1
  8. package/dist/components/AiForm/index.vue.mjs +145 -36
  9. package/dist/components/AiForm/types.ts +402 -22
  10. package/dist/components/AiInput/index.vue.mjs +46 -11
  11. package/dist/components/AiInput/types.ts +7 -6
  12. package/dist/components/AiSelect/index.vue.mjs +98 -17
  13. package/dist/components/AiSelect/types.ts +10 -17
  14. package/dist/components/AiTable/index.mjs +5 -2
  15. package/dist/components/AiTable/index.vue.mjs +213 -22
  16. package/dist/components/AiTable/types.ts +196 -16
  17. package/dist/components/AiTag/types.ts +6 -7
  18. package/dist/components/README.md +15 -31
  19. package/dist/components/_virtual/_plugin-vue_export-helper.mjs +9 -0
  20. package/dist/components/install.mjs +15 -0
  21. package/dist/index.mjs +14 -50
  22. package/dist/layouts/README.md +17 -14
  23. package/dist/layouts/default.md +238 -0
  24. package/dist/styles/README.md +18 -139
  25. package/dist/styles/index.scss +5 -0
  26. package/dist/styles/light.scss +102 -0
  27. package/package.json +2 -1
  28. package/dist/components/AiAside/index.mjs +0 -4
  29. package/dist/components/AiAside/index.vue.mjs +0 -20
  30. package/dist/components/AiAside/types.ts +0 -6
  31. package/dist/components/AiBadge/index.mjs +0 -4
  32. package/dist/components/AiBadge/index.vue.mjs +0 -20
  33. package/dist/components/AiBadge/types.ts +0 -10
  34. package/dist/components/AiBreadcrumb/index.mjs +0 -4
  35. package/dist/components/AiBreadcrumb/index.vue.mjs +0 -20
  36. package/dist/components/AiBreadcrumb/types.ts +0 -7
  37. package/dist/components/AiCheckbox/index.mjs +0 -4
  38. package/dist/components/AiCheckbox/index.vue.mjs +0 -20
  39. package/dist/components/AiCheckbox/types.ts +0 -14
  40. package/dist/components/AiContainer/index.mjs +0 -4
  41. package/dist/components/AiContainer/index.vue.mjs +0 -20
  42. package/dist/components/AiContainer/types.ts +0 -6
  43. package/dist/components/AiDialog/index.mjs +0 -4
  44. package/dist/components/AiDialog/index.vue.mjs +0 -20
  45. package/dist/components/AiDialog/types.ts +0 -11
  46. package/dist/components/AiFooter/index.mjs +0 -4
  47. package/dist/components/AiFooter/index.vue.mjs +0 -20
  48. package/dist/components/AiFooter/types.ts +0 -6
  49. package/dist/components/AiHeader/index.mjs +0 -4
  50. package/dist/components/AiHeader/index.vue.mjs +0 -20
  51. package/dist/components/AiHeader/types.ts +0 -6
  52. package/dist/components/AiLoading/index.mjs +0 -5
  53. package/dist/components/AiLoading/types.ts +0 -7
  54. package/dist/components/AiMain/index.mjs +0 -4
  55. package/dist/components/AiMain/index.vue.mjs +0 -20
  56. package/dist/components/AiMain/types.ts +0 -4
  57. package/dist/components/AiMenu/index.mjs +0 -4
  58. package/dist/components/AiMenu/index.vue.mjs +0 -20
  59. package/dist/components/AiMenu/types.ts +0 -9
  60. package/dist/components/AiMessage/index.mjs +0 -5
  61. package/dist/components/AiMessage/types.ts +0 -9
  62. package/dist/components/AiNotification/index.mjs +0 -5
  63. package/dist/components/AiNotification/types.ts +0 -10
  64. package/dist/components/AiPagination/index.mjs +0 -4
  65. package/dist/components/AiPagination/index.vue.mjs +0 -15
  66. package/dist/components/AiPagination/types.ts +0 -9
  67. package/dist/components/AiProgress/index.mjs +0 -4
  68. package/dist/components/AiProgress/index.vue.mjs +0 -15
  69. package/dist/components/AiProgress/types.ts +0 -10
  70. package/dist/components/AiRadio/index.mjs +0 -4
  71. package/dist/components/AiRadio/index.vue.mjs +0 -20
  72. package/dist/components/AiRadio/types.ts +0 -8
  73. package/dist/components/AiSwitch/index.mjs +0 -4
  74. package/dist/components/AiSwitch/index.vue.mjs +0 -15
  75. package/dist/components/AiSwitch/types.ts +0 -9
  76. package/dist/components/AiTabs/index.mjs +0 -4
  77. package/dist/components/AiTabs/index.vue.mjs +0 -20
  78. package/dist/components/AiTabs/types.ts +0 -9
  79. package/dist/components/AiTimePicker/index.mjs +0 -4
  80. package/dist/components/AiTimePicker/index.vue.mjs +0 -15
  81. package/dist/components/AiTimePicker/types.ts +0 -16
  82. package/dist/components/AiUpload/index.mjs +0 -4
  83. package/dist/components/AiUpload/index.vue.mjs +0 -20
  84. package/dist/components/AiUpload/types.ts +0 -11
  85. package/dist/layouts/government.md +0 -223
  86. package/dist/layouts/union.md +0 -229
  87. package/dist/styles/blue.scss +0 -71
  88. package/dist/styles/dark.scss +0 -71
  89. package/dist/styles/element-plus-theme.css +0 -52
  90. package/dist/styles/index.css +0 -77
  91. package/dist/styles/light-blue.scss +0 -71
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, resolveComponent as o, openBlock as n, createBlock as a, normalizeProps as s, guardReactiveProps as c, withCtx as m, renderSlot as l } from "vue";
2
- const i = /* @__PURE__ */ t({
3
- name: "AiBreadcrumb",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(p) {
7
- return (e, u) => {
8
- const r = o("el-breadcrumb");
9
- return n(), a(r, s(c(e.$attrs)), {
10
- default: m(() => [
11
- l(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- i as default
20
- };
@@ -1,7 +0,0 @@
1
- /**
2
- * AiBreadcrumb - 面包屑
3
- */
4
- export interface AiBreadcrumbProps {
5
- separator?: string
6
- separatorIcon?: string
7
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, resolveComponent as r, openBlock as n, createBlock as c, normalizeProps as a, guardReactiveProps as s, withCtx as l, renderSlot as p } from "vue";
2
- const u = /* @__PURE__ */ t({
3
- name: "AiCheckbox",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(i) {
7
- return (e, _) => {
8
- const o = r("el-checkbox");
9
- return n(), c(o, a(s(e.$attrs)), {
10
- default: l(() => [
11
- p(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- u as default
20
- };
@@ -1,14 +0,0 @@
1
- /**
2
- * AiCheckbox - 复选框
3
- * 基于 Element Plus Checkbox 封装
4
- *
5
- * @example
6
- * <AiCheckbox v-model="checked">选项</AiCheckbox>
7
- */
8
-
9
- export interface AiCheckboxProps {
10
- modelValue?: boolean | string | number
11
- label?: string | number | boolean
12
- disabled?: boolean
13
- indeterminate?: boolean
14
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as n, resolveComponent as o, openBlock as r, createBlock as a, normalizeProps as i, guardReactiveProps as s, withCtx as c, renderSlot as l } from "vue";
2
- const u = /* @__PURE__ */ n({
3
- name: "AiContainer",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(p) {
7
- return (e, _) => {
8
- const t = o("el-container");
9
- return r(), a(t, i(s(e.$attrs)), {
10
- default: c(() => [
11
- l(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- u as default
20
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * AiContainer - 容器
3
- */
4
- export interface AiContainerProps {
5
- direction?: 'horizontal' | 'vertical'
6
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, resolveComponent as r, openBlock as n, createBlock as a, normalizeProps as l, guardReactiveProps as i, withCtx as s, renderSlot as p } from "vue";
2
- const m = /* @__PURE__ */ t({
3
- name: "AiDialog",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(_) {
7
- return (e, c) => {
8
- const o = r("el-dialog");
9
- return n(), a(o, l(i(e.$attrs)), {
10
- default: s(() => [
11
- p(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- m as default
20
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * AiDialog - 对话框
3
- */
4
- export interface AiDialogProps {
5
- modelValue?: boolean
6
- title?: string
7
- width?: string | number
8
- fullscreen?: boolean
9
- modal?: boolean
10
- closeOnClickModal?: boolean
11
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, resolveComponent as r, openBlock as n, createBlock as a, normalizeProps as s, guardReactiveProps as l, withCtx as p, renderSlot as i } from "vue";
2
- const f = /* @__PURE__ */ t({
3
- name: "AiFooter",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(_) {
7
- return (e, c) => {
8
- const o = r("el-footer");
9
- return n(), a(o, s(l(e.$attrs)), {
10
- default: p(() => [
11
- i(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- f as default
20
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * AiFooter - 底部
3
- */
4
- export interface AiFooterProps {
5
- height?: string
6
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as r, resolveComponent as o, openBlock as n, createBlock as a, normalizeProps as s, guardReactiveProps as l, withCtx as p, renderSlot as d } from "vue";
2
- const m = /* @__PURE__ */ r({
3
- name: "AiHeader",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(i) {
7
- return (e, _) => {
8
- const t = o("el-header");
9
- return n(), a(t, s(l(e.$attrs)), {
10
- default: p(() => [
11
- d(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- m as default
20
- };
@@ -1,6 +0,0 @@
1
- /**
2
- * AiHeader - 头部
3
- */
4
- export interface AiHeaderProps {
5
- height?: string
6
- }
@@ -1,5 +0,0 @@
1
- import { ElLoading as r } from "element-plus";
2
- const e = (o) => r.service(o);
3
- export {
4
- e as AiLoading
5
- };
@@ -1,7 +0,0 @@
1
- export interface LoadingOptions {
2
- target?: string | HTMLElement
3
- fullscreen?: boolean
4
- lock?: boolean
5
- text?: string
6
- background?: string
7
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as n, resolveComponent as o, openBlock as r, createBlock as a, normalizeProps as i, guardReactiveProps as s, withCtx as l, renderSlot as m } from "vue";
2
- const u = /* @__PURE__ */ n({
3
- name: "AiMain",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(p) {
7
- return (e, _) => {
8
- const t = o("el-main");
9
- return r(), a(t, i(s(e.$attrs)), {
10
- default: l(() => [
11
- m(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- u as default
20
- };
@@ -1,4 +0,0 @@
1
- /**
2
- * AiMain - 主体
3
- */
4
- export interface AiMainProps {}
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as n, resolveComponent as o, openBlock as r, createBlock as a, normalizeProps as s, guardReactiveProps as l, withCtx as m, renderSlot as p } from "vue";
2
- const c = /* @__PURE__ */ n({
3
- name: "AiMenu",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(u) {
7
- return (e, i) => {
8
- const t = o("el-menu");
9
- return r(), a(t, s(l(e.$attrs)), {
10
- default: m(() => [
11
- p(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- c as default
20
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * AiMenu - 菜单
3
- */
4
- export interface AiMenuProps {
5
- mode?: 'horizontal' | 'vertical'
6
- collapse?: boolean
7
- defaultActive?: string
8
- uniqueOpened?: boolean
9
- }
@@ -1,5 +0,0 @@
1
- import { ElMessage as e } from "element-plus";
2
- const o = e;
3
- export {
4
- o as AiMessage
5
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * AiMessage - 消息提示
3
- */
4
- export interface AiMessageOptions {
5
- message?: string
6
- type?: 'success' | 'warning' | 'info' | 'error'
7
- duration?: number
8
- showClose?: boolean
9
- }
@@ -1,5 +0,0 @@
1
- import { ElNotification as i } from "element-plus";
2
- const t = i;
3
- export {
4
- t as AiNotification
5
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * AiNotification - 通知
3
- */
4
- export interface AiNotificationOptions {
5
- title?: string
6
- message?: string
7
- type?: 'success' | 'warning' | 'info' | 'error'
8
- duration?: number
9
- position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'
10
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,15 +0,0 @@
1
- import { defineComponent as o, resolveComponent as t, openBlock as r, createBlock as a, normalizeProps as i, guardReactiveProps as p } from "vue";
2
- const l = /* @__PURE__ */ o({
3
- name: "AiPagination",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(s) {
7
- return (e, c) => {
8
- const n = t("el-pagination");
9
- return r(), a(n, i(p(e.$attrs)), null, 16);
10
- };
11
- }
12
- });
13
- export {
14
- l as default
15
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * AiPagination - 分页
3
- */
4
- export interface AiPaginationProps {
5
- total?: number
6
- pageSize?: number
7
- currentPage?: number
8
- layout?: string
9
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,15 +0,0 @@
1
- import { defineComponent as o, resolveComponent as n, openBlock as t, createBlock as s, normalizeProps as p, guardReactiveProps as a } from "vue";
2
- const l = /* @__PURE__ */ o({
3
- name: "AiProgress",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(c) {
7
- return (e, _) => {
8
- const r = n("el-progress");
9
- return t(), s(r, p(a(e.$attrs)), null, 16);
10
- };
11
- }
12
- });
13
- export {
14
- l as default
15
- };
@@ -1,10 +0,0 @@
1
- /**
2
- * AiProgress - 进度条
3
- */
4
- export interface AiProgressProps {
5
- percentage?: number
6
- type?: 'line' | 'circle' | 'dashboard'
7
- strokeWidth?: number
8
- status?: 'success' | 'exception' | 'warning'
9
- showText?: boolean
10
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, resolveComponent as r, openBlock as n, createBlock as a, normalizeProps as i, guardReactiveProps as s, withCtx as l, renderSlot as p } from "vue";
2
- const m = /* @__PURE__ */ t({
3
- name: "AiRadio",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(d) {
7
- return (e, _) => {
8
- const o = r("el-radio");
9
- return n(), a(o, i(s(e.$attrs)), {
10
- default: l(() => [
11
- p(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- m as default
20
- };
@@ -1,8 +0,0 @@
1
- /**
2
- * AiRadio - 单选框
3
- */
4
- export interface AiRadioProps {
5
- modelValue?: string | number | boolean
6
- label?: string | number | boolean
7
- disabled?: boolean
8
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,15 +0,0 @@
1
- import { defineComponent as n, resolveComponent as o, openBlock as r, createBlock as c, normalizeProps as s, guardReactiveProps as i } from "vue";
2
- const l = /* @__PURE__ */ n({
3
- name: "AiSwitch",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(a) {
7
- return (e, p) => {
8
- const t = o("el-switch");
9
- return r(), c(t, s(i(e.$attrs)), null, 16);
10
- };
11
- }
12
- });
13
- export {
14
- l as default
15
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * AiSwitch - 开关
3
- */
4
- export interface AiSwitchProps {
5
- modelValue?: boolean | string | number
6
- disabled?: boolean
7
- activeText?: string
8
- inactiveText?: string
9
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as o, resolveComponent as r, openBlock as n, createBlock as a, normalizeProps as s, guardReactiveProps as l, withCtx as p, renderSlot as i } from "vue";
2
- const u = /* @__PURE__ */ o({
3
- name: "AiTabs",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(_) {
7
- return (e, c) => {
8
- const t = r("el-tabs");
9
- return n(), a(t, s(l(e.$attrs)), {
10
- default: p(() => [
11
- i(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- u as default
20
- };
@@ -1,9 +0,0 @@
1
- /**
2
- * AiTabs - 标签页
3
- */
4
- export interface AiTabsProps {
5
- modelValue?: string | number
6
- type?: 'card' | 'border-card'
7
- closable?: boolean
8
- addable?: boolean
9
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,15 +0,0 @@
1
- import { defineComponent as t, resolveComponent as n, openBlock as o, createBlock as i, normalizeProps as c, guardReactiveProps as p } from "vue";
2
- const _ = /* @__PURE__ */ t({
3
- name: "AiTimePicker",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(m) {
7
- return (e, a) => {
8
- const r = n("el-time-picker");
9
- return o(), i(r, c(p(e.$attrs)), null, 16);
10
- };
11
- }
12
- });
13
- export {
14
- _ as default
15
- };
@@ -1,16 +0,0 @@
1
- /**
2
- * AiTimePicker - 时间选择器
3
- * 基于 Element Plus TimePicker 封装
4
- *
5
- * @example
6
- * <AiTimePicker v-model="time" placeholder="选择时间" />
7
- */
8
-
9
- export interface AiTimePickerProps {
10
- modelValue?: Date | string
11
- placeholder?: string
12
- disabled?: boolean
13
- clearable?: boolean
14
- format?: string
15
- valueFormat?: string
16
- }
@@ -1,4 +0,0 @@
1
- import f from "./index.vue.mjs";
2
- export {
3
- f as default
4
- };
@@ -1,20 +0,0 @@
1
- import { defineComponent as t, resolveComponent as r, openBlock as n, createBlock as a, normalizeProps as l, guardReactiveProps as p, withCtx as s, renderSlot as d } from "vue";
2
- const c = /* @__PURE__ */ t({
3
- name: "AiUpload",
4
- inheritAttrs: !0,
5
- __name: "index",
6
- setup(i) {
7
- return (e, u) => {
8
- const o = r("el-upload");
9
- return n(), a(o, l(p(e.$attrs)), {
10
- default: s(() => [
11
- d(e.$slots, "default")
12
- ]),
13
- _: 3
14
- }, 16);
15
- };
16
- }
17
- });
18
- export {
19
- c as default
20
- };
@@ -1,11 +0,0 @@
1
- /**
2
- * AiUpload - 上传
3
- */
4
- export interface AiUploadProps {
5
- action?: string
6
- headers?: Record<string, any>
7
- multiple?: boolean
8
- accept?: string
9
- limit?: number
10
- disabled?: boolean
11
- }