huiyi-select-table 0.0.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 ADDED
@@ -0,0 +1,5 @@
1
+ # Vue 3 + TypeScript + Vite
2
+
3
+ This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
+
5
+ Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
@@ -0,0 +1 @@
1
+ .el-table .warning-row[data-v-3cde86ca]{--el-table-tr-bg-color: #141}.spanInput[data-v-3cde86ca]{display:inline-block;position:relative}.spanDiv[data-v-3cde86ca]{z-index:10000;position:absolute;top:35px;background-color:#fff;height:230px;border:1px solid #eee}
@@ -0,0 +1,88 @@
1
+ import { defineComponent as I, resolveComponent as c, createBlock as f, openBlock as a, unref as w, isRef as L, withCtx as p, createElementBlock as _, Fragment as h, renderList as b, createVNode as O } from "vue";
2
+ const j = /* @__PURE__ */ I({
3
+ name: "InputSelectCom",
4
+ __name: "SelectTable",
5
+ props: {
6
+ originalData: Object,
7
+ showValue: String,
8
+ columnList: Object
9
+ },
10
+ emits: ["slectValue"],
11
+ setup(e, { emit: l }) {
12
+ const r = e, n = ref(""), u = ref(""), C = ref(!1), v = ref([]), d = ref([]);
13
+ ref(!1), ref(-1), ref(-1);
14
+ const V = ref(null), k = l, y = (t) => {
15
+ d.value = t;
16
+ }, x = (t) => {
17
+ d.value = t, t && (u.value = t[r.showValue], C.value = !1), k("slectValue", t);
18
+ };
19
+ return (t, m) => {
20
+ const R = c("el-table-column"), S = c("el-table"), T = c("el-option"), B = c("el-select");
21
+ return a(), f(B, {
22
+ modelValue: w(n),
23
+ "onUpdate:modelValue": m[0] || (m[0] = (o) => L(n) ? n.value = o : null),
24
+ filterable: "",
25
+ placeholder: "Select",
26
+ style: { width: "240px" }
27
+ }, {
28
+ default: p(() => [
29
+ (a(!0), _(h, null, b(e.originalData, (o) => (a(), f(T, {
30
+ key: o.name,
31
+ label: o.name,
32
+ value: o.name
33
+ }, {
34
+ default: p(() => [
35
+ O(S, {
36
+ ref_for: !0,
37
+ ref_key: "singleTableRef",
38
+ ref: V,
39
+ border: "",
40
+ class: "spanInputTable",
41
+ "row-class-name": t.tableRowClassName,
42
+ "highlight-current-row": "",
43
+ data: w(v),
44
+ style: { width: "300px", height: "230px", position: "fixed" },
45
+ onCurrentChange: y,
46
+ onRowClick: x
47
+ }, {
48
+ default: p(() => [
49
+ (a(!0), _(h, null, b(e.columnList, (i, D) => (a(), f(R, {
50
+ key: D,
51
+ prop: i.prop,
52
+ label: i.label,
53
+ width: i.width,
54
+ "show-overflow-tooltip": "",
55
+ align: "center"
56
+ }, null, 8, ["prop", "label", "width"]))), 128))
57
+ ]),
58
+ _: 2
59
+ }, 1032, ["row-class-name", "data"])
60
+ ]),
61
+ _: 2
62
+ }, 1032, ["label", "value"]))), 128))
63
+ ]),
64
+ _: 1
65
+ }, 8, ["modelValue"]);
66
+ };
67
+ }
68
+ }), E = (e, l) => {
69
+ const r = e.__vccOpts || e;
70
+ for (const [n, u] of l)
71
+ r[n] = u;
72
+ return r;
73
+ }, s = /* @__PURE__ */ E(j, [["__scopeId", "data-v-3cde86ca"]]);
74
+ s.install = (e) => {
75
+ e.component(s.name, s);
76
+ };
77
+ const N = [
78
+ s
79
+ ], g = function(e) {
80
+ g.installed || N.forEach((l) => {
81
+ e.component(l.name, l);
82
+ });
83
+ };
84
+ typeof window < "u" && window.Vue && g(window.Vue);
85
+ export {
86
+ s as SelectTable,
87
+ g as install
88
+ };
@@ -0,0 +1 @@
1
+ (function(n,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(n=typeof globalThis<"u"?globalThis:n||self,e(n.HuiyiSelectTable={},n.Vue))})(this,(function(n,e){"use strict";const a=((t,o)=>{const s=t.__vccOpts||t;for(const[c,f]of o)s[c]=f;return s})(e.defineComponent({name:"InputSelectCom",__name:"SelectTable",props:{originalData:Object,showValue:String,columnList:Object},emits:["slectValue"],setup(t,{emit:o}){const s=t,c=ref(""),f=ref(""),_=ref(!1),h=ref([]),d=ref([]);ref(!1),ref(-1),ref(-1);const w=ref(null),b=o,k=l=>{d.value=l},C=l=>{d.value=l,l&&(f.value=l[s.showValue],_.value=!1),b("slectValue",l)};return(l,u)=>{const g=e.resolveComponent("el-table-column"),y=e.resolveComponent("el-table"),V=e.resolveComponent("el-option"),x=e.resolveComponent("el-select");return e.openBlock(),e.createBlock(x,{modelValue:e.unref(c),"onUpdate:modelValue":u[0]||(u[0]=r=>e.isRef(c)?c.value=r:null),filterable:"",placeholder:"Select",style:{width:"240px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.originalData,r=>(e.openBlock(),e.createBlock(V,{key:r.name,label:r.name,value:r.name},{default:e.withCtx(()=>[e.createVNode(y,{ref_for:!0,ref_key:"singleTableRef",ref:w,border:"",class:"spanInputTable","row-class-name":l.tableRowClassName,"highlight-current-row":"",data:e.unref(h),style:{width:"300px",height:"230px",position:"fixed"},onCurrentChange:k,onRowClick:C},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.columnList,(p,B)=>(e.openBlock(),e.createBlock(g,{key:B,prop:p.prop,label:p.label,width:p.width,"show-overflow-tooltip":"",align:"center"},null,8,["prop","label","width"]))),128))]),_:2},1032,["row-class-name","data"])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])}}}),[["__scopeId","data-v-3cde86ca"]]);a.install=t=>{t.component(a.name,a)};const m=[a],i=function(t){i.installed||m.forEach(o=>{t.component(o.name,o)})};typeof window<"u"&&window.Vue&&i(window.Vue),n.SelectTable=a,n.install=i,Object.defineProperty(n,Symbol.toStringTag,{value:"Module"})}));
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "huiyi-select-table",
3
+ "version": "0.0.0",
4
+ "description": "select,table",
5
+ "types": "dist/index.d.ts",
6
+ "main": "dist/huiyi-select-table.umd.js",
7
+ "module": "dist/huiyi-select-table.es.js",
8
+ "files": ["dist"],
9
+ "scripts": {
10
+ "dev": "vite",
11
+ "build": "vite build && tsc --emitDeclarationOnly --declaration",
12
+ "prepublishOnly": "npm run build"
13
+ },
14
+ "dependencies": {
15
+ "element-plus": "^2.11.7",
16
+ "vue": "^3.5.24"
17
+ },
18
+ "devDependencies": {
19
+ "@types/node": "^24.10.0",
20
+ "@vitejs/plugin-vue": "^6.0.1",
21
+ "@vue/tsconfig": "^0.8.1",
22
+ "typescript": "~5.9.3",
23
+ "vite": "^7.2.2",
24
+ "vue-tsc": "^3.1.3"
25
+ }
26
+ }