@qxs-bns/components 0.0.67 → 0.0.68
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/index.mjs +1 -1
- package/es/index.mjs.map +1 -1
- package/es/package.json.mjs +1 -1
- package/es/src/components.mjs +1 -1
- package/es/src/icon/index.mjs +1 -1
- package/es/src/icon/index.mjs.map +1 -1
- package/es/src/icon/src/icon.vue.mjs +1 -1
- package/es/src/icon/src/icon.vue.mjs.map +1 -1
- package/lib/index.cjs +1 -1
- package/lib/package.json.cjs +1 -1
- package/lib/src/components.cjs +1 -1
- package/lib/src/icon/index.cjs +1 -1
- package/lib/src/icon/index.cjs.map +1 -1
- package/lib/src/icon/src/icon.vue.cjs +1 -1
- package/lib/src/icon/src/icon.vue.cjs.map +1 -1
- package/package.json +2 -2
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/index.scss +1 -0
- package/theme-chalk/src/icon.css +1 -1
- package/theme-chalk/src/icon.scss +13 -12
- package/theme-chalk/src/image-upload.css +1 -1
- package/theme-chalk/src/image-upload.scss +3 -2
- package/theme-chalk/src/normalize.css +1 -0
- package/theme-chalk/src/normalize.scss +117 -0
- package/types/src/icon/index.d.ts +6 -2
- package/types/src/icon/index.d.ts.map +1 -1
- package/types/src/icon/src/icon.vue.d.ts.map +1 -1
- package/types/tsconfig.tsbuildinfo +1 -1
package/es/index.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import o from"./src/defaults.mjs";export{QxsDataChart}from"./src/data-chart/index.mjs";export{QxsFileUpload}from"./src/file-upload/index.mjs";export{QxsFixedActionBar}from"./src/fixed-action-bar/index.mjs";export{QxsIcon}from"./src/icon/index.mjs";export{QxsImageUpload}from"./src/image-upload/index.mjs";export{QxsPhotoCropTool}from"./src/photo-crop-tool/index.mjs";export{QxsSubjectAction}from"./src/subject-action/index.mjs";export{QxsSubjectLayout}from"./src/subject-layout/index.mjs";export{QxsSubjectList}from"./src/subject-list/index.mjs";export{QxsSubjectType}from"./src/subject-type/index.mjs";export{QxsTinyMceEditor}from"./src/tiny-mce-editor/index.mjs";const
|
1
|
+
import o from"./src/defaults.mjs";export{QxsDataChart}from"./src/data-chart/index.mjs";export{QxsFileUpload}from"./src/file-upload/index.mjs";export{QxsFixedActionBar}from"./src/fixed-action-bar/index.mjs";export{QxsIcon,createQxsIcon}from"./src/icon/index.mjs";export{QxsImageUpload}from"./src/image-upload/index.mjs";export{QxsPhotoCropTool}from"./src/photo-crop-tool/index.mjs";export{QxsSubjectAction}from"./src/subject-action/index.mjs";export{QxsSubjectLayout}from"./src/subject-layout/index.mjs";export{QxsSubjectList}from"./src/subject-list/index.mjs";export{QxsSubjectType}from"./src/subject-type/index.mjs";export{QxsTinyMceEditor}from"./src/tiny-mce-editor/index.mjs";const e=o.install,r=o.version;export{o as default,e as install,r as version};
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/es/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../packages/components/index.ts"],"sourcesContent":["import installer from './src/defaults'\n\nexport * from './src/components'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":["install","installer","version"],"mappings":"
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../packages/components/index.ts"],"sourcesContent":["import installer from './src/defaults'\n\nexport * from './src/components'\n\nexport const install = installer.install\nexport const version = installer.version\nexport default installer\n"],"names":["install","installer","version"],"mappings":"uqBAIO,MAAMA,EAAUC,EAAUD,QACpBE,EAAUD,EAAUC"}
|
package/es/package.json.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
var r="0.0.
|
1
|
+
var r="0.0.68";export{r as version};
|
2
2
|
//# sourceMappingURL=package.json.mjs.map
|
package/es/src/components.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export{QxsDataChart}from"./data-chart/index.mjs";export{QxsFileUpload}from"./file-upload/index.mjs";export{QxsFixedActionBar}from"./fixed-action-bar/index.mjs";export{QxsIcon}from"./icon/index.mjs";export{QxsImageUpload}from"./image-upload/index.mjs";export{QxsPhotoCropTool}from"./photo-crop-tool/index.mjs";export{QxsSubjectAction}from"./subject-action/index.mjs";export{QxsSubjectLayout}from"./subject-layout/index.mjs";export{QxsSubjectList}from"./subject-list/index.mjs";export{QxsSubjectType}from"./subject-type/index.mjs";export{QxsTinyMceEditor}from"./tiny-mce-editor/index.mjs";
|
1
|
+
export{QxsDataChart}from"./data-chart/index.mjs";export{QxsFileUpload}from"./file-upload/index.mjs";export{QxsFixedActionBar}from"./fixed-action-bar/index.mjs";export{QxsIcon,createQxsIcon}from"./icon/index.mjs";export{QxsImageUpload}from"./image-upload/index.mjs";export{QxsPhotoCropTool}from"./photo-crop-tool/index.mjs";export{QxsSubjectAction}from"./subject-action/index.mjs";export{QxsSubjectLayout}from"./subject-layout/index.mjs";export{QxsSubjectList}from"./subject-list/index.mjs";export{QxsSubjectType}from"./subject-type/index.mjs";export{QxsTinyMceEditor}from"./tiny-mce-editor/index.mjs";
|
2
2
|
//# sourceMappingURL=components.mjs.map
|
package/es/src/icon/index.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
import{withInstall as
|
1
|
+
import{withInstall as t}from"../withInstall.mjs";import{defineComponent as o,h as r}from"vue";import i from"./src/icon.vue.mjs";const m=t(i);function n(t){return t="string"==typeof t?{icon:t}:t,o({setup:()=>()=>r(i,{...t})})}export{m as QxsIcon,n as createQxsIcon,m as default};
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/src/icon/index.ts"],"sourcesContent":["import { withInstall } from '../withInstall'\nimport component from './src/icon.vue'\n\nconst QxsIcon = withInstall(component)\n\nexport {\n QxsIcon,\n}\n\nexport default QxsIcon\n"],"names":["QxsIcon","withInstall","component"],"mappings":"
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../../../packages/components/src/icon/index.ts"],"sourcesContent":["import { withInstall } from '../withInstall'\nimport { defineComponent } from 'vue'\nimport type { PropsType } from './src/icon.vue'\nimport component from './src/icon.vue'\n\nconst QxsIcon = withInstall(component)\n\n// 返回一个组件对象\nfunction createQxsIcon(opt: PropsType | string) {\n opt = typeof opt === 'string' ? { icon: opt } : opt\n return defineComponent({\n setup() {\n return () => h(component, { ...opt })\n },\n })\n}\n\n\nexport {\n QxsIcon,\n createQxsIcon\n}\n\nexport default QxsIcon\n"],"names":["QxsIcon","withInstall","component","createQxsIcon","opt","icon","defineComponent","setup","h"],"mappings":"gIAKA,MAAMA,EAAUC,EAAYC,GAG5B,SAASC,EAAcC,GAErB,OADAA,EAAqB,iBAARA,EAAmB,CAAEC,KAAMD,GAAQA,EACzCE,EAAgB,CACrBC,MAAAA,IACS,IAAMC,EAAEN,EAAW,IAAKE,KAGrC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{defineComponent as e,useAttrs as
|
1
|
+
import{defineComponent as e,useAttrs as t,computed as o,createBlock as r,createElementBlock as i,createCommentVNode as n,unref as s,openBlock as c,resolveDynamicComponent as l,normalizeStyle as u,normalizeClass as a,createElementVNode as p}from"vue";import{Icon as y}from"../../../node_modules/.pnpm/@iconify_vue@5.0.0_vue@3.5.18_typescript@5.9.2_/node_modules/@iconify/vue/dist/iconify.mjs";import{useNamespace as d}from"@qxs-bns/hooks";const f=["xlink:href"];var m=e({name:"QxsIcon",__name:"icon",props:{icon:{type:null,required:!0},runtime:{type:Boolean,required:!1},flip:{type:String,required:!1},rotate:{type:Number,required:!1},color:{type:String,required:!1},size:{type:[String,Number],required:!1}},setup(e){const m=e,v=t(),g=d("icon"),h=o(()=>"object"==typeof m.icon||"function"==typeof m.icon),b=o(()=>h.value?"component":0===m.icon.indexOf("i-")?m.runtime?"svg":"css":m.icon.includes(":")?"svg":"custom"),$=o(()=>{if(h.value)return"";if(0===m.icon.indexOf("i-")){let e=m.icon;return m.runtime&&(e=e.replace("i-","")),e}return m.icon}),k=o(()=>{const e=[];if(""!==m.flip)switch(m.flip){case"horizontal":e.push("rotateY(180deg)");break;case"vertical":e.push("rotateX(180deg)");break;case"both":e.push("rotateX(180deg)"),e.push("rotateY(180deg)")}m.rotate&&e.push(`rotate(${m.rotate%360}deg)`);const{color:t,size:o}=m;return`${t?`color: ${t};`:""}${o?`font-size: ${r=o,r?"number"==typeof r||/^\d+(\.\d+)?$/.test(r)?`${r}px`:r:""};`:""}${e.length?`transform: ${e.join(" ")};`:""}`;var r});return(e,t)=>"component"===s(b)?(c(),r(l(e.icon),{key:0,class:a([s(g).b()]),style:u(s(k)+(s(v).style||""))},null,8,["class","style"])):"css"===s(b)&&s($)?(c(),i("i",{key:1,class:a([s(g).b(),s($)]),style:u(s(k)+(s(v).style||""))},null,6)):"svg"===s(b)&&s($)?(c(),r(s(y),{key:2,icon:s($),class:a([s(g).b()]),style:u(s(k)+(s(v).style||""))},null,8,["icon","class","style"])):s($)?(c(),i("svg",{key:3,"aria-hidden":"true",class:a([s(g).b()]),style:u(s(k)+(s(v).style||""))},[p("use",{"xlink:href":`#icon-${s($)}`},null,8,f)],6)):n("v-if",!0)}});export{m as default};
|
2
2
|
//# sourceMappingURL=icon.vue.mjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icon.vue.mjs","sources":["../../../../../../packages/components/src/icon/src/icon.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Icon } from '@iconify/vue'\nimport { useNamespace } from '@qxs-bns/hooks'\nimport type { Component } from 'vue'\n\ndefineOptions({\n name: 'QxsIcon',\n})\n\nconst props = defineProps<PropsType>()\n\nconst attrs = useAttrs()\n\nconst ns = useNamespace('icon')\n\nexport interface PropsType {\n icon: string | Component\n runtime?: boolean\n flip?: 'horizontal' | 'vertical' | 'both' | ''\n rotate?: number\n color?: string\n size?: string | number\n}\n\nconst isComponentName = computed(() => typeof props.icon === 'object' || typeof props.icon === 'function')\n\nconst outputType = computed(() => {\n if (isComponentName.value) {\n return 'component'\n }\n if ((props.icon as string).indexOf('i-') === 0) {\n return props.runtime ? 'svg' : 'css'\n }\n else if ((props.icon as string).includes(':')) {\n return 'svg'\n }\n else {\n return 'custom'\n }\n})\n\nconst outputName = computed(() => {\n if (isComponentName.value) return ''\n if ((props.icon as string).indexOf('i-') === 0) {\n let conversionName = props.icon as string\n if (props.runtime) {\n conversionName = conversionName.replace('i-', '')\n }\n return conversionName\n }\n else {\n return props.icon as string\n }\n})\n\nconst style = computed(() => {\n const transform = [] as string[]\n if (props.flip !== '') {\n switch (props.flip) {\n case 'horizontal':\n transform.push('rotateY(180deg)')\n break\n case 'vertical':\n transform.push('rotateX(180deg)')\n break\n case 'both':\n transform.push('rotateX(180deg)')\n transform.push('rotateY(180deg)')\n break\n }\n }\n if (props.rotate) {\n transform.push(`rotate(${props.rotate % 360}deg)`)\n }\n const { color, size } = props\n\n // 用正则匹配 size 是不是 number 值,再判断是否有 px 结尾的单位,没有则拼接\n const formatSize = (size: string | number | undefined): string => {\n if (!size) return ''\n\n // 如果是数字,直接添加 px\n if (typeof size === 'number') {\n return `${size}px`\n }\n\n // 如果是纯数字字符串,添加 px\n if (/^\\d+(\\.\\d+)?$/.test(size)) {\n return `${size}px`\n }\n\n // 如果已经有单位(px、em、rem等)或者不是纯数字,直接返回\n return size\n }\n\n return `${color ? `color: ${color};` : ''}${size ? `font-size: ${formatSize(size)};` : ''}${transform.length ? `transform: ${transform.join(' ')};` : ''}`\n})\n</script>\n\n<template>\n <
|
1
|
+
{"version":3,"file":"icon.vue.mjs","sources":["../../../../../../packages/components/src/icon/src/icon.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Icon } from '@iconify/vue'\nimport { useNamespace } from '@qxs-bns/hooks'\nimport type { Component } from 'vue'\n\ndefineOptions({\n name: 'QxsIcon',\n})\n\nconst props = defineProps<PropsType>()\n\nconst attrs = useAttrs()\n\nconst ns = useNamespace('icon')\n\nexport interface PropsType {\n icon: string | Component\n runtime?: boolean\n flip?: 'horizontal' | 'vertical' | 'both' | ''\n rotate?: number\n color?: string\n size?: string | number\n}\n\nconst isComponentName = computed(() => typeof props.icon === 'object' || typeof props.icon === 'function')\n\nconst outputType = computed(() => {\n if (isComponentName.value) {\n return 'component'\n }\n if ((props.icon as string).indexOf('i-') === 0) {\n return props.runtime ? 'svg' : 'css'\n }\n else if ((props.icon as string).includes(':')) {\n return 'svg'\n }\n else {\n return 'custom'\n }\n})\n\nconst outputName = computed(() => {\n if (isComponentName.value) return ''\n if ((props.icon as string).indexOf('i-') === 0) {\n let conversionName = props.icon as string\n if (props.runtime) {\n conversionName = conversionName.replace('i-', '')\n }\n return conversionName\n }\n else {\n return props.icon as string\n }\n})\n\nconst style = computed(() => {\n const transform = [] as string[]\n if (props.flip !== '') {\n switch (props.flip) {\n case 'horizontal':\n transform.push('rotateY(180deg)')\n break\n case 'vertical':\n transform.push('rotateX(180deg)')\n break\n case 'both':\n transform.push('rotateX(180deg)')\n transform.push('rotateY(180deg)')\n break\n }\n }\n if (props.rotate) {\n transform.push(`rotate(${props.rotate % 360}deg)`)\n }\n const { color, size } = props\n\n // 用正则匹配 size 是不是 number 值,再判断是否有 px 结尾的单位,没有则拼接\n const formatSize = (size: string | number | undefined): string => {\n if (!size) return ''\n\n // 如果是数字,直接添加 px\n if (typeof size === 'number') {\n return `${size}px`\n }\n\n // 如果是纯数字字符串,添加 px\n if (/^\\d+(\\.\\d+)?$/.test(size)) {\n return `${size}px`\n }\n\n // 如果已经有单位(px、em、rem等)或者不是纯数字,直接返回\n return size\n }\n\n return `${color ? `color: ${color};` : ''}${size ? `font-size: ${formatSize(size)};` : ''}${transform.length ? `transform: ${transform.join(' ')};` : ''}`\n})\n</script>\n\n<template>\n <component\n v-if=\"outputType === 'component'\"\n :is=\"icon as any\"\n :class=\"[ns.b()]\"\n :style=\"style + (attrs.style || '')\"\n />\n <i\n v-else-if=\"outputType === 'css' && outputName\"\n :class=\"[ns.b(), outputName]\"\n :style=\"style + (attrs.style || '')\"\n />\n <Icon\n v-else-if=\"outputType === 'svg' && outputName\"\n :icon=\"outputName\"\n :class=\"[ns.b()]\"\n :style=\"style + (attrs.style || '')\"\n />\n <svg\n v-else-if=\"outputName\"\n aria-hidden=\"true\"\n :class=\"[ns.b()]\"\n :style=\"style + (attrs.style || '')\"\n >\n <use :xlink:href=\"`#icon-${outputName}`\" />\n </svg>\n</template>\n"],"names":["props","__props","attrs","useAttrs","ns","useNamespace","isComponentName","computed","icon","outputType","value","indexOf","runtime","includes","outputName","conversionName","replace","style","transform","flip","push","rotate","color","size","test","length","join","_unref","_openBlock","_createBlock","_resolveDynamicComponent","class","_normalizeClass","b","_normalizeStyle","_createElementBlock","Icon","_createElementVNode"],"mappings":"4sBASA,MAAMA,EAAQC,EAERC,EAAQC,IAERC,EAAKC,EAAa,QAWlBC,EAAkBC,EAAS,IAA4B,iBAAfP,EAAMQ,MAA2C,mBAAfR,EAAMQ,MAEhFC,EAAaF,EAAS,IACtBD,EAAgBI,MACX,YAEoC,IAAxCV,EAAMQ,KAAgBG,QAAQ,MAC1BX,EAAMY,QAAU,MAAQ,MAEvBZ,EAAMQ,KAAgBK,SAAS,KAChC,MAGA,UAILC,EAAaP,EAAS,KAC1B,GAAID,EAAgBI,MAAO,MAAO,GAClC,GAA6C,IAAxCV,EAAMQ,KAAgBG,QAAQ,MAAa,CAC9C,IAAII,EAAiBf,EAAMQ,KAI3B,OAHIR,EAAMY,UACRG,EAAiBA,EAAeC,QAAQ,KAAM,KAEzCD,CACT,CAEE,OAAOf,EAAMQ,OAIXS,EAAQV,EAAS,KACrB,MAAMW,EAAY,GAClB,GAAmB,KAAflB,EAAMmB,KACR,OAAQnB,EAAMmB,MACZ,IAAK,aACHD,EAAUE,KAAK,mBACf,MACF,IAAK,WACHF,EAAUE,KAAK,mBACf,MACF,IAAK,OACHF,EAAUE,KAAK,mBACfF,EAAUE,KAAK,mBAIjBpB,EAAMqB,QACRH,EAAUE,KAAK,UAAUpB,EAAMqB,OAAS,WAE1C,MAAMC,MAAEA,EAAAC,KAAOA,GAASvB,EAoBxB,MAAO,GAAGsB,EAAQ,UAAUA,KAAW,KAAKC,EAAO,cAjB/BA,EAiBwDA,EAhBrEA,EAGe,iBAATA,GAKP,gBAAgBC,KAAKD,GAJhB,GAAGA,MASLA,EAbW,MAgBmE,KAAKL,EAAUO,OAAS,cAAcP,EAAUQ,KAAK,QAAU,KAjBnI,IAACH,iBAuBF,cAAVI,EAAAlB,IADRmB,IAAAC,EAKEC,EAHKtB,EAAAA,MAAI,OACRuB,MAAKC,EAAA,CAAGL,EAAAvB,GAAG6B,MACXhB,MAAKiB,EAAEP,EAAAV,IAASU,EAAAzB,GAAMe,OAAK,yCAGjBU,EAAAlB,IAAwBkB,EAAAb,QADrCqB,EAIE,IAAA,OAFCJ,MAAKC,EAAA,CAAGL,EAAAvB,GAAG6B,IAAKN,EAAAb,KAChBG,MAAKiB,EAAEP,EAAAV,IAASU,EAAAzB,GAAMe,OAAK,uBAGjBU,EAAAlB,IAAwBkB,EAAAb,QADrCe,EAKEF,EAAAS,GAAA,OAHC5B,KAAMmB,EAAAb,GACNiB,MAAKC,EAAA,CAAGL,EAAAvB,GAAG6B,MACXhB,MAAKiB,EAAEP,EAAAV,IAASU,EAAAzB,GAAMe,OAAK,wCAGjBU,EAAAb,QADbqB,EAOM,MAAA,OALJ,cAAY,OACXJ,MAAKC,EAAA,CAAGL,EAAAvB,GAAG6B,MACXhB,MAAKiB,EAAEP,EAAAV,IAASU,EAAAzB,GAAMe,OAAK,OAE5BoB,EAA2C,MAAA,CAArC,sBAAqBV,EAAAb"}
|
package/lib/index.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/defaults.cjs"),s=require("./src/data-chart/index.cjs"),r=require("./src/file-upload/index.cjs"),t=require("./src/fixed-action-bar/index.cjs"),o=require("./src/icon/index.cjs"),c=require("./src/image-upload/index.cjs"),
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./src/defaults.cjs"),s=require("./src/data-chart/index.cjs"),r=require("./src/file-upload/index.cjs"),t=require("./src/fixed-action-bar/index.cjs"),o=require("./src/icon/index.cjs"),c=require("./src/image-upload/index.cjs"),x=require("./src/photo-crop-tool/index.cjs"),i=require("./src/subject-action/index.cjs"),a=require("./src/subject-layout/index.cjs"),u=require("./src/subject-list/index.cjs"),d=require("./src/subject-type/index.cjs"),n=require("./src/tiny-mce-editor/index.cjs");const p=e.default.install,j=e.default.version;exports.default=e.default,exports.QxsDataChart=s.QxsDataChart,exports.QxsFileUpload=r.QxsFileUpload,exports.QxsFixedActionBar=t.QxsFixedActionBar,exports.QxsIcon=o.QxsIcon,exports.createQxsIcon=o.createQxsIcon,exports.QxsImageUpload=c.QxsImageUpload,exports.QxsPhotoCropTool=x.QxsPhotoCropTool,exports.QxsSubjectAction=i.QxsSubjectAction,exports.QxsSubjectLayout=a.QxsSubjectLayout,exports.QxsSubjectList=u.QxsSubjectList,exports.QxsSubjectType=d.QxsSubjectType,exports.QxsTinyMceEditor=n.QxsTinyMceEditor,exports.install=p,exports.version=j;
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/lib/package.json.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";exports.version="0.0.
|
1
|
+
"use strict";exports.version="0.0.68";
|
2
2
|
//# sourceMappingURL=package.json.cjs.map
|
package/lib/src/components.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";var e=require("./data-chart/index.cjs"),s=require("./file-upload/index.cjs"),t=require("./fixed-action-bar/index.cjs"),o=require("./icon/index.cjs"),r=require("./image-upload/index.cjs"),x=require("./photo-crop-tool/index.cjs"),i=require("./subject-action/index.cjs"),c=require("./subject-layout/index.cjs"),
|
1
|
+
"use strict";var e=require("./data-chart/index.cjs"),s=require("./file-upload/index.cjs"),t=require("./fixed-action-bar/index.cjs"),o=require("./icon/index.cjs"),r=require("./image-upload/index.cjs"),x=require("./photo-crop-tool/index.cjs"),i=require("./subject-action/index.cjs"),c=require("./subject-layout/index.cjs"),a=require("./subject-list/index.cjs"),u=require("./subject-type/index.cjs"),n=require("./tiny-mce-editor/index.cjs");exports.QxsDataChart=e.QxsDataChart,exports.QxsFileUpload=s.QxsFileUpload,exports.QxsFixedActionBar=t.QxsFixedActionBar,exports.QxsIcon=o.QxsIcon,exports.createQxsIcon=o.createQxsIcon,exports.QxsImageUpload=r.QxsImageUpload,exports.QxsPhotoCropTool=x.QxsPhotoCropTool,exports.QxsSubjectAction=i.QxsSubjectAction,exports.QxsSubjectLayout=c.QxsSubjectLayout,exports.QxsSubjectList=a.QxsSubjectList,exports.QxsSubjectType=u.QxsSubjectType,exports.QxsTinyMceEditor=n.QxsTinyMceEditor;
|
2
2
|
//# sourceMappingURL=components.cjs.map
|
package/lib/src/icon/index.cjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../withInstall.cjs"),t=require("./src/icon.vue.cjs");const s=e.withInstall(
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../withInstall.cjs"),t=require("vue"),r=require("./src/icon.vue.cjs");const s=e.withInstall(r.default);exports.QxsIcon=s,exports.createQxsIcon=function(e){return e="string"==typeof e?{icon:e}:e,t.defineComponent({setup:()=>()=>t.h(r.default,{...e})})},exports.default=s;
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../packages/components/src/icon/index.ts"],"sourcesContent":["import { withInstall } from '../withInstall'\nimport component from './src/icon.vue'\n\nconst QxsIcon = withInstall(component)\n\nexport {\n QxsIcon,\n}\n\nexport default QxsIcon\n"],"names":["QxsIcon","withInstall","component"],"mappings":"
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../packages/components/src/icon/index.ts"],"sourcesContent":["import { withInstall } from '../withInstall'\nimport { defineComponent } from 'vue'\nimport type { PropsType } from './src/icon.vue'\nimport component from './src/icon.vue'\n\nconst QxsIcon = withInstall(component)\n\n// 返回一个组件对象\nfunction createQxsIcon(opt: PropsType | string) {\n opt = typeof opt === 'string' ? { icon: opt } : opt\n return defineComponent({\n setup() {\n return () => h(component, { ...opt })\n },\n })\n}\n\n\nexport {\n QxsIcon,\n createQxsIcon\n}\n\nexport default QxsIcon\n"],"names":["QxsIcon","withInstall","component","opt","icon","defineComponent","setup","h"],"mappings":"yJAKA,MAAMA,EAAUC,EAAAA,YAAYC,EAAAA,iDAG5B,SAAuBC,GAErB,OADAA,EAAqB,iBAARA,EAAmB,CAAEC,KAAMD,GAAQA,EACzCE,kBAAgB,CACrBC,MAAAA,IACS,IAAMC,EAAAA,EAAEL,UAAW,IAAKC,KAGrC"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("vue"),n=require("../../../node_modules/.pnpm/@iconify_vue@5.0.0_vue@3.5.18_typescript@5.9.2_/node_modules/@iconify/vue/dist/iconify.cjs"),r=require("@qxs-bns/hooks");const t=["xlink:href"];var o=e.defineComponent({name:"QxsIcon",__name:"icon",props:{icon:{type:null,required:!0},runtime:{type:Boolean,required:!1},flip:{type:String,required:!1},rotate:{type:Number,required:!1},color:{type:String,required:!1},size:{type:[String,Number],required:!1}},setup(o){const s=o,l=e.useAttrs(),u=r.useNamespace("icon"),i=e.computed(()=>"object"==typeof s.icon||"function"==typeof s.icon),c=e.computed(()=>i.value?"component":0===s.icon.indexOf("i-")?s.runtime?"svg":"css":s.icon.includes(":")?"svg":"custom"),a=e.computed(()=>{if(i.value)return"";if(0===s.icon.indexOf("i-")){let e=s.icon;return s.runtime&&(e=e.replace("i-","")),e}return s.icon}),f=e.computed(()=>{const e=[];if(""!==s.flip)switch(s.flip){case"horizontal":e.push("rotateY(180deg)");break;case"vertical":e.push("rotateX(180deg)");break;case"both":e.push("rotateX(180deg)"),e.push("rotateY(180deg)")}s.rotate&&e.push(`rotate(${s.rotate%360}deg)`);const{color:n,size:r}=s;return`${n?`color: ${n};`:""}${r?`font-size: ${t=r,t?"number"==typeof t||/^\d+(\.\d+)?$/.test(t)?`${t}px`:t:""};`:""}${e.length?`transform: ${e.join(" ")};`:""}`;var t});return(r,o)=>"component"===e.unref(c)?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.icon),{key:0,class:e.normalizeClass([e.unref(u).b()]),style:e.normalizeStyle(e.unref(f)+(e.unref(l).style||""))},null,8,["class","style"])):"css"===e.unref(c)&&e.unref(a)?(e.openBlock(),e.createElementBlock("i",{key:1,class:e.normalizeClass([e.unref(u).b(),e.unref(a)]),style:e.normalizeStyle(e.unref(f)+(e.unref(l).style||""))},null,6)):"svg"===e.unref(c)&&e.unref(a)?(e.openBlock(),e.createBlock(e.unref(n.Icon),{key:2,icon:e.unref(a),class:e.normalizeClass([e.unref(u).b()]),style:e.normalizeStyle(e.unref(f)+(e.unref(l).style||""))},null,8,["icon","class","style"])):e.unref(a)?(e.openBlock(),e.createElementBlock("svg",{key:3,"aria-hidden":"true",class:e.normalizeClass([e.unref(u).b()]),style:e.normalizeStyle(e.unref(f)+(e.unref(l).style||""))},[e.createElementVNode("use",{"xlink:href":`#icon-${e.unref(a)}`},null,8,t)],6)):e.createCommentVNode("v-if",!0)}});exports.default=o;
|
2
2
|
//# sourceMappingURL=icon.vue.cjs.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icon.vue.cjs","sources":["../../../../../../packages/components/src/icon/src/icon.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Icon } from '@iconify/vue'\nimport { useNamespace } from '@qxs-bns/hooks'\nimport type { Component } from 'vue'\n\ndefineOptions({\n name: 'QxsIcon',\n})\n\nconst props = defineProps<PropsType>()\n\nconst attrs = useAttrs()\n\nconst ns = useNamespace('icon')\n\nexport interface PropsType {\n icon: string | Component\n runtime?: boolean\n flip?: 'horizontal' | 'vertical' | 'both' | ''\n rotate?: number\n color?: string\n size?: string | number\n}\n\nconst isComponentName = computed(() => typeof props.icon === 'object' || typeof props.icon === 'function')\n\nconst outputType = computed(() => {\n if (isComponentName.value) {\n return 'component'\n }\n if ((props.icon as string).indexOf('i-') === 0) {\n return props.runtime ? 'svg' : 'css'\n }\n else if ((props.icon as string).includes(':')) {\n return 'svg'\n }\n else {\n return 'custom'\n }\n})\n\nconst outputName = computed(() => {\n if (isComponentName.value) return ''\n if ((props.icon as string).indexOf('i-') === 0) {\n let conversionName = props.icon as string\n if (props.runtime) {\n conversionName = conversionName.replace('i-', '')\n }\n return conversionName\n }\n else {\n return props.icon as string\n }\n})\n\nconst style = computed(() => {\n const transform = [] as string[]\n if (props.flip !== '') {\n switch (props.flip) {\n case 'horizontal':\n transform.push('rotateY(180deg)')\n break\n case 'vertical':\n transform.push('rotateX(180deg)')\n break\n case 'both':\n transform.push('rotateX(180deg)')\n transform.push('rotateY(180deg)')\n break\n }\n }\n if (props.rotate) {\n transform.push(`rotate(${props.rotate % 360}deg)`)\n }\n const { color, size } = props\n\n // 用正则匹配 size 是不是 number 值,再判断是否有 px 结尾的单位,没有则拼接\n const formatSize = (size: string | number | undefined): string => {\n if (!size) return ''\n\n // 如果是数字,直接添加 px\n if (typeof size === 'number') {\n return `${size}px`\n }\n\n // 如果是纯数字字符串,添加 px\n if (/^\\d+(\\.\\d+)?$/.test(size)) {\n return `${size}px`\n }\n\n // 如果已经有单位(px、em、rem等)或者不是纯数字,直接返回\n return size\n }\n\n return `${color ? `color: ${color};` : ''}${size ? `font-size: ${formatSize(size)};` : ''}${transform.length ? `transform: ${transform.join(' ')};` : ''}`\n})\n</script>\n\n<template>\n <
|
1
|
+
{"version":3,"file":"icon.vue.cjs","sources":["../../../../../../packages/components/src/icon/src/icon.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { Icon } from '@iconify/vue'\nimport { useNamespace } from '@qxs-bns/hooks'\nimport type { Component } from 'vue'\n\ndefineOptions({\n name: 'QxsIcon',\n})\n\nconst props = defineProps<PropsType>()\n\nconst attrs = useAttrs()\n\nconst ns = useNamespace('icon')\n\nexport interface PropsType {\n icon: string | Component\n runtime?: boolean\n flip?: 'horizontal' | 'vertical' | 'both' | ''\n rotate?: number\n color?: string\n size?: string | number\n}\n\nconst isComponentName = computed(() => typeof props.icon === 'object' || typeof props.icon === 'function')\n\nconst outputType = computed(() => {\n if (isComponentName.value) {\n return 'component'\n }\n if ((props.icon as string).indexOf('i-') === 0) {\n return props.runtime ? 'svg' : 'css'\n }\n else if ((props.icon as string).includes(':')) {\n return 'svg'\n }\n else {\n return 'custom'\n }\n})\n\nconst outputName = computed(() => {\n if (isComponentName.value) return ''\n if ((props.icon as string).indexOf('i-') === 0) {\n let conversionName = props.icon as string\n if (props.runtime) {\n conversionName = conversionName.replace('i-', '')\n }\n return conversionName\n }\n else {\n return props.icon as string\n }\n})\n\nconst style = computed(() => {\n const transform = [] as string[]\n if (props.flip !== '') {\n switch (props.flip) {\n case 'horizontal':\n transform.push('rotateY(180deg)')\n break\n case 'vertical':\n transform.push('rotateX(180deg)')\n break\n case 'both':\n transform.push('rotateX(180deg)')\n transform.push('rotateY(180deg)')\n break\n }\n }\n if (props.rotate) {\n transform.push(`rotate(${props.rotate % 360}deg)`)\n }\n const { color, size } = props\n\n // 用正则匹配 size 是不是 number 值,再判断是否有 px 结尾的单位,没有则拼接\n const formatSize = (size: string | number | undefined): string => {\n if (!size) return ''\n\n // 如果是数字,直接添加 px\n if (typeof size === 'number') {\n return `${size}px`\n }\n\n // 如果是纯数字字符串,添加 px\n if (/^\\d+(\\.\\d+)?$/.test(size)) {\n return `${size}px`\n }\n\n // 如果已经有单位(px、em、rem等)或者不是纯数字,直接返回\n return size\n }\n\n return `${color ? `color: ${color};` : ''}${size ? `font-size: ${formatSize(size)};` : ''}${transform.length ? `transform: ${transform.join(' ')};` : ''}`\n})\n</script>\n\n<template>\n <component\n v-if=\"outputType === 'component'\"\n :is=\"icon as any\"\n :class=\"[ns.b()]\"\n :style=\"style + (attrs.style || '')\"\n />\n <i\n v-else-if=\"outputType === 'css' && outputName\"\n :class=\"[ns.b(), outputName]\"\n :style=\"style + (attrs.style || '')\"\n />\n <Icon\n v-else-if=\"outputType === 'svg' && outputName\"\n :icon=\"outputName\"\n :class=\"[ns.b()]\"\n :style=\"style + (attrs.style || '')\"\n />\n <svg\n v-else-if=\"outputName\"\n aria-hidden=\"true\"\n :class=\"[ns.b()]\"\n :style=\"style + (attrs.style || '')\"\n >\n <use :xlink:href=\"`#icon-${outputName}`\" />\n </svg>\n</template>\n"],"names":["props","__props","attrs","useAttrs","ns","useNamespace","isComponentName","computed","icon","outputType","value","indexOf","runtime","includes","outputName","conversionName","replace","style","transform","flip","push","rotate","color","size","test","length","join","_unref","_openBlock","_createBlock","_resolveDynamicComponent","class","_normalizeClass","b","_normalizeStyle","_createElementBlock","Icon","_createElementVNode"],"mappings":"+hBASA,MAAMA,EAAQC,EAERC,EAAQC,EAAAA,WAERC,EAAKC,EAAAA,aAAa,QAWlBC,EAAkBC,WAAS,IAA4B,iBAAfP,EAAMQ,MAA2C,mBAAfR,EAAMQ,MAEhFC,EAAaF,EAAAA,SAAS,IACtBD,EAAgBI,MACX,YAEoC,IAAxCV,EAAMQ,KAAgBG,QAAQ,MAC1BX,EAAMY,QAAU,MAAQ,MAEvBZ,EAAMQ,KAAgBK,SAAS,KAChC,MAGA,UAILC,EAAaP,EAAAA,SAAS,KAC1B,GAAID,EAAgBI,MAAO,MAAO,GAClC,GAA6C,IAAxCV,EAAMQ,KAAgBG,QAAQ,MAAa,CAC9C,IAAII,EAAiBf,EAAMQ,KAI3B,OAHIR,EAAMY,UACRG,EAAiBA,EAAeC,QAAQ,KAAM,KAEzCD,CACT,CAEE,OAAOf,EAAMQ,OAIXS,EAAQV,EAAAA,SAAS,KACrB,MAAMW,EAAY,GAClB,GAAmB,KAAflB,EAAMmB,KACR,OAAQnB,EAAMmB,MACZ,IAAK,aACHD,EAAUE,KAAK,mBACf,MACF,IAAK,WACHF,EAAUE,KAAK,mBACf,MACF,IAAK,OACHF,EAAUE,KAAK,mBACfF,EAAUE,KAAK,mBAIjBpB,EAAMqB,QACRH,EAAUE,KAAK,UAAUpB,EAAMqB,OAAS,WAE1C,MAAMC,MAAEA,EAAAC,KAAOA,GAASvB,EAoBxB,MAAO,GAAGsB,EAAQ,UAAUA,KAAW,KAAKC,EAAO,cAjB/BA,EAiBwDA,EAhBrEA,EAGe,iBAATA,GAKP,gBAAgBC,KAAKD,GAJhB,GAAGA,MASLA,EAbW,MAgBmE,KAAKL,EAAUO,OAAS,cAAcP,EAAUQ,KAAK,QAAU,KAjBnI,IAACH,iBAuBF,cAAVI,EAAAA,MAAAlB,IADRmB,EAAAA,YAAAC,EAAAA,YAKEC,EAAAA,wBAHKtB,EAAAA,MAAI,OACRuB,MAAKC,EAAAA,eAAA,CAAGL,EAAAA,MAAAvB,GAAG6B,MACXhB,MAAKiB,EAAAA,eAAEP,EAAAA,MAAAV,IAASU,EAAAA,MAAAzB,GAAMe,OAAK,yCAGjBU,EAAAA,MAAAlB,IAAwBkB,EAAAA,MAAAb,kBADrCqB,EAAAA,mBAIE,IAAA,OAFCJ,MAAKC,EAAAA,eAAA,CAAGL,EAAAA,MAAAvB,GAAG6B,IAAKN,EAAAA,MAAAb,KAChBG,MAAKiB,EAAAA,eAAEP,EAAAA,MAAAV,IAASU,EAAAA,MAAAzB,GAAMe,OAAK,uBAGjBU,QAAAlB,IAAwBkB,EAAAA,MAAAb,kBADrCe,EAAAA,YAKEF,EAAAA,MAAAS,EAAAA,MAAA,OAHC5B,KAAMmB,EAAAA,MAAAb,GACNiB,MAAKC,EAAAA,eAAA,CAAGL,EAAAA,MAAAvB,GAAG6B,MACXhB,MAAKiB,EAAAA,eAAEP,EAAAA,MAAAV,IAASU,EAAAA,MAAAzB,GAAMe,OAAK,wCAGjBU,QAAAb,kBADbqB,EAAAA,mBAOM,MAAA,OALJ,cAAY,OACXJ,MAAKC,EAAAA,eAAA,CAAGL,EAAAA,MAAAvB,GAAG6B,MACXhB,MAAKiB,EAAAA,eAAEP,EAAAA,MAAAV,IAASU,EAAAA,MAAAzB,GAAMe,OAAK,OAE5BoB,EAAAA,mBAA2C,MAAA,CAArC,sBAAqBV,EAAAA,MAAAb"}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@qxs-bns/components",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.0.
|
4
|
+
"version": "0.0.68",
|
5
5
|
"description": "Vue 3 Component Library",
|
6
6
|
"license": "MIT",
|
7
7
|
"homepage": "https://trry-hub.github.io/qxs-bns/",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"@iconify/vue": "^5.0.0",
|
46
46
|
"@qxs-bns/directives": "0.0.19",
|
47
47
|
"@qxs-bns/hooks": "0.0.5",
|
48
|
-
"@qxs-bns/icons": "0.0.
|
48
|
+
"@qxs-bns/icons": "0.0.7",
|
49
49
|
"@qxs-bns/utils": "0.0.26",
|
50
50
|
"@vueuse/core": "^11.3.0",
|
51
51
|
"echarts": "^5.5.1",
|
package/theme-chalk/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root [data-fixed-calc-width]{position:fixed;right:0;left:0%}:root [data-mode=mobile] [data-fixed-calc-width]{width:100% !important}.qxs-data-chart__table{box-sizing:border-box;display:flex;flex-direction:column}.qxs-data-chart__table .title{display:flex;align-items:center;justify-content:space-between;padding:0 5px;margin-top:2px;margin-bottom:7px;font-family:sans-serif;font-size:14px;font-weight:bolder;color:#464646}.qxs-data-chart__table>div[class*=-table]{position:relative;display:flex;flex:1;flex-direction:column;overflow:hidden;background-color:rgba(0,0,0,0);border-top-left-radius:4px;border-top-right-radius:4px}.qxs-data-chart__table>div[class*=-table] [class*=-table__body-wrapper] [class*=-table__cell]{border-right:0}.qxs-data-chart__table>div[class*=-table] [class*=-table__body-wrapper] [class$=table__empty-text]{line-height:unset}.qxs-data-chart__empty{display:flex;align-items:center;justify-content:center;height:100%}.qxs-data-chart__empty-content{display:flex;flex-direction:column;align-items:center;pointer-events:none;margin-top:-2px}.qxs-data-chart__empty-description{font-size:14px;color:#74767e;margin-left:1px}.qxs-data-chart__wrapper{height:100%}.qxs-fixed-action-bar__actionbar{bottom:0;z-index:10;padding:var(--qxs-fixed-action-bar-actionbar-padding);padding-bottom:calc(env(safe-area-inset-bottom) + var(--qxs-fixed-action-bar-actionbar-padding-bottom));text-align:center;background-color:var(--qxs-bg-color, #fff);box-shadow:0 0 1px 0 var(--qxs-border-color, #f3f3f2);transition:box-shadow .3s,var(--qxs-transition-box-shadow, #f3f3f2)}.qxs-fixed-action-bar__actionbar.is-shadow{box-shadow:0 0 1px 0 var(--qxs-border-color, #f3f3f2)}.qxs-photo-crop-tool__img-box{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;background-color:#fafafa}.qxs-photo-crop-tool__error-message{color:red}.qxs-photo-crop-tool__image{max-width:100%;max-height:100%;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:contain;object-fit:contain;-webkit-user-drag:none}.qxs-photo-crop-tool__crop-tool-box{position:absolute;width:calc(var(--qxs-photo-crop-tool-width)*1px);max-width:100%;height:calc(var(--qxs-photo-crop-tool-height)*1px);max-height:100%;aspect-ratio:var(--qxs-photo-crop-tool-aspect-ratio);overflow:hidden;cursor:move;border:1px dashed #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.4)}.qxs-photo-crop-tool__crop-tool-box>div{position:absolute;z-index:3;width:30%;aspect-ratio:1/1;background-color:rgba(2,2,2,.01);border-radius:50%;transition:all .3s}.qxs-photo-crop-tool__crop-tool-box>div:after{content:"";position:absolute;width:10px;height:10px;top:50%;left:50%;transform:translate3d(-50%, -50%, 0);border-radius:50%;background-color:var(--qxs-color-primary, #3d61e3)}.qxs-photo-crop-tool__crop-tool-box>div:hover,.qxs-photo-crop-tool__crop-tool-box>div:active{background-color:rgba(2,2,2,.5)}.qxs-photo-crop-tool__top-left{top:0;left:0;cursor:nwse-resize;transform:translate3d(-50%, -50%, 0)}.qxs-photo-crop-tool__top-right{top:0;right:0;cursor:nesw-resize;transform:translate3d(50%, -50%, 0)}.qxs-photo-crop-tool__bottom-right{right:0;bottom:0;cursor:nwse-resize;transform:translate3d(50%, 50%, 0)}.qxs-photo-crop-tool__bottom-left{bottom:0;left:0;cursor:nesw-resize;transform:translate3d(-50%, 50%, 0)}.el-image-upload__container{line-height:initial}.el-image-upload__control>.el-upload-list--picture-card{color:#969696}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar]{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar] .el-progress-circle{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important;height:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .is-drag{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger{border:unset;background-color:unset;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot{font-weight:400;font-size:16px}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot i:nth-child(1){margin-bottom:10px}.el-image-upload__more-than-limit .is-drag{display:none}.el-image-upload__container .el-upload__tip-text{font-size:14px;line-height:32px;color:#c8c8c8}.qxs-file-upload__control .is-drag{display:inline-block !important}.qxs-file-upload__control .is-drag [class$=-upload-dragger]{padding:0}.qxs-file-upload__control .is-drag [class$=-upload-dragger] [class$=-icon--upload]{margin-bottom:0;font-size:40px}.qxs-file-upload__control .is-drag [class$=-upload-dragger] [class$=-upload__text]{padding:0 6px;font-size:14px;line-height:1.5}.qxs-file-upload__control .is-drag.is-dragover{border-width:1px}.qxs-file-upload__control .is-drag .slot{width:160px;height:90px}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce{border-width:1px;border-radius:var(--qxs-border-radius-base, 4px)}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header{box-shadow:0 2px 2px -2px rgba(34,47,62,.1),0 4px 4px -4px rgba(34,47,62,.07)}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce .tox-sidebar-wrap{overflow-y:auto}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce .tox-sidebar-wrap .tox-edit-area::before{border-width:1px;border-radius:0}.qxs-tiny-mce-editor .tox-tinymce-aux{z-index:2500 !important}.qxs-subject-list__list-exam .flex{display:flex;align-items:center}.qxs-subject-list__list-exam .flex-items-center{display:flex;align-items:center}.qxs-subject-list__list-exam .flex-justify-between{display:flex;justify-content:space-between}.qxs-subject-list__list-exam .flex-justify-center{display:flex;justify-content:center}.qxs-subject-list__list-exam .flex-justify-end{display:flex;justify-content:flex-end}.qxs-subject-list__list-exam .margin-left-10{margin-left:10px}.qxs-subject-list__list-exam .label{min-width:50px}.qxs-subject-list__list-exam .flex-1{flex:1}.qxs-subject-list__list-exam .subject-list-wrapper{width:100%;margin-bottom:20px}.qxs-subject-list__list-exam .margin-bottom{margin-bottom:20px}.qxs-subject-list__list-exam .auto-line{flex:1;height:1px;margin:0 15px;background-color:#c8c8c8}.qxs-subject-list__list-exam .title{font-size:14px;font-weight:500}.qxs-subject-list__list-exam .rich-text img{max-width:100%}.qxs-subject-single__single-exam .preview-answer{display:flex;flex-direction:column;margin-bottom:10px}.qxs-subject-single__single-exam .flex{display:flex;align-items:center}.qxs-subject-single__single-exam .margin-bottom{margin-bottom:20px}.qxs-subject-single__single-exam .answer-list .answer-item{margin-top:15px}.qxs-subject-single__single-exam .answer-list .answer-item .input{width:300px}.qxs-subject-single__single-exam .answer-list .answer-item .input [class$=-input]{font-weight:bold}.qxs-subject-single__single-exam .answer-list .answer-item .correct{margin:0 10px}.qxs-subject-single__single-exam .answer-list .answer-item .correct:hover{color:#3d61e3;cursor:pointer}.qxs-subject-single__single-exam .answer-list .answer-item .is-correct{color:#67c23a}.qxs-subject-single__single-exam .answer-list .answer-item .icon{margin-left:10px;font-size:18px;color:#a3a3a3;cursor:pointer}.qxs-subject-single__single-exam .answer-list .answer-item .disabled{color:#c0c4cc;cursor:not-allowed}.qxs-subject-single__single-exam .preview .answer-radio{padding-left:10px}.qxs-subject-single__single-exam .preview .answer-radio .radio{margin-top:10px}.qxs-subject-blank-fill__blank-fill-exam .flex{display:flex;align-items:center}.qxs-subject-blank-fill__blank-fill-exam .label{min-width:50px;margin-right:10px}.qxs-subject-blank-fill__blank-fill-exam .margin-bottom{margin-bottom:20px}.qxs-subject-blank-fill__blank-fill-exam .answer-list .answer-item{width:100%;margin-top:15px}.qxs-subject-blank-fill__blank-fill-exam .answer-list .answer-item .answer-tags{flex:1;padding:5px 15px;border:1px solid #eee;border-radius:4px}.qxs-subject-blank-fill__blank-fill-exam .answer-list .answer-item .answer-tags [class$=-tag]{margin-right:10px}.qxs-subject-blank-fill__blank-fill-exam .preview .content{min-height:100px;padding-top:10px;background-color:#fff}.qxs-subject-text-fill__text-fill-exam .flex{display:flex;align-items:center}.qxs-subject-text-fill__text-fill-exam .label{min-width:50px;margin-right:10px}.qxs-subject-text-fill__text-fill-exam .margin-bottom{margin-bottom:20px}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item{width:100%;margin-top:15px}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item .answer-tags{flex:1;padding:5px 15px;border:1px solid #eee;border-radius:4px}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item .operation .icon{margin-left:10px;font-size:16px;color:#a3a3a3;cursor:pointer}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item .operation .disabled{color:#c0c4cc;cursor:not-allowed}.qxs-subject-text-fill__text-fill-exam .preview .content{min-height:100px;margin-top:10px}.qxs-subject-scale__scale-exam .flex{display:flex;align-items:center}.qxs-subject-scale__scale-exam .label{min-width:50px}.qxs-subject-scale__scale-exam .margin-bottom{margin-bottom:20px}.qxs-subject-scale__scale-exam .answer{margin:20px 0}.qxs-subject-scale__scale-exam .answer .answer-list{margin-left:40px}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item{margin-bottom:20px}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item .order{width:16px;margin-right:10px}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item .icon{margin-left:10px;font-size:16px;color:#a3a3a3;cursor:pointer}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item .disabled{color:#c0c4cc;cursor:not-allowed}.qxs-subject-scale__scale-exam .preview .answer-radio .radio-item .qxs-radio-wrapper{margin-inline-end:0}.qxs-subject-layout__layout-exam{padding:10px;font-size:12px;color:#5a5a5a}.qxs-subject-layout__layout-exam .edit{position:relative;padding:20px 10px;padding-bottom:10px;margin-top:20px;background-color:#f6f7fb}.qxs-subject-layout__layout-exam .edit .triangle-up{position:absolute;top:-20px;left:100px;width:0;height:0;border-right:20px solid rgba(0,0,0,0);border-bottom:20px solid #f6f7fb;border-left:20px solid rgba(0,0,0,0)}.qxs-subject-action__action-exam .action{padding:20px 0}.qxs-subject-action__action-exam .active{padding-right:10px;padding-left:10px;background-color:#f6f7fb}.qxs-subject-action__action-exam .btn-margin{margin-right:10px}.qxs-subject-action__action-exam .has-set{display:flex;align-items:center;font-size:12px;color:#bbb}.qxs-subject-action__action-exam .vertical-radio-group{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px}.qxs-subject-action__action-exam .vertical-radio-group ::v-deep(.qxs-radio){display:block;margin-right:0}.qxs-subject-type__type-list .type-item{margin-bottom:20px}.qxs-subject-type__type-list .base-subject{display:flex;flex-wrap:wrap;align-items:center}.qxs-subject-type__type-list .base-subject .item{width:50px;height:22px;margin-top:10px;margin-right:10px;font-size:14px;color:#5a5a5a;text-align:center;cursor:pointer;background:#fafafa}.qxs-subject-type__type-list .base-subject .item:hover{color:#3d61e3;background:rgba(61,97,227,.12)}.qxs-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1em;vertical-align:-2px;color:currentColor;fill:currentColor}.qxs-icon__icon-wrap svg{width:1em !important;height:1em !important;display:block}.qxs-icon__icon-wrap svg *{fill:currentColor !important}.qxs-icon__icon-wrap svg [fill=none]{fill:none !important}
|
1
|
+
:root [data-fixed-calc-width]{position:fixed;right:0;left:0%}:root [data-mode=mobile] [data-fixed-calc-width]{width:100% !important}:where([class*=qxs-]){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:where([class*=qxs-]) *,:where([class*=qxs-]) *::before,:where([class*=qxs-]) *::after{box-sizing:border-box}:where([class*=qxs-]) h1,:where([class*=qxs-]) h2,:where([class*=qxs-]) h3,:where([class*=qxs-]) h4,:where([class*=qxs-]) h5,:where([class*=qxs-]) h6{margin:0;font-size:inherit;font-weight:inherit}:where([class*=qxs-]) p,:where([class*=qxs-]) div,:where([class*=qxs-]) span{margin:0;padding:0}:where([class*=qxs-]) ul,:where([class*=qxs-]) ol,:where([class*=qxs-]) li{margin:0;padding:0;list-style:none}:where([class*=qxs-]) a{color:inherit;text-decoration:none;background-color:rgba(0,0,0,0)}:where([class*=qxs-]) button,:where([class*=qxs-]) input,:where([class*=qxs-]) optgroup,:where([class*=qxs-]) select,:where([class*=qxs-]) textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}:where([class*=qxs-]) button,:where([class*=qxs-]) input{overflow:visible}:where([class*=qxs-]) button,:where([class*=qxs-]) select{text-transform:none}:where([class*=qxs-]) input,:where([class*=qxs-]) textarea,:where([class*=qxs-]) select{border:none;outline:none;background:none}:where([class*=qxs-]) img{border-style:none;max-width:100%;height:auto}:where([class*=qxs-]) table{border-collapse:collapse;border-spacing:0}:where([class*=qxs-]) hr{box-sizing:content-box;height:0;overflow:visible}:where([class*=qxs-]) pre{font-family:monospace,monospace;font-size:1em}:where([class*=qxs-]) code,:where([class*=qxs-]) kbd,:where([class*=qxs-]) samp{font-family:monospace,monospace;font-size:1em}:where([class*=qxs-]) small{font-size:80%}:where([class*=qxs-]) sub,:where([class*=qxs-]) sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}:where([class*=qxs-]) sub{bottom:-0.25em}:where([class*=qxs-]) sup{top:-0.5em}.qxs-data-chart__table{box-sizing:border-box;display:flex;flex-direction:column}.qxs-data-chart__table .title{display:flex;align-items:center;justify-content:space-between;padding:0 5px;margin-top:2px;margin-bottom:7px;font-family:sans-serif;font-size:14px;font-weight:bolder;color:#464646}.qxs-data-chart__table>div[class*=-table]{position:relative;display:flex;flex:1;flex-direction:column;overflow:hidden;background-color:rgba(0,0,0,0);border-top-left-radius:4px;border-top-right-radius:4px}.qxs-data-chart__table>div[class*=-table] [class*=-table__body-wrapper] [class*=-table__cell]{border-right:0}.qxs-data-chart__table>div[class*=-table] [class*=-table__body-wrapper] [class$=table__empty-text]{line-height:unset}.qxs-data-chart__empty{display:flex;align-items:center;justify-content:center;height:100%}.qxs-data-chart__empty-content{display:flex;flex-direction:column;align-items:center;pointer-events:none;margin-top:-2px}.qxs-data-chart__empty-description{font-size:14px;color:#74767e;margin-left:1px}.qxs-data-chart__wrapper{height:100%}.qxs-fixed-action-bar__actionbar{bottom:0;z-index:10;padding:var(--qxs-fixed-action-bar-actionbar-padding);padding-bottom:calc(env(safe-area-inset-bottom) + var(--qxs-fixed-action-bar-actionbar-padding-bottom));text-align:center;background-color:var(--qxs-bg-color, #fff);box-shadow:0 0 1px 0 var(--qxs-border-color, #f3f3f2);transition:box-shadow .3s,var(--qxs-transition-box-shadow, #f3f3f2)}.qxs-fixed-action-bar__actionbar.is-shadow{box-shadow:0 0 1px 0 var(--qxs-border-color, #f3f3f2)}.qxs-photo-crop-tool__img-box{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;background-color:#fafafa}.qxs-photo-crop-tool__error-message{color:red}.qxs-photo-crop-tool__image{max-width:100%;max-height:100%;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;user-select:none;-o-object-fit:contain;object-fit:contain;-webkit-user-drag:none}.qxs-photo-crop-tool__crop-tool-box{position:absolute;width:calc(var(--qxs-photo-crop-tool-width)*1px);max-width:100%;height:calc(var(--qxs-photo-crop-tool-height)*1px);max-height:100%;aspect-ratio:var(--qxs-photo-crop-tool-aspect-ratio);overflow:hidden;cursor:move;border:1px dashed #fff;box-shadow:0 0 0 9999px rgba(0,0,0,.4)}.qxs-photo-crop-tool__crop-tool-box>div{position:absolute;z-index:3;width:30%;aspect-ratio:1/1;background-color:rgba(2,2,2,.01);border-radius:50%;transition:all .3s}.qxs-photo-crop-tool__crop-tool-box>div:after{content:"";position:absolute;width:10px;height:10px;top:50%;left:50%;transform:translate3d(-50%, -50%, 0);border-radius:50%;background-color:var(--qxs-color-primary, #3d61e3)}.qxs-photo-crop-tool__crop-tool-box>div:hover,.qxs-photo-crop-tool__crop-tool-box>div:active{background-color:rgba(2,2,2,.5)}.qxs-photo-crop-tool__top-left{top:0;left:0;cursor:nwse-resize;transform:translate3d(-50%, -50%, 0)}.qxs-photo-crop-tool__top-right{top:0;right:0;cursor:nesw-resize;transform:translate3d(50%, -50%, 0)}.qxs-photo-crop-tool__bottom-right{right:0;bottom:0;cursor:nwse-resize;transform:translate3d(50%, 50%, 0)}.qxs-photo-crop-tool__bottom-left{bottom:0;left:0;cursor:nesw-resize;transform:translate3d(-50%, 50%, 0)}.el-image-upload__container{line-height:initial}.el-image-upload__control>.el-upload-list--picture-card{color:#969696}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar]{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar] .el-progress-circle{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important;height:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .is-drag{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger{border:unset;background-color:unset;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot{font-weight:400;font-size:16px}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot :nth-child(1){margin-bottom:10px}.el-image-upload__more-than-limit .is-drag{display:none}.el-image-upload__container .el-upload__tip-text{font-size:14px;line-height:32px;color:#c8c8c8}.qxs-file-upload__control .is-drag{display:inline-block !important}.qxs-file-upload__control .is-drag [class$=-upload-dragger]{padding:0}.qxs-file-upload__control .is-drag [class$=-upload-dragger] [class$=-icon--upload]{margin-bottom:0;font-size:40px}.qxs-file-upload__control .is-drag [class$=-upload-dragger] [class$=-upload__text]{padding:0 6px;font-size:14px;line-height:1.5}.qxs-file-upload__control .is-drag.is-dragover{border-width:1px}.qxs-file-upload__control .is-drag .slot{width:160px;height:90px}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce{border-width:1px;border-radius:var(--qxs-border-radius-base, 4px)}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce:not(.tox-tinymce-inline) .tox-editor-header{box-shadow:0 2px 2px -2px rgba(34,47,62,.1),0 4px 4px -4px rgba(34,47,62,.07)}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce .tox-sidebar-wrap{overflow-y:auto}.qxs-tiny-mce-editor__tiny-mce .tox-tinymce .tox-sidebar-wrap .tox-edit-area::before{border-width:1px;border-radius:0}.qxs-tiny-mce-editor .tox-tinymce-aux{z-index:2500 !important}.qxs-subject-list__list-exam .flex{display:flex;align-items:center}.qxs-subject-list__list-exam .flex-items-center{display:flex;align-items:center}.qxs-subject-list__list-exam .flex-justify-between{display:flex;justify-content:space-between}.qxs-subject-list__list-exam .flex-justify-center{display:flex;justify-content:center}.qxs-subject-list__list-exam .flex-justify-end{display:flex;justify-content:flex-end}.qxs-subject-list__list-exam .margin-left-10{margin-left:10px}.qxs-subject-list__list-exam .label{min-width:50px}.qxs-subject-list__list-exam .flex-1{flex:1}.qxs-subject-list__list-exam .subject-list-wrapper{width:100%;margin-bottom:20px}.qxs-subject-list__list-exam .margin-bottom{margin-bottom:20px}.qxs-subject-list__list-exam .auto-line{flex:1;height:1px;margin:0 15px;background-color:#c8c8c8}.qxs-subject-list__list-exam .title{font-size:14px;font-weight:500}.qxs-subject-list__list-exam .rich-text img{max-width:100%}.qxs-subject-single__single-exam .preview-answer{display:flex;flex-direction:column;margin-bottom:10px}.qxs-subject-single__single-exam .flex{display:flex;align-items:center}.qxs-subject-single__single-exam .margin-bottom{margin-bottom:20px}.qxs-subject-single__single-exam .answer-list .answer-item{margin-top:15px}.qxs-subject-single__single-exam .answer-list .answer-item .input{width:300px}.qxs-subject-single__single-exam .answer-list .answer-item .input [class$=-input]{font-weight:bold}.qxs-subject-single__single-exam .answer-list .answer-item .correct{margin:0 10px}.qxs-subject-single__single-exam .answer-list .answer-item .correct:hover{color:#3d61e3;cursor:pointer}.qxs-subject-single__single-exam .answer-list .answer-item .is-correct{color:#67c23a}.qxs-subject-single__single-exam .answer-list .answer-item .icon{margin-left:10px;font-size:18px;color:#a3a3a3;cursor:pointer}.qxs-subject-single__single-exam .answer-list .answer-item .disabled{color:#c0c4cc;cursor:not-allowed}.qxs-subject-single__single-exam .preview .answer-radio{padding-left:10px}.qxs-subject-single__single-exam .preview .answer-radio .radio{margin-top:10px}.qxs-subject-blank-fill__blank-fill-exam .flex{display:flex;align-items:center}.qxs-subject-blank-fill__blank-fill-exam .label{min-width:50px;margin-right:10px}.qxs-subject-blank-fill__blank-fill-exam .margin-bottom{margin-bottom:20px}.qxs-subject-blank-fill__blank-fill-exam .answer-list .answer-item{width:100%;margin-top:15px}.qxs-subject-blank-fill__blank-fill-exam .answer-list .answer-item .answer-tags{flex:1;padding:5px 15px;border:1px solid #eee;border-radius:4px}.qxs-subject-blank-fill__blank-fill-exam .answer-list .answer-item .answer-tags [class$=-tag]{margin-right:10px}.qxs-subject-blank-fill__blank-fill-exam .preview .content{min-height:100px;padding-top:10px;background-color:#fff}.qxs-subject-text-fill__text-fill-exam .flex{display:flex;align-items:center}.qxs-subject-text-fill__text-fill-exam .label{min-width:50px;margin-right:10px}.qxs-subject-text-fill__text-fill-exam .margin-bottom{margin-bottom:20px}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item{width:100%;margin-top:15px}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item .answer-tags{flex:1;padding:5px 15px;border:1px solid #eee;border-radius:4px}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item .operation .icon{margin-left:10px;font-size:16px;color:#a3a3a3;cursor:pointer}.qxs-subject-text-fill__text-fill-exam .answer-list .answer-item .operation .disabled{color:#c0c4cc;cursor:not-allowed}.qxs-subject-text-fill__text-fill-exam .preview .content{min-height:100px;margin-top:10px}.qxs-subject-scale__scale-exam .flex{display:flex;align-items:center}.qxs-subject-scale__scale-exam .label{min-width:50px}.qxs-subject-scale__scale-exam .margin-bottom{margin-bottom:20px}.qxs-subject-scale__scale-exam .answer{margin:20px 0}.qxs-subject-scale__scale-exam .answer .answer-list{margin-left:40px}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item{margin-bottom:20px}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item .order{width:16px;margin-right:10px}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item .icon{margin-left:10px;font-size:16px;color:#a3a3a3;cursor:pointer}.qxs-subject-scale__scale-exam .answer .answer-list .answer-item .disabled{color:#c0c4cc;cursor:not-allowed}.qxs-subject-scale__scale-exam .preview .answer-radio .radio-item .qxs-radio-wrapper{margin-inline-end:0}.qxs-subject-layout__layout-exam{padding:10px;font-size:12px;color:#5a5a5a}.qxs-subject-layout__layout-exam .edit{position:relative;padding:20px 10px;padding-bottom:10px;margin-top:20px;background-color:#f6f7fb}.qxs-subject-layout__layout-exam .edit .triangle-up{position:absolute;top:-20px;left:100px;width:0;height:0;border-right:20px solid rgba(0,0,0,0);border-bottom:20px solid #f6f7fb;border-left:20px solid rgba(0,0,0,0)}.qxs-subject-action__action-exam .action{padding:20px 0}.qxs-subject-action__action-exam .active{padding-right:10px;padding-left:10px;background-color:#f6f7fb}.qxs-subject-action__action-exam .btn-margin{margin-right:10px}.qxs-subject-action__action-exam .has-set{display:flex;align-items:center;font-size:12px;color:#bbb}.qxs-subject-action__action-exam .vertical-radio-group{display:flex;flex-direction:column;align-items:flex-start;margin-left:20px}.qxs-subject-action__action-exam .vertical-radio-group ::v-deep(.qxs-radio){display:block;margin-right:0}.qxs-subject-type__type-list .type-item{margin-bottom:20px}.qxs-subject-type__type-list .base-subject{display:flex;flex-wrap:wrap;align-items:center}.qxs-subject-type__type-list .base-subject .item{width:50px;height:22px;margin-top:10px;margin-right:10px;font-size:14px;color:#5a5a5a;text-align:center;cursor:pointer;background:#fafafa}.qxs-subject-type__type-list .base-subject .item:hover{color:#3d61e3;background:rgba(61,97,227,.12)}.qxs-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1em;vertical-align:-2px;color:currentColor;fill:currentColor}.qxs-icon.qxs-icon svg{width:1em !important;height:1em !important;display:block}.qxs-icon.qxs-icon svg *{fill:currentColor !important}.qxs-icon.qxs-icon svg [fill=none]{fill:none !important}
|
package/theme-chalk/index.scss
CHANGED
package/theme-chalk/src/icon.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
.qxs-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1em;vertical-align:-2px;color:currentColor;fill:currentColor}.qxs-
|
1
|
+
.qxs-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:1em;height:1em;line-height:1em;vertical-align:-2px;color:currentColor;fill:currentColor}.qxs-icon.qxs-icon svg{width:1em !important;height:1em !important;display:block}.qxs-icon.qxs-icon svg *{fill:currentColor !important}.qxs-icon.qxs-icon svg [fill=none]{fill:none !important}
|
@@ -12,17 +12,18 @@
|
|
12
12
|
color: currentColor;
|
13
13
|
fill: currentColor;
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
15
|
+
// 直接应用到图标元素上的样式
|
16
|
+
&.qxs-icon svg {
|
17
|
+
width: 1em !important;
|
18
|
+
height: 1em !important;
|
19
|
+
display: block;
|
20
|
+
}
|
21
|
+
|
22
|
+
&.qxs-icon svg * {
|
23
|
+
fill: currentColor !important;
|
24
|
+
}
|
25
|
+
|
26
|
+
&.qxs-icon svg [fill="none"] {
|
27
|
+
fill: none !important;
|
27
28
|
}
|
28
29
|
}
|
@@ -1 +1 @@
|
|
1
|
-
.el-image-upload__container{line-height:initial}.el-image-upload__control>.el-upload-list--picture-card{color:#969696}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar]{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar] .el-progress-circle{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important;height:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .is-drag{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger{border:unset;background-color:unset;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot{font-weight:400;font-size:16px}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot
|
1
|
+
.el-image-upload__container{line-height:initial}.el-image-upload__control>.el-upload-list--picture-card{color:#969696}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar]{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .el-upload-list__item [role=progressbar] .el-progress-circle{width:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important;height:calc(min(var(--el-image-upload-width),var(--el-image-upload-height))/4*3) !important}.el-image-upload__control>.el-upload-list--picture-card .is-drag{width:var(--el-image-upload-width);height:var(--el-image-upload-height)}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger{border:unset;background-color:unset;width:100%;height:100%;display:flex;justify-content:center;align-items:center}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot{font-weight:400;font-size:16px}.el-image-upload__control>.el-upload-list--picture-card .is-drag .el-upload-dragger .image-slot :nth-child(1){margin-bottom:10px}.el-image-upload__more-than-limit .is-drag{display:none}.el-image-upload__container .el-upload__tip-text{font-size:14px;line-height:32px;color:#c8c8c8}
|
@@ -1,5 +1,6 @@
|
|
1
|
-
@use 'element-plus/theme-chalk/src/mixins/config' as *;
|
2
1
|
@use 'element-plus/theme-chalk/src/mixins/mixins' as *;
|
2
|
+
@use 'element-plus/theme-chalk/src/mixins/var' as *;
|
3
|
+
@use 'element-plus/theme-chalk/src/common/var' as *;
|
3
4
|
|
4
5
|
@include b(image-upload) {
|
5
6
|
|
@@ -38,7 +39,7 @@
|
|
38
39
|
.image-slot {
|
39
40
|
font-weight: 400;
|
40
41
|
font-size: 16px;
|
41
|
-
|
42
|
+
:nth-child(1) {
|
42
43
|
margin-bottom: 10px;
|
43
44
|
}
|
44
45
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
:where([class*=qxs-]){font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}:where([class*=qxs-]) *,:where([class*=qxs-]) *::before,:where([class*=qxs-]) *::after{box-sizing:border-box}:where([class*=qxs-]) h1,:where([class*=qxs-]) h2,:where([class*=qxs-]) h3,:where([class*=qxs-]) h4,:where([class*=qxs-]) h5,:where([class*=qxs-]) h6{margin:0;font-size:inherit;font-weight:inherit}:where([class*=qxs-]) p,:where([class*=qxs-]) div,:where([class*=qxs-]) span{margin:0;padding:0}:where([class*=qxs-]) ul,:where([class*=qxs-]) ol,:where([class*=qxs-]) li{margin:0;padding:0;list-style:none}:where([class*=qxs-]) a{color:inherit;text-decoration:none;background-color:rgba(0,0,0,0)}:where([class*=qxs-]) button,:where([class*=qxs-]) input,:where([class*=qxs-]) optgroup,:where([class*=qxs-]) select,:where([class*=qxs-]) textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}:where([class*=qxs-]) button,:where([class*=qxs-]) input{overflow:visible}:where([class*=qxs-]) button,:where([class*=qxs-]) select{text-transform:none}:where([class*=qxs-]) input,:where([class*=qxs-]) textarea,:where([class*=qxs-]) select{border:none;outline:none;background:none}:where([class*=qxs-]) img{border-style:none;max-width:100%;height:auto}:where([class*=qxs-]) table{border-collapse:collapse;border-spacing:0}:where([class*=qxs-]) hr{box-sizing:content-box;height:0;overflow:visible}:where([class*=qxs-]) pre{font-family:monospace,monospace;font-size:1em}:where([class*=qxs-]) code,:where([class*=qxs-]) kbd,:where([class*=qxs-]) samp{font-family:monospace,monospace;font-size:1em}:where([class*=qxs-]) small{font-size:80%}:where([class*=qxs-]) sub,:where([class*=qxs-]) sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}:where([class*=qxs-]) sub{bottom:-0.25em}:where([class*=qxs-]) sup{top:-0.5em}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
@use "sass:meta";
|
2
|
+
@use "./mixins/config" as *;
|
3
|
+
|
4
|
+
// 定义 normalize 样式 mixin,避免全局污染
|
5
|
+
@mixin component-normalize {
|
6
|
+
// 字体和文本重置(放在嵌套规则之前)
|
7
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
|
8
|
+
line-height: 1.15;
|
9
|
+
-webkit-text-size-adjust: 100%;
|
10
|
+
-webkit-tap-highlight-color: transparent;
|
11
|
+
|
12
|
+
// 基础盒模型重置
|
13
|
+
*, *::before, *::after {
|
14
|
+
box-sizing: border-box;
|
15
|
+
}
|
16
|
+
|
17
|
+
// 常见元素重置
|
18
|
+
h1, h2, h3, h4, h5, h6 {
|
19
|
+
margin: 0;
|
20
|
+
font-size: inherit;
|
21
|
+
font-weight: inherit;
|
22
|
+
}
|
23
|
+
|
24
|
+
p, div, span {
|
25
|
+
margin: 0;
|
26
|
+
padding: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
ul, ol, li {
|
30
|
+
margin: 0;
|
31
|
+
padding: 0;
|
32
|
+
list-style: none;
|
33
|
+
}
|
34
|
+
|
35
|
+
a {
|
36
|
+
color: inherit;
|
37
|
+
text-decoration: none;
|
38
|
+
background-color: transparent;
|
39
|
+
}
|
40
|
+
|
41
|
+
button, input, optgroup, select, textarea {
|
42
|
+
font-family: inherit;
|
43
|
+
font-size: 100%;
|
44
|
+
line-height: 1.15;
|
45
|
+
margin: 0;
|
46
|
+
}
|
47
|
+
|
48
|
+
button, input {
|
49
|
+
overflow: visible;
|
50
|
+
}
|
51
|
+
|
52
|
+
button, select {
|
53
|
+
text-transform: none;
|
54
|
+
}
|
55
|
+
|
56
|
+
// 表单元素重置
|
57
|
+
input, textarea, select {
|
58
|
+
border: none;
|
59
|
+
outline: none;
|
60
|
+
background: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
// 图片重置
|
64
|
+
img {
|
65
|
+
border-style: none;
|
66
|
+
max-width: 100%;
|
67
|
+
height: auto;
|
68
|
+
}
|
69
|
+
|
70
|
+
// 表格重置
|
71
|
+
table {
|
72
|
+
border-collapse: collapse;
|
73
|
+
border-spacing: 0;
|
74
|
+
}
|
75
|
+
|
76
|
+
// 其他常用重置
|
77
|
+
hr {
|
78
|
+
box-sizing: content-box;
|
79
|
+
height: 0;
|
80
|
+
overflow: visible;
|
81
|
+
}
|
82
|
+
|
83
|
+
pre {
|
84
|
+
font-family: monospace, monospace;
|
85
|
+
font-size: 1em;
|
86
|
+
}
|
87
|
+
|
88
|
+
code, kbd, samp {
|
89
|
+
font-family: monospace, monospace;
|
90
|
+
font-size: 1em;
|
91
|
+
}
|
92
|
+
|
93
|
+
small {
|
94
|
+
font-size: 80%;
|
95
|
+
}
|
96
|
+
|
97
|
+
sub, sup {
|
98
|
+
font-size: 75%;
|
99
|
+
line-height: 0;
|
100
|
+
position: relative;
|
101
|
+
vertical-align: baseline;
|
102
|
+
}
|
103
|
+
|
104
|
+
sub {
|
105
|
+
bottom: -0.25em;
|
106
|
+
}
|
107
|
+
|
108
|
+
sup {
|
109
|
+
top: -0.5em;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
// 为所有 qxs 组件应用 normalize 样式
|
114
|
+
// 使用 :where() 降低优先级,确保页面自定义样式可以覆盖
|
115
|
+
:where([class*="#{$namespace}#{$common-separator}"]) {
|
116
|
+
@include component-normalize;
|
117
|
+
}
|
@@ -1,4 +1,8 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
import type { PropsType } from './src/icon.vue';
|
2
|
+
declare const QxsIcon: import("../withInstall").SFCWithInstall<import("vue").DefineComponent<PropsType, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<PropsType> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>> & Record<string, any>;
|
3
|
+
declare function createQxsIcon(opt: PropsType | string): import("vue").DefineComponent<{}, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
4
|
+
[key: string]: any;
|
5
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
6
|
+
export { QxsIcon, createQxsIcon };
|
3
7
|
export default QxsIcon;
|
4
8
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/components/src/icon/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/components/src/icon/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAG/C,QAAA,MAAM,OAAO,6VAAyB,CAAA;AAGtC,iBAAS,aAAa,CAAC,GAAG,EAAE,SAAS,GAAG,MAAM;;4OAO7C;AAGD,OAAO,EACL,OAAO,EACP,aAAa,EACd,CAAA;AAED,eAAe,OAAO,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"icon.vue.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/icon/src/icon.vue"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"icon.vue.d.ts","sourceRoot":"","sources":["../../../../../../packages/components/src/icon/src/icon.vue"],"names":[],"mappings":"AAiIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,KAAK,CAAA;AAapC,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,IAAI,CAAC,EAAE,YAAY,GAAG,UAAU,GAAG,MAAM,GAAG,EAAE,CAAA;IAC9C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CACvB;;AA8JD,wBAMG"}
|