You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
753 B
1 line
753 B
function e(e,t){if(!e&&!t)return`—`;let n=e=>e.replace(/-/g,`.`);if(e&&t){let r=n(e),i=n(t);return e.slice(0,4)===t.slice(0,4)?`${r}-${i.slice(5)}`:`${r}-${i}`}return n(e||t)}function t(e){return e===2?`进行中`:e===3?`已结束`:`未开始`}function n(e){return e===2?`status-progress-2`:e===3?`status-progress-3`:`status-progress-1`}function r(e){return e===1?`status-published`:`status-unpublished`}function i(e){return e===1?`status-enabled`:`status-disabled`}function a(e){return e===`active`?`status-demand-active`:e===`done`?`status-demand-done`:e===`terminated`?`status-demand-terminated`:`status-unpublished`}function o(e){return e===`tech`?`type-badge-brand`:`type-badge-secondary`}export{t as a,e as i,o as n,n as o,i as r,r as s,a as t}; |