@yeepay/fmc-material 0.0.1
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/LICENSE +1 -0
- package/README.md +13 -0
- package/dist/index.js +1315 -0
- package/dist/styles/index.less +3 -0
- package/dist/styles/style.css +1 -0
- package/dist/styles/upload.less +27 -0
- package/package.json +119 -0
- package/types/auto-imports.d.ts +61 -0
- package/types/component-meta.d.ts +39 -0
- package/types/index.d.ts +14 -0
- package/types/setters.d.ts +5 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
*,:before,:after{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:0;--un-pan-y:0;--un-pinch-zoom:0;--un-scroll-snap-strictness:proximity;--un-ordinal:0;--un-slashed-zero:0;--un-numeric-figure:0;--un-numeric-spacing:0;--un-numeric-fraction:0;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset:0;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset:0;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur:0;--un-brightness:0;--un-contrast:0;--un-drop-shadow:0;--un-grayscale:0;--un-hue-rotate:0;--un-invert:0;--un-saturate:0;--un-sepia:0;--un-backdrop-blur:0;--un-backdrop-brightness:0;--un-backdrop-contrast:0;--un-backdrop-grayscale:0;--un-backdrop-hue-rotate:0;--un-backdrop-invert:0;--un-backdrop-opacity:0;--un-backdrop-saturate:0;--un-backdrop-sepia:0;}::backdrop{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x:0;--un-pan-y:0;--un-pinch-zoom:0;--un-scroll-snap-strictness:proximity;--un-ordinal:0;--un-slashed-zero:0;--un-numeric-figure:0;--un-numeric-spacing:0;--un-numeric-fraction:0;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 rgba(0,0,0,0);--un-ring-shadow:0 0 rgba(0,0,0,0);--un-shadow-inset:0;--un-shadow:0 0 rgba(0,0,0,0);--un-ring-inset:0;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur:0;--un-brightness:0;--un-contrast:0;--un-drop-shadow:0;--un-grayscale:0;--un-hue-rotate:0;--un-invert:0;--un-saturate:0;--un-sepia:0;--un-backdrop-blur:0;--un-backdrop-brightness:0;--un-backdrop-contrast:0;--un-backdrop-grayscale:0;--un-backdrop-hue-rotate:0;--un-backdrop-invert:0;--un-backdrop-opacity:0;--un-backdrop-saturate:0;--un-backdrop-sepia:0;}.block{display:block;}.w-4\/5{width:80%;}.flex-row{flex-direction:row;}.flex-col{flex-direction:column;}.cursor-auto{cursor:auto;}.cursor-default{cursor:default;}.cursor-none{cursor:none;}.cursor-context-menu{cursor:context-menu;}.cursor-help{cursor:help;}.cursor-pointer{cursor:pointer;}.cursor-progress{cursor:progress;}.cursor-wait{cursor:wait;}.cursor-cell{cursor:cell;}.cursor-crosshair{cursor:crosshair;}.cursor-text{cursor:text;}.cursor-vertical-text{cursor:vertical-text;}.cursor-alias{cursor:alias;}.cursor-copy{cursor:copy;}.cursor-move{cursor:move;}.cursor-no-drop{cursor:no-drop;}.cursor-not-allowed{cursor:not-allowed;}.cursor-grab{cursor:grab;}.cursor-grabbing{cursor:grabbing;}.cursor-all-scroll{cursor:all-scroll;}.cursor-col-resize{cursor:col-resize;}.cursor-row-resize{cursor:row-resize;}.cursor-n-resize{cursor:n-resize;}.cursor-e-resize{cursor:e-resize;}.cursor-s-resize{cursor:s-resize;}.cursor-w-resize{cursor:w-resize;}.cursor-zoom-in{cursor:zoom-in;}.cursor-zoom-out{cursor:zoom-out;}.items-start{align-items:flex-start;}.items-end{align-items:flex-end;}.items-center{align-items:center;}.items-baseline{align-items:baseline;}.items-stretch{align-items:stretch;}.justify-start{justify-content:flex-start;}.justify-end{justify-content:flex-end;}.justify-center{justify-content:center;}.justify-between{justify-content:space-between;}.justify-around{justify-content:space-around;}.justify-evenly{justify-content:space-evenly;}.overflow-auto{overflow:auto;}.overflow-hidden{overflow:hidden;}.overflow-scroll{overflow:scroll;}.overflow-visible{overflow:visible;}.truncate,[truncate=""]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}.object-cover{object-fit:cover;}.object-contain{object-fit:contain;}.object-fill{object-fit:fill;}.object-scale-down{object-fit:scale-down;}.object-none{object-fit:none;}.px-4{padding-left:1rem;padding-right:1rem;}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
.yee-upload-wrapper {
|
|
2
|
+
.ant-upload-picture-card-wrapper {
|
|
3
|
+
.ant-upload-select-picture-card,
|
|
4
|
+
.ant-upload-list-item {
|
|
5
|
+
width: 88px;
|
|
6
|
+
height: 88px;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.ant-upload-list-picture-card .ant-upload-list-item {
|
|
10
|
+
/* --------------------------- 图片卡片上传模式永远支持预览按钮的点击 -------------------------- */
|
|
11
|
+
a {
|
|
12
|
+
pointer-events: auto !important;
|
|
13
|
+
opacity: 1 !important;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.anticon svg {
|
|
17
|
+
display: inline-block !important;
|
|
18
|
+
margin-bottom: 10px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.ant-upload-list-item-file {
|
|
23
|
+
margin-top: -20px;
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yeepay/fmc-material",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"sideEffects": [
|
|
5
|
+
"./dist/styles/*"
|
|
6
|
+
],
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./types/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./dist/styles/*": {
|
|
14
|
+
"import": "./dist/styles/*",
|
|
15
|
+
"require": "./dist/styles/*"
|
|
16
|
+
},
|
|
17
|
+
"./setters": {
|
|
18
|
+
"types": "./types/setters.d.ts",
|
|
19
|
+
"import": "./dist/setters.js",
|
|
20
|
+
"require": "./dist/setters.js"
|
|
21
|
+
},
|
|
22
|
+
"./types/*": {
|
|
23
|
+
"types": "./types/*"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"main": "./dist/index.js",
|
|
27
|
+
"types": "./types/index.d.ts",
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"types"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "vite",
|
|
34
|
+
"clean": "rimraf dist dist.zip",
|
|
35
|
+
"build": "nr clean && vite build --mode npm && nr build:cssfile",
|
|
36
|
+
"build:fed": "nr clean && vite build --config ./vite.config.fed.ts --mode fed",
|
|
37
|
+
"build:cssfile": "tsx ./scripts/build-cssfile.ts",
|
|
38
|
+
"build:entry": "tsx ./scripts/build-entry.ts",
|
|
39
|
+
"prepublishOnly": "nr build",
|
|
40
|
+
"postpublish": "nr sync",
|
|
41
|
+
"release": "tsx scripts/release.ts",
|
|
42
|
+
"release:fed": "tsx scripts/release-fed.ts",
|
|
43
|
+
"sync": "tsx scripts/cnpm-sync.ts",
|
|
44
|
+
"lint": "eslint .",
|
|
45
|
+
"lint:fix": "eslint . --fix"
|
|
46
|
+
},
|
|
47
|
+
"peerDependencies": {
|
|
48
|
+
"@vue/composition-api": ">= 1.4.9",
|
|
49
|
+
"@yeepay/antd-materials": "2.*",
|
|
50
|
+
"@yeepay/lowcode-renderer": "2.*",
|
|
51
|
+
"vue": ">= 2.5 < 2.7"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@yeepay/lowcode-shared": "2.*",
|
|
55
|
+
"ant-design-vue": "^1.7.8",
|
|
56
|
+
"lodash-es": "^4.17.21",
|
|
57
|
+
"nanoid": "^5.0.9"
|
|
58
|
+
},
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@antfu/ni": "^0.21.12",
|
|
61
|
+
"@iconify-json/mdi": "^1.1.66",
|
|
62
|
+
"@originjs/vite-plugin-federation": "1.3.6",
|
|
63
|
+
"@types/eslint": "^8.56.10",
|
|
64
|
+
"@types/fs-extra": "^11.0.4",
|
|
65
|
+
"@types/lodash-es": "^4.17.12",
|
|
66
|
+
"@types/node": "^20.12.12",
|
|
67
|
+
"@types/prompts": "^2.4.9",
|
|
68
|
+
"@unocss/transformer-directives": "^0.58.7",
|
|
69
|
+
"@vitest/coverage-v8": "^1.6.0",
|
|
70
|
+
"@vitest/ui": "^1.6.0",
|
|
71
|
+
"@vue/compiler-sfc": "^3.4.27",
|
|
72
|
+
"@vue/runtime-core": "^3.5.12",
|
|
73
|
+
"@vue/runtime-dom": "^3.4.27",
|
|
74
|
+
"@vue/test-utils": "1.3.6",
|
|
75
|
+
"@yeepay/eslint-config": "^2.0.1",
|
|
76
|
+
"@yeepay/lowcode-engine": "^2.3.8",
|
|
77
|
+
"@yeepay/server-utils": "^0.0.3",
|
|
78
|
+
"bumpp": "^9.4.1",
|
|
79
|
+
"cnpm-sync": "^0.0.4",
|
|
80
|
+
"concurrently": "^8.2.2",
|
|
81
|
+
"esbuild": "^0.21.3",
|
|
82
|
+
"eslint": "^9.8.0",
|
|
83
|
+
"eslint-plugin-format": "^0.1.1",
|
|
84
|
+
"execa": "9.1.0",
|
|
85
|
+
"execa-commonjs": "npm:execa@5.1.1",
|
|
86
|
+
"fs-extra": "^11.2.0",
|
|
87
|
+
"husky": "^9.0.11",
|
|
88
|
+
"jsdom": "^24.0.0",
|
|
89
|
+
"less": "3.13.1",
|
|
90
|
+
"picocolors": "^1.0.1",
|
|
91
|
+
"postcss": "^8.4.38",
|
|
92
|
+
"postinstall-postinstall": "^2.1.0",
|
|
93
|
+
"prettier": "^3.2.5",
|
|
94
|
+
"prompts": "^2.4.2",
|
|
95
|
+
"rimraf": "^5.0.7",
|
|
96
|
+
"tsx": "^4.17.0",
|
|
97
|
+
"typescript": "^5.4.5",
|
|
98
|
+
"unocss": "^0.58.7",
|
|
99
|
+
"unplugin-auto-import": "0.16.4",
|
|
100
|
+
"unplugin-dev-proxy": "^1.0.2",
|
|
101
|
+
"unplugin-vue2-script-setup": "^0.11.4",
|
|
102
|
+
"vite": "^5.2.11",
|
|
103
|
+
"vite-plugin-top-level-await": "^1.4.2",
|
|
104
|
+
"vite-plugin-vue2": "^2.0.3",
|
|
105
|
+
"vitest": "^1.6.0",
|
|
106
|
+
"vue-template-compiler": "2.6.14",
|
|
107
|
+
"vue-tsc": "^2.0.29",
|
|
108
|
+
"zx": "^8.1.0"
|
|
109
|
+
},
|
|
110
|
+
"publishConfig": {
|
|
111
|
+
"access": "public"
|
|
112
|
+
},
|
|
113
|
+
"pnpm": {
|
|
114
|
+
"patchedDependencies": {
|
|
115
|
+
"picomatch@2.3.1": "patches/picomatch@2.3.1.patch",
|
|
116
|
+
"@originjs/vite-plugin-federation@1.3.6": "patches/@originjs__vite-plugin-federation@1.3.6.patch"
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
/* prettier-ignore */
|
|
3
|
+
// @ts-nocheck
|
|
4
|
+
// Generated by unplugin-auto-import
|
|
5
|
+
export {}
|
|
6
|
+
declare global {
|
|
7
|
+
const EffectScope: typeof import('@vue/composition-api')['EffectScope']
|
|
8
|
+
const computed: typeof import('@vue/composition-api')['computed']
|
|
9
|
+
const createApp: typeof import('@vue/composition-api')['createApp']
|
|
10
|
+
const customRef: typeof import('@vue/composition-api')['customRef']
|
|
11
|
+
const defineAsyncComponent: typeof import('@vue/composition-api')['defineAsyncComponent']
|
|
12
|
+
const defineComponent: typeof import('@vue/composition-api')['defineComponent']
|
|
13
|
+
const effectScope: typeof import('@vue/composition-api')['effectScope']
|
|
14
|
+
const getCurrentInstance: typeof import('@vue/composition-api')['getCurrentInstance']
|
|
15
|
+
const getCurrentScope: typeof import('@vue/composition-api')['getCurrentScope']
|
|
16
|
+
const h: typeof import('@vue/composition-api')['h']
|
|
17
|
+
const inject: typeof import('@vue/composition-api')['inject']
|
|
18
|
+
const isProxy: typeof import('@vue/composition-api')['isProxy']
|
|
19
|
+
const isReactive: typeof import('@vue/composition-api')['isReactive']
|
|
20
|
+
const isReadonly: typeof import('@vue/composition-api')['isReadonly']
|
|
21
|
+
const isRef: typeof import('@vue/composition-api')['isRef']
|
|
22
|
+
const markRaw: typeof import('@vue/composition-api')['markRaw']
|
|
23
|
+
const nextTick: typeof import('@vue/composition-api')['nextTick']
|
|
24
|
+
const onActivated: typeof import('@vue/composition-api')['onActivated']
|
|
25
|
+
const onBeforeMount: typeof import('@vue/composition-api')['onBeforeMount']
|
|
26
|
+
const onBeforeUnmount: typeof import('@vue/composition-api')['onBeforeUnmount']
|
|
27
|
+
const onBeforeUpdate: typeof import('@vue/composition-api')['onBeforeUpdate']
|
|
28
|
+
const onDeactivated: typeof import('@vue/composition-api')['onDeactivated']
|
|
29
|
+
const onErrorCaptured: typeof import('@vue/composition-api')['onErrorCaptured']
|
|
30
|
+
const onMounted: typeof import('@vue/composition-api')['onMounted']
|
|
31
|
+
const onScopeDispose: typeof import('@vue/composition-api')['onScopeDispose']
|
|
32
|
+
const onServerPrefetch: typeof import('@vue/composition-api')['onServerPrefetch']
|
|
33
|
+
const onUnmounted: typeof import('@vue/composition-api')['onUnmounted']
|
|
34
|
+
const onUpdated: typeof import('@vue/composition-api')['onUpdated']
|
|
35
|
+
const provide: typeof import('@vue/composition-api')['provide']
|
|
36
|
+
const reactive: typeof import('@vue/composition-api')['reactive']
|
|
37
|
+
const readonly: typeof import('@vue/composition-api')['readonly']
|
|
38
|
+
const ref: typeof import('@vue/composition-api')['ref']
|
|
39
|
+
const shallowReactive: typeof import('@vue/composition-api')['shallowReactive']
|
|
40
|
+
const shallowReadonly: typeof import('@vue/composition-api')['shallowReadonly']
|
|
41
|
+
const shallowRef: typeof import('@vue/composition-api')['shallowRef']
|
|
42
|
+
const toRaw: typeof import('@vue/composition-api')['toRaw']
|
|
43
|
+
const toRef: typeof import('@vue/composition-api')['toRef']
|
|
44
|
+
const toRefs: typeof import('@vue/composition-api')['toRefs']
|
|
45
|
+
const toValue: typeof import('@vue/composition-api')['toValue']
|
|
46
|
+
const triggerRef: typeof import('@vue/composition-api')['triggerRef']
|
|
47
|
+
const unref: typeof import('@vue/composition-api')['unref']
|
|
48
|
+
const useAttrs: typeof import('@vue/composition-api')['useAttrs']
|
|
49
|
+
const useCssModule: typeof import('@vue/composition-api')['useCssModule']
|
|
50
|
+
const useSlots: typeof import('@vue/composition-api')['useSlots']
|
|
51
|
+
const watch: typeof import('@vue/composition-api')['watch']
|
|
52
|
+
const watchEffect: typeof import('@vue/composition-api')['watchEffect']
|
|
53
|
+
const watchPostEffect: typeof import('@vue/composition-api')['watchPostEffect']
|
|
54
|
+
const watchSyncEffect: typeof import('@vue/composition-api')['watchSyncEffect']
|
|
55
|
+
}
|
|
56
|
+
// for type re-export
|
|
57
|
+
declare global {
|
|
58
|
+
// @ts-ignore
|
|
59
|
+
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from '@vue/composition-api'
|
|
60
|
+
import('@vue/composition-api')
|
|
61
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* eslint eslint-comments/no-unlimited-disable: off */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/* Automatically generated by 'scripts/build-entry.js' */
|
|
4
|
+
|
|
5
|
+
type LayoutVisible = { layoutVisible: boolean }
|
|
6
|
+
|
|
7
|
+
type Flatten<T> =
|
|
8
|
+
T extends object
|
|
9
|
+
? {
|
|
10
|
+
[K in keyof T]: K extends string
|
|
11
|
+
? T[K] extends { type: string, children: object } ? Flatten<T[K]['children']> : K
|
|
12
|
+
: never
|
|
13
|
+
}[keyof T]
|
|
14
|
+
: never;
|
|
15
|
+
|
|
16
|
+
import Upload from '../src/components-meta/upload'
|
|
17
|
+
|
|
18
|
+
export type UploadProperties = Record<Flatten<typeof Upload.properties>, any>
|
|
19
|
+
export type UploadStyles = Record<Flatten<typeof Upload.styles>, any>
|
|
20
|
+
export type UploadValidation = Record<Flatten<typeof Upload.validation>, any>
|
|
21
|
+
export type UploadExposedVariables = Record<Flatten<typeof Upload.definition.exposedVariables>, any>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
declare global {
|
|
25
|
+
export type Properties<T> =
|
|
26
|
+
LayoutVisible &
|
|
27
|
+
(
|
|
28
|
+
T extends 'upload' ? UploadProperties : never
|
|
29
|
+
)
|
|
30
|
+
|
|
31
|
+
export type Styles<T> =
|
|
32
|
+
T extends 'upload' ? UploadStyles : never
|
|
33
|
+
|
|
34
|
+
export type Validation<T> =
|
|
35
|
+
T extends 'upload' ? UploadValidation : never
|
|
36
|
+
|
|
37
|
+
export type ExposedVariables<T> =
|
|
38
|
+
T extends 'upload' ? UploadExposedVariables : never
|
|
39
|
+
}
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Component as VueComponent } from 'vue';
|
|
2
|
+
import type { ComponentMeta } from '@yeepay/lowcode-renderer';
|
|
3
|
+
export { writeMaterialsVersion } from '@yeepay/lowcode-shared';
|
|
4
|
+
|
|
5
|
+
declare function init(dom: HTMLElement): void;
|
|
6
|
+
|
|
7
|
+
interface Material {
|
|
8
|
+
component: VueComponent;
|
|
9
|
+
componentMeta: ComponentMeta;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const material: Material[]
|
|
13
|
+
|
|
14
|
+
export { material };
|