@sunyard-szyy-ui/components 0.2.2 → 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.
- package/es/components/search-bar/index.mjs +1 -1
- package/es/components/search-bar/style/css.mjs +1 -1
- package/es/components/search-bar/style/index.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/search-bar/src/search-bar.mjs +1 -0
- package/es/search-bar/style/css.d.ts +1 -1
- package/es/search-bar/style/css.d.ts.map +1 -1
- package/es/search-bar/style/index.d.ts +1 -1
- package/es/search-bar/style/index.d.ts.map +1 -1
- package/lib/components/search-bar/index.js +1 -1
- package/lib/components/search-bar/style/css.js +1 -1
- package/lib/components/search-bar/style/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/search-bar/src/search-bar.js +1 -0
- package/lib/search-bar/style/css.d.ts +1 -1
- package/lib/search-bar/style/index.d.ts +1 -1
- package/package.json +3 -3
- package/es/css.css +0 -1
- package/lib/css.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{SySearchBar as e}from"../../search-bar/src/search-bar.mjs";export{e as SySearchBar};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";
|
|
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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";
|
|
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.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import{SySearchBar as e}from"./search-bar/src/search-bar.mjs";export{e as SySearchBar};
|
|
@@ -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};
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../search-bar/src/search-bar.js");exports.SySearchBar=e.SySearchBar;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");
|
|
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");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");
|
|
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.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
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";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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sunyard-szyy-ui/components",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"vue": "^3.0.0"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@sunyard-szyy-ui/hooks": "0.2.
|
|
48
|
-
"@sunyard-szyy-ui/utils": "0.2.
|
|
47
|
+
"@sunyard-szyy-ui/hooks": "0.2.4",
|
|
48
|
+
"@sunyard-szyy-ui/utils": "0.2.4"
|
|
49
49
|
},
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
package/es/css.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}
|
package/lib/css.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
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}
|