@cmstops/pro-compo 0.1.18 → 0.1.20
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.css +80 -93
- package/dist/index.min.css +1 -1
- package/es/contentDetailList/component.js +145 -54
- package/es/contentDetailList/components/Content/CompoItem/index.js +3 -2
- package/es/contentDetailList/components/Content/ContentListItem/index.js +21 -13
- package/es/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +2 -3
- package/es/contentDetailList/components/Content/DocItem/index.js +4 -2
- package/es/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +9 -8
- package/es/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
- package/es/contentDetailList/components/Content/LiveItem/index.js +3 -2
- package/es/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/es/contentDetailList/components/Content/index.js +219 -242
- package/es/contentDetailList/components/Doc/index.js +24 -35
- package/es/contentDetailList/scripts/index.d.ts +0 -10
- package/es/contentDetailList/style/ComoItem.less +7 -19
- package/es/contentDetailList/style/Content.less +1 -1
- package/es/contentDetailList/style/ContentListItem.less +29 -32
- package/es/contentDetailList/style/Doc.less +1 -5
- package/es/contentDetailList/style/DocItem.less +11 -16
- package/es/contentDetailList/style/DocTags.less +2 -1
- package/es/contentDetailList/style/KongoNavItem.less +6 -19
- package/es/contentDetailList/style/LiveItem.less +8 -20
- package/es/contentDetailList/style/MaccountItem.less +8 -16
- package/es/contentDetailList/style/index.css +78 -93
- package/es/contentDetailList/style/index.less +10 -0
- package/es/index.css +80 -93
- package/es/mediaFilter/style/index.css +1 -0
- package/es/mediaFilter/style/index.less +1 -0
- package/es/style.css +1 -0
- package/es/typeIcons/style/index.css +1 -0
- package/es/typeIcons/style/index.less +1 -0
- package/es/utils/doc.d.ts +1 -0
- package/es/utils/doc.js +27 -1
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.js +16 -1
- package/es/utils/typeMap.d.ts +19 -0
- package/es/utils/typeMap.js +65 -1
- package/lib/contentDetailList/component.js +148 -53
- package/lib/contentDetailList/components/Content/CompoItem/index.js +4 -3
- package/lib/contentDetailList/components/Content/ContentListItem/index.js +22 -14
- package/lib/contentDetailList/components/Content/DocItem/ApprovalStateMap/index.js +8 -9
- package/lib/contentDetailList/components/Content/DocItem/index.js +8 -6
- package/lib/contentDetailList/components/Content/KongoNavItem/DocTags/index.js +16 -15
- package/lib/contentDetailList/components/Content/KongoNavItem/index.js +3 -2
- package/lib/contentDetailList/components/Content/LiveItem/index.js +3 -2
- package/lib/contentDetailList/components/Content/MaccountItem/index.js +2 -1
- package/lib/contentDetailList/components/Content/index.js +218 -245
- package/lib/contentDetailList/components/Doc/index.js +23 -34
- package/lib/contentDetailList/style/ComoItem.less +7 -19
- package/lib/contentDetailList/style/Content.less +1 -1
- package/lib/contentDetailList/style/ContentListItem.less +29 -32
- package/lib/contentDetailList/style/Doc.less +1 -5
- package/lib/contentDetailList/style/DocItem.less +11 -16
- package/lib/contentDetailList/style/DocTags.less +2 -1
- package/lib/contentDetailList/style/KongoNavItem.less +6 -19
- package/lib/contentDetailList/style/LiveItem.less +8 -20
- package/lib/contentDetailList/style/MaccountItem.less +8 -16
- package/lib/contentDetailList/style/index.css +78 -93
- package/lib/contentDetailList/style/index.less +10 -0
- package/lib/index.css +80 -93
- package/lib/mediaFilter/style/index.css +1 -0
- package/lib/mediaFilter/style/index.less +1 -0
- package/lib/typeIcons/style/index.css +1 -0
- package/lib/typeIcons/style/index.less +1 -0
- package/lib/utils/doc.js +29 -0
- package/lib/utils/index.js +17 -0
- package/lib/utils/typeMap.js +71 -0
- package/package.json +1 -1
- package/es/contentDetailList/scripts/data.d.ts +0 -254
- package/es/contentDetailList/scripts/index.js +0 -137
- package/lib/contentDetailList/scripts/index.js +0 -153
package/lib/index.css
CHANGED
|
@@ -205,6 +205,7 @@
|
|
|
205
205
|
.type-icons-container {
|
|
206
206
|
display: inline-block;
|
|
207
207
|
vertical-align: middle;
|
|
208
|
+
line-height: 12px;
|
|
208
209
|
font-size: 18px;
|
|
209
210
|
}
|
|
210
211
|
.tooltip-button {
|
|
@@ -1770,22 +1771,22 @@
|
|
|
1770
1771
|
white-space: nowrap;
|
|
1771
1772
|
text-overflow: ellipsis;
|
|
1772
1773
|
}
|
|
1773
|
-
.content-
|
|
1774
|
+
.content-detail-list-container *::selection {
|
|
1774
1775
|
display: none;
|
|
1775
1776
|
}
|
|
1776
|
-
.content-
|
|
1777
|
+
.content-detail-list-container .fix_position {
|
|
1777
1778
|
position: relative;
|
|
1778
1779
|
margin-right: 10px;
|
|
1779
1780
|
color: #4886ff;
|
|
1780
1781
|
}
|
|
1781
|
-
.content-
|
|
1782
|
+
.content-detail-list-container .fix_position .doc-fixed-num {
|
|
1782
1783
|
position: absolute;
|
|
1783
1784
|
right: -7px;
|
|
1784
1785
|
bottom: 0;
|
|
1785
1786
|
color: #bababa;
|
|
1786
1787
|
font-size: 12px;
|
|
1787
1788
|
}
|
|
1788
|
-
.content-
|
|
1789
|
+
.content-detail-list-container .index {
|
|
1789
1790
|
display: inline-block;
|
|
1790
1791
|
flex-shrink: 0;
|
|
1791
1792
|
box-sizing: border-box;
|
|
@@ -1800,25 +1801,16 @@
|
|
|
1800
1801
|
background: #edf3ff;
|
|
1801
1802
|
border-radius: 3px;
|
|
1802
1803
|
}
|
|
1803
|
-
.content-
|
|
1804
|
-
.content-
|
|
1804
|
+
.content-detail-list-container .d_time,
|
|
1805
|
+
.content-detail-list-container .add_new {
|
|
1805
1806
|
margin: 0;
|
|
1806
1807
|
margin-right: 10px;
|
|
1807
1808
|
font-size: 14px;
|
|
1808
1809
|
vertical-align: middle;
|
|
1809
1810
|
}
|
|
1810
|
-
.content-
|
|
1811
|
+
.content-detail-list-container .d_time {
|
|
1811
1812
|
color: #7da8ff;
|
|
1812
1813
|
}
|
|
1813
|
-
.gray_for_hide {
|
|
1814
|
-
-webkit-filter: grayscale(100%);
|
|
1815
|
-
-moz-filter: grayscale(100%);
|
|
1816
|
-
-ms-filter: grayscale(100%);
|
|
1817
|
-
-o-filter: grayscale(100%);
|
|
1818
|
-
filter: grayscale(100%);
|
|
1819
|
-
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
1820
|
-
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
1821
|
-
}
|
|
1822
1814
|
.medialist-component-item-view {
|
|
1823
1815
|
display: flex;
|
|
1824
1816
|
padding: 10px;
|
|
@@ -1857,12 +1849,15 @@
|
|
|
1857
1849
|
padding: 2px 0;
|
|
1858
1850
|
}
|
|
1859
1851
|
.medialist-component-item-view .info-view .title {
|
|
1860
|
-
display:
|
|
1852
|
+
display: flex;
|
|
1853
|
+
align-items: center;
|
|
1861
1854
|
margin-bottom: 10px;
|
|
1862
1855
|
overflow: hidden;
|
|
1863
1856
|
color: #1d2129;
|
|
1864
1857
|
font-size: 14px;
|
|
1865
|
-
|
|
1858
|
+
font-style: normal;
|
|
1859
|
+
font-weight: 400;
|
|
1860
|
+
line-height: 22px;
|
|
1866
1861
|
cursor: pointer;
|
|
1867
1862
|
-webkit-line-clamp: 2;
|
|
1868
1863
|
-webkit-box-orient: vertical;
|
|
@@ -1890,21 +1885,13 @@
|
|
|
1890
1885
|
width: 240px;
|
|
1891
1886
|
}
|
|
1892
1887
|
.medialist-component-item-view .info-view .abttrite-v .left .abttr.tags {
|
|
1893
|
-
display:
|
|
1888
|
+
display: flex;
|
|
1889
|
+
align-items: center;
|
|
1894
1890
|
width: 175px;
|
|
1895
1891
|
}
|
|
1896
1892
|
.medialist-component-item-view .info-view .abttrite-v .right {
|
|
1897
1893
|
margin-right: 20px;
|
|
1898
1894
|
}
|
|
1899
|
-
.gray_for_hide {
|
|
1900
|
-
-webkit-filter: grayscale(100%);
|
|
1901
|
-
-moz-filter: grayscale(100%);
|
|
1902
|
-
-ms-filter: grayscale(100%);
|
|
1903
|
-
-o-filter: grayscale(100%);
|
|
1904
|
-
filter: grayscale(100%);
|
|
1905
|
-
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
1906
|
-
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
1907
|
-
}
|
|
1908
1895
|
.medialist-component-item-view {
|
|
1909
1896
|
display: flex;
|
|
1910
1897
|
padding: 10px;
|
|
@@ -1921,7 +1908,7 @@
|
|
|
1921
1908
|
margin-right: 20px;
|
|
1922
1909
|
background: #edf3ff;
|
|
1923
1910
|
}
|
|
1924
|
-
.medialist-component-item-view .cover-view .
|
|
1911
|
+
.medialist-component-item-view .cover-view .image {
|
|
1925
1912
|
width: 100%;
|
|
1926
1913
|
height: 100%;
|
|
1927
1914
|
border-radius: 4px;
|
|
@@ -1943,12 +1930,16 @@
|
|
|
1943
1930
|
padding: 2px 0;
|
|
1944
1931
|
}
|
|
1945
1932
|
.medialist-component-item-view .info-view .title {
|
|
1946
|
-
|
|
1933
|
+
width: calc(100% - 50px);
|
|
1934
|
+
display: flex;
|
|
1935
|
+
align-items: center;
|
|
1947
1936
|
margin-bottom: 10px;
|
|
1948
1937
|
overflow: hidden;
|
|
1949
1938
|
color: #1d2129;
|
|
1950
1939
|
font-size: 14px;
|
|
1951
|
-
|
|
1940
|
+
font-style: normal;
|
|
1941
|
+
font-weight: 400;
|
|
1942
|
+
line-height: 22px;
|
|
1952
1943
|
cursor: pointer;
|
|
1953
1944
|
-webkit-line-clamp: 2;
|
|
1954
1945
|
-webkit-box-orient: vertical;
|
|
@@ -1983,32 +1974,30 @@
|
|
|
1983
1974
|
width: 240px;
|
|
1984
1975
|
}
|
|
1985
1976
|
.medialist-component-item-view .info-view .abttrite-v .left .abttr.tags {
|
|
1986
|
-
display:
|
|
1977
|
+
display: flex;
|
|
1978
|
+
align-items: center;
|
|
1987
1979
|
width: 175px;
|
|
1988
1980
|
}
|
|
1981
|
+
.medialist-component-item-view .info-view .abttrite-v .left .icon {
|
|
1982
|
+
margin-right: 10px;
|
|
1983
|
+
}
|
|
1989
1984
|
.medialist-component-item-view .info-view .abttrite-v .right {
|
|
1990
1985
|
margin-right: 20px;
|
|
1991
1986
|
}
|
|
1992
|
-
.
|
|
1987
|
+
.medialist-component-item-view .title-tips {
|
|
1988
|
+
display: flex;
|
|
1989
|
+
align-items: center;
|
|
1993
1990
|
color: #a3a3a3;
|
|
1994
|
-
font-size:
|
|
1991
|
+
font-size: 10px;
|
|
1992
|
+
margin-left: 10px;
|
|
1995
1993
|
}
|
|
1996
|
-
.
|
|
1997
|
-
margin-right:
|
|
1994
|
+
.medialist-component-item-view .title-tips .icon {
|
|
1995
|
+
margin-right: 5px;
|
|
1998
1996
|
font-size: 10px;
|
|
1999
1997
|
}
|
|
2000
|
-
.
|
|
1998
|
+
.medialist-component-item-view .title-tips.red {
|
|
2001
1999
|
color: red;
|
|
2002
2000
|
}
|
|
2003
|
-
.gray_for_hide {
|
|
2004
|
-
-webkit-filter: grayscale(100%);
|
|
2005
|
-
-moz-filter: grayscale(100%);
|
|
2006
|
-
-ms-filter: grayscale(100%);
|
|
2007
|
-
-o-filter: grayscale(100%);
|
|
2008
|
-
filter: grayscale(100%);
|
|
2009
|
-
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
2010
|
-
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
2011
|
-
}
|
|
2012
2001
|
.medialist-kongo-item-view {
|
|
2013
2002
|
display: flex;
|
|
2014
2003
|
padding: 10px;
|
|
@@ -2025,7 +2014,7 @@
|
|
|
2025
2014
|
margin-right: 20px;
|
|
2026
2015
|
background: #edf3ff;
|
|
2027
2016
|
}
|
|
2028
|
-
.medialist-kongo-item-view .cover-view .
|
|
2017
|
+
.medialist-kongo-item-view .cover-view .image {
|
|
2029
2018
|
width: 100%;
|
|
2030
2019
|
height: 100%;
|
|
2031
2020
|
border-radius: 4px;
|
|
@@ -2047,12 +2036,15 @@
|
|
|
2047
2036
|
padding: 2px 0;
|
|
2048
2037
|
}
|
|
2049
2038
|
.medialist-kongo-item-view .info-view .title {
|
|
2050
|
-
display:
|
|
2039
|
+
display: flex;
|
|
2040
|
+
align-items: center;
|
|
2051
2041
|
margin-bottom: 10px;
|
|
2052
2042
|
overflow: hidden;
|
|
2053
2043
|
color: #1d2129;
|
|
2054
2044
|
font-size: 14px;
|
|
2055
|
-
|
|
2045
|
+
font-style: normal;
|
|
2046
|
+
font-weight: 400;
|
|
2047
|
+
line-height: 22px;
|
|
2056
2048
|
cursor: pointer;
|
|
2057
2049
|
-webkit-line-clamp: 2;
|
|
2058
2050
|
-webkit-box-orient: vertical;
|
|
@@ -2092,9 +2084,10 @@
|
|
|
2092
2084
|
.no-margin span {
|
|
2093
2085
|
margin-right: 0 !important;
|
|
2094
2086
|
}
|
|
2095
|
-
.doc-tags-container .
|
|
2087
|
+
.doc-tags-container .arco-tag {
|
|
2096
2088
|
font-weight: 600;
|
|
2097
2089
|
border: none;
|
|
2090
|
+
margin-right: 5px;
|
|
2098
2091
|
}
|
|
2099
2092
|
.doc-tags-container .yuanchuang {
|
|
2100
2093
|
color: #4886ff;
|
|
@@ -2136,15 +2129,6 @@
|
|
|
2136
2129
|
.doc-tags-thumb-popver .doc-tags-thumb-ul img + img {
|
|
2137
2130
|
margin-left: 2px;
|
|
2138
2131
|
}
|
|
2139
|
-
.gray_for_hide {
|
|
2140
|
-
-webkit-filter: grayscale(100%);
|
|
2141
|
-
-moz-filter: grayscale(100%);
|
|
2142
|
-
-ms-filter: grayscale(100%);
|
|
2143
|
-
-o-filter: grayscale(100%);
|
|
2144
|
-
filter: grayscale(100%);
|
|
2145
|
-
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
2146
|
-
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
2147
|
-
}
|
|
2148
2132
|
.medialist-ilive-item-view {
|
|
2149
2133
|
display: flex;
|
|
2150
2134
|
padding: 10px;
|
|
@@ -2161,7 +2145,7 @@
|
|
|
2161
2145
|
margin-right: 20px;
|
|
2162
2146
|
background: #edf3ff;
|
|
2163
2147
|
}
|
|
2164
|
-
.medialist-ilive-item-view .cover-view .
|
|
2148
|
+
.medialist-ilive-item-view .cover-view .image {
|
|
2165
2149
|
width: 100%;
|
|
2166
2150
|
height: 100%;
|
|
2167
2151
|
border-radius: 4px;
|
|
@@ -2183,12 +2167,15 @@
|
|
|
2183
2167
|
padding: 2px 0;
|
|
2184
2168
|
}
|
|
2185
2169
|
.medialist-ilive-item-view .info-view .title {
|
|
2186
|
-
display:
|
|
2170
|
+
display: flex;
|
|
2171
|
+
align-items: center;
|
|
2187
2172
|
margin-bottom: 10px;
|
|
2188
2173
|
overflow: hidden;
|
|
2189
2174
|
color: #1d2129;
|
|
2190
2175
|
font-size: 14px;
|
|
2191
|
-
|
|
2176
|
+
font-style: normal;
|
|
2177
|
+
font-weight: 400;
|
|
2178
|
+
line-height: 22px;
|
|
2192
2179
|
cursor: pointer;
|
|
2193
2180
|
-webkit-line-clamp: 2;
|
|
2194
2181
|
-webkit-box-orient: vertical;
|
|
@@ -2219,7 +2206,8 @@
|
|
|
2219
2206
|
width: 250px;
|
|
2220
2207
|
}
|
|
2221
2208
|
.medialist-ilive-item-view .info-view .abttrite-v .left .abttr.tags {
|
|
2222
|
-
display:
|
|
2209
|
+
display: flex;
|
|
2210
|
+
align-items: center;
|
|
2223
2211
|
width: 160px;
|
|
2224
2212
|
}
|
|
2225
2213
|
.medialist-ilive-item-view .info-view .abttrite-v .left .abttr.type {
|
|
@@ -2229,15 +2217,6 @@
|
|
|
2229
2217
|
.medialist-ilive-item-view .info-view .abttrite-v .right {
|
|
2230
2218
|
margin-right: 20px;
|
|
2231
2219
|
}
|
|
2232
|
-
.gray_for_hide {
|
|
2233
|
-
-webkit-filter: grayscale(100%);
|
|
2234
|
-
-moz-filter: grayscale(100%);
|
|
2235
|
-
-ms-filter: grayscale(100%);
|
|
2236
|
-
-o-filter: grayscale(100%);
|
|
2237
|
-
filter: grayscale(100%);
|
|
2238
|
-
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
2239
|
-
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
2240
|
-
}
|
|
2241
2220
|
.medialist-account-item-view {
|
|
2242
2221
|
display: flex;
|
|
2243
2222
|
padding: 10px;
|
|
@@ -2256,7 +2235,7 @@
|
|
|
2256
2235
|
background: #edf3ff;
|
|
2257
2236
|
border-radius: 50%;
|
|
2258
2237
|
}
|
|
2259
|
-
.medialist-account-item-view .cover-view .
|
|
2238
|
+
.medialist-account-item-view .cover-view .image {
|
|
2260
2239
|
width: 100%;
|
|
2261
2240
|
height: 100%;
|
|
2262
2241
|
border-radius: 4px;
|
|
@@ -2278,12 +2257,15 @@
|
|
|
2278
2257
|
padding: 2px 0;
|
|
2279
2258
|
}
|
|
2280
2259
|
.medialist-account-item-view .info-view .title {
|
|
2281
|
-
display:
|
|
2260
|
+
display: flex;
|
|
2261
|
+
align-items: center;
|
|
2282
2262
|
margin-bottom: 10px;
|
|
2283
2263
|
overflow: hidden;
|
|
2284
2264
|
color: #1d2129;
|
|
2285
2265
|
font-size: 14px;
|
|
2286
|
-
|
|
2266
|
+
font-style: normal;
|
|
2267
|
+
font-weight: 400;
|
|
2268
|
+
line-height: 22px;
|
|
2287
2269
|
cursor: pointer;
|
|
2288
2270
|
-webkit-line-clamp: 2;
|
|
2289
2271
|
-webkit-box-orient: vertical;
|
|
@@ -2319,27 +2301,16 @@
|
|
|
2319
2301
|
width: 240px;
|
|
2320
2302
|
}
|
|
2321
2303
|
.medialist-account-item-view .info-view .abttrite-v .left .abttr.tags {
|
|
2322
|
-
display:
|
|
2304
|
+
display: flex;
|
|
2305
|
+
align-items: center;
|
|
2323
2306
|
width: 175px;
|
|
2324
2307
|
}
|
|
2325
2308
|
.medialist-account-item-view .info-view .abttrite-v .right {
|
|
2326
2309
|
margin-right: 20px;
|
|
2327
2310
|
}
|
|
2328
|
-
.
|
|
2311
|
+
.content-detail-list-container {
|
|
2329
2312
|
width: 100%;
|
|
2330
2313
|
}
|
|
2331
|
-
.media-common-detail-list-container .data-ul {
|
|
2332
|
-
height: 100%;
|
|
2333
|
-
}
|
|
2334
|
-
.gray_for_hide {
|
|
2335
|
-
-webkit-filter: grayscale(100%);
|
|
2336
|
-
-moz-filter: grayscale(100%);
|
|
2337
|
-
-ms-filter: grayscale(100%);
|
|
2338
|
-
-o-filter: grayscale(100%);
|
|
2339
|
-
filter: grayscale(100%);
|
|
2340
|
-
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
2341
|
-
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
2342
|
-
}
|
|
2343
2314
|
.medialist-doc-item-view {
|
|
2344
2315
|
display: flex;
|
|
2345
2316
|
padding: 10px;
|
|
@@ -2356,6 +2327,11 @@
|
|
|
2356
2327
|
margin-right: 20px;
|
|
2357
2328
|
background: #edf3ff;
|
|
2358
2329
|
}
|
|
2330
|
+
.medialist-doc-item-view .cover-view .image {
|
|
2331
|
+
width: 100%;
|
|
2332
|
+
height: 100%;
|
|
2333
|
+
border-radius: 4px;
|
|
2334
|
+
}
|
|
2359
2335
|
.medialist-doc-item-view .cover-view .batch-select {
|
|
2360
2336
|
position: absolute;
|
|
2361
2337
|
top: 3px;
|
|
@@ -2383,15 +2359,16 @@
|
|
|
2383
2359
|
padding: 2px 0;
|
|
2384
2360
|
}
|
|
2385
2361
|
.medialist-doc-item-view .info-view .title {
|
|
2386
|
-
|
|
2362
|
+
width: calc(100% - 50px);
|
|
2387
2363
|
display: flex;
|
|
2388
2364
|
align-items: center;
|
|
2389
2365
|
margin-bottom: 10px;
|
|
2390
2366
|
overflow: hidden;
|
|
2391
2367
|
color: #1d2129;
|
|
2392
|
-
font-size:
|
|
2393
|
-
|
|
2394
|
-
|
|
2368
|
+
font-size: 14px;
|
|
2369
|
+
font-style: normal;
|
|
2370
|
+
font-weight: 400;
|
|
2371
|
+
line-height: 22px;
|
|
2395
2372
|
cursor: pointer;
|
|
2396
2373
|
-webkit-line-clamp: 2;
|
|
2397
2374
|
-webkit-box-orient: vertical;
|
|
@@ -2452,6 +2429,15 @@
|
|
|
2452
2429
|
.popper-categories {
|
|
2453
2430
|
max-width: 600px;
|
|
2454
2431
|
}
|
|
2432
|
+
.gray-for-state-hide {
|
|
2433
|
+
-webkit-filter: grayscale(100%);
|
|
2434
|
+
-moz-filter: grayscale(100%);
|
|
2435
|
+
-ms-filter: grayscale(100%);
|
|
2436
|
+
-o-filter: grayscale(100%);
|
|
2437
|
+
filter: grayscale(100%);
|
|
2438
|
+
filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale");
|
|
2439
|
+
filter: progid:dximagetransform.microsoft.basicimage(grayscale=1);
|
|
2440
|
+
}
|
|
2455
2441
|
.empty-data-container {
|
|
2456
2442
|
position: absolute;
|
|
2457
2443
|
top: 50%;
|
|
@@ -2526,6 +2512,7 @@
|
|
|
2526
2512
|
background: white;
|
|
2527
2513
|
}
|
|
2528
2514
|
.filter-wrp .more-btn {
|
|
2515
|
+
z-index: 10;
|
|
2529
2516
|
margin-right: 10px;
|
|
2530
2517
|
}
|
|
2531
2518
|
.filter-wrp .right-prefix {
|
package/lib/utils/doc.js
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const docStateMap = {
|
|
4
|
+
0: "\u8349\u7A3F",
|
|
5
|
+
10: "\u5BA1\u6838\u4E2D",
|
|
6
|
+
12: "\u5BA1\u6838\u4E2D",
|
|
7
|
+
13: "\u88AB\u9A73\u56DE",
|
|
8
|
+
14: "\u5DF2\u53D1\u5E03",
|
|
9
|
+
15: "\u5DF2\u53D1\u5E03",
|
|
10
|
+
16: "\u5DF2\u4E0B\u7EBF",
|
|
11
|
+
17: "\u5DF2\u5220\u9664",
|
|
12
|
+
19: "\u5B9A\u65F6\u53D1\u5E03",
|
|
13
|
+
22: "\u5DF2\u4E0B\u7EBF"
|
|
14
|
+
};
|
|
3
15
|
const docPubStateMap = {
|
|
4
16
|
"14|15|19": "\u5DF2\u53D1\u5E03",
|
|
5
17
|
"16|22": "\u5DF2\u4E0B\u7EBF",
|
|
@@ -45,6 +57,14 @@ const docThumbRatioMap = () => {
|
|
|
45
57
|
const docThumbArrMap = () => {
|
|
46
58
|
return Object.values(docThumbObjMap);
|
|
47
59
|
};
|
|
60
|
+
const docThumbMap = () => {
|
|
61
|
+
const obj = {};
|
|
62
|
+
Object.keys(docThumbObjMap).map((key) => {
|
|
63
|
+
obj[key] = docThumbObjMap[key].alias;
|
|
64
|
+
return {};
|
|
65
|
+
});
|
|
66
|
+
return obj;
|
|
67
|
+
};
|
|
48
68
|
const docThumbTypeMap = () => {
|
|
49
69
|
const arr = Object.keys(docThumbObjMap).map((key) => {
|
|
50
70
|
return {
|
|
@@ -74,9 +94,18 @@ const typeOptions = () => {
|
|
|
74
94
|
});
|
|
75
95
|
return [{ value: "", label: "\u5168\u90E8" }, ...arr];
|
|
76
96
|
};
|
|
97
|
+
const approvalItem = (item) => {
|
|
98
|
+
if (!(item.approval_status && item.approval_status.current_processes)) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
return item.approval_status;
|
|
102
|
+
};
|
|
103
|
+
exports.approvalItem = approvalItem;
|
|
77
104
|
exports.docPubStateMap = docPubStateMap;
|
|
78
105
|
exports.docSeries = docSeries;
|
|
106
|
+
exports.docStateMap = docStateMap;
|
|
79
107
|
exports.docThumbArrMap = docThumbArrMap;
|
|
108
|
+
exports.docThumbMap = docThumbMap;
|
|
80
109
|
exports.docThumbObjMap = docThumbObjMap;
|
|
81
110
|
exports.docThumbRatioMap = docThumbRatioMap;
|
|
82
111
|
exports.docThumbTypeMap = docThumbTypeMap;
|
package/lib/utils/index.js
CHANGED
|
@@ -36,7 +36,24 @@ function replaceSuffix(str, insert) {
|
|
|
36
36
|
const match = str.match(reg);
|
|
37
37
|
return match ? str.replace(reg, insert + match) : str + insert;
|
|
38
38
|
}
|
|
39
|
+
const noCoverText = (item) => {
|
|
40
|
+
const text = item.alias || item.title;
|
|
41
|
+
return text.substring(0, 2);
|
|
42
|
+
};
|
|
43
|
+
const timeFormat = (value) => {
|
|
44
|
+
if (value === 0)
|
|
45
|
+
return "--";
|
|
46
|
+
if (!value)
|
|
47
|
+
return "--";
|
|
48
|
+
if (typeof value === "number" && String(value).length === 10) {
|
|
49
|
+
value *= 1e3;
|
|
50
|
+
}
|
|
51
|
+
const date = new Date(value);
|
|
52
|
+
return `${date.getFullYear()}-${date.getMonth() + 1}-${date.getDate()} ${date.getHours() < 10 ? `0${date.getHours()}` : date.getHours()}:${date.getMinutes() < 10 ? `0${date.getMinutes()}` : date.getMinutes()}`;
|
|
53
|
+
};
|
|
39
54
|
exports.dateYYYYDDMMHHmm = dateYYYYDDMMHHmm;
|
|
40
55
|
exports.generateUUID = generateUUID;
|
|
56
|
+
exports.noCoverText = noCoverText;
|
|
41
57
|
exports.replaceSuffix = replaceSuffix;
|
|
58
|
+
exports.timeFormat = timeFormat;
|
|
42
59
|
exports.to = to;
|
package/lib/utils/typeMap.js
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const approveFlowStatusMap = {
|
|
4
|
+
1: "\u5BA1\u6838\u4E2D",
|
|
5
|
+
2: "\u5DF2\u62D2\u7EDD",
|
|
6
|
+
3: "\u5DF2\u901A\u8FC7",
|
|
7
|
+
4: "\u5DF2\u64A4\u9500",
|
|
8
|
+
5: "\u5DF2\u901A\u8FC7",
|
|
9
|
+
6: "\u5DF2\u9A73\u56DE",
|
|
10
|
+
7: "\u91CD\u65B0\u53D1\u8D77",
|
|
11
|
+
8: "\u5DF2\u7ED3\u675F"
|
|
12
|
+
};
|
|
3
13
|
const componentsColumns = {
|
|
4
14
|
banner: { value: "banner", label: "\u8F6E\u64AD\u7EC4\u4EF6" },
|
|
5
15
|
top: { value: "top", label: "\u7F6E\u9876\u7EC4\u4EF6" },
|
|
@@ -22,5 +32,66 @@ const compoColumnsMap = () => {
|
|
|
22
32
|
});
|
|
23
33
|
return obj;
|
|
24
34
|
};
|
|
35
|
+
const contentList_list_type_map = {
|
|
36
|
+
1: "\u624B\u52A8\u5217\u8868",
|
|
37
|
+
2: "\u81EA\u52A8\u5217\u8868",
|
|
38
|
+
3: "\u63A8\u8350\u5217\u8868",
|
|
39
|
+
4: "\u9891\u9053",
|
|
40
|
+
5: "\u4E13\u9898",
|
|
41
|
+
6: "\u5FEB\u8BAF",
|
|
42
|
+
7: "\u7EC4\u4EF6"
|
|
43
|
+
};
|
|
44
|
+
const contentList_relation_type_map = {
|
|
45
|
+
0: "\u624B\u52A8",
|
|
46
|
+
1: "\u94FE\u63A5",
|
|
47
|
+
2: "\u5F15\u7528",
|
|
48
|
+
3: "\u7EA7\u8054",
|
|
49
|
+
4: "\u5E94\u7528",
|
|
50
|
+
10: "\u81EA\u52A8"
|
|
51
|
+
};
|
|
52
|
+
const contentList_layout_map = {
|
|
53
|
+
blank: "\u6807\u51C6\u4FE1\u606F\u6D41",
|
|
54
|
+
svideo: "\u53CC\u5411\u5C0F\u89C6\u9891",
|
|
55
|
+
fly_card: "\u98DE\u5361\u9605\u8BFB",
|
|
56
|
+
video: "\u89C6\u9891\u98CE\u683C",
|
|
57
|
+
immersive_video: "\u6C89\u6D78\u5C0F\u89C6\u9891",
|
|
58
|
+
timeline: "\u65F6\u95F4\u94FE",
|
|
59
|
+
lbs: "LBS\u9891\u9053"
|
|
60
|
+
};
|
|
61
|
+
const kongo_source_map = {
|
|
62
|
+
app: "\u5E94\u7528",
|
|
63
|
+
url: "\u94FE\u63A5",
|
|
64
|
+
document: "\u7A3F\u4EF6",
|
|
65
|
+
category_list: "\u9891\u9053",
|
|
66
|
+
service: "\u670D\u52A1"
|
|
67
|
+
};
|
|
68
|
+
const calcApprovingUser = (data) => {
|
|
69
|
+
if (data.current_processes[0] && data.current_processes[0].users && data.current_processes[0].users[0]) {
|
|
70
|
+
const ApvUser = data.current_processes[0].users[0];
|
|
71
|
+
let alias = ApvUser.user_alias || "";
|
|
72
|
+
if (ApvUser.uid === "__smart_robot") {
|
|
73
|
+
alias = "AI\u52A9\u624B";
|
|
74
|
+
}
|
|
75
|
+
if (data.current_processes[0].users.length > 1) {
|
|
76
|
+
alias += "\u7B49";
|
|
77
|
+
}
|
|
78
|
+
return alias;
|
|
79
|
+
}
|
|
80
|
+
return "";
|
|
81
|
+
};
|
|
82
|
+
const calcApprovingDependent = (data) => {
|
|
83
|
+
let alias = "";
|
|
84
|
+
if (data.current_processes && data.current_processes.length && data.current_processes[0] && (data.current_processes[0].users && data.current_processes[0].users.length > 1 || data.current_processes[0].uid && data.current_processes[0].uid.length > 1)) {
|
|
85
|
+
alias = !data.current_processes[0].dependent ? "\uFF08\u4F1A\u7B7E\uFF09" : "\uFF08\u6216\u7B7E\uFF09";
|
|
86
|
+
}
|
|
87
|
+
return alias;
|
|
88
|
+
};
|
|
89
|
+
exports.approveFlowStatusMap = approveFlowStatusMap;
|
|
90
|
+
exports.calcApprovingDependent = calcApprovingDependent;
|
|
91
|
+
exports.calcApprovingUser = calcApprovingUser;
|
|
25
92
|
exports.compoColumnsMap = compoColumnsMap;
|
|
26
93
|
exports.componentsColumns = componentsColumns;
|
|
94
|
+
exports.contentList_layout_map = contentList_layout_map;
|
|
95
|
+
exports.contentList_list_type_map = contentList_list_type_map;
|
|
96
|
+
exports.contentList_relation_type_map = contentList_relation_type_map;
|
|
97
|
+
exports.kongo_source_map = kongo_source_map;
|