@appmax_npm/ds-prime 1.0.0-alpha.21 → 1.0.0-alpha.23
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/button/index.d.ts +9 -1
- package/button/index.js +35 -1
- package/package.json +1 -1
- package/tailwind/index.d.ts +1 -0
- package/tailwind/index.js +1 -0
package/button/index.d.ts
CHANGED
|
@@ -1,2 +1,10 @@
|
|
|
1
|
+
import { type Component } from 'vue';
|
|
2
|
+
import { type ButtonProps as PVButtonProps } from 'primevue/button';
|
|
3
|
+
interface ButtonProps extends PVButtonProps {
|
|
4
|
+
href?: string;
|
|
5
|
+
to?: string | object;
|
|
6
|
+
}
|
|
7
|
+
declare const Button: Component<ButtonProps>;
|
|
1
8
|
export * from 'primevue/button';
|
|
2
|
-
export {
|
|
9
|
+
export { ButtonProps };
|
|
10
|
+
export default Button;
|
package/button/index.js
CHANGED
|
@@ -1,2 +1,36 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import { h } from 'vue';
|
|
13
|
+
import { default as PVButton } from 'primevue/button';
|
|
14
|
+
var Button = {
|
|
15
|
+
name: 'Button',
|
|
16
|
+
props: {
|
|
17
|
+
href: String,
|
|
18
|
+
to: [String, Object]
|
|
19
|
+
},
|
|
20
|
+
computed: {
|
|
21
|
+
as: function () {
|
|
22
|
+
if (this.as)
|
|
23
|
+
return this.as;
|
|
24
|
+
if (this.href)
|
|
25
|
+
return 'a';
|
|
26
|
+
if (this.to)
|
|
27
|
+
return 'router-link';
|
|
28
|
+
return 'button';
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
render: function () {
|
|
32
|
+
return h(PVButton, __assign(__assign({}, this.$props), { as: this.as }), this.$slots);
|
|
33
|
+
}
|
|
34
|
+
};
|
|
1
35
|
export * from 'primevue/button';
|
|
2
|
-
export
|
|
36
|
+
export default Button;
|
package/package.json
CHANGED
package/tailwind/index.d.ts
CHANGED
package/tailwind/index.js
CHANGED