@hoenergy/hoenergy-template-pc 1.1.19 → 1.1.21
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/index.js +17 -17
- package/dist/index.mjs +5925 -5917
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/components/globalConfig/ConfigProvider/FormaxConfigProvider/index.vue +28 -17
- package/src/components/globalConfig/ConfigProvider/FormaxConfigProvider/preview.vue +1 -1
- package/src/index.ts +1 -0
- package/src/style.css +4 -0
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.n-tree .n-tree-node-indent.n-tree-node-indent--show-line:before{border-left:1px dashed #D5D7D8!important;transform:translate(-50)!important;top:-1px!important}.n-tree .n-tree-node-indent.n-tree-node-indent--show-line.n-tree-node-indent--is-leaf:after{border-bottom:1px dashed #D5D7D8!important;transform:translateY(-50%)}.cursor-move{cursor:move}.n-dialog__title{padding-right:0!important}.n-card>.n-card__action{background:var(--n-color)}.n-card>.n-card__action .n-space{justify-content:flex-end!important}#basic-modal{box-sizing:border-box}#basic-modal .n-card-header{background:var(--n-color);height:48px}#basic-modal .n-card__content{padding-top:10px;background:var(--n-color)}#basic-modal .n-card__action{background:var(--n-color)}svg[data-v-d7ffc5d5]{color:currentColor}[data-v-d7ffc5d5] svg{width:100%;height:100%;display:block}.table-toolbar-inner-popover-title{padding:3px 0}.table-toolbar-right-icon{margin-left:4px;font-size:16px;color:var(--text-color);cursor:pointer}.table-toolbar-right-icon :hover{color:#1890ff}.table-toolbar-inner-checkbox{display:flex;align-items:center;padding:10px 14px}.table-toolbar-inner-checkbox:hover{background:rgba(19,180,151,.3)}.table-toolbar-inner-checkbox .drag-icon{display:inline-flex;margin-right:8px;cursor:move}.table-toolbar-inner-checkbox .drag-icon-hidden{visibility:hidden;cursor:default}.table-toolbar-inner-checkbox .ant-checkbox-wrapper{flex:1}.table-toolbar-inner-checkbox .ant-checkbox-wrapper:hover{color:#1890ff!important}.table-toolbar-inner-checkbox-dark:hover{background:hsla(0,0%,100%,.08)}.toolbar-popover .n-popover__content{padding:0}.table-toolbar[data-v-a17eb44a]{display:flex;justify-content:space-between}.table-toolbar-left[data-v-a17eb44a]{display:flex;align-items:center;justify-content:flex-start;flex:1}.table-toolbar-left-title[data-v-a17eb44a]{display:flex;align-items:center;justify-content:flex-start;font-size:16px;font-weight:600}.table-toolbar-right[data-v-a17eb44a]{display:flex;justify-content:flex-end;flex:1}.table-toolbar-right-icon[data-v-a17eb44a]{margin-left:4px;font-size:16px;cursor:pointer;color:var(--text-color)}.table-toolbar-right-icon[data-v-a17eb44a] :hover{color:#1890ff}[data-v-a17eb44a] .n-data-table-base-table{height:95%!important}.table-toolbar-inner-popover-title[data-v-a17eb44a]{padding:2px 0}.s-table[data-v-a17eb44a]{border-radius:8px 8px 0 0;transition:all .4s}.s-table[data-v-a17eb44a] .n-data-table .n-data-table-th .n-data-table-resize-button:after{background-color:#6e7d8b}.s-table[data-v-a17eb44a] .n-data-table .n-data-table-th .n-data-table-resize-button:hover:after{background-color:var(--n-th-icon-color-active)!important}.isFull[data-v-71b5cafa]{width:100%;justify-content:flex-start}.unfold-icon[data-v-71b5cafa]{display:flex;align-items:center;height:100%;margin-left:-3px}.echart[data-v-15e0ee6d]{width:100%;height:100%}.chart-card-header[data-v-a7bd1a40]{display:flex;align-items:center;gap:10px}.chart-card-header[data-v-a7bd1a40] .n-form-item-feedback-wrapper{display:none}.chart-card-content[data-v-a7bd1a40]{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:nowrap;height:100%;min-height:200px}.chart-card-content-item[data-v-a7bd1a40]{height:100%;width:100%;flex:1}.file-viewer-container[data-v-fc478b1b]{display:flex;flex-direction:column;background-color:#f5f5f5}[data-v-fc478b1b] .n-spin-content,[data-v-fc478b1b] .n-spin-container{height:100%!important}.file-viewer-wrapper[data-v-fc478b1b]{flex:1;height:100%;width:100%;display:flex;flex-direction:column}.file-viewer-content[data-v-fc478b1b]{flex:1;height:100%;width:100%;overflow:auto}.file-viewer-unsupported[data-v-fc478b1b],.file-viewer-loading[data-v-fc478b1b],.file-viewer-error[data-v-fc478b1b]{display:flex;justify-content:center;align-items:center;height:100%;color:#999;padding:20px;text-align:center}.file-viewer-error[data-v-fc478b1b]{color:#ff4d4f;flex-direction:column;gap:8px}[data-v-e78fd1d9] .n-input-wrapper{padding-right:0!important}[data-v-e78fd1d9] .n-input__suffix{border:1px solid #d9d9d9}.formax-calendar[data-v-5d7e2793]{--formax-calendar-primary: #0f67fe;--formax-calendar-weekend: #fa4d5e}.formax-calendar__header[data-v-5d7e2793]{padding:8px 0;min-height:40px}.formax-calendar__header-inner[data-v-5d7e2793]{width:100%}.formax-calendar__header-range[data-v-5d7e2793]{display:flex;align-items:center;gap:8px}.formax-calendar__year-select[data-v-5d7e2793]{width:96px}.formax-calendar__month-select[data-v-5d7e2793]{width:80px}.formax-calendar__month-header[data-v-5d7e2793]{margin-bottom:8px}.formax-calendar__title[data-v-5d7e2793]{font-weight:600;min-width:72px;text-align:center}.formax-calendar__month-grid[data-v-5d7e2793]{gap:0;padding:0}.formax-calendar__month-cell[data-v-5d7e2793]{width:16.6666666667%;padding:8px;box-sizing:border-box;border:1px solid var(--n-border-color, #e0e0e0);margin:-1px 0 0 -1px;display:flex;flex-direction:column;min-height:80px;cursor:pointer;transition:background-color .2s;position:relative;background-color:var(--formax-calendar-cell-bg, transparent)}.formax-calendar__month-cell[data-v-5d7e2793]:hover{background-color:var(--formax-calendar-cell-hover-bg, var(--n-cell-color-hover, rgba(15, 103, 254, .08)))}.formax-calendar__month-cell--selected[data-v-5d7e2793]{background-color:var(--formax-calendar-cell-selected-bg, transparent)}.formax-calendar__month-cell-title[data-v-5d7e2793]{background-color:var(--formax-calendar-primary);color:#fff;margin:-8px -8px 8px;padding:6px 8px;font-size:14px;line-height:1.4;text-align:center}.formax-calendar__month-cell-body[data-v-5d7e2793]{flex:1;overflow:auto;font-size:12px;color:var(--formax-calendar-cell-text-color, inherit)}.formax-calendar__month-cell-bar[data-v-5d7e2793]{position:absolute;left:0;right:0;bottom:0;height:3px;background-color:transparent;transform-origin:center;transition:background-color .3s var(--n-bezier)}.formax-calendar__month-cell--selected .formax-calendar__month-cell-bar[data-v-5d7e2793]{background-color:var(--v5168e06c)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell{background-color:var(--formax-calendar-cell-bg, transparent);color:var(--formax-calendar-cell-text-color, inherit)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:hover{background-color:var(--formax-calendar-cell-hover-bg, var(--n-cell-color-hover, rgba(15, 103, 254, .08)))}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell--selected{background-color:var(--formax-calendar-cell-selected-bg, transparent);color:var(--formax-calendar-cell-text-color, #fff)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-header__extra{display:none!important}[data-v-5d7e2793] .formax-calendar__day .n-calendar-header__title{width:100%}[data-v-5d7e2793] .formax-calendar__day .n-calendar-header{padding:0 0 32px}[data-v-5d7e2793] .formax-calendar__day .n-calendar-date__day{position:absolute;left:-10px;right:0;margin:auto;top:-40px;text-align:center;font-size:18px;line-height:30px;width:calc(100% + 20px);color:#fff!important}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:nth-child(-n+5) .n-calendar-date .n-calendar-date__day{background-color:var(--formax-calendar-primary)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:nth-child(6) .n-calendar-date .n-calendar-date__day,[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:nth-child(7) .n-calendar-date .n-calendar-date__day{background-color:var(--formax-calendar-weekend)}[data-v-5d7e2793] .n-radio-group .n-radio-button.n-radio-button--checked{background-color:var(--formax-calendar-primary);color:#fff}.formax-title__icon[data-v-7fa0281d]{-o-object-fit:contain;object-fit:contain}.formax-title__text[data-v-7fa0281d]{color:var(--formax-title-text-color);font-size:var(--formax-title-text-size);font-weight:var(--formax-title-text-weight)}.formax-title__text--required-left[data-v-7fa0281d]:before{content:"*";color:#ff4747;margin-right:4px}.formax-title__text--required-right[data-v-7fa0281d]:after{content:"*";color:#ff4747;margin-left:4px}.formax-title--tiny[data-v-7fa0281d]{font-size:12px}.formax-title--tiny .formax-title__icon[data-v-7fa0281d]{width:12px;height:12px}.formax-title--small[data-v-7fa0281d]{font-size:14px}.formax-title--small .formax-title__icon[data-v-7fa0281d]{width:16px;height:16px}.formax-title--medium[data-v-7fa0281d]{font-size:16px}.formax-title--medium .formax-title__icon[data-v-7fa0281d]{width:20px;height:20px}.formax-title--large[data-v-7fa0281d]{font-size:18px}.formax-title--large .formax-title__icon[data-v-7fa0281d]{width:24px;height:24px}.formax-loading__overlay-desc[data-v-d1079e33]{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:120px}.formax-loading__progress[data-v-d1079e33]{width:100%;min-width:150px}.formax-loading__overlay-text[data-v-d1079e33]{font-size:14px;color:var(--n-text-color, inherit)}.formax-info-card[data-v-9bd56878]{position:relative;display:flex;align-items:center;padding:10px 16px;border-radius:var(--f-border-radius, 8px);box-sizing:border-box;cursor:default;box-shadow:var(--box-shadow-1);background-color:var(--f-color);color:var(--text-color-base);overflow:hidden}.formax-info-card-bordered[data-v-9bd56878]{border:1px solid var(--border-color)}.fic-left[data-v-9bd56878]{flex:0 0 auto;margin-right:12px;display:flex;align-items:center;justify-content:center}.fic-icon-default[data-v-9bd56878]{width:var(--f-icon-size, 34px);height:var(--f-icon-size, 34px);border-radius:50%;border:1px solid rgba(0,200,255,.9);display:flex;align-items:center;justify-content:center;background:var(--avatar-color);box-shadow:0 0 12px #00c8ff99}.fic-icon-default span[data-v-9bd56878]{font-size:16px;font-weight:600}.fic-right[data-v-9bd56878]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-width:0}.fic-title[data-v-9bd56878]{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}.fic-content[data-v-9bd56878]{font-size:20px;line-height:1;font-weight:600}
|
|
1
|
+
@charset "UTF-8";*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.mx-1{margin-left:.25rem;margin-right:.25rem}.mb-2{margin-bottom:.5rem}.mb-\[16px\]{margin-bottom:16px}.ml-1{margin-left:.25rem}.ml-auto{margin-left:auto}.mr-4{margin-right:1rem}.mt-1{margin-top:.25rem}.mt-4{margin-top:1rem}.mt-\[2px\]{margin-top:2px}.block{display:block}.inline{display:inline}.flex{display:flex}.\!table{display:table!important}.table{display:table}.grid{display:grid}.hidden{display:none}.h-24{height:6rem}.h-auto{height:auto}.h-full{height:100%}.min-h-0{min-height:0px}.w-72{width:18rem}.w-full{width:100%}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.resize{resize:both}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.overflow-auto{overflow:auto}.border{border-width:1px}.border-l{border-left-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.bg-gray-50\/60{background-color:#f9fafb99}.p-0{padding:0}.pb-\[16px\]{padding-bottom:16px}.pl-4{padding-left:1rem}.pr-4{padding-right:1rem}.text-center{text-align:center}.text-\[14px\]{font-size:14px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-300{transition-duration:.3s}.n-tree .n-tree-node-indent.n-tree-node-indent--show-line:before{border-left:1px dashed #D5D7D8!important;transform:translate(-50)!important;top:-1px!important}.n-tree .n-tree-node-indent.n-tree-node-indent--show-line.n-tree-node-indent--is-leaf:after{border-bottom:1px dashed #D5D7D8!important;transform:translateY(-50%)}.cursor-move{cursor:move}.n-dialog__title{padding-right:0!important}.n-card>.n-card__action{background:var(--n-color)}.n-card>.n-card__action .n-space{justify-content:flex-end!important}#basic-modal{box-sizing:border-box}#basic-modal .n-card-header{background:var(--n-color);height:48px}#basic-modal .n-card__content{padding-top:10px;background:var(--n-color)}#basic-modal .n-card__action{background:var(--n-color)}svg[data-v-d7ffc5d5]{color:currentColor}[data-v-d7ffc5d5] svg{width:100%;height:100%;display:block}.table-toolbar-inner-popover-title{padding:3px 0}.table-toolbar-right-icon{margin-left:4px;font-size:16px;color:var(--text-color);cursor:pointer}.table-toolbar-right-icon :hover{color:#1890ff}.table-toolbar-inner-checkbox{display:flex;align-items:center;padding:10px 14px}.table-toolbar-inner-checkbox:hover{background:rgba(19,180,151,.3)}.table-toolbar-inner-checkbox .drag-icon{display:inline-flex;margin-right:8px;cursor:move}.table-toolbar-inner-checkbox .drag-icon-hidden{visibility:hidden;cursor:default}.table-toolbar-inner-checkbox .ant-checkbox-wrapper{flex:1}.table-toolbar-inner-checkbox .ant-checkbox-wrapper:hover{color:#1890ff!important}.table-toolbar-inner-checkbox-dark:hover{background:hsla(0,0%,100%,.08)}.toolbar-popover .n-popover__content{padding:0}.table-toolbar[data-v-a17eb44a]{display:flex;justify-content:space-between}.table-toolbar-left[data-v-a17eb44a]{display:flex;align-items:center;justify-content:flex-start;flex:1}.table-toolbar-left-title[data-v-a17eb44a]{display:flex;align-items:center;justify-content:flex-start;font-size:16px;font-weight:600}.table-toolbar-right[data-v-a17eb44a]{display:flex;justify-content:flex-end;flex:1}.table-toolbar-right-icon[data-v-a17eb44a]{margin-left:4px;font-size:16px;cursor:pointer;color:var(--text-color)}.table-toolbar-right-icon[data-v-a17eb44a] :hover{color:#1890ff}[data-v-a17eb44a] .n-data-table-base-table{height:95%!important}.table-toolbar-inner-popover-title[data-v-a17eb44a]{padding:2px 0}.s-table[data-v-a17eb44a]{border-radius:8px 8px 0 0;transition:all .4s}.s-table[data-v-a17eb44a] .n-data-table .n-data-table-th .n-data-table-resize-button:after{background-color:#6e7d8b}.s-table[data-v-a17eb44a] .n-data-table .n-data-table-th .n-data-table-resize-button:hover:after{background-color:var(--n-th-icon-color-active)!important}.isFull[data-v-71b5cafa]{width:100%;justify-content:flex-start}.unfold-icon[data-v-71b5cafa]{display:flex;align-items:center;height:100%;margin-left:-3px}.echart[data-v-15e0ee6d]{width:100%;height:100%}.chart-card-header[data-v-a7bd1a40]{display:flex;align-items:center;gap:10px}.chart-card-header[data-v-a7bd1a40] .n-form-item-feedback-wrapper{display:none}.chart-card-content[data-v-a7bd1a40]{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:nowrap;height:100%;min-height:200px}.chart-card-content-item[data-v-a7bd1a40]{height:100%;width:100%;flex:1}.file-viewer-container[data-v-fc478b1b]{display:flex;flex-direction:column;background-color:#f5f5f5}[data-v-fc478b1b] .n-spin-content,[data-v-fc478b1b] .n-spin-container{height:100%!important}.file-viewer-wrapper[data-v-fc478b1b]{flex:1;height:100%;width:100%;display:flex;flex-direction:column}.file-viewer-content[data-v-fc478b1b]{flex:1;height:100%;width:100%;overflow:auto}.file-viewer-unsupported[data-v-fc478b1b],.file-viewer-loading[data-v-fc478b1b],.file-viewer-error[data-v-fc478b1b]{display:flex;justify-content:center;align-items:center;height:100%;color:#999;padding:20px;text-align:center}.file-viewer-error[data-v-fc478b1b]{color:#ff4d4f;flex-direction:column;gap:8px}[data-v-e78fd1d9] .n-input-wrapper{padding-right:0!important}[data-v-e78fd1d9] .n-input__suffix{border:1px solid #d9d9d9}.formax-calendar[data-v-5d7e2793]{--formax-calendar-primary: #0f67fe;--formax-calendar-weekend: #fa4d5e}.formax-calendar__header[data-v-5d7e2793]{padding:8px 0;min-height:40px}.formax-calendar__header-inner[data-v-5d7e2793]{width:100%}.formax-calendar__header-range[data-v-5d7e2793]{display:flex;align-items:center;gap:8px}.formax-calendar__year-select[data-v-5d7e2793]{width:96px}.formax-calendar__month-select[data-v-5d7e2793]{width:80px}.formax-calendar__month-header[data-v-5d7e2793]{margin-bottom:8px}.formax-calendar__title[data-v-5d7e2793]{font-weight:600;min-width:72px;text-align:center}.formax-calendar__month-grid[data-v-5d7e2793]{gap:0;padding:0}.formax-calendar__month-cell[data-v-5d7e2793]{width:16.6666666667%;padding:8px;box-sizing:border-box;border:1px solid var(--n-border-color, #e0e0e0);margin:-1px 0 0 -1px;display:flex;flex-direction:column;min-height:80px;cursor:pointer;transition:background-color .2s;position:relative;background-color:var(--formax-calendar-cell-bg, transparent)}.formax-calendar__month-cell[data-v-5d7e2793]:hover{background-color:var(--formax-calendar-cell-hover-bg, var(--n-cell-color-hover, rgba(15, 103, 254, .08)))}.formax-calendar__month-cell--selected[data-v-5d7e2793]{background-color:var(--formax-calendar-cell-selected-bg, transparent)}.formax-calendar__month-cell-title[data-v-5d7e2793]{background-color:var(--formax-calendar-primary);color:#fff;margin:-8px -8px 8px;padding:6px 8px;font-size:14px;line-height:1.4;text-align:center}.formax-calendar__month-cell-body[data-v-5d7e2793]{flex:1;overflow:auto;font-size:12px;color:var(--formax-calendar-cell-text-color, inherit)}.formax-calendar__month-cell-bar[data-v-5d7e2793]{position:absolute;left:0;right:0;bottom:0;height:3px;background-color:transparent;transform-origin:center;transition:background-color .3s var(--n-bezier)}.formax-calendar__month-cell--selected .formax-calendar__month-cell-bar[data-v-5d7e2793]{background-color:var(--v5168e06c)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell{background-color:var(--formax-calendar-cell-bg, transparent);color:var(--formax-calendar-cell-text-color, inherit)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:hover{background-color:var(--formax-calendar-cell-hover-bg, var(--n-cell-color-hover, rgba(15, 103, 254, .08)))}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell--selected{background-color:var(--formax-calendar-cell-selected-bg, transparent);color:var(--formax-calendar-cell-text-color, #fff)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-header__extra{display:none!important}[data-v-5d7e2793] .formax-calendar__day .n-calendar-header__title{width:100%}[data-v-5d7e2793] .formax-calendar__day .n-calendar-header{padding:0 0 32px}[data-v-5d7e2793] .formax-calendar__day .n-calendar-date__day{position:absolute;left:-10px;right:0;margin:auto;top:-40px;text-align:center;font-size:18px;line-height:30px;width:calc(100% + 20px);color:#fff!important}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:nth-child(-n+5) .n-calendar-date .n-calendar-date__day{background-color:var(--formax-calendar-primary)}[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:nth-child(6) .n-calendar-date .n-calendar-date__day,[data-v-5d7e2793] .formax-calendar__day .n-calendar-cell:nth-child(7) .n-calendar-date .n-calendar-date__day{background-color:var(--formax-calendar-weekend)}[data-v-5d7e2793] .n-radio-group .n-radio-button.n-radio-button--checked{background-color:var(--formax-calendar-primary);color:#fff}.formax-title__icon[data-v-7fa0281d]{-o-object-fit:contain;object-fit:contain}.formax-title__text[data-v-7fa0281d]{color:var(--formax-title-text-color);font-size:var(--formax-title-text-size);font-weight:var(--formax-title-text-weight)}.formax-title__text--required-left[data-v-7fa0281d]:before{content:"*";color:#ff4747;margin-right:4px}.formax-title__text--required-right[data-v-7fa0281d]:after{content:"*";color:#ff4747;margin-left:4px}.formax-title--tiny[data-v-7fa0281d]{font-size:12px}.formax-title--tiny .formax-title__icon[data-v-7fa0281d]{width:12px;height:12px}.formax-title--small[data-v-7fa0281d]{font-size:14px}.formax-title--small .formax-title__icon[data-v-7fa0281d]{width:16px;height:16px}.formax-title--medium[data-v-7fa0281d]{font-size:16px}.formax-title--medium .formax-title__icon[data-v-7fa0281d]{width:20px;height:20px}.formax-title--large[data-v-7fa0281d]{font-size:18px}.formax-title--large .formax-title__icon[data-v-7fa0281d]{width:24px;height:24px}.formax-loading__overlay-desc[data-v-d1079e33]{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:120px}.formax-loading__progress[data-v-d1079e33]{width:100%;min-width:150px}.formax-loading__overlay-text[data-v-d1079e33]{font-size:14px;color:var(--n-text-color, inherit)}.formax-info-card[data-v-9bd56878]{position:relative;display:flex;align-items:center;padding:10px 16px;border-radius:var(--f-border-radius, 8px);box-sizing:border-box;cursor:default;box-shadow:var(--box-shadow-1);background-color:var(--f-color);color:var(--text-color-base);overflow:hidden}.formax-info-card-bordered[data-v-9bd56878]{border:1px solid var(--border-color)}.fic-left[data-v-9bd56878]{flex:0 0 auto;margin-right:12px;display:flex;align-items:center;justify-content:center}.fic-icon-default[data-v-9bd56878]{width:var(--f-icon-size, 34px);height:var(--f-icon-size, 34px);border-radius:50%;border:1px solid rgba(0,200,255,.9);display:flex;align-items:center;justify-content:center;background:var(--avatar-color);box-shadow:0 0 12px #00c8ff99}.fic-icon-default span[data-v-9bd56878]{font-size:16px;font-weight:600}.fic-right[data-v-9bd56878]{flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;min-width:0}.fic-title[data-v-9bd56878]{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:6px}.fic-content[data-v-9bd56878]{font-size:20px;line-height:1;font-weight:600}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoenergy/hoenergy-template-pc",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.21",
|
|
5
5
|
"description": "A cross-compatible Vue component library with metadata extraction",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build:tailwind": "tailwindcss -i ./docs/tailwind.css -o ./docs/tailwind.generated.css --minify",
|
|
22
|
-
"build": "npm run build:tailwind && vite build --mode library",
|
|
22
|
+
"build:docs:tailwind": "npm run build:tailwind && vite build --mode library",
|
|
23
|
+
"build": "vite build --mode library",
|
|
23
24
|
"dev": "vite --host 0.0.0.0",
|
|
24
25
|
"test": "vite --host 0.0.0.0",
|
|
25
26
|
"start": "npm run dev"
|
|
@@ -42,8 +43,7 @@
|
|
|
42
43
|
"vue-i18n": "^11.2.8",
|
|
43
44
|
"vue-types": "^6.0.0",
|
|
44
45
|
"vuedraggable": "^2.24.3",
|
|
45
|
-
"xlsx": "^0.18.5"
|
|
46
|
-
"tailwindcss": "^3.3.5"
|
|
46
|
+
"xlsx": "^0.18.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/node": "^16.11.40",
|
|
@@ -3,30 +3,41 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup lang="ts">
|
|
6
|
-
import { computed, ref } from
|
|
7
|
-
import type { ThemeMode } from
|
|
8
|
-
import { provideFormaxTheme } from
|
|
9
|
-
import type { CustomThemeOverrides } from
|
|
10
|
-
import { provideFormaxLocale, type LocaleType } from
|
|
6
|
+
import { computed, ref, watch } from "vue";
|
|
7
|
+
import type { ThemeMode } from "@/hook/useTheme.hook";
|
|
8
|
+
import { provideFormaxTheme } from "@/hook/useTheme.hook";
|
|
9
|
+
import type { CustomThemeOverrides } from "@/types";
|
|
10
|
+
import { provideFormaxLocale, type LocaleType } from "@/hook/useLocale.hook";
|
|
11
11
|
|
|
12
12
|
const props = defineProps<{
|
|
13
|
-
theme?: ThemeMode
|
|
14
|
-
customThemeOverrides?: CustomThemeOverrides
|
|
15
|
-
locale?: LocaleType
|
|
16
|
-
}>()
|
|
13
|
+
theme?: ThemeMode;
|
|
14
|
+
customThemeOverrides?: CustomThemeOverrides;
|
|
15
|
+
locale?: LocaleType;
|
|
16
|
+
}>();
|
|
17
17
|
|
|
18
18
|
const themeRef = computed<ThemeMode>(() => {
|
|
19
|
-
const value = props.theme
|
|
20
|
-
return value ===
|
|
21
|
-
})
|
|
19
|
+
const value = props.theme;
|
|
20
|
+
return value === "dark" ? "dark" : "light";
|
|
21
|
+
});
|
|
22
22
|
|
|
23
|
-
const customOverridesRef = ref<CustomThemeOverrides | undefined>(
|
|
23
|
+
const customOverridesRef = ref<CustomThemeOverrides | undefined>(
|
|
24
|
+
props.customThemeOverrides
|
|
25
|
+
);
|
|
24
26
|
|
|
25
|
-
provideFormaxTheme(themeRef, customOverridesRef)
|
|
27
|
+
provideFormaxTheme(themeRef, customOverridesRef);
|
|
26
28
|
|
|
27
29
|
const localeRef = computed<LocaleType>(() => {
|
|
28
|
-
return props.locale ||
|
|
29
|
-
})
|
|
30
|
+
return props.locale || "en";
|
|
31
|
+
});
|
|
30
32
|
|
|
31
|
-
provideFormaxLocale(localeRef)
|
|
33
|
+
provideFormaxLocale(localeRef);
|
|
34
|
+
|
|
35
|
+
watch(
|
|
36
|
+
() => props.customThemeOverrides,
|
|
37
|
+
(newVal: CustomThemeOverrides | undefined) => {
|
|
38
|
+
customOverridesRef.value = newVal
|
|
39
|
+
provideFormaxTheme(themeRef, customOverridesRef);
|
|
40
|
+
},
|
|
41
|
+
{ deep: true }
|
|
42
|
+
);
|
|
32
43
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FormaxConfigProvider :theme="injectedTheme" :customThemeOverrides="customThemeOverrides">
|
|
2
|
+
<FormaxConfigProvider :theme="injectedTheme" :customThemeOverrides="injectedTheme == 'dark' ? customThemeOverrides : undefined">
|
|
3
3
|
<FormaxChartCard name="示例卡片" :data="chartOption">
|
|
4
4
|
<template #header>
|
|
5
5
|
<n-tag type="info" size="small">示例tag</n-tag>
|
package/src/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import './style.css'
|
|
1
2
|
import { FormaxModalComponent as FormaxModal } from './components/general/modal/FormaxModal'
|
|
2
3
|
import { useModal } from './components/general/modal/FormaxModal'
|
|
3
4
|
import { FormaxTableComponent as FormaxTable } from './components/data/table/FormaxTable'
|
package/src/style.css
ADDED