@aoao-y33/ui 0.0.2 → 0.0.5
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 +0 -11
- package/dist/button/components/button/props.d.ts +43 -0
- package/dist/button/components/button/props.d.ts.map +1 -1
- package/dist/button/utils/index.d.ts +20 -0
- package/dist/button/utils/index.d.ts.map +1 -1
- package/dist/common/utils/iconUtils.d.ts +16 -0
- package/dist/common/utils/iconUtils.d.ts.map +1 -1
- package/dist/form/components/fields/index.d.ts.map +1 -1
- package/dist/form/components/form/form.vue.d.ts.map +1 -1
- package/dist/form/components/form/props.d.ts +43 -0
- package/dist/form/components/form/props.d.ts.map +1 -1
- package/dist/form/components/form-item/props.d.ts +29 -0
- package/dist/form/components/form-item/props.d.ts.map +1 -1
- package/dist/form/hoc/useForm.d.ts +43 -0
- package/dist/form/hoc/useForm.d.ts.map +1 -1
- package/dist/form/utils/index.d.ts +65 -0
- package/dist/form/utils/index.d.ts.map +1 -1
- package/dist/index.d.ts +0 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22523 -12091
- package/dist/layout/utils/index.d.ts +20 -0
- package/dist/layout/utils/index.d.ts.map +1 -1
- package/dist/modal/components/form-modal/props.d.ts +36 -1
- package/dist/modal/components/form-modal/props.d.ts.map +1 -1
- package/dist/modal/components/modal/props.d.ts +43 -1
- package/dist/modal/components/modal/props.d.ts.map +1 -1
- package/dist/modal/hoc/useFormModal.d.ts +50 -0
- package/dist/modal/hoc/useFormModal.d.ts.map +1 -1
- package/dist/modal/hoc/useModal.d.ts +55 -0
- package/dist/modal/hoc/useModal.d.ts.map +1 -1
- package/dist/modal/hoc/useModalExpose.d.ts +24 -0
- package/dist/modal/hoc/useModalExpose.d.ts.map +1 -1
- package/dist/table/components/table/props.d.ts +75 -0
- package/dist/table/components/table/props.d.ts.map +1 -1
- package/dist/table/components/table-column/props.d.ts +19 -0
- package/dist/table/components/table-column/props.d.ts.map +1 -1
- package/dist/table/components/table-page/props.d.ts +31 -0
- package/dist/table/components/table-page/props.d.ts.map +1 -1
- package/dist/table/components/table-select/props.d.ts +49 -0
- package/dist/table/components/table-select/props.d.ts.map +1 -1
- package/dist/table/hoc/useTable.d.ts +41 -0
- package/dist/table/hoc/useTable.d.ts.map +1 -1
- package/dist/table/hoc/useTableExpose.d.ts +27 -0
- package/dist/table/hoc/useTableExpose.d.ts.map +1 -1
- package/dist/table/utils/index.d.ts +26 -0
- package/dist/table/utils/index.d.ts.map +1 -1
- package/package.json +13 -6
- package/dist/global.d.ts +0 -33
- package/dist/global.d.ts.map +0 -1
- package/src/button/components/button/button.vue +0 -64
- package/src/button/components/button/index.ts +0 -2
- package/src/button/components/button/props.ts +0 -75
- package/src/button/components/fields/index.ts +0 -6
- package/src/button/hoc/index.ts +0 -1
- package/src/button/hoc/useButton.ts +0 -27
- package/src/button/index.ts +0 -4
- package/src/button/utils/index.ts +0 -32
- package/src/common/index.ts +0 -1
- package/src/common/utils/iconUtils.ts +0 -21
- package/src/common/utils/index.ts +0 -1
- package/src/form/components/fields/index.ts +0 -35
- package/src/form/components/form/form.vue +0 -130
- package/src/form/components/form/index.ts +0 -6
- package/src/form/components/form/props.ts +0 -73
- package/src/form/components/form-item/form-item.vue +0 -90
- package/src/form/components/form-item/index.ts +0 -6
- package/src/form/components/form-item/props.ts +0 -50
- package/src/form/hoc/index.ts +0 -3
- package/src/form/hoc/useForm.ts +0 -106
- package/src/form/hoc/useFormExpose.ts +0 -97
- package/src/form/hoc/useFormFetch.ts +0 -103
- package/src/form/index.ts +0 -5
- package/src/form/utils/index.ts +0 -149
- package/src/global.ts +0 -40
- package/src/index.ts +0 -37
- package/src/layout/components/fields/basic/basic.vue +0 -18
- package/src/layout/components/fields/index.ts +0 -10
- package/src/layout/components/fields/side/side.vue +0 -26
- package/src/layout/components/fields/top/top.vue +0 -13
- package/src/layout/components/layout/index.ts +0 -6
- package/src/layout/components/layout/layout.vue +0 -19
- package/src/layout/components/layout/props.ts +0 -3
- package/src/layout/hoc/index.ts +0 -1
- package/src/layout/hoc/useLayout.ts +0 -32
- package/src/layout/index.ts +0 -4
- package/src/layout/utils/index.ts +0 -31
- package/src/modal/components/form-modal/form-modal.vue +0 -158
- package/src/modal/components/form-modal/index.ts +0 -5
- package/src/modal/components/form-modal/props.ts +0 -61
- package/src/modal/components/modal/index.ts +0 -6
- package/src/modal/components/modal/modal.vue +0 -127
- package/src/modal/components/modal/props.ts +0 -78
- package/src/modal/hoc/index.ts +0 -3
- package/src/modal/hoc/useFormModal.ts +0 -140
- package/src/modal/hoc/useModal.ts +0 -151
- package/src/modal/hoc/useModalExpose.ts +0 -52
- package/src/modal/index.ts +0 -3
- package/src/style/index.css +0 -21
- package/src/table/components/fields/action-column/action-column.vue +0 -34
- package/src/table/components/fields/action-column/props.ts +0 -8
- package/src/table/components/fields/index.ts +0 -6
- package/src/table/components/table/index.ts +0 -6
- package/src/table/components/table/props.ts +0 -148
- package/src/table/components/table/table.vue +0 -77
- package/src/table/components/table-column/index.ts +0 -6
- package/src/table/components/table-column/props.ts +0 -26
- package/src/table/components/table-column/table-column.vue +0 -31
- package/src/table/components/table-page/index.ts +0 -6
- package/src/table/components/table-page/props.ts +0 -48
- package/src/table/components/table-page/table-page.vue +0 -51
- package/src/table/components/table-select/index.ts +0 -6
- package/src/table/components/table-select/props.ts +0 -79
- package/src/table/components/table-select/table-select.vue +0 -70
- package/src/table/hoc/index.ts +0 -2
- package/src/table/hoc/useTable.ts +0 -206
- package/src/table/hoc/useTableExpose.ts +0 -46
- package/src/table/index.ts +0 -7
- package/src/table/utils/index.ts +0 -37
- package/tsconfig.json +0 -30
- package/vite.config.ts +0 -49
package/src/table/utils/index.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type {Component} from "vue";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 表格列组件注册表
|
|
5
|
-
* 存储表格列类型与对应 Vue 组件的映射关系
|
|
6
|
-
* 用于扩展表格列的自定义渲染方式
|
|
7
|
-
* @example
|
|
8
|
-
* // 注册自定义列类型
|
|
9
|
-
* addTableColumnField('custom-render', CustomColumnComponent)
|
|
10
|
-
*/
|
|
11
|
-
export const tableColumnFields:Record<string, Component>={};
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* 注册新的表格列类型组件
|
|
15
|
-
* 将自定义列组件添加到表格列类型注册表中
|
|
16
|
-
*
|
|
17
|
-
* @param type - 列类型标识符(唯一)
|
|
18
|
-
* @param component - 对应的 Vue 组件,用于渲染该类型的列内容
|
|
19
|
-
*
|
|
20
|
-
* @warning 如果类型已存在,会输出警告信息并阻止重复注册
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* import StatusColumn from './StatusColumn.vue'
|
|
24
|
-
* addTableColumnField('status', StatusColumn)
|
|
25
|
-
*
|
|
26
|
-
* // 在表格列配置中使用
|
|
27
|
-
* columnConfig: {
|
|
28
|
-
* status: { type: 'status', label: '状态' }
|
|
29
|
-
* }
|
|
30
|
-
*/
|
|
31
|
-
export const addTableColumnField=(type:string,component:Component)=>{
|
|
32
|
-
if (type in tableColumnFields){
|
|
33
|
-
console.warn(`[AxTableColumn] Column type ${type} already exists`)
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
tableColumnFields[type] = component;
|
|
37
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "@vue/tsconfig/tsconfig.dom.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
|
|
5
|
-
"types": [
|
|
6
|
-
"vite/client",
|
|
7
|
-
"vitest/globals"
|
|
8
|
-
],
|
|
9
|
-
"declaration": true,
|
|
10
|
-
"declarationMap": true,
|
|
11
|
-
"emitDeclarationOnly": false,
|
|
12
|
-
"rootDir": "./src",
|
|
13
|
-
/* Linting */
|
|
14
|
-
"noUnusedLocals": true,
|
|
15
|
-
"noUnusedParameters": true,
|
|
16
|
-
"erasableSyntaxOnly": true,
|
|
17
|
-
"noFallthroughCasesInSwitch": true,
|
|
18
|
-
"paths": {
|
|
19
|
-
"@/*": [
|
|
20
|
-
"./src/*"
|
|
21
|
-
]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"include": [
|
|
25
|
-
"src/**/*.ts",
|
|
26
|
-
"src/**/*.d.ts",
|
|
27
|
-
"src/**/*.vue",
|
|
28
|
-
"_test/**/*.ts"
|
|
29
|
-
]
|
|
30
|
-
}
|
package/vite.config.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import {defineConfig} from "vitest/config";
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import {resolve} from 'path'
|
|
4
|
-
import dts from "vite-plugin-dts"
|
|
5
|
-
import tailwindcss from "@tailwindcss/vite";
|
|
6
|
-
|
|
7
|
-
export default defineConfig({
|
|
8
|
-
plugins: [vue(),
|
|
9
|
-
tailwindcss(),
|
|
10
|
-
dts({
|
|
11
|
-
tsconfigPath: "./tsconfig.json",
|
|
12
|
-
outDirs: "dist",
|
|
13
|
-
exclude: ["src/test"],
|
|
14
|
-
insertTypesEntry:true,
|
|
15
|
-
})
|
|
16
|
-
],
|
|
17
|
-
build: {
|
|
18
|
-
lib: {
|
|
19
|
-
entry: resolve(__dirname, 'src/index.ts'),
|
|
20
|
-
formats: ['es'],
|
|
21
|
-
fileName: () => `index.js`
|
|
22
|
-
},
|
|
23
|
-
rolldownOptions: {
|
|
24
|
-
external: ['vue'],
|
|
25
|
-
output: {
|
|
26
|
-
globals: {
|
|
27
|
-
vue: 'Vue'
|
|
28
|
-
},
|
|
29
|
-
assetFileNames: (assetInfo) => {
|
|
30
|
-
if (assetInfo.name?.endsWith('.css')) {
|
|
31
|
-
return 'index.css'; // 生成 index.css
|
|
32
|
-
}
|
|
33
|
-
return 'assets/[name]-[hash][extname]';
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
outDir: 'dist',
|
|
38
|
-
sourcemap: false
|
|
39
|
-
},
|
|
40
|
-
resolve: {
|
|
41
|
-
alias: {
|
|
42
|
-
'@': resolve(__dirname, 'src')
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
test: {
|
|
46
|
-
globals: true,
|
|
47
|
-
environment: 'jsdom',
|
|
48
|
-
}
|
|
49
|
-
})
|