web-win-vue-plus 0.1.0
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/README.md +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/web-win-vue-plus.cjs.js +1 -0
- package/dist/web-win-vue-plus.css +2 -0
- package/dist/web-win-vue-plus.es.js +26 -0
- package/package.json +57 -0
package/README.md
ADDED
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});let e=require(`vue`);var t=(0,e.defineComponent)({name:`WinButton`}),n=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},r={class:`win-button`};function i(t,n,i,a,o,s){return(0,e.openBlock)(),(0,e.createElementBlock)(`button`,r,[(0,e.renderSlot)(t.$slots,`default`)])}var a=n(t,[[`render`,i]]),o=(0,e.defineComponent)({name:`WinCheckbox`}),s={class:`win-checkbox`};function c(t,n,r,i,a,o){return(0,e.openBlock)(),(0,e.createElementBlock)(`label`,s,[n[0]||=(0,e.createElementVNode)(`input`,{type:`checkbox`,class:`win-checkbox-input`},null,-1),(0,e.renderSlot)(t.$slots,`default`)])}var l=n(o,[[`render`,c]]),u=[a,l];function d(e){u.forEach(t=>{t.name&&e.component(t.name,t)})}var f={install:d};exports.WinButton=a,exports.WinCheckbox=l,exports.default=f,exports.install=d;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
:root{--w-button-default-bg:#ccc;--w-button-default-text:black;--w-button-default-hover-border:#7a7a7a;--w-button-default-active-bg:#999;--w-button-default-disabled-bg:#ccc;--w-button-default-disabled-text:#a8a8a8;--w-button-default-dark-bg:#333;--w-button-default-dark-text:white;--w-button-default-dark-hover-border:#6b6b6b;--w-button-default-dark-active-bg:#666;--w-button-default-dark-disabled-bg:#333;--w-button-default-dark-disabled-text:#4f4f4f;--w-checkbox-default-border:black;--w-checkbox-default-active-bg:#0078d7;--w-checkbox-default-active-border:#0078d7}.win-button{height:32px;color:var(--w-button-default-text);background-color:var(--w-button-default-bg);outline-offset:-3px;-webkit-user-select:none;user-select:none;border:3px solid #0000;outline:0;justify-content:center;align-items:center;padding:0 16px;transition:transform .1s cubic-bezier(0,1,1,0);display:inline-flex;position:relative}.win-button:hover{border:3px solid var(--w-button-default-hover-border);outline-offset:-3px}.win-button:active{outline-offset:-3px;background-color:var(--w-button-default-active-bg);border:3px solid #0000;transform:scale(.9)}.win-checkbox-input{display:none}.win-checkbox{-webkit-user-select:none;user-select:none;display:inline}.win-checkbox:before{content:"";border:4px solid var(--w-checkbox-default-border);outline-offset:-4px;vertical-align:middle;background-color:#0000;width:18px;height:18px;margin-right:4px;display:inline-block}.win-checkbox:has(.win-checkbox-input:checked):before{content:"✓";text-align:center;color:#fff;background:var(--w-checkbox-default-active-bg);border:4px solid var(--w-checkbox-default-active-border);font-weight:700;line-height:18px}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { createElementBlock as e, createElementVNode as t, defineComponent as n, openBlock as r, renderSlot as i } from "vue";
|
|
2
|
+
//#region src/components/button.vue?vue&type=script&lang.ts
|
|
3
|
+
var a = n({ name: "WinButton" }), o = (e, t) => {
|
|
4
|
+
let n = e.__vccOpts || e;
|
|
5
|
+
for (let [e, r] of t) n[e] = r;
|
|
6
|
+
return n;
|
|
7
|
+
}, s = { class: "win-button" };
|
|
8
|
+
function c(t, n, a, o, c, l) {
|
|
9
|
+
return r(), e("button", s, [i(t.$slots, "default")]);
|
|
10
|
+
}
|
|
11
|
+
var l = /* @__PURE__ */ o(a, [["render", c]]), u = n({ name: "WinCheckbox" }), d = { class: "win-checkbox" };
|
|
12
|
+
function f(n, a, o, s, c, l) {
|
|
13
|
+
return r(), e("label", d, [a[0] ||= t("input", {
|
|
14
|
+
type: "checkbox",
|
|
15
|
+
class: "win-checkbox-input"
|
|
16
|
+
}, null, -1), i(n.$slots, "default")]);
|
|
17
|
+
}
|
|
18
|
+
var p = /* @__PURE__ */ o(u, [["render", f]]), m = [l, p];
|
|
19
|
+
function h(e) {
|
|
20
|
+
m.forEach((t) => {
|
|
21
|
+
t.name && e.component(t.name, t);
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var g = { install: h };
|
|
25
|
+
//#endregion
|
|
26
|
+
export { l as WinButton, p as WinCheckbox, g as default, h as install };
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "web-win-vue-plus",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Windows10风格Vue3组件库",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "dist/web-win-vue-plus.cjs.js",
|
|
8
|
+
"module": "dist/web-win-vue-plus.es.js",
|
|
9
|
+
"types": "dist/index.d.ts",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"package.json",
|
|
13
|
+
"README.md"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"vue",
|
|
17
|
+
"vue3",
|
|
18
|
+
"ui",
|
|
19
|
+
"component",
|
|
20
|
+
"library"
|
|
21
|
+
],
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"vue": "^3.5.30"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@commitlint/cli": "^20.5.0",
|
|
27
|
+
"@commitlint/config-conventional": "^20.5.0",
|
|
28
|
+
"@eslint/js": "^10.0.1",
|
|
29
|
+
"@types/node": "^24.12.0",
|
|
30
|
+
"@vitejs/plugin-vue": "^6.0.5",
|
|
31
|
+
"@vue/eslint-config-typescript": "^14.7.0",
|
|
32
|
+
"@vue/tsconfig": "^0.9.0",
|
|
33
|
+
"eslint": "^10.2.0",
|
|
34
|
+
"eslint-config-standard": "^17.1.0",
|
|
35
|
+
"eslint-plugin-import": "^2.32.0",
|
|
36
|
+
"eslint-plugin-n": "^17.24.0",
|
|
37
|
+
"eslint-plugin-node": "^11.1.0",
|
|
38
|
+
"eslint-plugin-promise": "^7.2.1",
|
|
39
|
+
"eslint-plugin-vue": "^10.8.0",
|
|
40
|
+
"globals": "^17.4.0",
|
|
41
|
+
"husky": "^9.1.7",
|
|
42
|
+
"is-ci": "^4.1.0",
|
|
43
|
+
"lint-staged": "^16.4.0",
|
|
44
|
+
"sass": "^1.99.0",
|
|
45
|
+
"typescript": "~5.9.3",
|
|
46
|
+
"vite": "^8.0.1",
|
|
47
|
+
"vite-plugin-dts": "^4.5.4",
|
|
48
|
+
"vue-eslint-parser": "^10.4.0",
|
|
49
|
+
"vue-tsc": "^3.2.5"
|
|
50
|
+
},
|
|
51
|
+
"scripts": {
|
|
52
|
+
"dev": "vite",
|
|
53
|
+
"build": "vue-tsc -b && vite build",
|
|
54
|
+
"preview": "vite preview",
|
|
55
|
+
"precommit": "lint-staged -c ./.husky/.lintstagedrc -q"
|
|
56
|
+
}
|
|
57
|
+
}
|