@campus-admin/ui 1.0.0 → 2.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.
- package/README.md +138 -335
- package/dist/campus/card/index.d.ts +9 -0
- package/dist/campus/index.d.ts +7 -0
- package/dist/campus/parent/index.d.ts +9 -0
- package/dist/campus/student/index.d.ts +9 -0
- package/dist/campus/teacher/index.d.ts +9 -0
- package/dist/campus/tel/index.d.ts +9 -0
- package/dist/{base/empty/src/empty.vue.d.ts → components/basic/CaIcon.vue.d.ts} +4 -7
- package/dist/components/basic/CaPageActions.vue.d.ts +15 -0
- package/dist/components/basic/icons.d.ts +48 -0
- package/dist/components/basic/index.d.ts +838 -0
- package/dist/components/button/index.d.ts +348 -0
- package/dist/components/chart/bar-chart/CaBarChart.vue.d.ts +31 -0
- package/dist/components/chart/chart-math.d.ts +178 -0
- package/dist/components/chart/gauge/CaGauge.vue.d.ts +31 -0
- package/dist/components/chart/index.d.ts +195 -0
- package/dist/components/chart/line-chart/CaLineChart.vue.d.ts +40 -0
- package/dist/components/chart/parts/ChartLegend.vue.d.ts +28 -0
- package/dist/{atom/slogan/src/slogan.vue.d.ts → components/chart/parts/ChartStatus.vue.d.ts} +3 -5
- package/dist/components/chart/parts/ChartTable.vue.d.ts +19 -0
- package/dist/components/chart/parts/ChartTooltip.vue.d.ts +23 -0
- package/dist/components/chart/pie-chart/CaPieChart.vue.d.ts +25 -0
- package/dist/components/chart/sparkline/CaSparkline.vue.d.ts +20 -0
- package/dist/components/chart/use-chart.d.ts +36 -0
- package/dist/components/config/CaConfigProvider.vue.d.ts +16 -0
- package/dist/components/config/index.d.ts +33 -0
- package/dist/components/display/index.d.ts +99 -0
- package/dist/{base/copyright/src/copyright.vue.d.ts → components/display/stat-card/CaStatCard.vue.d.ts} +7 -11
- package/dist/{base/skeleton/src/skeleton.vue.d.ts → components/display/status-tag/CaStatusTag.vue.d.ts} +4 -7
- package/dist/components/display/types.d.ts +7 -0
- package/dist/components/form/index.d.ts +112 -0
- package/dist/components/form/schema-form/CaSchemaForm.vue.d.ts +31 -0
- package/dist/components/form/types.d.ts +17 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/layout/index.d.ts +34 -0
- package/dist/components/navigation/CaMenu.vue.d.ts +13 -0
- package/dist/components/navigation/index.d.ts +64 -0
- package/dist/components/overlay/index.d.ts +1511 -0
- package/dist/components/table/data-table/CaDataTable.vue.d.ts +49 -0
- package/dist/components/table/index.d.ts +33 -0
- package/dist/components/table/types.d.ts +46 -0
- package/dist/index.d.ts +21 -1106
- package/dist/index.js +2187 -0
- package/dist/oms/index.d.ts +3 -0
- package/dist/oms/school/index.d.ts +10 -0
- package/dist/shared/inject.d.ts +8 -0
- package/dist/shared/registry.d.ts +5 -0
- package/dist/shared/types.d.ts +9 -0
- package/dist/shared/wrap.d.ts +7 -0
- package/dist/style.css +2 -0
- package/package.json +17 -49
- package/dist/atom/attendance-badge/index.d.ts +0 -5
- package/dist/atom/attendance-badge/src/attendance-badge.vue.d.ts +0 -13
- package/dist/atom/attendance-badge/src/core.d.ts +0 -11
- package/dist/atom/avatar/index.d.ts +0 -3
- package/dist/atom/avatar/src/avatar.vue.d.ts +0 -14
- package/dist/atom/button/index.d.ts +0 -3
- package/dist/atom/button/src/button.vue.d.ts +0 -40
- package/dist/atom/checkbox/index.d.ts +0 -3
- package/dist/atom/checkbox/src/checkbox.vue.d.ts +0 -24
- package/dist/atom/icon/index.d.ts +0 -3
- package/dist/atom/icon/src/icon.vue.d.ts +0 -27
- package/dist/atom/index.d.ts +0 -444
- package/dist/atom/input/index.d.ts +0 -3
- package/dist/atom/input/src/input.vue.d.ts +0 -43
- package/dist/atom/progress/index.d.ts +0 -4
- package/dist/atom/progress/src/core.d.ts +0 -9
- package/dist/atom/progress/src/progress.vue.d.ts +0 -19
- package/dist/atom/select/index.d.ts +0 -5
- package/dist/atom/select/src/core.d.ts +0 -9
- package/dist/atom/select/src/select.vue.d.ts +0 -22
- package/dist/atom/slogan/index.d.ts +0 -3
- package/dist/atom/switch/index.d.ts +0 -3
- package/dist/atom/switch/src/switch.vue.d.ts +0 -16
- package/dist/atom/tag/index.d.ts +0 -3
- package/dist/atom/tag/src/tag.vue.d.ts +0 -31
- package/dist/atom/textarea/index.d.ts +0 -3
- package/dist/atom/textarea/src/textarea.vue.d.ts +0 -19
- package/dist/base/breadcrumb/index.d.ts +0 -4
- package/dist/base/breadcrumb/src/breadcrumb.vue.d.ts +0 -29
- package/dist/base/class-tree/index.d.ts +0 -5
- package/dist/base/class-tree/src/class-tree.vue.d.ts +0 -29
- package/dist/base/class-tree/src/core.d.ts +0 -30
- package/dist/base/copyright/index.d.ts +0 -3
- package/dist/base/drawer/index.d.ts +0 -3
- package/dist/base/drawer/src/drawer.vue.d.ts +0 -36
- package/dist/base/empty/index.d.ts +0 -3
- package/dist/base/index.d.ts +0 -651
- package/dist/base/menu/core.d.ts +0 -34
- package/dist/base/menu/index.d.ts +0 -13
- package/dist/base/menu/side-menu/index.d.ts +0 -5
- package/dist/base/menu/side-menu/src/side-menu.vue.d.ts +0 -59
- package/dist/base/modal/index.d.ts +0 -4
- package/dist/base/modal/src/core.d.ts +0 -8
- package/dist/base/modal/src/modal.vue.d.ts +0 -46
- package/dist/base/page-header/index.d.ts +0 -3
- package/dist/base/page-header/src/page-header.vue.d.ts +0 -27
- package/dist/base/pagination/index.d.ts +0 -5
- package/dist/base/pagination/src/core.d.ts +0 -11
- package/dist/base/pagination/src/pagination.vue.d.ts +0 -26
- package/dist/base/search-form/index.d.ts +0 -3
- package/dist/base/search-form/src/search-form.vue.d.ts +0 -34
- package/dist/base/skeleton/index.d.ts +0 -3
- package/dist/base/statistic/index.d.ts +0 -3
- package/dist/base/statistic/src/statistic.vue.d.ts +0 -16
- package/dist/base/table/index.d.ts +0 -5
- package/dist/base/table/src/core.d.ts +0 -25
- package/dist/base/table/src/table.vue.d.ts +0 -44
- package/dist/base/toast/index.d.ts +0 -5
- package/dist/base/toast/src/store.d.ts +0 -56
- package/dist/base/toast/src/toast-container.vue.d.ts +0 -3
- package/dist/campus-ui.css +0 -2
- package/dist/campus-ui.js +0 -2229
- package/dist/campus-ui.umd.cjs +0 -1
- package/dist/core/index.d.ts +0 -4
- package/dist/core/namespace.d.ts +0 -16
- package/dist/core/theme.d.ts +0 -49
- package/dist/feature/daily-agenda/index.d.ts +0 -5
- package/dist/feature/daily-agenda/src/core.d.ts +0 -25
- package/dist/feature/daily-agenda/src/daily-agenda.vue.d.ts +0 -12
- package/dist/feature/daily-agenda/src/data.d.ts +0 -3
- package/dist/feature/index.d.ts +0 -61
- package/dist/feature/student-picker/index.d.ts +0 -5
- package/dist/feature/student-picker/src/core.d.ts +0 -19
- package/dist/feature/student-picker/src/student-picker.vue.d.ts +0 -26
- package/dist/feature/weekly-timetable/index.d.ts +0 -6
- package/dist/feature/weekly-timetable/src/core.d.ts +0 -33
- package/dist/feature/weekly-timetable/src/data.d.ts +0 -3
- package/dist/feature/weekly-timetable/src/weekly-timetable.vue.d.ts +0 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 运营平台场景:学校管理(运营方管理接入的学校)相关的封装组件。
|
|
3
|
+
*
|
|
4
|
+
* 现在还没有组件:按“业务组件沉淀”的流程,先在运营平台里实现,复用时再抽离到这里。
|
|
5
|
+
* 新增组件时:在本目录下建 <组件名>/Ca<名字>.vue,导出并加入下面的注册表;
|
|
6
|
+
* 标签名统一 <ca-名字>(不带 oms/school 这类目录名),组件名必须全局唯一。
|
|
7
|
+
* 注意:这里的 school 是“运营平台里的学校管理”,和 ../../campus/(校园业务场景)互相不能依赖;
|
|
8
|
+
* 共用的部分应当抽到 components/ 里。
|
|
9
|
+
*/
|
|
10
|
+
export declare const omsSchoolComponents: {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type InjectionKey } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 翻译函数由 core 提供。ui 只依赖这个注入点,不依赖 core,保持分层方向向下。
|
|
4
|
+
* 没有提供时原样返回键,便于单独使用和测试。
|
|
5
|
+
*/
|
|
6
|
+
export type Translate = (key: string, params?: Record<string, unknown>) => string;
|
|
7
|
+
export declare const translateKey: InjectionKey<Translate>;
|
|
8
|
+
export declare function useTranslate(): Translate;
|
package/dist/style.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
.ca-chart{width:100%;min-width:0;color:var(--ca-text);font-size:12px;line-height:1.4;position:relative}.ca-chart__svg{outline:none;display:block;overflow:visible}.ca-chart__svg:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:4px;border-radius:4px}.ca-chart__grid{stroke:var(--ca-border);stroke-width:1px;shape-rendering:crispedges}.ca-chart__baseline{stroke:var(--ca-text-muted);stroke-opacity:.5;stroke-width:1px;shape-rendering:crispedges}.ca-chart__tick{fill:var(--ca-text-secondary);font-variant-numeric:tabular-nums;font-size:12px}.ca-chart__line{fill:none;stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.ca-chart__area{stroke:none;fill-opacity:.12}.ca-chart__dot{stroke:var(--ca-chart-surface,var(--ca-bg-card));stroke-width:2px}.ca-chart__cross{stroke:var(--ca-text-muted);stroke-width:1px;shape-rendering:crispedges}.ca-chart__band{fill:var(--ca-text);fill-opacity:.06}.ca-chart__bar{transition:opacity .15s}.ca-chart__bar.is-dim{opacity:.5}.ca-chart__value{fill:var(--ca-text);font-variant-numeric:tabular-nums;font-size:12px;font-weight:500}.ca-chart__slice{stroke:var(--ca-chart-surface,var(--ca-bg-card));stroke-width:2px;stroke-linejoin:round;transition:opacity .15s}.ca-chart__slice.is-dim{opacity:.45}.ca-chart__track{fill:none;stroke:var(--ca-border)}.ca-chart__progress{fill:none;stroke-linecap:round;transition:stroke-dasharray .5s,stroke .2s}.ca-chart__legend{flex-wrap:wrap;gap:2px 14px;margin:0 0 8px;padding:0;list-style:none;display:flex}.ca-chart__legend-item{color:var(--ca-text-secondary);font:inherit;cursor:default;background:0 0;border:0;border-radius:4px;align-items:center;gap:6px;padding:2px 4px;display:inline-flex}button.ca-chart__legend-item{cursor:pointer}button.ca-chart__legend-item:hover{background:var(--ca-bg-page)}button.ca-chart__legend-item:focus-visible{outline:2px solid var(--ca-color-primary);outline-offset:1px}.ca-chart__legend-item.is-off{opacity:.5}.ca-chart__key{background:var(--key);flex:none}.ca-chart__key--box{border-radius:2px;width:10px;height:10px}.ca-chart__key--line{border-radius:1px;width:14px;height:2px}.is-off>.ca-chart__key{box-shadow:inset 0 0 0 1.5px var(--key);background:0 0}.ca-chart__tip{z-index:2;border:1px solid var(--ca-border);border-radius:var(--ca-radius);background:var(--ca-bg-card);min-width:120px;max-width:260px;color:var(--ca-text);pointer-events:none;padding:8px 10px;font-size:12px;position:absolute;box-shadow:0 6px 18px #00000024}.ca-chart__tip-title{color:var(--ca-text-secondary);margin-bottom:4px}.ca-chart__tip-row{align-items:center;gap:8px;line-height:1.8;display:flex}.ca-chart__tip-row>.ca-chart__key{width:12px;height:2px}.ca-chart__tip-name{color:var(--ca-text-secondary);flex:1}.ca-chart__tip-value{font-variant-numeric:tabular-nums;font-weight:600}.ca-chart__plot{position:relative}.ca-chart__canvas{transition:opacity .2s}.ca-chart.is-loading .ca-chart__canvas{opacity:.4}.ca-chart__status{color:var(--ca-text-muted);pointer-events:none;justify-content:center;align-items:center;font-size:13px;display:flex;position:absolute;inset:0}.ca-chart__sr{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}@keyframes ca-chart-reveal{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes ca-chart-grow-y{0%{transform:scaleY(0)}to{transform:scaleY(1)}}@keyframes ca-chart-grow-x{0%{transform:scaleX(0)}to{transform:scaleX(1)}}@keyframes ca-chart-fade{0%{opacity:0}to{opacity:1}}.ca-chart.is-animated .ca-chart__reveal{animation:.7s ease-out both ca-chart-reveal}.ca-chart.is-animated .ca-chart__grow-y{transform-box:fill-box;transform-origin:50% 100%;animation:.5s ease-out both ca-chart-grow-y}.ca-chart.is-animated .ca-chart__grow-x{transform-box:fill-box;transform-origin:0;animation:.5s ease-out both ca-chart-grow-x}.ca-chart.is-animated .ca-chart__fade{animation:.5s ease-out both ca-chart-fade}@media (prefers-reduced-motion:reduce){.ca-chart .ca-chart__reveal,.ca-chart .ca-chart__grow-y,.ca-chart .ca-chart__grow-x,.ca-chart .ca-chart__fade{animation:none!important}.ca-chart .ca-chart__progress,.ca-chart .ca-chart__bar,.ca-chart .ca-chart__slice,.ca-chart .ca-chart__canvas{transition:none!important}}.ca-pie-chart__body[data-v-75e32682]{flex-wrap:wrap;align-items:center;gap:16px 24px;display:flex}.ca-pie-chart__center[data-v-75e32682]{text-align:center;pointer-events:none;flex-direction:column;align-items:center;gap:2px;display:flex;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.ca-pie-chart__label[data-v-75e32682],.ca-pie-chart__sub[data-v-75e32682]{max-width:100%;color:var(--ca-text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.ca-pie-chart__value[data-v-75e32682]{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:22px;font-weight:600;line-height:1.2;overflow:hidden}.ca-pie-chart__legend[data-v-75e32682]{flex-direction:column;flex:180px;gap:2px;min-width:0;margin:0;padding:0;list-style:none;display:flex}.ca-pie-chart__row[data-v-75e32682]{border-radius:var(--ca-radius);color:var(--ca-text-secondary);align-items:center;gap:8px;padding:4px 8px;display:flex}.ca-pie-chart__row.is-active[data-v-75e32682]{background:var(--ca-bg-page)}.ca-pie-chart__name[data-v-75e32682]{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.ca-pie-chart__num[data-v-75e32682]{color:var(--ca-text);font-variant-numeric:tabular-nums;font-weight:500}.ca-pie-chart__pct[data-v-75e32682]{text-align:right;font-variant-numeric:tabular-nums;min-width:44px}.ca-gauge[data-v-83314498]{width:auto;display:inline-block;position:relative}.ca-gauge__center[data-v-83314498]{text-align:center;pointer-events:none;flex-direction:column;justify-content:center;align-items:center;gap:2px;padding:0 16%;display:flex;position:absolute;inset:0}.ca-gauge__center.is-half[data-v-83314498]{justify-content:flex-end;padding-bottom:6px}.ca-gauge__value[data-v-83314498]{font-variant-numeric:tabular-nums;font-size:22px;font-weight:600;line-height:1.2}.ca-gauge__label[data-v-83314498]{max-width:100%;color:var(--ca-text-secondary);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.ca-stat[data-v-94d16941]{padding:18px 20px}.ca-stat__head[data-v-94d16941]{color:var(--ca-text-secondary);justify-content:space-between;align-items:center;font-size:14px;display:flex}.ca-stat__tag[data-v-94d16941]{background:var(--ca-color-primary-soft);color:var(--ca-color-primary-text);border-radius:999px;padding:2px 10px;font-size:12px}.ca-stat__value[data-v-94d16941]{margin:14px 0 8px;font-size:30px;font-weight:600;line-height:1.1}.ca-stat__trend[data-v-94d16941]{margin-left:8px;font-size:13px;font-weight:500}.ca-stat__trend.is-up[data-v-94d16941]{color:var(--ca-success)}.ca-stat__trend.is-down[data-v-94d16941]{color:var(--ca-danger)}.ca-stat__hint[data-v-94d16941]{color:var(--ca-text-muted);font-size:12px}.ca-menu.el-menu{--el-menu-bg-color:transparent;--el-menu-text-color:var(--ca-text);--el-menu-hover-bg-color:var(--ca-color-primary-soft);--el-menu-active-color:var(--ca-color-primary-text);background:0 0;border-right:0}.ca-menu .el-menu-item,.ca-menu .el-sub-menu__title{border-radius:var(--ca-radius);margin-bottom:2px}.ca-menu .el-menu-item.is-active,.ca-menu .el-sub-menu__title:hover{background:var(--ca-color-primary-soft)}.ca-data-table[data-v-7e786198]{padding:20px}.ca-data-table__search[data-v-7e786198]{margin-bottom:4px}.ca-data-table__toolbar[data-v-7e786198]{gap:8px;margin-bottom:12px;display:flex}.ca-data-table__error[data-v-7e786198]{margin-bottom:12px}.ca-data-table__footer[data-v-7e786198]{justify-content:space-between;align-items:center;margin-top:16px;display:flex}.ca-data-table__total[data-v-7e786198]{color:var(--ca-text-secondary);font-size:13px}@media (width<=768px){.ca-data-table[data-v-7e786198]{min-width:0;padding:12px}.ca-data-table__table-scroll[data-v-7e786198]{max-width:100%;overflow-x:auto}.ca-data-table__table-scroll[data-v-7e786198] .el-table{min-width:640px}.ca-data-table__toolbar[data-v-7e786198],.ca-data-table__footer[data-v-7e786198]{flex-wrap:wrap}.ca-data-table__footer[data-v-7e786198]{gap:8px}.ca-data-table__footer[data-v-7e786198] .el-pagination{max-width:100%;overflow-x:auto}}
|
|
2
|
+
/*$vite$:1*/
|
package/package.json
CHANGED
|
@@ -1,71 +1,39 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campus-admin/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "通用组件:对 Element Plus 的再封装与配置化组件,平台唯一的通用组件入口",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"author": "UnionSchool",
|
|
8
|
-
"homepage": "https://campus.zhongxiaotong.com",
|
|
9
7
|
"repository": {
|
|
10
8
|
"type": "git",
|
|
11
9
|
"url": "git+https://github.com/UnionSchool/campus-admin.git",
|
|
12
10
|
"directory": "packages/ui"
|
|
13
11
|
},
|
|
14
|
-
"keywords": [
|
|
15
|
-
"vue",
|
|
16
|
-
"vue3",
|
|
17
|
-
"campus",
|
|
18
|
-
"school",
|
|
19
|
-
"admin",
|
|
20
|
-
"ui"
|
|
21
|
-
],
|
|
22
|
-
"sideEffects": [
|
|
23
|
-
"**/*.css"
|
|
24
|
-
],
|
|
25
12
|
"files": [
|
|
26
|
-
"LICENSE",
|
|
27
13
|
"dist",
|
|
14
|
+
"LICENSE",
|
|
28
15
|
"README.md"
|
|
29
16
|
],
|
|
30
|
-
"main": "./dist/campus-ui.umd.cjs",
|
|
31
|
-
"module": "./dist/campus-ui.js",
|
|
32
|
-
"types": "./dist/index.d.ts",
|
|
33
17
|
"exports": {
|
|
34
18
|
".": {
|
|
35
19
|
"types": "./dist/index.d.ts",
|
|
36
|
-
"import": "./dist/
|
|
37
|
-
"require": "./dist/campus-ui.umd.cjs",
|
|
38
|
-
"source": "./src/index.ts"
|
|
20
|
+
"import": "./dist/index.js"
|
|
39
21
|
},
|
|
40
|
-
"./style.css":
|
|
41
|
-
"import": "./dist/campus-ui.css",
|
|
42
|
-
"default": "./dist/campus-ui.css"
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"publishConfig": {
|
|
46
|
-
"access": "public",
|
|
47
|
-
"provenance": true
|
|
48
|
-
},
|
|
49
|
-
"engines": {
|
|
50
|
-
"node": ">=20.19.0"
|
|
51
|
-
},
|
|
52
|
-
"peerDependencies": {
|
|
53
|
-
"@lucide/vue": "^1.44.0",
|
|
54
|
-
"vue": "^3.5.42"
|
|
22
|
+
"./style.css": "./dist/style.css"
|
|
55
23
|
},
|
|
24
|
+
"sideEffects": [
|
|
25
|
+
"**/*.css",
|
|
26
|
+
"./dist/index.js"
|
|
27
|
+
],
|
|
56
28
|
"dependencies": {
|
|
57
|
-
"@
|
|
29
|
+
"@element-plus/icons-vue": "^2.3.2",
|
|
30
|
+
"element-plus": "^2.14.7"
|
|
58
31
|
},
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"@vitejs/plugin-vue": "^6.0.8",
|
|
62
|
-
"typescript": "^5.9.3",
|
|
63
|
-
"vite": "^8.3.0",
|
|
64
|
-
"vue": "^3.5.42",
|
|
65
|
-
"vue-tsc": "^3.3.11"
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"vue": "^3.5.0"
|
|
66
34
|
},
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public",
|
|
37
|
+
"provenance": false
|
|
70
38
|
}
|
|
71
|
-
}
|
|
39
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { AttendanceStatus } from './core';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
status?: AttendanceStatus | string;
|
|
4
|
-
/** 显示打卡时间等补充信息 */
|
|
5
|
-
time?: string;
|
|
6
|
-
size?: 'small' | 'medium';
|
|
7
|
-
};
|
|
8
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
9
|
-
status: AttendanceStatus | string;
|
|
10
|
-
size: "small" | "medium";
|
|
11
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
12
|
-
declare const _default: typeof __VLS_export;
|
|
13
|
-
export default _default;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type AttendanceStatus = 'normal' | 'late' | 'leave' | 'absent' | 'early' | 'unknown';
|
|
2
|
-
export interface AttendanceMeta {
|
|
3
|
-
/** 默认语言文案,组件不用它渲染,只作兜底 */
|
|
4
|
-
label: string;
|
|
5
|
-
/** 词条键:ca.attendance.<status> */
|
|
6
|
-
labelKey: string;
|
|
7
|
-
tone: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'neutral';
|
|
8
|
-
}
|
|
9
|
-
export declare function attendanceMeta(status: AttendanceStatus | string): AttendanceMeta;
|
|
10
|
-
/** 班级维度汇总:用于“今日到校率”这类统计展示 */
|
|
11
|
-
export declare function attendanceRate(counts: Partial<Record<AttendanceStatus, number>>, total: number): number;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
/** 图片地址 */
|
|
3
|
-
src?: string;
|
|
4
|
-
/** 没有图片时展示的文字,通常取姓名首字 */
|
|
5
|
-
name?: string;
|
|
6
|
-
size?: 'small' | 'medium' | 'large';
|
|
7
|
-
shape?: 'circle' | 'square';
|
|
8
|
-
};
|
|
9
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
10
|
-
size: "small" | "medium" | "large";
|
|
11
|
-
shape: "circle" | "square";
|
|
12
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
-
declare const _default: typeof __VLS_export;
|
|
14
|
-
export default _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { ComponentSize, ComponentTone } from '@/core/namespace';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/** 语义色调 */
|
|
4
|
-
type?: ComponentTone;
|
|
5
|
-
/** 视觉形态:实心 / 描边 / 文字 */
|
|
6
|
-
variant?: 'solid' | 'outline' | 'text';
|
|
7
|
-
size?: ComponentSize;
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
loading?: boolean;
|
|
10
|
-
/** 占满父级宽度 */
|
|
11
|
-
block?: boolean;
|
|
12
|
-
/** 仅图标按钮,需要额外提供 aria-label */
|
|
13
|
-
iconOnly?: boolean;
|
|
14
|
-
/** 原生 button type */
|
|
15
|
-
nativeType?: 'button' | 'submit' | 'reset';
|
|
16
|
-
};
|
|
17
|
-
declare var __VLS_1: {}, __VLS_3: {};
|
|
18
|
-
type __VLS_Slots = {} & {
|
|
19
|
-
icon?: (props: typeof __VLS_1) => any;
|
|
20
|
-
} & {
|
|
21
|
-
default?: (props: typeof __VLS_3) => any;
|
|
22
|
-
};
|
|
23
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
24
|
-
click: (event: MouseEvent) => any;
|
|
25
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
26
|
-
onClick?: ((event: MouseEvent) => any) | undefined;
|
|
27
|
-
}>, {
|
|
28
|
-
size: ComponentSize;
|
|
29
|
-
type: ComponentTone;
|
|
30
|
-
variant: "solid" | "outline" | "text";
|
|
31
|
-
nativeType: "button" | "submit" | "reset";
|
|
32
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
34
|
-
declare const _default: typeof __VLS_export;
|
|
35
|
-
export default _default;
|
|
36
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
37
|
-
new (): {
|
|
38
|
-
$slots: S;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
type __VLS_Props = {
|
|
2
|
-
modelValue?: boolean | 'indeterminate';
|
|
3
|
-
label?: string;
|
|
4
|
-
disabled?: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare var __VLS_11: {};
|
|
7
|
-
type __VLS_Slots = {} & {
|
|
8
|
-
default?: (props: typeof __VLS_11) => any;
|
|
9
|
-
};
|
|
10
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: boolean) => any;
|
|
12
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
13
|
-
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
14
|
-
}>, {
|
|
15
|
-
modelValue: boolean | "indeterminate";
|
|
16
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
18
|
-
declare const _default: typeof __VLS_export;
|
|
19
|
-
export default _default;
|
|
20
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
21
|
-
new (): {
|
|
22
|
-
$slots: S;
|
|
23
|
-
};
|
|
24
|
-
};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { Component } from 'vue';
|
|
2
|
-
type __VLS_Props = {
|
|
3
|
-
/** Lucide 图标组件 */
|
|
4
|
-
icon?: Component;
|
|
5
|
-
/** 图标尺寸(px) */
|
|
6
|
-
size?: number;
|
|
7
|
-
/** 颜色,默认继承父级 currentColor */
|
|
8
|
-
color?: string;
|
|
9
|
-
/** 仅装饰用途时设为 true,屏幕阅读器会忽略 */
|
|
10
|
-
decorative?: boolean;
|
|
11
|
-
};
|
|
12
|
-
declare var __VLS_6: {};
|
|
13
|
-
type __VLS_Slots = {} & {
|
|
14
|
-
default?: (props: typeof __VLS_6) => any;
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
17
|
-
size: number;
|
|
18
|
-
decorative: boolean;
|
|
19
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
21
|
-
declare const _default: typeof __VLS_export;
|
|
22
|
-
export default _default;
|
|
23
|
-
type __VLS_WithSlots<T, S> = T & {
|
|
24
|
-
new (): {
|
|
25
|
-
$slots: S;
|
|
26
|
-
};
|
|
27
|
-
};
|