sunyard-szyy-ui 0.2.3 → 0.2.4

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.
@@ -0,0 +1 @@
1
+ import{SySearchBar as e}from"../../search-bar/src/search-bar.mjs";export{e as SySearchBar};
@@ -0,0 +1 @@
1
+ import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";import"sunyard-szyy-ui/theme-chalk/search-bar.css";
@@ -0,0 +1 @@
1
+ import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";import"@sunyard-szyy-ui/theme-chalk/src/search-bar.scss";
package/es/index.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- import type { Plugin } from 'vue';
2
- export * from '@sunyard-szyy-ui/components';
3
- export * from '@sunyard-szyy-ui/hooks';
4
- export * from '@sunyard-szyy-ui/utils';
5
- export declare const SunyardSzyyUI: Plugin;
6
- export default SunyardSzyyUI;
1
+ export * from './search-bar';
7
2
  //# sourceMappingURL=index.d.ts.map
package/es/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,KAAK,CAAC;AAIvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAIvC,eAAO,MAAM,aAAa,EAAE,MAI3B,CAAC;AAEF,eAAe,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
package/es/index.mjs CHANGED
@@ -1 +1 @@
1
- import"@sunyard-szyy-ui/components";import"@sunyard-szyy-ui/hooks";import"@sunyard-szyy-ui/utils";
1
+ import{SySearchBar as e}from"./search-bar/src/search-bar.mjs";export{e as SySearchBar};
@@ -0,0 +1,2 @@
1
+ export * from './src/search-bar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search-bar/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,118 @@
1
+ declare const SearchBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ placeholder: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ buttonText: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ placeholder: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ buttonText: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ onSearch?: ((...args: any[]) => any) | undefined;
32
+ }>, {
33
+ modelValue: string;
34
+ placeholder: string;
35
+ buttonText: string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ export declare const SySearchBar: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
38
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
39
+ modelValue: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ placeholder: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ buttonText: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ }>> & Readonly<{
52
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
+ onSearch?: ((...args: any[]) => any) | undefined;
54
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], import("vue").PublicProps, {
57
+ modelValue: string;
58
+ placeholder: string;
59
+ buttonText: string;
60
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly<import("vue").ExtractPropTypes<{
68
+ modelValue: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ placeholder: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ buttonText: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{
81
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
+ onSearch?: ((...args: any[]) => any) | undefined;
83
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
84
+ [key: string]: any;
85
+ }>, {}, {}, {}, {
86
+ modelValue: string;
87
+ placeholder: string;
88
+ buttonText: string;
89
+ }>;
90
+ __isFragment?: never;
91
+ __isTeleport?: never;
92
+ __isSuspense?: never;
93
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
94
+ modelValue: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ placeholder: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ buttonText: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ }>> & Readonly<{
107
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
108
+ onSearch?: ((...args: any[]) => any) | undefined;
109
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
110
+ [key: string]: any;
111
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", {
112
+ modelValue: string;
113
+ placeholder: string;
114
+ buttonText: string;
115
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
116
+ export type SySearchBarInstance = InstanceType<typeof SearchBar>;
117
+ export {};
118
+ //# sourceMappingURL=search-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search-bar.d.ts","sourceRoot":"","sources":["../../../src/search-bar/src/search-bar.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EA0Db,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wOAAyB,CAAC;AAClD,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ import{ElInput as u,ElButton as c}from"element-plus";import{defineComponent as d,ref as m,watch as i,h as o}from"vue";import{useNamespace as p}from"@sunyard-szyy-ui/hooks";import{withInstall as s}from"@sunyard-szyy-ui/utils";const h=d({name:"SySearchBar",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请输入关键字"},buttonText:{type:String,default:"搜索"}},emits:["update:modelValue","search"],setup(t,{emit:r}){const l=p("search-bar"),a=m(t.modelValue);i(()=>t.modelValue,e=>{e!==a.value&&(a.value=e)});function n(){r("search",a.value)}return()=>o("div",{class:l.b()},[o(u,{class:l.e("input"),modelValue:a.value,placeholder:t.placeholder,clearable:!0,"onUpdate:modelValue":e=>{a.value=e,r("update:modelValue",e)},onKeydown:e=>{e.key==="Enter"&&n()}}),o(c,{class:l.e("button"),type:"primary",onClick:n},()=>t.buttonText)])}}),b=s(h);export{b as SySearchBar};
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import 'sunyard-szyy-ui/theme-chalk/search-bar.css';
4
+ //# sourceMappingURL=css.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../src/search-bar/style/css.ts"],"names":[],"mappings":"AACA,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,4CAA4C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import '@sunyard-szyy-ui/theme-chalk/src/search-bar.scss';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/search-bar/style/index.ts"],"names":[],"mappings":"AAEA,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,kDAAkD,CAAC"}
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../search-bar/src/search-bar.js");exports.SySearchBar=e.SySearchBar;
@@ -0,0 +1 @@
1
+ "use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("sunyard-szyy-ui/theme-chalk/search-bar.css");
@@ -0,0 +1 @@
1
+ "use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("@sunyard-szyy-ui/theme-chalk/src/search-bar.scss");
package/lib/index.d.ts CHANGED
@@ -1,7 +1,2 @@
1
- import type { Plugin } from 'vue';
2
- export * from '@sunyard-szyy-ui/components';
3
- export * from '@sunyard-szyy-ui/hooks';
4
- export * from '@sunyard-szyy-ui/utils';
5
- export declare const SunyardSzyyUI: Plugin;
6
- export default SunyardSzyyUI;
1
+ export * from './search-bar';
7
2
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";require("@sunyard-szyy-ui/components");require("@sunyard-szyy-ui/hooks");require("@sunyard-szyy-ui/utils");
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./search-bar/src/search-bar.js");exports.SySearchBar=e.SySearchBar;
@@ -0,0 +1,2 @@
1
+ export * from './src/search-bar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,118 @@
1
+ declare const SearchBar: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ modelValue: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ placeholder: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ buttonText: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ modelValue: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ placeholder: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ buttonText: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ }>> & Readonly<{
30
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
31
+ onSearch?: ((...args: any[]) => any) | undefined;
32
+ }>, {
33
+ modelValue: string;
34
+ placeholder: string;
35
+ buttonText: string;
36
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
37
+ export declare const SySearchBar: import("@sunyard-szyy-ui/utils").SFCWithInstall<{
38
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
39
+ modelValue: {
40
+ type: StringConstructor;
41
+ default: string;
42
+ };
43
+ placeholder: {
44
+ type: StringConstructor;
45
+ default: string;
46
+ };
47
+ buttonText: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ }>> & Readonly<{
52
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
53
+ onSearch?: ((...args: any[]) => any) | undefined;
54
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
55
+ [key: string]: any;
56
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], import("vue").PublicProps, {
57
+ modelValue: string;
58
+ placeholder: string;
59
+ buttonText: string;
60
+ }, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly<import("vue").ExtractPropTypes<{
68
+ modelValue: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
72
+ placeholder: {
73
+ type: StringConstructor;
74
+ default: string;
75
+ };
76
+ buttonText: {
77
+ type: StringConstructor;
78
+ default: string;
79
+ };
80
+ }>> & Readonly<{
81
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
82
+ onSearch?: ((...args: any[]) => any) | undefined;
83
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
84
+ [key: string]: any;
85
+ }>, {}, {}, {}, {
86
+ modelValue: string;
87
+ placeholder: string;
88
+ buttonText: string;
89
+ }>;
90
+ __isFragment?: never;
91
+ __isTeleport?: never;
92
+ __isSuspense?: never;
93
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
94
+ modelValue: {
95
+ type: StringConstructor;
96
+ default: string;
97
+ };
98
+ placeholder: {
99
+ type: StringConstructor;
100
+ default: string;
101
+ };
102
+ buttonText: {
103
+ type: StringConstructor;
104
+ default: string;
105
+ };
106
+ }>> & Readonly<{
107
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
108
+ onSearch?: ((...args: any[]) => any) | undefined;
109
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
110
+ [key: string]: any;
111
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "search")[], "update:modelValue" | "search", {
112
+ modelValue: string;
113
+ placeholder: string;
114
+ buttonText: string;
115
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps>;
116
+ export type SySearchBarInstance = InstanceType<typeof SearchBar>;
117
+ export {};
118
+ //# sourceMappingURL=search-bar.d.ts.map
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("element-plus"),t=require("vue"),c=require("@sunyard-szyy-ui/hooks"),s=require("@sunyard-szyy-ui/utils"),d=t.defineComponent({name:"SySearchBar",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请输入关键字"},buttonText:{type:String,default:"搜索"}},emits:["update:modelValue","search"],setup(l,{emit:u}){const r=c.useNamespace("search-bar"),a=t.ref(l.modelValue);t.watch(()=>l.modelValue,e=>{e!==a.value&&(a.value=e)});function n(){u("search",a.value)}return()=>t.h("div",{class:r.b()},[t.h(o.ElInput,{class:r.e("input"),modelValue:a.value,placeholder:l.placeholder,clearable:!0,"onUpdate:modelValue":e=>{a.value=e,u("update:modelValue",e)},onKeydown:e=>{e.key==="Enter"&&n()}}),t.h(o.ElButton,{class:r.e("button"),type:"primary",onClick:n},()=>l.buttonText)])}}),i=s.withInstall(d);exports.SySearchBar=i;
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import 'sunyard-szyy-ui/theme-chalk/search-bar.css';
4
+ //# sourceMappingURL=css.d.ts.map
@@ -0,0 +1,4 @@
1
+ import 'element-plus/es/components/button/style/css';
2
+ import 'element-plus/es/components/input/style/css';
3
+ import '@sunyard-szyy-ui/theme-chalk/src/search-bar.scss';
4
+ //# sourceMappingURL=index.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunyard-szyy-ui",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -29,6 +29,10 @@
29
29
  "import": "./dist/utils/index.js",
30
30
  "require": "./dist/utils/index.cjs"
31
31
  },
32
+ "./es/*.mjs": {
33
+ "types": "./es/*.d.ts",
34
+ "import": "./es/*.mjs"
35
+ },
32
36
  "./es/*": {
33
37
  "types": [
34
38
  "./es/*.d.ts",
@@ -36,13 +40,20 @@
36
40
  ],
37
41
  "import": "./es/*.mjs"
38
42
  },
43
+ "./lib/*.js": {
44
+ "types": "./lib/*.d.ts",
45
+ "require": "./lib/*.js"
46
+ },
39
47
  "./lib/*": {
40
48
  "types": [
41
49
  "./lib/*.d.ts",
42
50
  "./lib/*/index.d.ts"
43
51
  ],
44
52
  "require": "./lib/*.js"
45
- }
53
+ },
54
+ "./theme-chalk/*": "./theme-chalk/*",
55
+ "./theme-chalk": "./theme-chalk/index.css",
56
+ "./*": "./*"
46
57
  },
47
58
  "files": [
48
59
  "es",
@@ -51,16 +62,20 @@
51
62
  "theme-chalk"
52
63
  ],
53
64
  "sideEffects": [
54
- "**/*.css"
65
+ "**/*.css",
66
+ "theme-chalk/**/*.css",
67
+ "theme-chalk/src/**/*.scss",
68
+ "es/components/*/style/*",
69
+ "lib/components/*/style/*"
55
70
  ],
56
71
  "peerDependencies": {
57
72
  "element-plus": "^2.0.0",
58
73
  "vue": "^3.0.0"
59
74
  },
60
75
  "dependencies": {
61
- "@sunyard-szyy-ui/components": "0.2.3",
62
- "@sunyard-szyy-ui/hooks": "0.2.3",
63
- "@sunyard-szyy-ui/utils": "0.2.3"
76
+ "@sunyard-szyy-ui/components": "0.2.4",
77
+ "@sunyard-szyy-ui/hooks": "0.2.4",
78
+ "@sunyard-szyy-ui/utils": "0.2.4"
64
79
  },
65
80
  "publishConfig": {
66
81
  "access": "public"
@@ -0,0 +1 @@
1
+ *,*::before,*::after{box-sizing:border-box}:root{--el-color-primary: #2b6ef6 !important;--el-color-primary-light-3: #6b9bf8 !important;--el-color-primary-light-5: #95b8fa !important;--el-color-primary-light-7: #bfd5fc !important;--el-color-primary-light-8: #d2e2fd !important;--el-color-primary-light-9: #e6f0fe !important;--el-color-primary-dark-2: #2358c5 !important;--el-color-success: #16a34a !important;--el-color-success-light-3: #4ec277 !important;--el-color-success-light-5: #76d196 !important;--el-color-success-light-7: #9fe0b5 !important;--el-color-success-light-8: #b7e8c7 !important;--el-color-success-light-9: #d0f0d9 !important;--el-color-success-dark-2: #12823b !important;--el-color-warning: #f59e0b !important;--el-color-warning-light-3: #f8b84b !important;--el-color-warning-light-5: #fac776 !important;--el-color-warning-light-7: #fcd5a1 !important;--el-color-warning-light-8: #fde0b7 !important;--el-color-warning-light-9: #feeacc !important;--el-color-warning-dark-2: #c47e09 !important;--el-color-danger: #ef4444 !important;--el-color-danger-light-3: #f47777 !important;--el-color-danger-light-5: #f79a9a !important;--el-color-danger-light-7: #fabbbb !important;--el-color-danger-light-8: #fccccc !important;--el-color-danger-light-9: #fddddd !important;--el-color-danger-dark-2: #bf3636 !important;--el-color-error: #ef4444 !important;--el-color-error-light-3: #f47777 !important;--el-color-error-light-5: #f79a9a !important;--el-color-error-light-7: #fabbbb !important;--el-color-error-light-8: #fccccc !important;--el-color-error-light-9: #fddddd !important;--el-color-error-dark-2: #bf3636 !important;--el-color-info: #64748b !important;--el-color-info-light-3: #8c99a9 !important;--el-color-info-light-5: #a5b0bc !important;--el-color-info-light-7: #bec6d0 !important;--el-color-info-light-8: #ced4db !important;--el-color-info-light-9: #dee2e7 !important;--el-color-info-dark-2: #505d6f !important}
@@ -0,0 +1 @@
1
+ *,*::before,*::after{box-sizing:border-box}:root{--el-color-primary: #2b6ef6 !important;--el-color-primary-light-3: #6b9bf8 !important;--el-color-primary-light-5: #95b8fa !important;--el-color-primary-light-7: #bfd5fc !important;--el-color-primary-light-8: #d2e2fd !important;--el-color-primary-light-9: #e6f0fe !important;--el-color-primary-dark-2: #2358c5 !important;--el-color-success: #16a34a !important;--el-color-success-light-3: #4ec277 !important;--el-color-success-light-5: #76d196 !important;--el-color-success-light-7: #9fe0b5 !important;--el-color-success-light-8: #b7e8c7 !important;--el-color-success-light-9: #d0f0d9 !important;--el-color-success-dark-2: #12823b !important;--el-color-warning: #f59e0b !important;--el-color-warning-light-3: #f8b84b !important;--el-color-warning-light-5: #fac776 !important;--el-color-warning-light-7: #fcd5a1 !important;--el-color-warning-light-8: #fde0b7 !important;--el-color-warning-light-9: #feeacc !important;--el-color-warning-dark-2: #c47e09 !important;--el-color-danger: #ef4444 !important;--el-color-danger-light-3: #f47777 !important;--el-color-danger-light-5: #f79a9a !important;--el-color-danger-light-7: #fabbbb !important;--el-color-danger-light-8: #fccccc !important;--el-color-danger-light-9: #fddddd !important;--el-color-danger-dark-2: #bf3636 !important;--el-color-error: #ef4444 !important;--el-color-error-light-3: #f47777 !important;--el-color-error-light-5: #f79a9a !important;--el-color-error-light-7: #fabbbb !important;--el-color-error-light-8: #fccccc !important;--el-color-error-light-9: #fddddd !important;--el-color-error-dark-2: #bf3636 !important;--el-color-info: #64748b !important;--el-color-info-light-3: #8c99a9 !important;--el-color-info-light-5: #a5b0bc !important;--el-color-info-light-7: #bec6d0 !important;--el-color-info-light-8: #ced4db !important;--el-color-info-light-9: #dee2e7 !important;--el-color-info-dark-2: #505d6f !important}.sy-search-bar{display:flex;gap:8px;align-items:center}.sy-search-bar__input{flex:1;min-width:0}.sy-search-bar__button{flex:none}
@@ -0,0 +1 @@
1
+ .sy-search-bar{display:flex;gap:8px;align-items:center}.sy-search-bar__input{flex:1;min-width:0}.sy-search-bar__button{flex:none}
@@ -0,0 +1,75 @@
1
+ // sunyard-szyy-ui 基础样式文件
2
+ // 用于覆盖 Element Plus 的默认样式和定义公共变量
3
+
4
+ // 注意:这里不能 @use './var.scss',因为 var.scss 会引入 Element Plus 完整样式
5
+ // 我们只需要定义 CSS 变量来覆盖 Element Plus 的主题色
6
+
7
+ // 统一 box-sizing
8
+ *,
9
+ *::before,
10
+ *::after {
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ // 覆盖 Element Plus 的 CSS 变量(主题色)
15
+ // 使用 !important 确保优先级最高,避免被 Element Plus 的 base.scss 覆盖
16
+ :root {
17
+ // Primary 主色
18
+ --el-color-primary: #2b6ef6 !important;
19
+ --el-color-primary-light-3: #6b9bf8 !important;
20
+ --el-color-primary-light-5: #95b8fa !important;
21
+ --el-color-primary-light-7: #bfd5fc !important;
22
+ --el-color-primary-light-8: #d2e2fd !important;
23
+ --el-color-primary-light-9: #e6f0fe !important;
24
+ --el-color-primary-dark-2: #2358c5 !important;
25
+
26
+ // Success 成功色
27
+ --el-color-success: #16a34a !important;
28
+ --el-color-success-light-3: #4ec277 !important;
29
+ --el-color-success-light-5: #76d196 !important;
30
+ --el-color-success-light-7: #9fe0b5 !important;
31
+ --el-color-success-light-8: #b7e8c7 !important;
32
+ --el-color-success-light-9: #d0f0d9 !important;
33
+ --el-color-success-dark-2: #12823b !important;
34
+
35
+ // Warning 警告色
36
+ --el-color-warning: #f59e0b !important;
37
+ --el-color-warning-light-3: #f8b84b !important;
38
+ --el-color-warning-light-5: #fac776 !important;
39
+ --el-color-warning-light-7: #fcd5a1 !important;
40
+ --el-color-warning-light-8: #fde0b7 !important;
41
+ --el-color-warning-light-9: #feeacc !important;
42
+ --el-color-warning-dark-2: #c47e09 !important;
43
+
44
+ // Danger/Error 危险/错误色
45
+ --el-color-danger: #ef4444 !important;
46
+ --el-color-danger-light-3: #f47777 !important;
47
+ --el-color-danger-light-5: #f79a9a !important;
48
+ --el-color-danger-light-7: #fabbbb !important;
49
+ --el-color-danger-light-8: #fccccc !important;
50
+ --el-color-danger-light-9: #fddddd !important;
51
+ --el-color-danger-dark-2: #bf3636 !important;
52
+
53
+ --el-color-error: #ef4444 !important;
54
+ --el-color-error-light-3: #f47777 !important;
55
+ --el-color-error-light-5: #f79a9a !important;
56
+ --el-color-error-light-7: #fabbbb !important;
57
+ --el-color-error-light-8: #fccccc !important;
58
+ --el-color-error-light-9: #fddddd !important;
59
+ --el-color-error-dark-2: #bf3636 !important;
60
+
61
+ // Info 信息色
62
+ --el-color-info: #64748b !important;
63
+ --el-color-info-light-3: #8c99a9 !important;
64
+ --el-color-info-light-5: #a5b0bc !important;
65
+ --el-color-info-light-7: #bec6d0 !important;
66
+ --el-color-info-light-8: #ced4db !important;
67
+ --el-color-info-light-9: #dee2e7 !important;
68
+ --el-color-info-dark-2: #505d6f !important;
69
+ }
70
+
71
+ // 如果需要覆盖 Element Plus 的某些全局样式,可以在这里添加
72
+ // 例如:
73
+ // .el-button {
74
+ // // 覆盖按钮的默认样式
75
+ // }
@@ -0,0 +1,9 @@
1
+ // sunyard-szyy-ui 完整样式文件
2
+ // 注意:这里只包含 sunyard-szyy-ui 自己的样式,不包含 Element Plus
3
+ // Element Plus 的样式需要项目自行引入
4
+
5
+ // 基础样式(变量覆盖、全局样式)
6
+ @use './base.scss';
7
+
8
+ // 组件样式
9
+ @use './search-bar.scss';
@@ -0,0 +1,14 @@
1
+ .sy-search-bar {
2
+ display: flex;
3
+ gap: 8px;
4
+ align-items: center;
5
+
6
+ &__input {
7
+ flex: 1;
8
+ min-width: 0;
9
+ }
10
+
11
+ &__button {
12
+ flex: none;
13
+ }
14
+ }
@@ -0,0 +1,22 @@
1
+ @forward 'element-plus/theme-chalk/src/common/var.scss' with (
2
+ $colors: (
3
+ 'primary': (
4
+ 'base': #2b6ef6
5
+ ),
6
+ 'success': (
7
+ 'base': #16a34a
8
+ ),
9
+ 'warning': (
10
+ 'base': #f59e0b
11
+ ),
12
+ 'danger': (
13
+ 'base': #ef4444
14
+ ),
15
+ 'error': (
16
+ 'base': #ef4444
17
+ ),
18
+ 'info': (
19
+ 'base': #64748b
20
+ )
21
+ )
22
+ );
@@ -0,0 +1,22 @@
1
+ @forward 'element-plus/theme-chalk/src/common/var.scss' with (
2
+ $colors: (
3
+ 'primary': (
4
+ 'base': #2b6ef6
5
+ ),
6
+ 'success': (
7
+ 'base': #16a34a
8
+ ),
9
+ 'warning': (
10
+ 'base': #f59e0b
11
+ ),
12
+ 'danger': (
13
+ 'base': #ef4444
14
+ ),
15
+ 'error': (
16
+ 'base': #ef4444
17
+ ),
18
+ 'info': (
19
+ 'base': #64748b
20
+ )
21
+ )
22
+ );