@thestarweb/ui 1.7.0 → 1.7.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/dist/star-ui.common.js +59 -47
- package/dist/star-ui.common.js.map +1 -1
- package/dist/star-ui.umd.js +59 -47
- package/dist/star-ui.umd.js.map +1 -1
- package/dist/star-ui.umd.min.js +7 -7
- package/dist/star-ui.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/input.vue +10 -2
- package/types/components/input.vue.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thestarweb/ui",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"description": "A UI lib",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "vue-cli-service build --target lib --name star-ui --dest dist/ src/main.ts",
|
|
6
|
+
"build": "vue-cli-service build --modern --target lib --name star-ui --dest dist/ src/main.ts",
|
|
7
7
|
"tsc": "node ./build-ts/main.js&&tsc --p ./tsdconfig.json"
|
|
8
8
|
},
|
|
9
9
|
"author": "star_ss",
|
package/src/components/input.vue
CHANGED
|
@@ -46,12 +46,20 @@ export default class SuInput extends Vue {
|
|
|
46
46
|
}
|
|
47
47
|
// return "";
|
|
48
48
|
}
|
|
49
|
-
|
|
49
|
+
@Emit("focus")
|
|
50
|
+
private handleFocus():void{
|
|
50
51
|
this.isFocused=true;
|
|
51
52
|
}
|
|
52
|
-
|
|
53
|
+
@Emit("blur")
|
|
54
|
+
private handleBlur():void{
|
|
53
55
|
this.isFocused=false;
|
|
54
56
|
}
|
|
57
|
+
public focus():void{
|
|
58
|
+
this.$refs.input.focus();
|
|
59
|
+
}
|
|
60
|
+
public blur():void{
|
|
61
|
+
this.$refs.input.blur();
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
64
|
</script>
|
|
57
65
|
|
|
@@ -10,6 +10,8 @@ export default class SuInput extends Vue {
|
|
|
10
10
|
isFocused: boolean;
|
|
11
11
|
emitInput(data: string): string;
|
|
12
12
|
handleInput(event: InputEvent): void;
|
|
13
|
-
handleFocus
|
|
14
|
-
handleBlur
|
|
13
|
+
private handleFocus;
|
|
14
|
+
private handleBlur;
|
|
15
|
+
focus(): void;
|
|
16
|
+
blur(): void;
|
|
15
17
|
}
|